/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a3a 0%, #2c5aa0 50%, #4a90e2 100%);
    color: #ffffff;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* 主容器 */
.main-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* 头像 */
.avatar {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

/* 标题样式 */
.title {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFD700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

.subtitle {
    font-size: 1.8em;
    color: #ffffff;
    margin: 0 0 30px 0;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* 准确率显示 */
.accuracy {
    font-size: 1.2em;
    margin: 20px 0;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.highlight {
    color: #FFD700;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

/* 描述文本 */
.description {
    font-size: 1em;
    line-height: 1.6;
    margin: 20px 0 40px 0;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.viewer-count {
    color: #4CAF50;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.viewer-count:hover {
    transform: scale(1.05);
}

/* 输入框 */
.stock-input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    font-size: 1em;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.stock-input::placeholder {
    color: #cccccc;
}

.stock-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* 分析按钮 */
.analysis-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a3a;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    margin-bottom: 30px;
}

.analysis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.analysis-btn:active {
    transform: translateY(0);
}

/* 免责声明 */
.disclaimer {
    margin-top: 40px;
    font-size: 0.9em;
    color: #cccccc;
    text-align: center;
}

.disclaimer .links {
    margin: 10px 0;
}

.disclaimer .links a {
    color: #FFD700;
    text-decoration: none;
    margin: 0 10px;
}

.disclaimer .links a:hover {
    text-decoration: underline;
}

.disclaimer .address {
    margin-top: 10px;
    font-size: 0.8em;
    color: #999;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

/* 进度条 */
.progress-container {
    width: 100%;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

/* 进度指示器样式 */
.progress-indicator {
    color: #ffffff;
    text-align: center;
}

.progress-indicator h3 {
    color: #FFD700;
    margin-bottom: 30px;
    font-size: 1.5em;
}

.progress-item {
    margin-bottom: 20px;
    text-align: left;
}

.progress-item span {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 500;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-indicator__fill {
    height: 100%;
    background: linear-gradient(45deg, #00bcd4, #2196f3);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

/* WhatsApp按钮 */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn img {
    width: 30px;
    height: 30px;
}

/* 动态数据更新效果 */
.highlight.updating,
.viewer-count.updating {
    animation: dataUpdate 0.5s ease-in-out;
    transform: scale(1.05);
}

@keyframes dataUpdate {
    0% {
        background-color: rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
    50% {
        background-color: rgba(255, 215, 0, 0.6);
        transform: scale(1.05);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* 加载动画 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1.4em;
    }
    
    .main-box {
        padding: 15px;
    }
    
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .stock-input {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1.2em;
    }
    
    .analysis-btn {
        padding: 12px 30px;
        font-size: 1em;
    }
}

/* 结果显示区域 */
.result-display {
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

.result-display h3 {
    color: #FFD700;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.result-display p {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #e0e0e0;
}

.report-features {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.report-features ul {
    margin: 10px 0;
    padding-left: 20px;
}

.report-features li {
    margin-bottom: 5px;
    color: #e0e0e0;
}

.urgency-notice {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.urgency-notice p {
    margin-bottom: 8px;
    color: #FFC107;
}

.whatsapp-result-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    margin-top: 20px;
    width: 100%;
    max-width: 350px;
}

.whatsapp-result-btn:hover {
    background: #20b358;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* 调整模态框尺寸 */
.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 85%;
    max-width: 450px; /* 减小最大宽度 */
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
    max-height: 80vh; /* 限制最大高度 */
    overflow-y: auto; /* 允许滚动 */
}