﻿:root {
    --bg-dark: #0B0E11;
    --bg-card: #151A21;
    --primary-green: #00E396; 
    --primary-red: #FF4560;   
    --accent-blue: #2E93fA;
    --text-main: #FFFFFF;
    --text-muted: #8A929A;
    --whatsapp-green: #25D366;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-green { color: var(--primary-green); }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
.btn-icon { margin-right: 10px; width: 20px; height: 20px; fill: white; }

/* --- Header --- */
header {
    padding: 20px 0;
    background: rgba(11, 14, 17, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #2C3440;
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: white; }
.logo span { color: var(--primary-green); }

/* --- Hero Section --- */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: radial-gradient(circle at center, #1a2634 0%, #0B0E11 70%);
}
.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero h1 span {
    background: linear-gradient(90deg, var(--primary-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-card);
    padding: 40px 0;
    margin-bottom: 60px;
    border-top: 1px solid #2C3440;
    border-bottom: 1px solid #2C3440;
    position: relative;
}
.ticker-wrap::before, .ticker-wrap::after {
    content: "";
    position: absolute;
    top: 0; 
    width: 100px; 
    height: 100%; 
    z-index: 2;
    pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--bg-card), transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(to left, var(--bg-card), transparent); }

.ticker-move {
    display: flex;
    width: fit-content;
    animation: ticker 30s linear infinite; 
}
.ticker-move:hover { animation-play-state: paused; }

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}


.stock-card {
    background: #1E2530;
    border: 1px solid #2C3440;
    border-radius: 12px;
    width: 280px;
    padding: 20px;
    margin: 0 15px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, border-color 0.3s;
    overflow: hidden; 
    position: relative;
}
.stock-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.symbol { font-weight: 800; font-size: 1.2rem; color: white; }
.price { font-weight: 600; font-size: 1.1rem; transition: color 0.5s; }
.change { font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; padding: 2px 6px; border-radius: 4px; }
.change.up { color: var(--primary-green); background: rgba(0, 227, 150, 0.1); }
.change.down { color: var(--primary-red); background: rgba(255, 69, 96, 0.1); }


.mini-chart-container {
    height: 60px;
    width: 100%;
    margin-top: 10px;
    position: relative;
}
.mini-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.chart-line {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: d 0.4s linear; 
    filter: drop-shadow(0px 4px 4px rgba(0,0,0, 0.2));
}


@keyframes flashGreen { 0% { color: #fff; } 50% { color: var(--primary-green); } 100% { color: #fff; } }
@keyframes flashRed { 0% { color: #fff; } 50% { color: var(--primary-red); } 100% { color: #fff; } }
.flash-up { animation: flashGreen 0.8s ease; }
.flash-down { animation: flashRed 0.8s ease; }


.features { padding: 60px 0; }
.section-title { font-size: 2rem; margin-bottom: 50px; text-align: center; }
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #2C3440;
}
.feature-icon {
    width: 50px; height: 50px;
    background: rgba(46, 147, 250, 0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-blue);
    font-size: 1.5rem;
}
.feature-box h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature-box p { color: var(--text-muted); font-size: 0.95rem; }


.diagnosis-section {
    background: #0F1318;
    padding: 80px 0;
    border-top: 1px solid #2C3440;
}
.workflow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}
.step {
    background: #1A2029;
    padding: 20px;
    border-radius: 12px;
    width: 250px;
    text-align: center;
    position: relative;
}
.step-num {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: 5px; right: 15px;
}
.step h4 { margin-bottom: 10px; color: var(--accent-blue); }

/* --- Footer --- */
footer {
    padding: 50px 0 20px;
    text-align: center;
    border-top: 1px solid #2C3440;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.disclaimer {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 0.75rem;
    line-height: 1.4;
    opacity: 0.6;
}


@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .ticker-wrap::before, .ticker-wrap::after { width: 50px; }
    .grid-3 { grid-template-columns: 1fr; }
}


.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    z-index: 999;
    transition: transform 0.3s;
}
.floating-whatsapp:hover { transform: scale(1.1); }
.floating-whatsapp svg { width: 35px; height: 35px; fill: white; }
/* --- 原有基础样式保持不变，请保留之前的 :root 等设置 --- */
/* ... (Keep your existing :root and base styles) ... */

/* --- 新增：Hero Form Styles (输入框区域) --- */
.hero-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.hero-input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 50px;
    border: 1px solid #2C3440;
    background: #151A21;
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
}

.hero-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.2);
}

.hero-btn {
    padding: 15px 30px;
    white-space: nowrap;
    border: none;
}

/* --- 新增：Modal Styles (弹窗样式) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none; /* 默认隐藏 */
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.visible { display: flex; opacity: 1; }

.modal-content {
    background: #1E2530;
    width: 90%; max-width: 400px;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #2C3440;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transform: translateY(20px); transition: transform 0.3s ease;
}
.modal-overlay.visible .modal-content { transform: translateY(0); }

.modal-close-btn {
    position: absolute; top: 15px; right: 15px;
    color: #888; font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal-close-btn:hover { color: white; }

.modal-header h2 { font-size: 1.5rem; margin-bottom: 25px; }

/* Progress Bars inside Modal */
.progress-item { margin-bottom: 20px; }
.prog-label {
    display: flex; justify-content: space-between;
    color: #ccc; font-size: 0.9rem; margin-bottom: 5px;
}
.progress-bg {
    background: #0B0E11; height: 8px; border-radius: 4px; overflow: hidden;
}
.progress-fill {
    height: 100%; width: 0%; transition: width 0.1s linear;
}

/* 移动端适配表单 */
@media (max-width: 600px) {
    .hero-form { flex-direction: column; }
    .hero-btn { width: 100%; }
}