/* ==========================================================================
   faq.css — page-specific styles for zh-Hans/faq.html
   Extracted from inline <style>. No fetch/XHR/WebSocket. No global chrome.
   ========================================================================== */

/* ==========================================================================
   1. Design tokens & reset
   ========================================================================== */
:root {
    --brand:           #FF7E5F;
    --brand-alt:       #FEB47B;
    --brand-gradient:  linear-gradient(135deg, #FF7E5F 0%, #FEB47B 100%);
    --accent:          #5E5CE6;
    --accent-light:    #EBEBFF;
    --success:         #00D084;
    --success-bg:      rgba(0, 208, 132, 0.10);
    --text-main:       #1A1A1B;
    --text-muted:      #6E6E73;
    --text-light:      #8E8E93;
    --bg-main:         #FBFBFD;
    --bg-card:         #FFFFFF;
    --bg-alt:          #F5F5F7;
    --bg-glass:        rgba(255, 255, 255, 0.78);
    --border-glass:    rgba(255, 255, 255, 0.45);
    --border-line:     #EDEDF0;
    --shadow-soft:     0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-card:     0 8px 32px rgba(0, 0, 0, 0.07);
    --shadow-lg:       0 24px 64px rgba(0, 0, 0, 0.11);
    --font-sans:       "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans SC", sans-serif;
    --r-sm: 12px; --r-md: 18px; --r-lg: 28px; --r-xl: 36px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body { font-family: var(--font-sans); background: var(--bg-main); color: var(--text-main); overflow-x: hidden; line-height: 1.55; }

/* Ambient diffuse background */
.ambient-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(circle at 8% 18%,  rgba(255,126,95,0.09) 0%, transparent 38%),
        radial-gradient(circle at 92% 78%,  rgba(94,92,230,0.07) 0%, transparent 38%),
        radial-gradient(circle at 52% 50%,  rgba(254,180,123,0.05) 0%, transparent 30%),
        var(--bg-main);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ==========================================================================
   2. Nav (styled for header.js injected <header class="nav-bar">)
   ========================================================================== */
.nav-bar {
    height: 72px; display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 1000;
    background: rgba(251,251,253,0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0 40px;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: var(--text-main); text-decoration: none; }
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.logo-icon img { width: 32px; height: 32px; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { background: #fff; border: 1px solid var(--border-line); padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--text-main); white-space: nowrap; }

/* ==========================================================================
   3. Shared utilities
   ========================================================================== */
.section-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--brand); margin-bottom: 14px; display: block;
}
.section-title {
    font-size: 44px; font-weight: 800; line-height: 1.08; letter-spacing: -0.045em; margin-bottom: 20px;
}
.section-title .accent { color: var(--accent); }
.section-title .brand  { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-desc { font-size: 17px; color: var(--text-muted); font-weight: 400; line-height: 1.7; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 28px; border-radius: 100px; font-size: 15px; font-weight: 600;
    cursor: pointer; border: none; transition: all .25s var(--ease-out);
    text-decoration: none; white-space: nowrap; font-family: inherit;
}
.btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: 0 8px 24px rgba(255,126,95,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255,126,95,.38); }
.btn-secondary { background: #fff; color: var(--text-main); border: 1.5px solid var(--border-line); }
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }

.fade-in { opacity: 0; transform: translateY(28px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
.fade-in.visible { opacity: 1; transform: none; }

/* ==========================================================================
   4. Hero
   ========================================================================== */
.faq-hero {
    padding: 80px 0 56px;
    position: relative; overflow: hidden;
}
.faq-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 12% 40%, rgba(255,126,95,.07) 0%, transparent 50%),
        radial-gradient(circle at 88% 20%, rgba(94,92,230,.05) 0%, transparent 50%);
    pointer-events: none;
}
.faq-hero .container { position: relative; z-index: 1; }

.hero-content { text-align: center; margin-bottom: 56px; }
.hero-title {
    font-size: 58px; font-weight: 900; letter-spacing: -0.05em; line-height: 1.02;
    color: var(--text-main); margin-bottom: 20px;
}
.hero-title .sep { color: var(--text-light); font-weight: 300; }
.hero-desc { font-size: 18px; color: var(--text-muted); line-height: 1.7; max-width: 520px; margin: 0 auto; }

/* Quick navigation cards */
.quick-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.qn-card {
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--r-md); padding: 22px 20px;
    text-decoration: none; color: var(--text-main);
    transition: background .2s, border-color .2s, transform .22s var(--ease-out), box-shadow .22s;
    display: flex; flex-direction: column; gap: 10px;
}
.qn-card:hover { background: var(--bg-alt); border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.qn-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.qn-label { font-size: 15px; font-weight: 700; }
.qn-sub { font-size: 12px; color: var(--text-muted); }

/* ==========================================================================
   5. Quick start steps
   ========================================================================== */
.quickstart-section { padding: 96px 0 80px; }
.qs-head { text-align: center; margin-bottom: 64px; }
.qs-head .section-desc { max-width: 540px; margin: 0 auto; }

.steps-grid {
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: start;
}

.step-card {
    background: #fff; border: 1px solid var(--border-line); border-radius: var(--r-lg);
    padding: 36px; position: relative;
    transition: transform .22s var(--ease-out), box-shadow .22s;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }

.step-num {
    width: 48px; height: 48px; border-radius: 50%; background: var(--brand-gradient);
    color: #fff; font-size: 18px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; box-shadow: 0 6px 20px rgba(255,126,95,.30);
    margin-bottom: 22px;
}
.step-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.step-tips { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.tip-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.tip-check { width: 18px; height: 18px; background: var(--success-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--success); flex-shrink: 0; }

/* Platform pills in step 2 */
.plat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.plat-pill { background: var(--bg-alt); border: 1px solid var(--border-line); padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* Connection demo in step 3 */
.conn-demo { margin-top: 24px; }
.conn-demo-row { display: flex; align-items: center; gap: 10px; }
.conn-badge {
    background: var(--bg-alt); border: 1px solid var(--border-line);
    padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--text-muted);
}
.conn-badge.active {
    background: var(--success-bg); border-color: rgba(0,208,132,.25);
    color: var(--success);
}
.conn-arr { font-size: 16px; color: var(--text-light); font-weight: 600; }

/* Connector arrows between step cards */
.step-connector {
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--text-light); font-weight: 300;
    padding: 0 16px; margin-top: 60px; flex-shrink: 0;
}

/* ==========================================================================
   6. Platform installation guides
   ========================================================================== */
.platform-section { padding: 0 0 96px; }
.plat-head { text-align: center; margin-bottom: 48px; }
.plat-head .section-desc { max-width: 540px; margin: 0 auto; }

/* Tab buttons */
.plat-tabs {
    display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap;
    justify-content: center;
}
.plat-tab {
    padding: 10px 22px; border-radius: 100px; font-size: 14px; font-weight: 600;
    cursor: pointer; border: 1.5px solid var(--border-line);
    background: #fff; color: var(--text-muted);
    transition: all .2s var(--ease-out); font-family: inherit;
}
.plat-tab:hover { border-color: var(--brand); color: var(--brand); }
.plat-tab.active {
    background: var(--brand-gradient); color: #fff; border-color: transparent;
    box-shadow: 0 6px 20px rgba(255,126,95,.28);
}

/* Panel container */
.plat-panels { }
.plat-panel { display: none; }
.plat-panel.active { display: block; }

/* Panel inner grid */
.panel-grid {
    display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start;
    background: #fff; border: 1px solid var(--border-line); border-radius: var(--r-lg); padding: 44px;
}

/* System requirements bar */
.req-bar {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-alt); border-radius: var(--r-sm);
    padding: 12px 18px; margin-bottom: 32px;
}
.req-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--text-light); text-transform: uppercase; white-space: nowrap; }
.req-val { font-size: 13px; font-weight: 500; color: var(--text-muted); }

