/* 区区一只小蜗牛 — 落地页样式
   品牌色：mint #64ffda → sky #7dd3fc
   深色背景：#0d1117 / #161b22 / #30363d
*/
:root {
    --mint: #64ffda;
    --sky: #7dd3fc;
    --mint-deep: #06b6d4;
    --sky-deep: #0ea5e9;
    --bg: #0d1117;
    --bg-soft: #161b22;
    --border: #30363d;
    --text: #e6edf3;
    --text-soft: #c9d1d9;
    --text-mute: #8b949e;
    --accent: linear-gradient(135deg, #64ffda 0%, #7dd3fc 100%);
    --pink: #ff8fab;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--sky); text-decoration: none; transition: color .2s; }
a:hover { color: var(--mint); }

img, svg { max-width: 100%; height: auto; display: block; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.brand-logo { width: 56px; height: 36px; }
.brand-name {
    font-size: 17px;
    font-weight: 700;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-links {
    display: flex;
    gap: 24px;
    margin-left: auto;
    font-size: 14px;
}
.nav-links a { color: var(--text-soft); }
.nav-links a:hover { color: var(--mint); }
.lang-toggle {
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    background: transparent;
    color: var(--text-soft);
}
.lang-toggle:hover { border-color: var(--mint); color: var(--mint); }

/* ---------- Container ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: 88px 24px 64px;
    position: relative;
}
.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 12px;
    color: var(--mint);
    margin-bottom: 28px;
    letter-spacing: 0.04em;
}
.hero-title {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}
.hero-title .gradient {
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    font-size: clamp(15px, 1.6vw, 19px);
    color: var(--text-mute);
    max-width: 720px;
    margin: 0 auto 40px;
}
.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    border: 1px solid transparent;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: #0d0d0d;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(100, 255, 218, 0.35);
    color: #0d0d0d;
}
.btn-secondary {
    background: var(--bg-soft);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    border-color: var(--mint);
    color: var(--mint);
}
.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}
.platform-hint {
    font-size: 13px;
    color: var(--text-mute);
    margin-top: 10px;
}
.platform-hint a { margin: 0 4px; }

.social-proof {
    margin-top: 32px;
    color: var(--text-mute);
    font-size: 13px;
}
.social-proof .stars { color: #f5b400; margin-right: 6px; letter-spacing: 1px; }

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.12), transparent 60%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: -1;
}

/* ---------- Pain → Solution ---------- */
.pain-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 40px;
}
@media (min-width: 768px) {
    .pain-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
.pain-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 14px;
}
.pain-row .from { color: var(--text-mute); text-decoration: line-through; }
.pain-row .to { color: var(--text); font-weight: 600; }
.pain-row .arrow { color: var(--mint); font-size: 18px; }

/* ---------- Features ---------- */
.section-title {
    text-align: center;
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.section-sub {
    text-align: center;
    color: var(--text-mute);
    font-size: 16px;
    margin-bottom: 56px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
    padding: 28px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all .2s;
}
.feature-card:hover {
    border-color: var(--mint);
    transform: translateY(-4px);
}
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-mute); }

/* ---------- Providers strip ---------- */
.providers-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
}
.provider-chip {
    padding: 8px 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 13px;
    color: var(--text-soft);
    transition: all .2s;
}
.provider-chip:hover { border-color: var(--mint); color: var(--mint); }
.provider-chip .flag { margin-right: 6px; }

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 56px;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
    padding: 36px 28px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.price-card.featured {
    border-color: var(--mint);
    box-shadow: 0 0 0 1px var(--mint), 0 12px 36px rgba(100, 255, 218, 0.15);
}
.price-card.featured::before {
    content: "推荐 / Recommended";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    background: var(--accent);
    color: #0d0d0d;
    font-size: 11px;
    font-weight: 700;
    border-radius: 99px;
    letter-spacing: 0.04em;
}
.price-tier { font-size: 14px; color: var(--text-mute); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.price-amount { font-size: 36px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.02em; }
.price-amount .unit { font-size: 14px; color: var(--text-mute); font-weight: 400; }
.price-tagline { color: var(--text-mute); font-size: 13px; margin-bottom: 28px; min-height: 36px; }
.price-features { list-style: none; flex: 1; }
.price-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-soft);
    border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before {
    content: "✓ ";
    color: var(--mint);
    font-weight: 700;
    margin-right: 6px;
}
.price-cta { margin-top: 28px; width: 100%; justify-content: center; }
.price-note {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--text-mute);
}

