* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c4a6e 0%, #1e293b 50%, #0f172a 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 动态网格背景 */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(34, 197, 94, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* 霓虹光线效果 */
.neon-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.neon-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    height: 2px;
    width: 200px;
    animation: neonMove 8s linear infinite;
}

.neon-line:nth-child(1) {
    top: 20%;
    left: -200px;
    animation-delay: 0s;
}

.neon-line:nth-child(2) {
    top: 60%;
    left: -200px;
    animation-delay: 2s;
}

.neon-line:nth-child(3) {
    top: 80%;
    left: -200px;
    animation-delay: 4s;
}

@keyframes neonMove {
    0% { left: -200px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* 数据可视化元素 */
.data-viz {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 150px;
    height: 200px;
    opacity: 0.3;
}

.chart-bar {
    position: absolute;
    bottom: 0;
    width: 12px;
    background: linear-gradient(0deg, #22c55e, #16a34a);
    border-radius: 2px 2px 0 0;
    animation: barGrow 3s ease-in-out infinite;
}

.chart-bar:nth-child(1) { left: 10px; height: 60px; animation-delay: 0s; }
.chart-bar:nth-child(2) { left: 30px; height: 80px; animation-delay: 0.2s; }
.chart-bar:nth-child(3) { left: 50px; height: 45px; animation-delay: 0.4s; }
.chart-bar:nth-child(4) { left: 70px; height: 90px; animation-delay: 0.6s; }
.chart-bar:nth-child(5) { left: 90px; height: 70px; animation-delay: 0.8s; }
.chart-bar:nth-child(6) { left: 110px; height: 100px; animation-delay: 1s; }

@keyframes barGrow {
    0%, 100% { transform: scaleY(0.8); }
    50% { transform: scaleY(1.2); }
}

/* 主容器 */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 徽章/标签 */
.badge {
    display: inline-flex;
    align-items: center;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 20px;
    animation: slideInDown 1s ease-out;
    backdrop-filter: blur(10px);
}

.badge-icon {
    width: 16px;
    height: 16px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #0f172a;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 主标题 */
.main-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #22c55e 50%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShine 4s ease-in-out infinite, slideInUp 1.2s ease-out 0.2s both;
    line-height: 1.1;
}

@keyframes titleShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 副标题 */
.subtitle {
    font-size: 1.3rem;
    color: #94a3b8;
    margin-bottom: 25px;
    font-weight: 300;
    animation: slideInUp 1.2s ease-out 0.4s both;
}

/* 特色功能列表 */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
    animation: slideInLeft 1.2s ease-out 0.6s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    transform: translateY(-2px);
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #0f172a;
    font-weight: bold;
}

.feature-text {
    font-size: 0.9rem;
    color: #e2e8f0;
}

/* 统计数据 */
.stats-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
    margin: 30px 0 40px;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #22c55e;
    display: block;
    animation: countUp 2s ease-out 1.5s both;
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 输入容器 */
.input-container {
    position: relative;
    margin-bottom: 20px;
    animation: slideInUp 1.2s ease-out 1s both;
}

.input-label {
    position: absolute;
    top: -18px;
    left: 20px;
    background: #0f172a;
    padding: 0 8px;
    font-size: 0.8rem;
    color: #22c55e;
    font-weight: 600;
}

.stock-input {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 15px;
    font-size: 16px;
    background: rgba(15, 23, 42, 0.8);
    color: white;
    backdrop-filter: blur(15px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    outline: none;
    text-align: center;
    font-weight: 500;
}

.stock-input::placeholder {
    color: #64748b;
}

.stock-input:focus {
    border-color: #22c55e;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(34, 197, 94, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.9);
}

/* 分析按钮（基础样式） */
.analyze-button {
    width: 90%;
    max-width: 600px;
    padding: 18px 25px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 10px 30px rgba(34, 197, 94, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 固定按钮：跟输入框一起出现，不浮动 */
.fixed-btn {
    position: relative;
    margin-top: 20px;
}

/* 悬浮按钮：一直吸底 */
.float-btn {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 999;
}

.float-btn.hide {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.35s ease;
}

/* 默认不扩散 */
.analyze-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.button-text {
    position: relative;
    z-index: 1;
}

/* 信任指标 */
.trust-indicators {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
    animation: slideInUp 1.2s ease-out 1.4s both;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
}

.trust-icon {
    width: 30px;
    height: 30px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    font-size: 14px;
    color: #22c55e;
}

.trust-text {
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
}

/* 动画效果 */
.shake {
    animation: shake 0.6s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.pulse {
    animation: pulse 0.8s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: all 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #22c55e;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content {
    color: #e2e8f0;
    line-height: 1.6;
}

/* Analysis process modal */
.analysis-step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid transparent;
    transition: all 0.5s ease;
}

.analysis-step.active {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.analysis-step.completed {
    border-left-color: #16a34a;
    background: rgba(22, 163, 74, 0.15);
}

.step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.analysis-step.active .step-icon {
    background: #22c55e;
    color: #0f172a;
    animation: pulse 1s ease-in-out infinite;
}

.analysis-step.completed .step-icon {
    background: #16a34a;
    color: white;
}

.step-text {
    flex: 1;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

/* Result modal 结果弹窗 */
.result-content {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(34, 197, 94, 0); }
}

.result-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 12px;
}

.result-description {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

/* 进群好处列表 */
.group-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    text-align: left;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.group-benefits li {
    margin-bottom: 6px;
    padding-left: 24px;
    position: relative;
    opacity: 0.9;
}

.group-benefits li::before {
    content: "•";
    position: absolute;
    left: 10px;
    top: 0;
    font-size: 18px;
    color: #22c55e;
}

/* 无垃圾信息说明 */
.result-note {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 18px;
    opacity: 0.9;
}

/* WhatsApp CTA 按钮 */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    padding: 15px 32px;
    border-radius: 999px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 14px 35px rgba(37, 211, 102, 0.55);
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: ctaPulse 1.6s ease-in-out infinite;
}

.whatsapp-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 40px rgba(37, 211, 102, 0.7);
}

.whatsapp-button .whatsapp-icon {
    margin-right: 10px;
}

/* CTA 轻微呼吸动画 */
@keyframes ctaPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
    }
    50% {
        transform: translateY(-1px) scale(1.03);
        box-shadow: 0 18px 42px rgba(37, 211, 102, 0.75);
    }
}

/* Footer */
.footer {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid rgba(34, 197, 94, 0.2);
    text-align: center;
}

.footer-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #22c55e;
}

.footer-text {
    color: #64748b;
    font-size: 0.8rem;
}

/* Info modal content */
.info-section {
    margin-bottom: 20px;
}

.info-section h3 {
    color: #22c55e;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-section p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 语言切换按钮 */
.lang-switch {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 16px;
}

.lang-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.lang-btn:hover {
    border-color: #22c55e;
    color: #22c55e;
}

.lang-btn.active {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* SEO 内容区 */
.seo-section {
    margin: 40px 0 50px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    animation: slideInUp 1.2s ease-out 0.8s both;
}

.seo-section h2 {
    font-size: 1.5rem;
    color: #22c55e;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.seo-section p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.seo-section strong {
    color: #22c55e;
    font-weight: 700;
}

.seo-section ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.seo-section ul li {
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.seo-section ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 2px;
    color: #22c55e;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 16px;
        margin: 24px 0 32px;
    }

    .data-viz {
        display: none;
    }

    .modal {
        padding: 20px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .container {
        padding-bottom: 120px; /* 防止内容被悬浮按钮挡住 */
    }
}