/* Numbered install steps */
.install-steps { list-style: none; display: flex; flex-direction: column; gap: 28px; }
.install-steps li { display: flex; gap: 18px; }
.is-num {
    width: 30px; height: 30px; border-radius: 50%; background: var(--brand-gradient);
    color: #fff; font-size: 13px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
    box-shadow: 0 3px 10px rgba(255,126,95,.25);
}
.is-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.is-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.is-desc code { background: var(--bg-alt); border: 1px solid var(--border-line); padding: 2px 7px; border-radius: 6px; font-size: 12px; font-family: "SF Mono", "Menlo", monospace; color: var(--accent); }
.is-desc a { color: var(--brand); text-decoration: none; }
.is-desc a:hover { text-decoration: underline; }

/* Notes column */
.panel-notes { display: flex; flex-direction: column; gap: 16px; }
.note-card {
    background: var(--bg-alt); border: 1px solid var(--border-line); border-radius: var(--r-md);
    padding: 22px 20px;
}
.note-icon { font-size: 22px; margin-bottom: 10px; }
.note-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.note-body { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.note-body code { background: rgba(94,92,230,.10); color: var(--accent); padding: 2px 7px; border-radius: 5px; font-size: 12px; font-family: "SF Mono", "Menlo", monospace; }

/* ==========================================================================
   7. FAQ section
   ========================================================================== */
.faq-main { padding: 0 0 96px; }
.faq-head { text-align: center; margin-bottom: 40px; }

/* Category filter pills */
.faq-cats {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px;
}
.faq-cat {
    padding: 9px 20px; border-radius: 100px; font-size: 13px; font-weight: 600;
    cursor: pointer; border: 1.5px solid var(--border-line);
    background: #fff; color: var(--text-muted);
    transition: all .2s; font-family: inherit;
}
.faq-cat:hover { border-color: var(--brand); color: var(--brand); }
.faq-cat.active {
    background: var(--brand-gradient); color: #fff; border-color: transparent;
    box-shadow: 0 4px 14px rgba(255,126,95,.22);
}

/* FAQ accordion list */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.faq-item {
    border-radius: var(--r-sm); border: 1px solid transparent;
    overflow: hidden; transition: border-color .2s, opacity .25s;
}
.faq-item.open { border-color: var(--border-line); background: #fff; box-shadow: var(--shadow-soft); }
.faq-item.hidden { display: none; }

.faq-q {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 20px 24px; background: none; border: none;
    font-size: 15px; font-weight: 600; color: var(--text-main);
    text-align: left; cursor: pointer; border-radius: var(--r-sm); transition: background .15s;
    font-family: inherit;
}
.faq-q:hover { background: rgba(0,0,0,.025); }
.faq-item.open .faq-q { border-radius: var(--r-sm) var(--r-sm) 0 0; }
.faq-chevron { font-size: 20px; color: var(--text-light); transition: transform .28s var(--ease-out), color .2s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-chevron { transform: rotate(45deg); color: var(--brand); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 24px 24px; font-size: 14px; color: var(--text-muted); line-height: 1.78; }
.faq-a-inner a { color: var(--brand); text-decoration: none; }
.faq-a-inner a:hover { text-decoration: underline; }
.faq-a-inner p + p { margin-top: 10px; }

/* Pricing mini-table inside FAQ answer */
.plan-table { border: 1px solid var(--border-line); border-radius: var(--r-sm); overflow: hidden; }
.plan-row {
    display: grid; grid-template-columns: 2fr 1.4fr 1.6fr;
    padding: 11px 16px; font-size: 13px; border-bottom: 1px solid var(--border-line);
    gap: 8px;
}
.plan-row:last-child { border-bottom: none; }
.plan-row.head { font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-light); background: var(--bg-alt); }
.plan-row.best { background: var(--accent-light); color: var(--accent); font-weight: 600; }

/* Unordered list inside FAQ answers */
.ans-list { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.ans-list li { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ==========================================================================
   8. Contact & CTA section
   ========================================================================== */
.contact-section { padding: 0 0 88px; }
.contact-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch;
}

.contact-left {
    background: #fff; border: 1px solid var(--border-line); border-radius: var(--r-xl);
    padding: 52px 48px;
}
.contact-title { font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1.12; margin-bottom: 16px; }
.contact-desc { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 36px; }

.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-method {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg-alt); border: 1px solid var(--border-line); border-radius: var(--r-md);
    padding: 18px 22px; text-decoration: none; color: var(--text-main);
    transition: border-color .2s, transform .2s var(--ease-out);
}
a.contact-method:hover { border-color: var(--brand); transform: translateX(4px); }
.cm-icon { font-size: 26px; flex-shrink: 0; }
.cm-label { font-size: 12px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.cm-val { font-size: 14px; font-weight: 600; color: var(--text-main); }

.contact-cta {
    background: var(--text-main); border-radius: var(--r-xl);
    padding: 52px 48px; text-align: center;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.cta-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.cta-glow-1 { width: 320px; height: 320px; background: rgba(255,126,95,.16); top: -100px; left: -60px; }
.cta-glow-2 { width: 240px; height: 240px; background: rgba(94,92,230,.12); bottom: -80px; right: -40px; }
.cta-eyebrow {
    display: inline-flex; align-items: center;
    background: rgba(255,126,95,.16); color: var(--brand-alt);
    font-size: 11px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 100px; position: relative; z-index: 1;
}
.cta-big-title { font-size: 36px; font-weight: 900; color: #fff; letter-spacing: -.04em; position: relative; z-index: 1; }
.cta-sub { font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.7; max-width: 320px; position: relative; z-index: 1; }
.cta-btn { position: relative; z-index: 1; font-size: 16px; padding: 17px 40px; margin-top: 8px; }

/* ==========================================================================
   9. Footer (injected by footer.js)
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-line); padding: 52px 40px;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-muted); font-size: 13px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: inherit; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--brand); }

/* ==========================================================================
   10. Responsive breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
    .steps-grid { grid-template-columns: 1fr; gap: 24px; }
    .step-connector { margin-top: 0; transform: rotate(90deg); padding: 8px 0; }
    .panel-grid { grid-template-columns: 1fr; }
    .panel-notes { flex-direction: row; flex-wrap: wrap; }
    .note-card { flex: 1 1 240px; }
    .quick-nav { grid-template-columns: 1fr 1fr; }
    .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .hero-title { font-size: 42px; }
    .section-title { font-size: 32px; }
    .plat-tabs { gap: 6px; }
    .plat-tab { padding: 8px 16px; font-size: 13px; }
    .panel-grid { padding: 28px 24px; }
    .contact-left { padding: 36px 28px; }
    .contact-cta { padding: 44px 28px; }
    .contact-title { font-size: 28px; }
    .cta-big-title { font-size: 28px; }
}

@media (max-width: 640px) {
    /* nav collapses to hamburger on mobile */
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; align-items: flex-start;
        position: absolute; top: 72px; left: 0; right: 0;
        background: rgba(251,251,253,.97); backdrop-filter: blur(16px);
        padding: 12px 24px 20px; gap: 4px;
        border-bottom: 1px solid rgba(0,0,0,.06); z-index: 999;
    }
    .container { padding: 0 20px; }
    .nav-bar { padding: 0 20px; }
    .hero-title { font-size: 34px; }
    .section-title { font-size: 26px; }
    .faq-hero { padding: 56px 0 44px; }
    .quick-nav { grid-template-columns: 1fr 1fr; gap: 10px; }
    .qn-card { padding: 16px 14px; }
    .quickstart-section { padding: 64px 0 56px; }
    .step-card { padding: 26px 22px; }
    .faq-cats { gap: 6px; }
    .faq-cat { padding: 8px 14px; font-size: 12px; }
    footer { flex-direction: column; gap: 16px; text-align: center; padding: 36px 20px; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}
