:root {
    --primary: #6366f1;
    --primary-strong: #4f46e5;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #06b6d4;
    --highlight: #ec4899;
    --bg-dark: #0a0f1e;
    --bg-elev: #111827;
    --card-bg: #131b2e;
    --border-color: rgba(148, 163, 184, 0.12);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gradient: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
    --gradient-warm: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.22), transparent 60%),
        radial-gradient(ellipse 60% 40% at 85% 30%, rgba(6, 182, 212, 0.10), transparent 60%),
        radial-gradient(ellipse 60% 40% at 15% 80%, rgba(236, 72, 153, 0.10), transparent 60%);
    background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ============== 顶部促销条 ============== */
.promo-bar {
    background: var(--gradient-warm);
    color: white;
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.promo-bar strong { font-weight: 800; }
.promo-bar a { text-decoration: underline; margin-left: 0.4rem; }

/* ============== 顶部导航（玻璃拟态） ============== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}
.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-links { display: flex; gap: 0.3rem; align-items: center; }
.nav-links a {
    padding: 0.5rem 0.95rem;
    color: var(--text-muted);
    font-size: 0.93rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}
.nav-links a:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.nav-links a.btn-primary {
    color: white;
    background: var(--primary);
    margin-left: 0.4rem;
}
.nav-links a.btn-primary:hover { background: var(--primary-strong); color: white; }

/* ============== 通用按钮 ============== */
.cta-button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
    font-family: inherit;
    color: white;
}
.cta-button, .btn-primary {
    background: var(--gradient);
    background-size: 200% 200%;
    box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.6);
}
.cta-button:hover, .btn-primary:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: 0 18px 40px -10px rgba(99, 102, 241, 0.8);
    color: white;
}
.cta-button.secondary, .btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: none;
}
.cta-button.secondary:hover, .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* ============== Hero ============== */
.hero {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem 3.5rem;
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.12);
    color: #f9a8d4;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(236, 72, 153, 0.35);
    margin-bottom: 1.5rem;
}
.hero-badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--highlight);
    box-shadow: 0 0 10px var(--highlight);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}
.hero h1 .gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 2.25rem;
}
.hero-actions {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.88rem;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-trust .ok { color: var(--success); font-weight: 700; font-size: 1rem; line-height: 1; }

/* ============== 数据统计 ============== */
.stats {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.stat-num {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}
.stat-label { color: var(--text-muted); font-size: 0.88rem; }

/* ============== 公用 section ============== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}
.section-head { text-align: center; margin-bottom: 3rem; }
.section-tag {
    display: inline-block;
    padding: 0.3rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 999px;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.6px;
}
.section-desc { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* ============== Features ============== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.feature-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    transition: all 0.3s ease;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 25px 50px -20px rgba(99, 102, 241, 0.45);
}
.feature-icon {
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--gradient);
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
    color: white;
}
.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 700;
}
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ============== Pricing 预览 ============== */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.price-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem 1.75rem 1.75rem;
    text-align: center;
    transition: all 0.25s;
}
.price-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
}
.price-card.featured {
    border-color: rgba(99,102,241,0.6);
    background:
        linear-gradient(180deg, rgba(99,102,241,0.14), rgba(255,255,255,0.02));
    box-shadow: 0 20px 60px -20px rgba(99,102,241,0.5);
}
.price-card .ribbon {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    padding: 0.25rem 0.75rem;
    background: var(--gradient);
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: white;
    box-shadow: 0 8px 18px -6px rgba(99,102,241,0.6);
}
.price-gb {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.price-num {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-main);
}
.price-num .unit {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.2rem;
}
.price-card .save { color: var(--success); font-size: 0.85rem; margin: 0.4rem 0 1.4rem; font-weight: 600; min-height: 1.2rem; }
.price-card .btn,
.price-card .cta-button { width: 100%; padding: 0.75rem 1.2rem; font-size: 0.95rem; }

/* ============== CTA 区 ============== */
.cta-section {
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 3.5rem 2rem;
    text-align: center;
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 30%, rgba(236,72,153,0.18), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6,182,212,0.18), transparent 50%),
        linear-gradient(135deg, rgba(99,102,241,0.16), rgba(15,23,42,0.4));
    border: 1px solid rgba(99,102,241,0.25);
    position: relative;
    overflow: hidden;
}
.cta-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}
.cta-section p { color: var(--text-muted); margin-bottom: 1.75rem; }

/* ============== footer ============== */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem 2rem;
    margin-top: 4rem;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 0.9rem; color: var(--text-main); margin-bottom: 0.8rem; font-weight: 700; }