/* ---------- FAQ ---------- */
.faq-grid { margin-top: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.faq-item {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-q {
    width: 100%;
    text-align: left;
    padding: 18px 24px;
    background: transparent;
    color: var(--text);
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color .2s;
}
.faq-q:hover { color: var(--mint); }
.faq-q .chev { color: var(--text-mute); transition: transform .2s; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s, padding .3s;
    color: var(--text-mute);
    font-size: 14px;
    padding: 0 24px;
}
.faq-item.open .faq-a {
    max-height: 400px;
    padding: 0 24px 20px;
}

/* ---------- Wechat / Mobile blocking notice ---------- */
.wechat-notice {
    display: none;
    margin: 24px auto;
    max-width: 480px;
    padding: 22px;
    background: var(--bg-soft);
    border: 1px solid var(--mint);
    border-radius: 14px;
    text-align: center;
}
.wechat-notice .qr {
    width: 180px;
    height: 180px;
    margin: 16px auto;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}
body.is-wechat .wechat-notice { display: block; }
body.is-wechat .hero-cta { display: none; }
body.is-mobile-non-wechat .hero-cta { flex-direction: column; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 48px 24px 32px;
    text-align: center;
    margin-top: 64px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-bottom: 20px;
    font-size: 14px;
}
.footer-links a { color: var(--text-mute); }
.footer-links a:hover { color: var(--mint); }
.footer-copy {
    color: var(--text-mute);
    font-size: 12px;
    line-height: 1.7;
}
.footer-copy .brand-mini {
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* ---------- Legal pages ---------- */
.legal {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.legal h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.legal .updated { color: var(--text-mute); font-size: 13px; margin-bottom: 32px; }
.legal h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text);
}
.legal h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--text-soft);
}
.legal p, .legal li { color: var(--text-soft); font-size: 15px; margin-bottom: 12px; }
.legal ul, .legal ol { margin-left: 20px; margin-bottom: 16px; }

/* ---------- Animation ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.hero-logo {
    width: 120px;
    height: 80px;
    margin: 0 auto 32px;
    animation: float 4s ease-in-out infinite;
}

/* ============ 30s Inline Explainer "video" (pure CSS) ============ */
.explainer-section {
    padding: 56px 24px 0;
}
.explainer-heading {
    text-align: center;
    font-size: clamp(20px, 2.5vw, 26px);
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.explainer-sub {
    text-align: center;
    color: var(--text-mute);
    font-size: 13px;
    margin-bottom: 28px;
}
.explainer {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background:
        radial-gradient(circle at 30% 20%, rgba(100,255,218,0.10), transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(125,211,252,0.10), transparent 55%),
        #0d1117;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(100,255,218,0.12);
}
.scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
}
.scene:nth-child(1) { animation: scene-1 40s infinite; }
.scene:nth-child(2) { animation: scene-2 40s infinite; }
.scene:nth-child(3) { animation: scene-3 40s infinite; }
.scene:nth-child(4) { animation: scene-4 40s infinite; }
.scene:nth-child(5) { animation: scene-5 40s infinite; }

@keyframes scene-1 { 0%, 18% { opacity: 1; } 20%, 100% { opacity: 0; } }
@keyframes scene-2 { 18% { opacity: 0; } 20%, 38% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes scene-3 { 38% { opacity: 0; } 40%, 58% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes scene-4 { 58% { opacity: 0; } 60%, 78% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes scene-5 { 78% { opacity: 0; } 80%, 98% { opacity: 1; } 100% { opacity: 0; } }

.scene-art {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.caption {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 14px;
    color: var(--text);
    background: rgba(13,17,23,0.85);
    padding: 9px 20px;
    border-radius: 99px;
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    max-width: 86%;
    line-height: 1.4;
}

.explainer-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mint), var(--sky));
    animation: explainer-prog 40s infinite linear;
}

.narration-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 7px 16px;
    background: rgba(13,17,23,0.85);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 10;
    transition: all .2s;
    font-family: inherit;
}
.narration-toggle:hover { border-color: var(--mint); color: var(--mint); }
.narration-toggle.active {
    border-color: var(--mint);
    color: var(--mint);
    box-shadow: 0 0 12px rgba(100, 255, 218, 0.3);
}
@keyframes explainer-prog {
    0% { width: 0; }
    100% { width: 100%; }
}

