/*!
 * 智客AI · 内容页样式
 * 用于 features / platforms / pricing / download / faq / about
 * 与首页共用同一套设计令牌，但不加载首页样式以保持页面轻量
 * © 2026 智客AI · 宜迅（北京）科技有限公司
 */

:root {
    color-scheme: light;
    --bg: #f5f5f7;
    --surface: #ffffff;
    --border: rgba(0, 0, 0, .09);
    --border-strong: rgba(0, 0, 0, .14);
    --text-primary: #1d1d1f;
    --text-secondary: #5b5b60;
    --text-tertiary: #86868b;
    --accent: #0071e3;
    --accent-soft: rgba(0, 113, 227, .08);
    --warn-soft: rgba(255, 149, 0, .1);
    --warn-border: rgba(255, 149, 0, .35);
    --radius: 12px;
    --radius-lg: 18px;
    --wrap: 820px;
    --ease: cubic-bezier(.25, .1, .25, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #000000;
        --surface: #141416;
        --border: rgba(255, 255, 255, .12);
        --border-strong: rgba(255, 255, 255, .2);
        --text-primary: #f5f5f7;
        --text-secondary: #a1a1a6;
        --text-tertiary: #86868b;
        --accent: #2997ff;
        --accent-soft: rgba(41, 151, 255, .14);
        --warn-soft: rgba(255, 149, 0, .14);
    }
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶部导航 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 245, 247, .82);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
    .site-header { background: rgba(0, 0, 0, .78); }
}
.site-header .inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 22px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -.01em;
    flex: none;
}
.brand img { width: 24px; height: 24px; border-radius: 6px; display: block; }
.header-nav {
    display: flex;
    gap: 18px;
    margin-left: auto;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    margin-top: 0;
    font-size: 13.5px;
}
.header-nav a { color: var(--text-secondary); }
.header-nav a:hover, .header-nav a[aria-current] { color: var(--text-primary); text-decoration: none; }
.header-cta {
    flex: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: 980px;
    background: var(--accent);
    color: #fff;
}
.header-cta:hover { text-decoration: none; filter: brightness(1.06); }
@media (max-width: 760px) {
    .header-nav { display: none; }
}

/* ---------- 面包屑 ---------- */
.crumb {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 18px 20px 0;
    font-size: 13px;
    color: var(--text-tertiary);
}
.crumb a { color: var(--text-tertiary); }
.crumb span[aria-current] { color: var(--text-secondary); }
.crumb .sep { margin: 0 7px; opacity: .6; }

/* ---------- 正文容器 ---------- */
.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px 72px;
}
article > h1 {
    font-size: clamp(26px, 4.2vw, 36px);
    line-height: 1.28;
    letter-spacing: -.022em;
    font-weight: 700;
    margin: 22px 0 14px;
}
.lede {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 30px;
}
article h2 {
    font-size: clamp(19px, 2.6vw, 23px);
    line-height: 1.4;
    letter-spacing: -.014em;
    font-weight: 650;
    margin: 46px 0 14px;
    padding-top: 6px;
}
article h3 {
    font-size: 16.5px;
    font-weight: 650;
    margin: 28px 0 10px;
}
article p { margin: 0 0 15px; }
article ul, article ol { margin: 0 0 16px; padding-left: 22px; }
article li { margin: 0 0 8px; }
article li::marker { color: var(--text-tertiary); }
article strong { font-weight: 650; }

/* ---------- 卡片 / 表格 / 提示 ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: 18px 0 8px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
}
.card h3 { margin: 0 0 8px; font-size: 15px; }
.card p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-secondary); }

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 16px 0 20px;
    background: var(--surface);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 540px;
}
th, td {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
th {
    font-weight: 650;
    background: var(--accent-soft);
    white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }

.note {
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 18px;
    margin: 18px 0;
    font-size: 14.5px;
    line-height: 1.75;
}
.note p:last-child { margin-bottom: 0; }
.note.warn {
    border-left-color: #ff9500;
    background: var(--warn-soft);
}

/* ---------- FAQ ---------- */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 4px 0;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 0;
    font-size: 15.5px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-weight: 400;
    color: var(--text-tertiary);
    font-size: 18px;
    line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-body { padding: 0 0 16px; font-size: 14.8px; color: var(--text-secondary); }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta-box {
    margin: 44px 0 0;
    padding: 26px 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
}
.cta-box h2 { margin: 0 0 8px; font-size: 18px; }
.cta-box p { color: var(--text-secondary); font-size: 14.5px; margin: 0 0 16px; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), filter .25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--border-strong); color: var(--text-primary); }

/* ---------- 页脚 ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 26px 20px 40px;
    font-size: 13px;
    color: var(--text-tertiary);
}
.site-footer .inner { max-width: 1080px; margin: 0 auto; }
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}
.footer-links a { color: var(--text-secondary); }
.footer-meta-line { margin: 0 0 4px; }
.footer-meta-line a { color: var(--text-tertiary); }

/* ---------- 更新日期 ---------- */
.meta-line {
    font-size: 12.5px;
    color: var(--text-tertiary);
    margin: 0 0 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

/* ---------- 打印 ---------- */
@media print {
    .site-header, .site-footer, .cta-box { display: none; }
    body { background: #fff; }
}