.footer-grid a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 0.3rem 0; }
.footer-grid a:hover { color: var(--text-main); }
.footer-brand .logo { font-size: 1.4rem; margin-bottom: 0.7rem; display: inline-block; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 280px; }
.footer-bottom {
    max-width: 1200px;
    margin: 2.2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* legacy alias 兼容老页面/旧 footer 标签 */
footer:not(.site-footer) {
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 0.85rem;
}
header:not(.site-header) {
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============== SEO 文章页 ============== */
.article-shell,
.article-page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 4rem 1.5rem 1rem;
}
.article-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}
.article-hero h1,
.article-page h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}
.article-hero p,
.article-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 760px;
    margin: 0 auto;
}
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.article-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.article-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.38);
    box-shadow: 0 22px 45px -24px rgba(99, 102, 241, 0.55);
}
.article-card h2,
.article-card h3 {
    font-size: 1.12rem;
    line-height: 1.45;
    margin: 0.45rem 0 0.65rem;
}
.article-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
}
.article-meta {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}
.article-read {
    display: inline-flex;
    margin-top: 1rem;
    color: #93c5fd;
    font-weight: 700;
    font-size: 0.92rem;
}
.article-read:hover { color: var(--accent); }
.article-more {
    display: flex;
    justify-content: center;
    margin-top: 1.6rem;
}
.article-page article {
    max-width: 820px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: clamp(1.5rem, 4vw, 3rem);
}
.article-page .breadcrumb {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
}
.article-page .breadcrumb a { color: var(--text-muted); }
.article-page .breadcrumb a:hover { color: var(--text-main); }
.article-page h2 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
}
.article-page p,
.article-page li {
    color: var(--text-muted);
    margin: 0.7rem 0;
}
.article-page ul,
.article-page ol {
    padding-left: 1.4rem;
    margin: 0.75rem 0 1rem;
}
.article-page strong { color: var(--text-main); }
.article-page pre {
    overflow-x: auto;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border-color);
    color: #dbeafe;
    margin: 1rem 0;
}
.article-cta {
    margin-top: 2.4rem;
    padding: 1.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(6,182,212,0.08));
    border: 1px solid rgba(99,102,241,0.25);
}
.article-cta h2 { margin-top: 0; }
.article-cta .cta-button { margin-top: 0.75rem; }

@media (max-width: 720px) {
    .nav { flex-wrap: wrap; gap: 0.75rem; }
    .nav-links { flex-wrap: wrap; }
    .article-shell,
    .article-page { padding-top: 2.5rem; }
}

/* ============== 官网产品展示 ============== */
.home-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.home-product-card {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.016)),
        rgba(15,23,42,0.72);
    box-shadow: 0 28px 80px -62px rgba(99,102,241,0.9);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99,102,241,0.42);
    box-shadow: 0 32px 90px -58px rgba(34,211,238,0.9);
}

.static-product-card {
    background:
        radial-gradient(circle at 92% 0%, rgba(16,185,129,0.22), transparent 40%),
        radial-gradient(circle at 0% 95%, rgba(34,211,238,0.17), transparent 38%),
        rgba(15,23,42,0.74);
}

.dynamic-product-card {
    background:
        radial-gradient(circle at 92% 0%, rgba(99,102,241,0.24), transparent 40%),
        radial-gradient(circle at 0% 95%, rgba(236,72,153,0.13), transparent 38%),
        rgba(15,23,42,0.74);
}

.product-card-glow {
    position: absolute;
    inset: auto -20% -38% 36%;
    height: 180px;
    background: radial-gradient(circle, rgba(99,102,241,0.18), transparent 62%);
    pointer-events: none;
    transition: transform 0.25s ease;
}

.home-product-card:hover .product-card-glow {
    transform: translateY(-14px) scale(1.14);
}

.home-product-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.product-pill {
    display: inline-flex;
    padding: 0.46rem 0.72rem;
    border-radius: 999px;
    background: rgba(99,102,241,0.13);
    border: 1px solid rgba(99,102,241,0.25);
    color: #c7d2fe;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.home-product-head strong {
    color: #93c5fd;
    font-size: 0.82rem;
}

.home-product-card h3 {
    position: relative;
    margin: 0 0 0.75rem;
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    letter-spacing: -0.8px;
}

.home-product-card p {
    position: relative;
    max-width: 520px;
    color: var(--text-muted);
    line-height: 1.72;
}

.home-product-points {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.25rem 0 1.35rem;
}

.home-product-points span {
    padding: 0.5rem 0.68rem;
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 999px;
    background: rgba(2,6,23,0.3);
    color: #dbeafe;
    font-size: 0.82rem;
    font-weight: 800;
}

.product-flag-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.15rem;
}

.product-flag-row img {
    width: 38px;
    height: 27px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 12px 28px -18px rgba(15,23,42,0.8);
    animation: flag-float 4s ease-in-out infinite;
}

.product-flag-row img:nth-child(2n) { animation-delay: 0.45s; }
.product-flag-row img:nth-child(3n) { animation-delay: 0.9s; }

@keyframes flag-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@media (max-width: 820px) {
    .home-product-grid {
        grid-template-columns: 1fr;
    }
}
