﻿/* ========== 全局重置 & 基础 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: transparent;
    color: #eef2ff;
    line-height: 1.5;
    scroll-behavior: smooth;
    padding-bottom: 48px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 星空背景 canvas ========== */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    background: #010101;
}

/* ========== 顶部滚动行情 ========== */
.ticker-wrap {
    background: rgba(12, 17, 23, 0.7);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(31, 42, 54, 0.6);
    overflow: hidden;
    padding: 8px 0;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

    .ticker span {
        margin-right: 32px;
        color: #a0b3d9;
    }

    .ticker .price-up {
        color: #2ecc71;
    }

    .ticker .price-down {
        color: #f26b6b;
    }

    .ticker .symbol {
        font-weight: 600;
        color: #2ecc71;
    }

/* ========== 导航栏 ========== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(5, 7, 10, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(31, 42, 54, 0.6);
    z-index: 100;
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
    text-decoration: none;
}

    .logo span {
        color: #2ecc71;
    }

.nav-links {
    display: flex;
    gap: 32px;
}

    .nav-links a {
        color: #cbd5e6;
        text-decoration: none;
        font-weight: 500;
        transition: 0.2s;
    }

        .nav-links a:hover {
            color: #2ecc71;
        }

.nav-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.lang-btn {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #2ecc71;
    padding: 6px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

    .lang-btn:hover {
        background: rgba(46, 204, 113, 0.3);
    }

.btn-outline {
    background: transparent;
    border: 1px solid #2ecc71;
    color: #2ecc71;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
    display: inline-block;
}

    .btn-outline:hover {
        background: rgba(46, 204, 113, 0.1);
        border-color: #27ae60;
    }

/* ========== Hero 区域 ========== */
.hero {
    padding: 80px 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    background: rgba(46, 204, 113, 0.15);
    display: inline-block;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: #2ecc71;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #a8e6cf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    color: #9aaec9;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-primary {
    background: #2ecc71;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 700;
    color: #0a0c10;
    text-decoration: none;
    transition: 0.2s;
    display: inline-block;
    cursor: pointer;
}

    .btn-primary:hover {
        background: #27ae60;
        transform: translateY(-2px);
    }

.btn-secondary {
    border: 1px solid #2e3a48;
    padding: 12px 28px;
    border-radius: 40px;
    color: #eef2ff;
    text-decoration: none;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

    .hero-stats div {
        font-size: 0.9rem;
        color: #90a2c2;
    }

    .hero-stats span:first-child {
        display: block;
        font-size: 1.7rem;
        font-weight: 700;
        color: white;
    }

.code-snippet-glow {
    background: rgba(12, 17, 31, 0.8);
    border: 1px solid rgba(42, 54, 69, 0.6);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

    .code-snippet-glow pre {
        font-family: 'Monaco', monospace;
        font-size: 0.85rem;
        color: #b9e6ff;
    }

/* ========== 曲线模拟器 ========== */
.curve-simulator {
    padding: 80px 0;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    color: #2ecc71;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.section-header h2 {
    font-size: 2.3rem;
    margin-top: 12px;
}

.simulator-card {
    background: rgba(12, 17, 27, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(30, 42, 54, 0.6);
    border-radius: 32px;
    padding: 32px;
}

.sim-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.control-group {
    flex: 1;
    min-width: 180px;
}

    .control-group.full-width {
        flex: 100%;
    }

    .control-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #b8ceff;
    }

    .control-group input,
    .control-group textarea {
        width: 100%;
        background: #03060c;
        border: 1px solid #2a3a48;
        border-radius: 16px;
        padding: 12px 16px;
        color: white;
        font-family: inherit;
        resize: vertical;
    }

.control-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.sim-output {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.chart-container {
    background: rgba(3, 6, 12, 0.7);
    border-radius: 24px;
    padding: 16px;
}

.metrics-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.metric-card {
    background: rgba(15, 22, 32, 0.8);
    border-radius: 24px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid rgba(33, 46, 60, 0.6);
}

    .metric-card span {
        font-size: 0.85rem;
        color: #90a5cc;
        display: block;
        margin-bottom: 8px;
    }

    .metric-card strong {
        font-size: 1.8rem;
        font-weight: 700;
        color: #2ecc71;
    }

/* ========== 对比卡片 ========== */
.comparison {
    padding: 80px 0;
    background: transparent;
}

.comp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.comp-card {
    background: rgba(12, 17, 27, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 28px;
    border-left: 4px solid;
}

    .comp-card.bad {
        border-left-color: #e34d4d;
    }

    .comp-card.good {
        border-left-color: #2ecc71;
    }

.comp-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.comp-card p {
    color: #a1b2cf;
}

/* ========== 运作流程 ========== */
.how-it-works {
    background: transparent;
    padding: 80px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 20px;
}

.step {
    background: rgba(12, 17, 31, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: #2ecc71;
    opacity: 0.5;
    margin-bottom: 16px;
}

.step h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* ========== 技术架构 ========== */
.tech {
    padding: 80px 0;
    background: transparent;
}

.tech-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-top: 24px;
}

    .feature-list li {
        margin-bottom: 12px;
        color: #cbddf5;
    }

.tech-code {
    background: rgba(11, 16, 24, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(41, 54, 69, 0.6);
}

    .tech-code pre {
        font-family: monospace;
        font-size: 0.8rem;
        color: #b9f5d8;
        overflow-x: auto;
    }

/* ========== 定价卡片 ========== */
.pricing {
    background: transparent;
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.price-card {
    background: rgba(12, 17, 31, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(32, 45, 60, 0.6);
    transition: 0.2s;
}

    .price-card.featured {
        border-color: #2ecc71;
        box-shadow: 0 0 20px rgba(46, 204, 113, 0.1);
    }

.price-badge {
    background: #2ecc71;
    color: #0a0c10;
    display: inline-block;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.price-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 16px 0;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

    .price-amount span {
        font-size: 1rem;
        font-weight: 400;
        color: #8da0c2;
    }

.price-card ul {
    list-style: none;
    margin: 28px 0;
    text-align: left;
}

.price-card li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

    .price-card li::before {
        content: "✓";
        position: absolute;
        left: 0;
        color: #2ecc71;
    }

/* ========== 下载区域 ========== */
.download-section {
    padding: 80px 0;
    background: transparent;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.download-card {
    background: rgba(12, 17, 31, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(42, 58, 72, 0.6);
    transition: transform 0.2s;
}

    .download-card:hover {
        transform: translateY(-4px);
    }

    .download-card.featured {
        border-color: #2ecc71;
    }

.download-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.download-desc {
    color: #a0b3cf;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.btn-download {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 40px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.5);
    color: #2ecc71;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

    .btn-download.primary {
        background: #2ecc71;
        color: #0a0c10;
        border: none;
    }

    .btn-download:hover {
        background: #2ecc71;
        color: #0a0c10;
        transform: scale(1.02);
    }

/* ========== FAQ ========== */
.faq {
    padding: 80px 0;
    background: transparent;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(12, 17, 31, 0.85);
    backdrop-filter: blur(8px);
    margin-bottom: 16px;
    border-radius: 24px;
    border: 1px solid rgba(30, 42, 56, 0.6);
    overflow: hidden;
}

.faq-question {
    padding: 20px 28px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    background: rgba(15, 22, 34, 0.7);
}

    .faq-question::after {
        content: "+";
        position: absolute;
        right: 28px;
        font-size: 1.5rem;
        transition: 0.2s;
    }

.faq-item.active .faq-question::after {
    content: "−";
}

.faq-answer {
    padding: 0 28px 20px 28px;
    color: #b0c4f0;
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ========== CTA 尾部 ========== */
.cta {
    background: rgba(5, 8, 15, 0.75);
    backdrop-filter: blur(8px);
    padding: 80px 0;
    text-align: center;
}

    .cta h2 {
        font-size: 2.4rem;
        margin-bottom: 16px;
    }

    .cta p {
        font-size: 1.1rem;
        margin-bottom: 32px;
        color: #b3c7f0;
    }

.btn-primary-large {
    background: #2ecc71;
    padding: 14px 40px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0a0c10;
    text-decoration: none;
    display: inline-block;
}

/* ========== Footer ========== */
footer {
    background: rgba(3, 7, 14, 0.8);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(31, 42, 54, 0.6);
    padding: 48px 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

    .footer-links a {
        color: #a0b4da;
        text-decoration: none;
    }

.footer-copyright {
    font-size: 0.8rem;
    color: #65758b;
}

/* ========== 底部实时价格条 ========== */
.bottom-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(42, 58, 72, 0.7);
    padding: 8px 0;
    z-index: 1100;
    font-size: 0.85rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.ticker-content {
    display: inline-flex;
    gap: 32px;
    padding: 0 24px;
    animation: tickerSlide 60s linear infinite;
}

    .ticker-content span {
        display: inline-block;
        color: #d1e2ff;
        letter-spacing: 0.3px;
    }

    .ticker-content .price-up {
        color: #2ecc71;
    }

    .ticker-content .price-down {
        color: #f26b6b;
    }

    .ticker-content .symbol {
        font-weight: 600;
        color: #2ecc71;
    }

@keyframes tickerSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========== 移动端响应式 ========== */
@media (max-width: 860px) {
    .hero-grid,
    .tech-wrap {
        grid-template-columns: 1fr;
    }

    .comp-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar {
        padding: 12px 0;
    }

    .nav-links {
        gap: 20px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .bottom-ticker {
        padding: 6px 0;
    }

    .ticker-content {
        gap: 20px;
        padding: 0 16px;
        animation-duration: 40s;
    }

    .nav-right {
        width: 100%;
        justify-content: flex-end;
    }
}