/* --- Scene 1: pain (cost) --- */
.scene-1 .emoji-big {
    font-size: 64px;
    text-align: center;
    margin-bottom: 18px;
}
.scene-1 .cost-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.scene-1 .cost-card {
    padding: 10px 18px;
    background: var(--bg-soft);
    border: 1px solid var(--pink);
    border-radius: 12px;
    color: var(--pink);
    font-weight: 600;
    font-size: 14px;
    animation: cost-float 2s ease-in-out infinite;
}
.scene-1 .cost-card:nth-child(2) { animation-delay: 0.4s; }
.scene-1 .cost-card:nth-child(3) { animation-delay: 0.8s; }

/* --- Scene 2: tool switching --- */
.scene-2 .tool-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.scene-2 .mini-window {
    min-width: 96px;
    height: 68px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-mute);
    position: relative;
    padding: 0 14px;
}
.scene-2 .mini-window::before {
    content: '❌';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 18px;
    animation: blink 1s infinite;
}
.scene-2 .arrow-broken {
    color: var(--pink);
    font-size: 22px;
    animation: blink 1.5s infinite;
}

/* --- Scene 3: snail intro --- */
.scene-3 .logo-big {
    width: 200px;
    height: 130px;
    animation: pulse-glow 2.4s ease-in-out infinite;
}
.scene-3 .tagline {
    margin-top: 16px;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.01em;
}

/* --- Scene 4: multi-window terminals --- */
.scene-4 .terminal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 520px;
    width: 100%;
}
.scene-4 .terminal {
    background: #050810;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 14px 10px;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 11px;
    color: var(--mint);
    min-height: 76px;
    position: relative;
}
.scene-4 .terminal::before {
    content: '● ● ●';
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 7px;
    color: var(--text-mute);
    letter-spacing: 2px;
}
.scene-4 .terminal-label {
    color: var(--text-mute);
    font-size: 10px;
    margin-top: 6px;
    display: block;
}
.scene-4 .terminal .cmd {
    color: var(--sky);
}
.scene-4 .terminal .model {
    color: var(--mint);
    font-weight: 600;
}
.scene-4 .terminal:nth-child(1) { animation: terminal-blink 1.5s infinite; }
.scene-4 .terminal:nth-child(2) { animation: terminal-blink 1.5s 0.4s infinite; }
.scene-4 .terminal:nth-child(3) { animation: terminal-blink 1.5s 0.8s infinite; }
.scene-4 .terminal:nth-child(4) { animation: terminal-blink 1.5s 1.2s infinite; }

/* --- Scene 5: shared workspace + 10× --- */
.scene-5 .brain-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.scene-5 .central-brain {
    font-size: 76px;
    animation: pulse-glow 2s ease-in-out infinite;
    line-height: 1;
}
.scene-5 .metrics {
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.scene-5 .metric-label {
    font-size: 14px;
    color: var(--text-mute);
}
.scene-5 .metric-value {
    font-size: clamp(38px, 4vw, 56px);
    font-weight: 900;
    background: var(--accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.03em;
    animation: pulse-glow 2s ease-in-out infinite;
}
.scene-5 .sub-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}
.scene-5 .sub-features span {
    padding: 4px 12px;
    background: var(--bg-soft);
    border: 1px solid var(--mint);
    border-radius: 99px;
    font-size: 11px;
    color: var(--mint);
}

@keyframes cost-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 12px rgba(100,255,218,0.4)); }
    50% { filter: drop-shadow(0 0 28px rgba(100,255,218,0.85)); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
@keyframes terminal-blink {
    0%, 100% { box-shadow: 0 0 0 0 transparent; }
    50% { box-shadow: 0 0 0 1px var(--mint); }
}

/* mobile */
@media (max-width: 640px) {
    .explainer-section { padding: 40px 16px 0; }
    .explainer { aspect-ratio: 4/3; }
    .caption { font-size: 12px; padding: 7px 14px; bottom: 14px; }
    .scene { padding: 20px; }
    .scene-1 .emoji-big { font-size: 44px; }
    .scene-1 .cost-card { font-size: 12px; padding: 7px 12px; }
    .scene-2 .mini-window { min-width: 70px; height: 50px; font-size: 11px; padding: 0 10px; }
    .scene-3 .logo-big { width: 130px; height: 84px; }
    .scene-3 .tagline { font-size: 18px; }
    .scene-4 .terminal-grid { grid-template-columns: 1fr 1fr; max-width: 320px; gap: 8px; }
    .scene-4 .terminal { font-size: 9px; padding: 14px 8px 8px; min-height: 52px; }
    .scene-5 .central-brain { font-size: 56px; }
    .scene-5 .metric-value { font-size: 36px; }
}
