/* ============================================================================
   青蓝科技 · GEO AI 官网 全局样式
   ============================================================================
   品牌色：$brand = #1B9AAA（与后端 BRAND_COLOR 常量一致）
   设计语言：清爽科技蓝 + 大量留白 + 圆角卡片；响应式（移动端优先）。
   ============================================================================ */

:root {
    --brand: #1B9AAA;
    --brand-dark: #16405B;
    --brand-light: #E6F3F6;
    --ink: #1f2937;
    --ink-soft: #4b5563;
    --ink-faint: #6b7280;
    --line: #e5e7eb;
    --bg: #ffffff;
    --bg-alt: #f7f9fc;
    --success: #1B9AAA;
    --amber: #16405B;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(27, 102, 245, 0.08);
    --shadow-lg: 0 16px 48px rgba(27, 102, 245, 0.14);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.center { text-align: center; }

/* ----------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-light); color: var(--brand-dark); }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ----------------------------------------------------------------------------
   头部导航
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand-logo { width: 34px; height: 34px; border-radius: 8px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 13px; border-radius: 8px; color: var(--ink-soft); font-size: 15px; }
.nav-link:hover { color: var(--brand); background: var(--brand-light); }
.nav-link.active { color: var(--brand); font-weight: 600; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ----------------------------------------------------------------------------
   Hero 首屏
   -------------------------------------------------------------------------- */
.hero {
    background: linear-gradient(160deg, #eef4ff 0%, #ffffff 60%);
    padding: 72px 0 80px;
    overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-badge {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}
.hero h1 { font-size: 2.9rem; margin-bottom: 0.4em; }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin: 26px 0 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; }
.stat strong { display: block; font-size: 1.7rem; color: var(--brand); }
.stat span { color: var(--ink-faint); font-size: 13px; }

/* 首页 hero 视觉：实景图（.hero-photo）定义见文件末尾「首页 hero 实景图」段；
   原纯 CSS 声波装饰（.hero-wave/.hero-beam/.hero-speaker）已废弃，勿再添加引用。 */

/* ----------------------------------------------------------------------------
   区块与卡片
   -------------------------------------------------------------------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--ink-faint); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
    color: var(--ink);
}
.card-link { display: block; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card-icon { font-size: 30px; margin-bottom: 12px; }
.card-spec { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--brand); font-weight: 600; }
.card p { color: var(--ink-soft); font-size: 15px; }

.case-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.case-icon { font-size: 26px; }
.case-meta { color: var(--ink-faint); font-size: 13px; margin-top: 12px; }

.tag { display: inline-block; background: var(--brand-light); color: var(--brand); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ----------------------------------------------------------------------------
   CTA 区块
   -------------------------------------------------------------------------- */
.cta { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; padding: 64px 0; }
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: 2rem; }
.cta-inner p { opacity: .9; }
.cta .btn-primary { background: #fff; color: var(--brand); }
.cta .btn-primary:hover { background: var(--brand-light); }

/* ----------------------------------------------------------------------------
   页面 hero（子页面首屏）
   -------------------------------------------------------------------------- */
.page-hero { background: linear-gradient(160deg, #eef4ff 0%, #ffffff 70%); padding: 64px 0 56px; }
.page-hero h1 { font-size: 2.4rem; }
.page-hero p { color: var(--ink-soft); font-size: 1.1rem; max-width: 680px; }
.page-hero-sm { padding: 48px 0 40px; }
.page-hero .tag { margin-bottom: 14px; }
.case-client { color: var(--ink-faint) !important; font-size: 15px !important; }
.spec-pill { display: inline-block; margin-top: 16px; background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; color: var(--brand); font-weight: 600; }

/* ----------------------------------------------------------------------------
   正文排版（prose）
   -------------------------------------------------------------------------- */
.prose h2 { margin: 1.6em 0 0.6em; font-size: 1.35rem; }
.prose h3 { margin: 1.3em 0 0.5em; }
.prose p { color: var(--ink-soft); }
.prose ul { padding-left: 1.4em; color: var(--ink-soft); }
.prose li { margin: 0.3em 0; }
.prose blockquote {
    margin: 1.5em 0; padding: 16px 20px;
    background: var(--brand-light); border-left: 4px solid var(--brand);
    border-radius: 8px; color: var(--ink); font-size: 1.05rem;
}
.article-body { font-size: 16.5px; }
.article-tags { margin-top: 28px; }
.case-source { color: var(--ink-faint); font-size: 13px; margin-top: 24px; }

/* M12/M13 案例证据档案 */
.case-card-head { gap: 8px; }
.evidence-badge { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--brand-dark); background: #E6F3F6; border: 1px solid #c7d8ff; padding: 3px 9px; border-radius: 999px; }
.case-evidence-note { margin-top: 12px; display: inline-block; font-size: 13px; color: var(--brand-dark); background: #f6f9ff; border: 1px solid #d6e2ff; border-radius: 8px; padding: 8px 14px; }
.evidence-table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.evidence-table th { text-align: left; width: 140px; padding: 10px 12px; color: var(--ink-faint); font-weight: 600; vertical-align: top; border-bottom: 1px solid var(--line); background: #fafbfd; }
.evidence-table td { padding: 10px 12px; color: var(--ink-soft); border-bottom: 1px solid var(--line); vertical-align: top; }
.evidence-table td a { color: var(--brand); word-break: break-all; display: block; }
.evidence-table .tbd { color: var(--ink-faint); font-style: italic; background: #f5f6f8; border-radius: 4px; padding: 1px 8px; font-size: 13px; }
.case-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.case-gallery img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.post-byline { color: var(--ink-faint) !important; font-size: 14px !important; }
.error-code { font-size: 5rem; color: var(--brand); }

/* ----------------------------------------------------------------------------
   列表类（check-list / timeline / spec-box / contact）
   -------------------------------------------------------------------------- */
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 8px 0 8px 30px; position: relative; color: var(--ink-soft); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.timeline { position: relative; padding-left: 24px; border-left: 2px solid var(--line); }
.timeline-item { margin-bottom: 24px; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -31px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.timeline-year { font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.timeline-body { color: var(--ink-soft); }

.spec-box { margin-top: 22px; background: var(--bg-alt); border-radius: var(--radius); padding: 18px; }
.spec-box > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.spec-box > div:last-child { border-bottom: none; }
.spec-box span { color: var(--ink-faint); }

.contact-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item span { color: var(--ink-faint); }
.contact-item strong { color: var(--ink); }
.contact-note { color: var(--ink-soft); margin-top: 20px; font-size: 14px; }

/* ----------------------------------------------------------------------------
   筛选栏
   -------------------------------------------------------------------------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-chip { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.filter-chip:hover { border-color: var(--brand); color: var(--brand); }
.filter-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ----------------------------------------------------------------------------
   文章卡片
   -------------------------------------------------------------------------- */
.post-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.post-date { color: var(--ink-faint); font-size: 13px; }
.post-author { color: var(--ink-faint); font-size: 13px; margin-top: 12px; }

/* ----------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; position: relative; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; color: var(--brand); font-size: 20px; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 22px 20px; color: var(--ink-soft); }

/* ----------------------------------------------------------------------------
   留资表单
   -------------------------------------------------------------------------- */
.lead-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.lead-form-card h3 { margin-bottom: 4px; }
.lead-form-sub { color: var(--ink-faint); font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.form-field .req { color: #dc2626; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px;
    font-size: 15px; font-family: inherit; color: var(--ink); background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light);
}
.form-tip { color: var(--ink-faint); font-size: 12px; margin-top: 10px; text-align: center; }
.form-tip.success { color: var(--success); }

/* ----------------------------------------------------------------------------
   客服挂件
   -------------------------------------------------------------------------- */
.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 999; }
.chat-launcher {
    display: flex; align-items: center; gap: 8px; padding: 14px 20px;
    background: var(--brand); color: #fff; border: none; border-radius: 999px;
    font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-lg);
}
.chat-launcher:hover { background: var(--brand-dark); }
.chat-launcher-icon { font-size: 20px; }

.chat-panel {
    position: absolute; right: 0; bottom: 68px; width: 360px; max-width: calc(100vw - 40px);
    background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
    display: flex; flex-direction: column; max-height: 70vh;
}
/* 关闭按钮：hidden 属性被 display:flex 覆盖，需显式隐藏（修复客服关闭无效） */
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--brand); color: #fff; }
.chat-head-title { display: flex; align-items: center; gap: 10px; }
.chat-avatar { font-size: 24px; }
.chat-name { font-weight: 700; }
.chat-status { font-size: 12px; opacity: .85; }
.chat-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { padding: 10px 14px; border-radius: 14px; font-size: 14px; max-width: 85%; line-height: 1.6; }
.chat-msg-bot { background: var(--bg-alt); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg-user { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-suggest { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 10px; }
.chat-suggest-btn { background: var(--brand-light); color: var(--brand); border: none; border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
.chat-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.chat-input input:focus { outline: none; border-color: var(--brand); }

/* ----------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--line); }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }
    h1 { font-size: 1.8rem; }
    .hero-stats { gap: 20px; }
    .chat-panel { width: calc(100vw - 40px); bottom: 76px; }
    /* 移动端：客服入口收缩为圆形图标，不遮挡首屏主行动 */
    .chat-widget { right: 16px; bottom: 16px; }
    .chat-launcher { padding: 12px; border-radius: 50%; }
    .chat-launcher-text { display: none; }
}

/* M14 文章阅读导航与证据 */
.article-layout { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.article-toc { position: sticky; top: 20px; border-left: 2px solid var(--line); padding-left: 16px; }
.toc-title { font-weight: 700; color: var(--ink); font-size: 13px; letter-spacing: .04em; margin-bottom: 8px; text-transform: uppercase; }
.article-toc ul { list-style: none; padding: 0; margin: 0; }
.article-toc li { margin: 6px 0; }
.article-toc li.toc-lv3 { padding-left: 14px; }
.article-toc a { color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.article-toc a:hover { color: var(--brand); }
.claim-notice { margin: 22px 0; padding: 12px 16px; background: #f6f9ff; border: 1px solid #d6e2ff; border-radius: 8px; color: var(--brand-dark); font-size: 14px; }
.article-sources, .article-related { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-sources ol { padding-left: 1.3em; color: var(--ink-soft); font-size: 14px; }
.article-sources a { color: var(--brand); word-break: break-all; }
.article-related .card { padding: 16px; }
@media (max-width: 860px) { .article-layout { grid-template-columns: 1fr; } .article-toc { position: static; border-left: none; border-bottom: 1px solid var(--line); padding: 0 0 14px; } }

/* M15 客服页面上文 */
.chat-context { font-size: 12px; color: #64748b; padding: 6px 12px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }

/* ============================================================================
   UI/UX 2.0 · 设计系统增强层（2026-09-22）
   原则：只做叠加式增强，不改动上方任何既有规则；旧 class 全部保留可用。
   目标：统一令牌 / 信息层级 / 留白节奏 / 响应式 / 交互反馈。
   —— 本层仅 CSS，未改动任何 PHP 业务逻辑。
   ============================================================================ */

:root {
    /* 间距节奏（4 的倍数，解决元素拥挤与对齐混乱） */
    --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
    --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
    /* 圆角层级 */
    --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
    /* 阴影三级（克制） */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, .07);
    --shadow-xl: 0 18px 50px rgba(15, 23, 42, .12);
    /* 语义色（保留品牌蓝，收敛刺眼度） */
    --ok: #1B9AAA; --ok-bg: #E6F3F6;
    --warn: #16405B; --warn-bg: #E6F3F6;
    --danger: #dc2626; --danger-bg: #fef2f2;
    /* 版心 */
    --container: 1180px;
    --header-h: 68px;
    --focus-ring: 0 0 0 3px var(--brand-light);
}

/* —— 全局防横向滚动 + 排版基调 —— */
html, body { overflow-x: hidden; }
body { letter-spacing: .01em; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; }
:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* —— 版心与区块节奏 —— */
.container { max-width: var(--container); padding: 0 24px; }
.section { padding: var(--sp-8) 0; }
.section-head { margin: 0 auto var(--sp-7); }
.section-head h2 { letter-spacing: -.01em; }
.section-title { font-size: 1.35rem; margin-bottom: var(--sp-4); }

/* —— 头部导航：当前页高亮 + 移动端抽屉 —— */
.site-header { height: var(--header-h); }
.header-inner { height: var(--header-h); gap: var(--sp-4); }
.brand { flex-shrink: 0; }
.main-nav { gap: 2px; }
.nav-link { font-weight: 500; transition: color .15s ease, background .15s ease; }
.nav-link.active { background: var(--brand-light); }

/* —— Hero：收敛标题换行、强化主行动 —— */
.hero { padding: 76px 0 84px; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -.02em; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero-badge { letter-spacing: .02em; }
.hero-actions { gap: var(--sp-3); }

/* —— 卡片：统一留白与悬停，信息层级拉开 —— */
.card { padding: var(--sp-5); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-link { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-link:hover { border-color: #c7d8ff; box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { margin-bottom: 0; }
.card-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-light); border-radius: var(--r-md); font-size: 22px; margin-bottom: var(--sp-3); }
.card-spec { margin-top: var(--sp-3); }

/* —— 列表页工具栏：标题 + 筛选对齐 —— */
.list-toolbar { display: flex; align-items: flex-end; justify-content: space-between;
    gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.list-toolbar .section-title { margin: 0; }
.filter-bar { margin-bottom: 0; gap: var(--sp-2); }
.filter-chip { transition: all .15s ease; }

/* —— 详情页：正文与侧栏协调，正文阅读宽度收敛 —— */
.page-hero h1 { letter-spacing: -.02em; }
.page-hero .case-client { margin-top: var(--sp-2); }
.prose { max-width: none; }
.prose h2 { padding-top: var(--sp-2); }
.article-body { font-size: 16.5px; line-height: 1.85; }
.article-main { min-width: 0; }
.evidence-table th { background: #fafbfd; }

/* —— 空状态（新增，列表无数据时使用） —— */
.empty-state { text-align: center; padding: var(--sp-7) var(--sp-5); color: var(--ink-faint);
    background: var(--bg-alt); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty-state .empty-icon { font-size: 34px; margin-bottom: var(--sp-2); }
.empty-state p { margin: 0; }

/* —— 表单：标签/输入对齐、字段级错误、按钮主次 —— */
.form-field { margin-bottom: var(--sp-4); }
.form-field label { display: flex; align-items: center; gap: 4px; margin-bottom: var(--sp-2); }
.form-field .field-hint { color: var(--ink-faint); font-size: 12px; margin-top: 6px; }
.form-field .field-error { color: var(--danger); font-size: 12px; margin-top: 6px; display: none; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea {
    border-color: var(--danger); background: var(--danger-bg); }
.form-field.has-error .field-error { display: block; }
.form-actions { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.form-actions .btn-primary { min-width: 140px; }
.lead-form-card { padding: var(--sp-5); }
.lead-form-card .form-row { gap: var(--sp-4); }
.form-tip { margin-top: var(--sp-3); }
.form-tip.error { color: var(--danger); }

/* 成功横幅（提交成功后的强反馈） */
.form-banner { display: none; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-md); font-size: 14px; margin-bottom: var(--sp-4); }
.form-banner.show { display: flex; }
.form-banner.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #c7d8ff; }
.form-banner.err { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }
.form-banner .banner-icon { font-size: 17px; line-height: 1; }

/* —— 按钮：统一 loading 态（禁用 + 旋转指示） —— */
.btn { border-radius: var(--r-md); transition: background .15s ease, color .15s ease, transform .1s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .7; cursor: not-allowed; }
.btn.is-loading::before {
    content: ""; width: 15px; height: 15px; border-radius: 50%;
    border: 2px solid currentColor; border-top-color: transparent;
    animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* —— 客服挂件：层级与移动端不遮挡 —— */
.chat-panel { border-radius: var(--r-xl); box-shadow: var(--shadow-xl); }
.chat-launcher { box-shadow: var(--shadow-xl); }
.chat-suggest-btn { transition: background .15s ease; }
@media (max-width: 640px) {
    .section { padding: var(--sp-7) 0; }
    .hero { padding: 56px 0 60px; }
    .card { padding: var(--sp-4); }
}

/* 留资表单：选填区分组标签 */
.lead-more-label { font-size: 12px; color: var(--ink-faint); margin: var(--sp-2) 0 var(--sp-3);
    padding-top: var(--sp-3); border-top: 1px dashed var(--line); }

/* ============================================================================
   前台 UI/UX 2.0 · 第二批页面精修（2026-09-22）
   ============================================================================ */

/* —— 通用：区块底部「查看更多」留白、弱化文字 —— */
.section-more { margin-top: var(--sp-6); }
.muted { color: var(--ink-faint); }

/* —— 首页 Hero：主/次按钮与数据条间距 —— */
.hero-actions { margin: var(--sp-4) 0 var(--sp-5); }
.hero-stats { gap: var(--sp-5); border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.hero-stats .stat strong { letter-spacing: -.02em; }

/* —— 页脚：链接可点、联系方式可拨号 —— */
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: inherit; opacity: .85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-col a { text-decoration: none; }
.footer-meta { color: var(--ink-faint); }

/* —— 产品详情：正文 + 粘性侧栏（含转化按钮） —— */
.detail-grid { align-items: start; gap: var(--sp-6); }
.detail-main { min-width: 0; }
.detail-side { position: sticky; top: calc(var(--header-h) + 16px); }
.spec-grid { display: grid; gap: 0; }
.spec-box .spec-item { display: flex; justify-content: space-between; gap: var(--sp-3);
    padding: 10px 0; border-bottom: 1px dashed var(--line); }
.spec-box .spec-item:last-child { border-bottom: 0; }
.spec-item span { color: var(--ink-faint); }
.detail-cta { margin-top: var(--sp-4); }

/* —— FAQ：未解答引导卡 —— */
.faq-cta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
    flex-wrap: wrap; margin-top: var(--sp-6); padding: var(--sp-5); border-radius: var(--r-lg);
    background: linear-gradient(180deg, #f7faff, #eef4ff); border: 1px solid #dbe6ff; }
.faq-cta strong { display: block; margin-bottom: 4px; }
.faq-cta p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.faq-item summary { cursor: pointer; }
.faq-item[open] summary { color: var(--brand); }

/* —— 案例详情：正文 + 粘性概览侧栏 —— */
.case-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: var(--sp-6); align-items: start; }
.case-detail-main { min-width: 0; }
.case-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.case-aside-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5);
    background: #fff; box-shadow: var(--shadow-sm); }
.aside-title { font-weight: 700; margin: 0 0 var(--sp-3); color: var(--ink); }
.aside-row { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 8px 0;
    border-bottom: 1px dashed var(--line); font-size: 14px; }
.aside-row span { color: var(--ink-faint); }
.aside-cta { margin-top: var(--sp-4); }

/* —— 文章详情：目录粘性 + 正文舒适阅读 —— */
.article-toc { position: sticky; top: calc(var(--header-h) + 16px); }
.article-layout { gap: var(--sp-6); align-items: start; }

/* —— 响应式：详情页侧栏在窄屏下移到正文下方 —— */
@media (max-width: 900px) {
    .detail-grid, .case-detail-grid, .article-layout { grid-template-columns: 1fr; }
    .detail-side, .case-aside, .article-toc { position: static; }
    .faq-cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================================
   前台 UI/UX 2.0 · 第三批（404 / 品牌名片 / 主题页）
   ============================================================================ */

/* —— 404 页面 —— */
.error-code { font-size: clamp(72px, 16vw, 132px); line-height: 1; letter-spacing: -.04em;
    margin: 0 0 var(--sp-2); background: linear-gradient(135deg, var(--brand), #7aa2ff);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .btn { margin-top: var(--sp-4); }
.notfound-links { flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }

/* —— 品牌名片（此前 card-list 系列无样式，属样式缺失） —— */
.card-list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; gap: 10px; }
.card-list li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4);
    padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(16,24,40,.04)); }
.card-list li a { font-weight: 600; color: var(--brand); text-decoration: none; }
.card-list li a:hover { text-decoration: underline; }
.card-list li > span { color: var(--ink-faint); font-size: 13px; text-align: right; }
.card-list.plain li { justify-content: flex-start; background: #f8fafc; border-color: #eef2f7; }
.card-list.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-list.cols li { justify-content: flex-start; }
.contact-note { margin-top: var(--sp-4); padding: 12px 14px; border-radius: var(--r-md);
    background: #f6f9ff; border: 1px dashed #d6e2ff; font-size: 13px; color: var(--ink-soft); }
.contact-note code { font-size: 12px; }
.card-foot { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line);
    color: var(--ink-faint); font-size: 13px; }

/* —— 主题专题页 —— */
.topic-outline { display: grid; gap: 10px; }
.topic-outline a { display: flex; gap: 10px; align-items: baseline; color: var(--ink); text-decoration: none; }
.topic-outline a:hover { color: var(--brand); }
.topic-outline .idx { color: var(--ink-faint); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
    .card-list.cols { grid-template-columns: 1fr; }
    .card-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
    .card-list li > span { text-align: left; }
}

/* ============================================================================
   前台 UI/UX 2.0 · 页脚重构（2026-09-22）
   目标：从「无样式竖排列表」升级为 品牌 + 场景 + 导航 + 联系方式 四栏页脚。
   范围：仅 CSS 叠加，旧 class（footer-grid / footer-col / footer-links 等）全部保留。
   ============================================================================ */
.site-footer {
    margin-top: 0;
    background:
        radial-gradient(900px 380px at 12% -30%, rgba(27, 102, 245, .16), transparent 62%),
        linear-gradient(180deg, #101b34 0%, #0d1730 58%, #0b1428 100%);
    color: #c7d2e4;
    font-size: 14px;
    line-height: 1.72;
    border-top: 1px solid rgba(122, 162, 255, .16);
}
.site-footer .container { padding-top: var(--sp-8); padding-bottom: var(--sp-5); }

/* —— 四栏栅格：品牌宽、其余等宽 —— */
.footer-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr 1fr 1.35fr;
    gap: var(--sp-7) var(--sp-6);
    padding-bottom: var(--sp-6);
    border-bottom: 1px solid rgba(148, 178, 255, .14);
}
.footer-col { min-width: 0; }
.footer-col h4 {
    margin: 0 0 var(--sp-4);
    font-size: 14px;
    font-weight: 700;
    color: #eef4ff;
    letter-spacing: .04em;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: "";
    position: absolute; left: 0; bottom: 0;
    width: 26px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), #7aa2ff);
}

/* —— 品牌区 —— */
.footer-brand-head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-4); }
.footer-logo {
    width: 42px; height: 42px; flex: 0 0 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), #4b83ff);
    color: #fff; font-weight: 700; font-size: 20px;
    box-shadow: 0 6px 18px rgba(27, 102, 245, .38);
}
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.footer-brand-text strong { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.footer-brand-text em { font-style: normal; font-size: 11.5px; color: #8ea3c4; letter-spacing: .02em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-footer .footer-slogan {
    margin: 0 0 var(--sp-3);
    color: #9fc0ff; font-weight: 600; font-size: 14px; letter-spacing: .06em;
}
.site-footer .footer-desc { margin: 0 0 var(--sp-4); color: #9db0cc; font-size: 13.5px; }
.footer-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tags li {
    padding: 4px 11px; border-radius: 999px; font-size: 12px; color: #b9cbec;
    background: rgba(122, 162, 255, .11);
    border: 1px solid rgba(122, 162, 255, .2);
}

/* —— 链接列 —— */
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.site-footer .footer-links a {
    color: #a8bada; opacity: 1; width: fit-content;
    transition: color .15s ease, transform .15s ease;
}
.site-footer .footer-links a:hover { color: #fff; transform: translateX(3px); text-decoration: none; }

/* —— 联系方式列 —— */
.footer-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.fc-ico {
    flex: 0 0 26px; width: 26px; height: 26px; margin-top: 1px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; color: #9fc0ff;
    background: rgba(122, 162, 255, .12);
    border: 1px solid rgba(122, 162, 255, .18);
}
.fc-body { display: flex; flex-direction: column; min-width: 0; }
.fc-body em { font-style: normal; font-size: 11.5px; color: #7f93b4; letter-spacing: .04em; }
.fc-body a, .fc-body { color: #dbe6f7; font-size: 13.5px; }
.fc-body a { word-break: break-all; }
.fc-body a:hover { color: #fff; text-decoration: underline; }
.footer-help { margin: var(--sp-4) 0 0; }
.footer-help a { color: #9fc0ff; font-weight: 600; font-size: 13.5px; }
.footer-help a:hover { color: #fff; }

/* —— 底栏 —— */
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-4); flex-wrap: wrap;
    padding-top: var(--sp-5);
    color: #8ea3c4; font-size: 13px;
}
.footer-bottom .footer-meta { display: inline-flex; align-items: center; gap: 8px; color: #8ea3c4; }
.footer-bottom .footer-meta a { color: #a8bada; }
.footer-bottom .footer-meta a:hover { color: #fff; text-decoration: underline; }
.footer-bottom .footer-meta i { font-style: normal; color: #54678a; }

/* —— 响应式：四栏 → 两栏 → 单栏 —— */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-5); }
}
@media (max-width: 640px) {
    .site-footer .container { padding-top: var(--sp-7); }
    .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* —— 页脚修尾：品牌英文名换行显示 + 应用领域小标签 —— */
.footer-brand-text em { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }
.footer-mini-label { margin: 0 0 8px; font-size: 11.5px; color: #7f93b4; letter-spacing: .06em; }

/* —— 移动端：避免固定客服挂件遮挡页脚底栏，页脚底部预留安全空间 —— */
@media (max-width: 640px) {
    .site-footer .container { padding-bottom: calc(var(--sp-5) + 84px); }
}

/* ============================================================================
   全站图片 · 卡片封面 / 详情头图 / 图库（2026-09-23）
   ========================================================================== */
.card-cover {
    margin: calc(-1 * var(--sp-5) - 1px) calc(-1 * var(--sp-5) - 1px) 20px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    overflow: hidden;
    background: var(--bg-alt);
    aspect-ratio: 4 / 3;
}
.card-cover-16x9 { aspect-ratio: 16 / 9; }
/* 旧内核（不支持 aspect-ratio）：退化为固定高度比例盒，避免封面高度塌陷 */
@supports not (aspect-ratio: 1 / 1) {
    .card-cover { height: 240px; }
    .card-cover-16x9 { height: 200px; }
}
.card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.card-link:hover .card-cover img { transform: scale(1.04); }

/* 首页 hero 实景图（替换原纯 CSS 声波装饰） */
.hero-visual { position: relative; height: 320px; }
.hero-photo {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* 详情页头图 */
.case-hero-cover,
.detail-cover,
.article-cover {
    max-width: var(--container);
    margin: 24px auto 0;
    padding: 0 24px;
}
.case-hero-cover img,
.detail-cover img,
.article-cover img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.article-cover { margin-top: 8px; }

/* 案例画廊（详情页） */
.case-gallery img {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

/* 图文预览（后台编辑器 / markdown 渲染） */
.md-figure { margin: 18px 0; }
.md-figure img { display: block; max-width: 100%; border-radius: 12px; }
.md-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-faint); text-align: center; }

@media (max-width: 900px) {
    .hero-visual { height: auto; min-height: 220px; }
}

/* ============================================================================
   产品服务分类展示（按官网栏目：一级筛选 + 二级分组）
   ============================================================================ */
.filter-chip .chip-icon { margin-right: 4px; }
.filter-chip-sm { padding: 5px 12px; font-size: 13px; }
.filter-sub { margin-bottom: var(--sp-5); }
.filter-sub .filter-chip { background: var(--bg-alt); }

.product-group { margin-bottom: var(--sp-7); scroll-margin-top: calc(var(--header-h) + 16px); }
.product-group:last-child { margin-bottom: 0; }
.group-head {
    display: flex; align-items: flex-start; gap: 12px;
    padding-bottom: 12px; margin-bottom: var(--sp-4);
    border-bottom: 1px solid var(--line);
}
.group-icon {
    flex: 0 0 auto; width: 40px; height: 40px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 20px;
    background: var(--brand-light); border-radius: var(--r-md);
}
.group-head-text h2 {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 1.2rem; margin-bottom: 4px;
}
.group-count {
    font-size: 12px; font-weight: 600; color: var(--brand-dark);
    background: var(--brand-light); border-radius: 999px; padding: 2px 9px;
}
.group-head-text p { margin: 0; font-size: 14px; color: var(--ink-faint); }

.product-card { display: flex; flex-direction: column; }
.product-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.product-lead { margin-left: auto; font-size: 12px; color: var(--ink-faint); }
.tag-soft { background: var(--bg-alt); color: var(--ink-soft); font-weight: 500; }
.product-card .tag-row { margin-top: auto; padding-top: 12px; }

@media (max-width: 640px) {
    .product-group { margin-bottom: var(--sp-6); }
    .group-head-text h2 { font-size: 1.1rem; }
}
