/* ==========================================================================
   Vabora · 新一代前台（2026-09 重做）
   --------------------------------------------------------------------------
   设计主张：**深空工作台**
     1. 巨字排版（一屏只说一件事）：Hero 用 11vw 级别的字，行高压缩到 0.95
     2. 深度感靠"层"而不是"装饰"：极光 / 网格 / 前景三层以不同速度位移（视差）
     3. 节奏统一：每节 = 序号 + 眉标 + 巨标题 + 一句导语 + 内容，节间距固定
     4. 交互只保留三类：滚动入场、视差位移、hover 微抬升

   命名前缀 `x-`：与旧版 blog.css（长文正文样式）完全隔离，互不污染。
   明暗双模：所有颜色走令牌，`[data-theme="dark"]` 一套、默认（亮）一套。
   ========================================================================== */

/* ---------------------------------------------------------------- 令牌 */
:root {
    /* 亮色：冷白纸感，靠留白与细线出秩序 */
    --x-bg: #f7f8fb;
    --x-bg-2: #ffffff;
    --x-card: #ffffff;
    --x-fg: #0b1220;
    --x-fg-soft: #46536b;
    /* 弱化文字（时间 / 阅读量 / 计数）：原 #7b879e 在白底只有 3.6:1，
       达不到 WCAG AA（4.5:1）——由 `php vabora ui:contrast` 实测发现并收深。
       现值在 #ffffff 上 5.38:1、在 #f7f8fb 上 5.07:1 */
    --x-muted: #5f6b80;
    --x-line: #e4e8f0;
    --x-line-strong: #cfd6e4;
    /* 科技蓝：主色 #2563eb（白字 5.17:1），深档 #1e40af（白字 8.72:1）
       —— 蓝底一律配白字，不做"浅渐变 + 深字"那种对比度只有 2:1 的组合。
       以上比值由 `php vabora ui:contrast` 实测（tests/23-contrast.php 钉住） */
    --x-accent: #2563eb;
    --x-accent-2: #0ea5e9;
    --x-accent-deep: #1e40af;
    --x-accent-hover: #1d4ed8;
    --x-accent-ink: #ffffff;
    --x-accent-soft: rgba(37, 99, 235, 0.1);
    --x-warn: #b45309;
    --x-grid: rgba(15, 23, 42, 0.045);
    --x-glow-1: rgba(37, 99, 235, 0.2);
    --x-glow-2: rgba(14, 165, 233, 0.16);
    --x-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -18px rgba(15, 23, 42, 0.18);
    --x-shadow-lg: 0 30px 70px -40px rgba(15, 23, 42, 0.35);

    /* 排版节奏（移动优先，靠 clamp 在桌面放大） */
    --x-maxw: 1240px;
    --x-gutter: clamp(18px, 4vw, 40px);
    --x-section-y: clamp(64px, 11vw, 140px);
    --x-radius: 14px;
    --x-radius-lg: 22px;

    --x-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --x-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;

    --x-dur: 0.28s;
    --x-ease: cubic-bezier(0.22, 0.68, 0.2, 1);
    color-scheme: light;
}

[data-theme="dark"] {
    /* 暗色：深空底色，光是唯一主角（同一套科技蓝，只是提亮） */
    --x-bg: #05070d;
    --x-bg-2: #0a0f1a;
    --x-card: #0d1424;
    --x-fg: #eef3fb;
    --x-fg-soft: #a7b4cc;
    /* 暗色弱化文字同样按 4.5:1 校准：原 #6c7a94 在卡片底（#0d1424）只有 4.24:1 */
    --x-muted: #7b89a4;
    --x-line: #1b2438;
    --x-line-strong: #2a3550;
    --x-accent: #60a5fa;
    --x-accent-2: #22d3ee;
    --x-accent-deep: #93c5fd;
    --x-accent-hover: #93c5fd;
    /* 暗色下浅蓝底改配深墨字（9:1），比白字压在浅蓝上清楚得多 */
    --x-accent-ink: #0b1a2f;
    --x-accent-soft: rgba(96, 165, 250, 0.14);
    --x-warn: #fbbf24;
    --x-grid: rgba(255, 255, 255, 0.055);
    --x-glow-1: rgba(96, 165, 250, 0.26);
    --x-glow-2: rgba(34, 211, 238, 0.2);
    --x-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 20px 40px -24px rgba(0, 0, 0, 0.7);
    --x-shadow-lg: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
    color-scheme: dark;
}

/* ---------------------------------------------------------------- 基础 */
*,
*::before,
*::after { box-sizing: border-box; }

/*
 * 根元素也上底色：顶栏是 backdrop-filter 吸顶条，它采样的是"根画布"。
 * html 不设底色时画布是白的 —— 暗色模式下顶栏会被滤成一条亮灰色（很显眼），
 * 顺带 iOS 回弹时也会闪白。
 */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background: var(--x-bg);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--x-bg);
    color: var(--x-fg);
    font-family: var(--x-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 旧版 layout 的容器在长文页仍会用到，这里统一宽度口径 */
.x-body .site-main { padding: 0; }
/*
 * 链接与按钮的“归零”规则一律用 :where() 降权：
 * `.x-body a{color:inherit}` 的权重是 (0,1,1)，会盖掉 `.x-btn--primary{color:#fff}` 这类
 * 单类规则——蓝底按钮于是显示成深色字，肉眼看着就是"对比度不够"。
 * 降成 (0,0,1) 后，组件自己声明的颜色/字号一定赢。
 */
:where(.x-body) a { color: inherit; text-decoration: none; }
:where(.x-body) button { font: inherit; }
.x-body img { max-width: 100%; height: auto; }
.x-mono { font-family: var(--x-mono); }

.x-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 10px 16px;
    background: var(--x-accent);
    color: var(--x-accent-ink);
}
.x-skip:focus { left: 12px; top: 12px; }

/* 布局壳 */
.x-wrap {
    width: 100%;
    max-width: var(--x-maxw);
    margin: 0 auto;
    padding-inline: var(--x-gutter);
}

/* ---------------------------------------------------------------- 顶栏 */
.x-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--x-bg) 78%, transparent);
    border-bottom: 1px solid transparent;
    backdrop-filter: saturate(180%) blur(14px);
    transition: border-color var(--x-dur) var(--x-ease), background var(--x-dur) var(--x-ease);
}
.x-header.is-stuck {
    border-bottom-color: var(--x-line);
    background: color-mix(in srgb, var(--x-bg) 92%, transparent);
}
.x-header__bar {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 62px;
}
.x-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.x-brand img { width: 26px; height: 26px; border-radius: 8px; }
.x-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.x-nav a {
    position: relative;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--x-fg-soft);
    transition: color var(--x-dur) var(--x-ease), background var(--x-dur) var(--x-ease);
}
.x-nav a:hover { color: var(--x-fg); background: var(--x-accent-soft); }
.x-nav a[aria-current="page"] { color: var(--x-fg); font-weight: 600; }
.x-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--x-accent), var(--x-accent-2));
}
.x-head-actions { display: flex; align-items: center; gap: 6px; }
.x-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--x-line);
    border-radius: 10px;
    background: transparent;
    color: var(--x-fg-soft);
    cursor: pointer;
    transition: color var(--x-dur) var(--x-ease), border-color var(--x-dur) var(--x-ease);
}
.x-icon-btn:hover { color: var(--x-fg); border-color: var(--x-line-strong); }
.x-icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.x-burger { display: none; }

/* ------------------------------------------------------------ 顶栏搜索（胶囊）
   静息：一条细边胶囊，只有放大镜 + 占位符 + “/” 提示键；
   聚焦：向两侧展开、描边走强调色、外圈给一层柔光，同时有一道高光扫过——
   动效只服务一件事：告诉你"现在输入的东西会去搜索"。 */
.x-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 176px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid var(--x-line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--x-bg-2) 66%, transparent);
    overflow: hidden;
    transition: width 0.34s var(--x-ease), border-color 0.24s var(--x-ease),
        box-shadow 0.34s var(--x-ease), background 0.24s var(--x-ease);
}
.x-search:hover { border-color: var(--x-line-strong); }
.x-search:focus-within {
    width: 252px;
    border-color: var(--x-accent);
    background: var(--x-bg-2);
    box-shadow: 0 0 0 4px var(--x-accent-soft), var(--x-shadow);
}
/* 高光扫过：只在聚焦那一刻出现一次，不打扰阅读 */
.x-search::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--x-accent) 22%, transparent) 48%, transparent 72%);
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}
.x-search:focus-within::after { animation: x-sheen 0.75s var(--x-ease); }
@keyframes x-sheen {
    0% { opacity: 1; transform: translateX(-100%); }
    100% { opacity: 0; transform: translateX(100%); }
}
/* 提交后：图标转起来 + 光晕收一下（页面通常很快就换了，属于过渡反馈） */
.x-search.is-sending .x-search__icon { animation: x-search-spin 0.9s linear infinite; }
.x-search.is-sending:focus-within { box-shadow: 0 0 0 6px var(--x-accent-soft); }
@keyframes x-search-spin { to { transform: rotate(360deg); } }

.x-search__icon {
    display: inline-flex;
    flex: none;
    color: var(--x-muted);
    transition: color 0.24s var(--x-ease), transform 0.34s var(--x-ease);
}
.x-search__icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.x-search:hover .x-search__icon { transform: translateX(1px); }
.x-search:focus-within .x-search__icon { color: var(--x-accent); transform: scale(1.1); }

.x-search__input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13.5px;
    outline: none;
}
.x-search__input::placeholder { color: var(--x-muted); }
/* 自带的清除叉与搜索图标重复，统一用我们自己的按钮 */
.x-search__input::-webkit-search-cancel-button { display: none; }
/*
 * 焦点轮廓：输入框本身不要 outline。
 * 全局 `:where(...):focus-visible` 的无障碍轮廓与 .x-search__input 同权重，
 * 且它写在文件后面，会覆盖上面的 outline:none —— 于是"搜索页自动聚焦"时
 * 会看到一圈方形轮廓套在胶囊里。这里提到两倍权重压过去；
 * 焦点指示由胶囊自身的 `:focus-within`（描边 + 4px 柔光）承担，键盘用户依然看得见。
 */
.x-search__input:focus,
.x-search__input:focus-visible { outline: none; }
/* 胶囊内 overflow:hidden 会把 outline 裁掉，改用底色/柔光表达键盘焦点 */
.x-search__clear:focus-visible,
.x-search__submit:focus-visible { outline: none; }
.x-search__clear:focus-visible { background: var(--x-accent); color: var(--x-accent-ink); }
.x-search__submit:focus-visible { box-shadow: 0 0 0 3px var(--x-accent-soft); }

.x-search__key {
    flex: none;
    padding: 1px 6px;
    border: 1px solid var(--x-line);
    border-radius: 6px;
    font-family: var(--x-mono);
    font-size: 10.5px;
    line-height: 1.5;
    color: var(--x-muted);
    transition: opacity 0.2s var(--x-ease);
}
.x-search:hover .x-search__key { opacity: 1; }
.x-search:focus-within .x-search__key,
.x-search[data-filled="1"] .x-search__key { opacity: 0; }

.x-search__clear {
    display: none;
    flex: none;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--x-accent-soft);
    color: var(--x-accent);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s var(--x-ease);
}
.x-search[data-filled="1"] .x-search__clear { display: inline-flex; align-items: center; justify-content: center; }
.x-search__clear:hover { transform: scale(1.12); }

/* 移动端的放大镜按钮（打开抽屉并聚焦抽屉里的搜索框） */
.x-search-toggle { display: none; }
.x-search--drawer { width: 100%; height: 44px; padding: 0 16px; margin-bottom: 16px; }
.x-search--drawer:focus-within { width: 100%; }
.x-search--drawer .x-search__input { font-size: 15px; }
.x-search__submit { padding: 9px 16px; font-size: 13.5px; flex: none; }
/* 抽屉里不需要"清空"按钮：重开抽屉就是空的 */
.x-search--drawer .x-search__clear { display: none !important; }

/*
 * 搜索页的大号搜索框（.x-search--lg）
 * 尺寸集中在文件后段的「可达性 · 统一焦点环」上方统一定义（避免两处重复互相覆盖）。
 * 这里只补一件此前缺失的事：**提交按钮的尺寸**。
 * 之前按钮沿用顶栏规格（padding 9px 16px ≈ 37px 高），塞进 52px 的胶囊里既显小、
 * 右边缘又贴着描边——这就是"按钮偏移"的观感来源。
 */
.x-search--lg .x-search__submit {
    height: 42px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 14.5px;
}

@media (max-width: 900px) {
    .x-nav { display: none; }
    .x-burger { display: inline-flex; }
}

/* 顶栏永远不能撑开文档：三段式 + 允许收缩 + 兜底裁剪 */
.x-header__bar { min-width: 0; }
.x-brand { min-width: 0; overflow: hidden; }
.x-head-actions { flex: none; }

@media (max-width: 380px) {
    /* 极窄屏（320/360）：再压一档，保证零横向滚动 */
    .x-wrap { padding-inline: 14px; }
    .x-head-actions { gap: 4px; }
    .x-icon-btn { width: 32px; height: 32px; }
    .x-brand { font-size: 14px; }
    .x-brand span { max-width: 7ch; }
}

@media (max-width: 560px) {
    .x-hero__cta { flex-direction: row; }
    .x-hero__cta .x-btn:first-child { flex: 1 1 100%; justify-content: center; }
    .x-hero__cta .x-btn:not(:first-child) { flex: 1 1 calc(50% - 6px); justify-content: center; }
    .x-chat__foot { padding: 12px 16px 16px; }
    .x-chat__input { padding: 12px 14px; }
}

@media (max-width: 520px) {
    /* 小屏顶栏只留品牌 + 图标：胶囊搜索收进抽屉（否则整条挤爆导致横向滚动）。
       只隐藏顶栏那一颗——搜索页 / 404 页里的大胶囊要留着。 */
    .x-head-actions .x-search { display: none; }
    .x-search-toggle { display: inline-flex; }
    .x-header__bar { gap: 10px; }
    .x-brand { font-size: 15px; }
    .x-brand span {
        max-width: 9ch;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* 移动抽屉 */
.x-drawer {
    position: fixed;
    inset: 62px 0 0;
    z-index: 49;
    padding: 18px var(--x-gutter) 40px;
    background: var(--x-bg);
    border-top: 1px solid var(--x-line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--x-dur) var(--x-ease), transform var(--x-dur) var(--x-ease);
}
.x-drawer.is-open { opacity: 1; transform: none; pointer-events: auto; }
.x-drawer a {
    display: block;
    padding: 13px 2px;
    border-bottom: 1px solid var(--x-line);
    font-size: 17px;
    font-weight: 600;
}

/* ------------------------------------------------------------ 首屏 Hero */
.x-hero {
    position: relative;
    min-height: min(92svh, 900px);
    display: flex;
    align-items: center;
    padding-block: clamp(56px, 9vw, 110px) clamp(48px, 8vw, 90px);
    overflow: hidden;
    isolation: isolate;
}
/* 三层景深：极光（最慢）/ 网格（中）/ 内容（最快，靠视差变量） */
.x-hero__aurora,
.x-hero__grid {
    position: absolute;
    inset: -12% -6%;
    z-index: -2;
    pointer-events: none;
}
.x-hero__aurora {
    background:
        radial-gradient(46vw 34vw at 14% 8%, var(--x-glow-1), transparent 62%),
        radial-gradient(40vw 30vw at 86% 4%, var(--x-glow-2), transparent 64%),
        radial-gradient(60vw 40vw at 50% 108%, var(--x-glow-1), transparent 70%);
    filter: blur(6px);
    transform: translate3d(0, calc(var(--x-p-slow, 0) * 1px), 0);
    opacity: 0.95;
}
.x-hero__grid {
    background-image: linear-gradient(var(--x-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--x-grid) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 74% 62% at 50% 34%, #000 12%, transparent 78%);
    transform: translate3d(0, calc(var(--x-p-mid, 0) * 1px), 0);
}
.x-hero__inner { position: relative; width: 100%; }

.x-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--x-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--x-accent);
}
.x-eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, var(--x-accent), transparent);
}

.x-hero__title {
    margin: 20px 0 0;
    font-size: clamp(2.3rem, 8.6vw, 6.2rem);
    line-height: 1;
    letter-spacing: -0.035em;
    font-weight: 800;
    text-wrap: balance;
}
/* slogan 降一档：主标题是"我是谁"，slogan 是"我怎么做事"——主次必须分得开 */
.x-hero__title em {
    display: block;
    margin-top: 0.14em;
    font-size: 0.6em;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
    font-style: normal;
    /* 文字渐变两端都要压得住白底：深蓝 → 主蓝，最浅处仍有 5:1 */
    background: linear-gradient(104deg, var(--x-accent-deep), var(--x-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.x-hero__lead {
    max-width: 46ch;
    margin: 26px 0 0;
    font-size: clamp(15px, 1.7vw, 19px);
    line-height: 1.85;
    color: var(--x-fg-soft);
}
.x-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.x-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border: 1px solid var(--x-line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--x-fg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--x-dur) var(--x-ease), border-color var(--x-dur) var(--x-ease),
        background var(--x-dur) var(--x-ease), box-shadow var(--x-dur) var(--x-ease);
}
.x-btn:hover { transform: translateY(-2px); border-color: var(--x-accent); }
.x-btn--primary {
    border-color: transparent;
    background: var(--x-accent);
    color: var(--x-accent-ink);
    box-shadow: 0 16px 34px -20px color-mix(in srgb, var(--x-accent) 72%, transparent);
}
.x-btn--primary:hover {
    border-color: transparent;
    background: var(--x-accent-hover);
}
.x-btn--ghost { border-color: transparent; color: var(--x-fg-soft); padding-inline: 6px; }
.x-btn--ghost:hover { color: var(--x-fg); }

/* 关键词跑马灯：一眼看到服务范围，不占叙述空间 */
.x-marquee {
    position: relative;
    margin-top: clamp(40px, 6vw, 66px);
    padding-block: 14px;
    border-block: 1px solid var(--x-line);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.x-marquee__track {
    display: flex;
    gap: 34px;
    width: max-content;
    animation: x-marquee 34s linear infinite;
}
.x-marquee span {
    display: inline-flex;
    align-items: center;
    gap: 34px;
    font-family: var(--x-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--x-fg-soft);
    white-space: nowrap;
}
.x-marquee span::after { content: "◇"; color: var(--x-accent); }
@keyframes x-marquee { to { transform: translateX(-50%); } }

/* 首屏数字（四格，细线分隔） */
.x-hero__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: clamp(30px, 4vw, 44px);
    background: var(--x-line);
    border: 1px solid var(--x-line);
    border-radius: var(--x-radius);
    overflow: hidden;
}
.x-hero__facts div { padding: 16px 18px; background: var(--x-bg); }
.x-hero__facts b {
    display: block;
    font-family: var(--x-mono);
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.x-hero__facts span { font-size: 12.5px; color: var(--x-muted); }
@media (min-width: 760px) { .x-hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.x-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
    font-family: var(--x-mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--x-muted);
}
.x-scroll-hint i {
    display: block;
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, var(--x-accent), transparent);
    animation: x-hint 2.4s var(--x-ease) infinite;
}
@keyframes x-hint { 0%, 100% { transform: scaleX(0.4); opacity: 0.5; } 50% { transform: scaleX(1); opacity: 1; } }

/* ---------------------------------------------------------------- 分节 */
.x-section {
    position: relative;
    padding-block: var(--x-section-y);
    border-top: 1px solid var(--x-line);
}
.x-section--plain { border-top: 0; padding-block: calc(var(--x-section-y) * 0.62); }
.x-section__head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 52px); }
.x-section__no {
    font-family: var(--x-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--x-muted);
}
.x-title {
    margin: 14px 0 0;
    font-size: clamp(1.9rem, 5.2vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: -0.028em;
    font-weight: 800;
}
.x-lead {
    margin: 18px 0 0;
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.9;
    color: var(--x-fg-soft);
}
/* 导语里的链接必须看得出是链接：正文色 + 强调色下划线 */
.x-lead a,
.x-card__text a,
.x-prose-foot a { color: var(--x-accent); }
.x-lead a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 两栏：左标题右内容（桌面），移动堆叠 */
.x-split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 1000px) {
    .x-split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
    .x-split--sticky .x-split__aside { position: sticky; top: 92px; }
}

/* 网格 */
.x-grid-2 { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .x-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .x-grid-3 { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1079px) { .x-grid-3 { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .x-grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- 卡片 */
.x-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--x-line);
    border-radius: var(--x-radius);
    background: var(--x-card);
    overflow: hidden;
    transition: transform var(--x-dur) var(--x-ease), border-color var(--x-dur) var(--x-ease),
        box-shadow var(--x-dur) var(--x-ease);
}
.x-card::after {
    content: "";
    position: absolute;
    inset: auto auto -40% -30%;
    width: 60%;
    height: 80%;
    background: radial-gradient(closest-side, var(--x-accent-soft), transparent);
    opacity: 0;
    transition: opacity var(--x-dur) var(--x-ease);
    pointer-events: none;
}
.x-card:hover { transform: translateY(-4px); border-color: var(--x-line-strong); box-shadow: var(--x-shadow-lg); }
.x-card:hover::after { opacity: 1; }
.x-card__no {
    font-family: var(--x-mono);
    font-size: 12px;
    color: var(--x-muted);
}
.x-card__title { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.x-card__text { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--x-fg-soft); }
.x-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed var(--x-line);
    font-size: 12.5px;
    color: var(--x-muted);
}
.x-card__foot b { color: var(--x-fg); font-family: var(--x-mono); }
.x-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--x-accent-soft);
    font-size: 20px;
}

/* 列表型卡片（文章 / 案例条目） */
.x-row {
    display: grid;
    gap: 6px 24px;
    padding: 22px 4px;
    border-bottom: 1px solid var(--x-line);
    transition: padding var(--x-dur) var(--x-ease);
}
.x-row:hover { padding-inline: 10px; }
@media (min-width: 900px) { .x-row { grid-template-columns: 130px minmax(0, 1fr); } }
.x-row__meta {
    font-family: var(--x-mono);
    font-size: 12.5px;
    color: var(--x-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.x-row__title { margin: 0; font-size: 20px; letter-spacing: -0.012em; }

/* ------------------------------------------------------------ 列表缩略图
   有封面的行多一列缩略图：桌面在右侧，窄屏落到内容下方（整行宽），
   比例按封面原始规格（文章 1200×630）设置，避免裁掉标题文字。 */
.x-row--thumb { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
    .x-row--thumb { grid-template-columns: 130px minmax(0, 1fr) 208px; }
}
.x-row__thumb {
    display: block;
    margin-top: 12px;
    border: 1px solid var(--x-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--x-bg-2);
}
@media (min-width: 900px) { .x-row__thumb { margin-top: 2px; } }
.x-row__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    transition: transform var(--x-dur) var(--x-ease);
}
.x-row:hover .x-row__thumb img { transform: scale(1.03); }

/* ------------------------------------------------------------ 详情页头图
   文章封面 1200×630、案例样机 1600×1000，各按自身比例展示（不裁切）。 */
.x-cover-hero {
    margin: 22px auto 0;
    border: 1px solid var(--x-line);
    border-radius: var(--x-radius);
    overflow: hidden;
    background: var(--x-bg-2);
    box-shadow: var(--x-shadow);
}
.x-cover-hero img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.x-cover-hero--wide img { aspect-ratio: 1600 / 1000; }

/* 案例卡片封面：贴到卡片上边缘（卡片本身 overflow:hidden 负责圆角裁切） */
.x-card--media { padding-top: 0; }
.x-card__cover { display: block; margin: 0 -24px 6px; background: var(--x-bg-2); }
.x-card__cover img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 1000; object-fit: cover; }
.x-row__title a:hover { color: var(--x-accent); }
.x-row__text { margin: 6px 0 0; font-size: 14.5px; color: var(--x-fg-soft); }
.x-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 0; }
.x-chip {
    padding: 3px 10px;
    border: 1px solid var(--x-line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--x-fg-soft);
    transition: border-color var(--x-dur) var(--x-ease), color var(--x-dur) var(--x-ease);
}
a.x-chip:hover { border-color: var(--x-accent); color: var(--x-fg); }
.x-chip--on { border-color: var(--x-accent); color: var(--x-fg); background: var(--x-accent-soft); }

/* ------------------------------------------------------------ 数字带 */
.x-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--x-line);
    border-radius: var(--x-radius);
    overflow: hidden;
}
@media (min-width: 820px) { .x-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.x-stats div { padding: clamp(20px, 3vw, 30px); background: var(--x-bg); }
.x-stats b {
    display: block;
    font-family: var(--x-mono);
    font-size: clamp(2rem, 5.4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(104deg, var(--x-accent-deep), var(--x-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.x-stats span { display: block; margin-top: 10px; font-size: 13px; color: var(--x-muted); }

/* ------------------------------------------------- 案例成果（大字指标） */
.x-metrics { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .x-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.x-metric { padding: 20px; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-card); }
.x-metric b {
    display: block;
    font-family: var(--x-mono);
    font-size: clamp(1.6rem, 3.6vw, 2.3rem);
    line-height: 1;
    letter-spacing: -0.02em;
}
.x-metric span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--x-muted); }

/* --------------------------------------------------------- AI 可见性 */
.x-proof {
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid var(--x-line);
    border-radius: var(--x-radius-lg);
    background:
        linear-gradient(160deg, var(--x-accent-soft), transparent 58%),
        var(--x-card);
}
.x-proof__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.x-proof__list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    font-size: 14px;
    line-height: 1.7;
}
.x-proof__list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--x-accent-soft);
    color: var(--x-accent);
    font-size: 11px;
    font-weight: 700;
}
.x-proof__list code {
    font-family: var(--x-mono);
    font-size: 12.5px;
    color: var(--x-fg-soft);
}
.x-proof__hint { display: block; margin-top: 4px; font-size: 13px; color: var(--x-muted); }
.x-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.x-links a {
    padding: 6px 12px;
    border: 1px dashed var(--x-line-strong);
    border-radius: 999px;
    font-family: var(--x-mono);
    font-size: 11.5px;
    color: var(--x-fg-soft);
    transition: border-color var(--x-dur) var(--x-ease), color var(--x-dur) var(--x-ease);
}
.x-links a:hover { border-color: var(--x-accent); color: var(--x-accent); }

/* ------------------------------------------------------------ 对话询价 */
.x-chat {
    position: relative;
    border: 1px solid var(--x-line);
    border-radius: var(--x-radius-lg);
    background: var(--x-card);
    overflow: hidden;
    box-shadow: var(--x-shadow);
}
.x-chat__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--x-line);
    background: color-mix(in srgb, var(--x-bg-2) 70%, transparent);
}
.x-chat__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--x-accent);
    color: var(--x-accent-ink);
    font-weight: 800;
    font-size: 15px;
    flex: none;
}
.x-chat__who { font-weight: 700; font-size: 15px; line-height: 1.3; }
.x-chat__state { font-size: 12px; color: var(--x-muted); }
.x-chat__dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--x-accent);
    animation: x-pulse 1.8s var(--x-ease) infinite;
}
@keyframes x-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.x-chat__progress {
    display: none;
    margin-left: auto;
    font-family: var(--x-mono);
    font-size: 11.5px;
    color: var(--x-muted);
}
/* 无 JS 时对话跑不起来，别显示"第 1 / 6 步"这种只有脚本才成立的提示 */
.x-chat[data-chat-ready="1"] .x-chat__progress { display: block; }
.x-chat__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 20px;
    max-height: min(52svh, 460px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.x-msg { display: flex; gap: 10px; max-width: 92%; }
.x-msg__bubble {
    padding: 12px 16px;
    border-radius: 16px 16px 16px 4px;
    background: var(--x-bg-2);
    border: 1px solid var(--x-line);
    font-size: 14.5px;
    line-height: 1.75;
}
.x-msg--me { margin-left: auto; flex-direction: row-reverse; }
.x-msg--me .x-msg__bubble {
    border-radius: 16px 16px 4px 16px;
    background: var(--x-accent);
    border-color: transparent;
    color: var(--x-accent-ink);
    font-weight: 600;
}
.x-msg--typing .x-msg__bubble { display: inline-flex; gap: 5px; align-items: center; }
.x-msg--typing i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--x-muted);
    animation: x-typing 1.1s var(--x-ease) infinite;
}
.x-msg--typing i:nth-child(2) { animation-delay: 0.16s; }
.x-msg--typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes x-typing { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-4px); opacity: 1; } }

.x-chat__choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 4px; }
.x-chat__choice {
    padding: 9px 15px;
    border: 1px solid var(--x-line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--x-fg);
    font-size: 13.5px;
    cursor: pointer;
    transition: transform var(--x-dur) var(--x-ease), border-color var(--x-dur) var(--x-ease),
        background var(--x-dur) var(--x-ease);
}
.x-chat__choice:hover { transform: translateY(-2px); border-color: var(--x-accent); background: var(--x-accent-soft); }
.x-chat__choice--on {
    border-color: var(--x-accent);
    background: var(--x-accent-soft);
    font-weight: 600;
}
.x-chat__foot {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--x-line);
}
.x-chat__input {
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid var(--x-line-strong);
    border-radius: 12px;
    background: var(--x-bg-2);
    color: var(--x-fg);
    font-size: 15px;
    resize: none;
    transition: border-color var(--x-dur) var(--x-ease), box-shadow var(--x-dur) var(--x-ease);
}
.x-chat__input:focus {
    outline: none;
    border-color: var(--x-accent);
    box-shadow: 0 0 0 4px var(--x-accent-soft);
}
.x-chat__send {
    display: inline-flex;
    align-self: flex-end;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    border: 0;
    border-radius: 12px;
    background: var(--x-accent);
    color: var(--x-accent-ink);
    cursor: pointer;
    transition: transform var(--x-dur) var(--x-ease), opacity var(--x-dur) var(--x-ease),
        background var(--x-dur) var(--x-ease);
}
.x-chat__send:hover { transform: translateY(-2px); background: var(--x-accent-hover); }
.x-chat__send:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.x-chat__foot-note {
    padding: 0 20px 16px;
    font-size: 11.5px;
    color: var(--x-muted);
}
/* 无 JS / 提交失败时的传统表单：默认可见，对话就绪后 JS 收起它 */
.x-chat__fallback { padding: 22px 20px; }
.x-chat[data-chat-ready="1"] .x-chat__fallback { display: none; }
.x-chat__body,
.x-chat__choices,
.x-chat__foot { display: none; }
.x-chat[data-chat-ready="1"] .x-chat__body { display: flex; }
.x-chat[data-chat-ready="1"] .x-chat__choices { display: flex; }
.x-chat[data-chat-ready="1"] .x-chat__foot { display: flex; }
.x-chat[data-chat-ready="1"] .x-chat__foot-note { display: block; }
.x-chat__fallback label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--x-fg-soft); }
.x-chat__fallback input,
.x-chat__fallback textarea,
.x-chat__fallback select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--x-line-strong);
    border-radius: 10px;
    background: var(--x-bg-2);
    color: var(--x-fg);
    font-family: inherit;
    font-size: 14.5px;
}

/* ---------------------------------------------------------------- 页脚 */
.x-footer {
    margin-top: var(--x-section-y);
    border-top: 1px solid var(--x-line);
    padding-block: clamp(40px, 6vw, 68px) 34px;
}
.x-footer__top {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 820px) { .x-footer__top { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } }
.x-footer h3 { margin: 0 0 12px; font-size: 14px; color: var(--x-fg); }
.x-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.x-footer li a { font-size: 14px; color: var(--x-fg-soft); }
.x-footer li a:hover { color: var(--x-accent); }
.x-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    align-items: center;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--x-line);
    font-size: 12.5px;
    color: var(--x-muted);
}
.x-footer__bottom .x-mono { font-size: 11.5px; }

/* -------------------------------------------------- 文章 / 长文外壳 */
.x-page-head {
    padding-block: clamp(38px, 6vw, 66px) clamp(22px, 3vw, 34px);
    border-bottom: 1px solid var(--x-line);
}
.x-page-head h1 {
    margin: 14px 0 0;
    font-size: clamp(2.1rem, 6.4vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 800;
}
.x-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--x-muted); font-family: var(--x-mono); }
.x-crumb a:hover { color: var(--x-accent); }

.x-article { padding-block: clamp(30px, 5vw, 54px); }
.x-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 20px;
    font-family: var(--x-mono);
    font-size: 12.5px;
    color: var(--x-muted);
}
.x-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; }
.x-pager a,
.x-pager span {
    padding: 10px 16px;
    border: 1px solid var(--x-line);
    border-radius: 999px;
    font-size: 13.5px;
    color: var(--x-fg-soft);
}
.x-pager a:hover { border-color: var(--x-accent); color: var(--x-fg); }
.x-pager .is-off { opacity: 0.4; }

/* 相邻文章 / 相关 */
.x-neighbors { display: grid; gap: 12px; margin-top: 40px; }
@media (min-width: 760px) { .x-neighbors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.x-neighbor {
    padding: 18px 20px;
    border: 1px solid var(--x-line);
    border-radius: var(--x-radius);
    background: var(--x-card);
    transition: transform var(--x-dur) var(--x-ease), border-color var(--x-dur) var(--x-ease);
}
.x-neighbor:hover { transform: translateY(-3px); border-color: var(--x-line-strong); }
.x-neighbor span { font-size: 12px; color: var(--x-muted); font-family: var(--x-mono); }
.x-neighbor strong { display: block; margin-top: 6px; font-size: 15.5px; }

/* -------------------------------------------------------------- 视差层 */
[data-parallax] { will-change: transform; }
.x-plx-bg { transform: translate3d(0, calc(var(--x-p, 0) * 1px), 0); }

/* 滚动入场：默认可见（无 JS 也能读），JS 接管后从下方淡入 */
.x-reveal { opacity: 1; }
.x-reveal[data-animate="1"] { opacity: 0; transform: translateY(22px); }
.x-reveal[data-animate="1"].is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s var(--x-ease), transform 0.6s var(--x-ease);
}

/* ---------------------------------------------------------- 降级与打印 */
@media (prefers-reduced-motion: reduce) {
    .x-marquee__track,
    .x-scroll-hint i,
    .x-chat__dot,
    .x-msg--typing i,
    .x-search::after,
    .x-search.is-sending .x-search__icon { animation: none !important; }
    .x-head-actions .x-search,
    .x-head-actions .x-search:focus-within { width: auto; min-width: 176px; }
    [data-parallax],
    .x-hero__aurora,
    .x-hero__grid { transform: none !important; }
    .x-card:hover,
    .x-btn:hover,
    .x-row:hover { transform: none !important; }
    .x-reveal[data-animate="1"] { opacity: 1 !important; transform: none !important; }
    * { transition-duration: 0.01ms !important; }
}

@media print {
    .x-header,
    .x-footer,
    .x-chat,
    .x-mobile-bar { display: none !important; }
}

/* 小屏吸底咨询条 */
.x-mobile-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--x-line-strong);
    border-radius: 999px;
    background: color-mix(in srgb, var(--x-bg) 90%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: var(--x-shadow-lg);
    font-size: 13px;
}
.x-mobile-bar span { color: var(--x-muted); font-size: 12px; }
@media (max-width: 900px) {
    .x-mobile-bar { display: flex; }
    .x-footer { padding-bottom: 90px; }
}

/* ------------------------------------------------ 内容型组件（详情/列表） */
.x-list { margin: 8px 0 0; padding-left: 18px; font-size: 14.5px; line-height: 1.9; color: var(--x-fg-soft); }
.x-list--lg { font-size: 15.5px; padding-left: 22px; }
.x-list li { margin-bottom: 5px; }
.x-list li::marker { color: var(--x-accent); }

.x-process { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 16px; }
.x-process__step {
    padding: 22px;
    border: 1px solid var(--x-line);
    border-radius: var(--x-radius);
    background: var(--x-card);
}
.x-process__no { font-family: var(--x-mono); font-size: 12px; color: var(--x-accent); }
.x-process__step h3 { margin: 10px 0 6px; font-size: 16.5px; }
.x-process__step p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--x-fg-soft); }

.x-faq { display: grid; gap: 10px; }
.x-faq details {
    padding: 16px 20px;
    border: 1px solid var(--x-line);
    border-radius: var(--x-radius);
    background: var(--x-card);
}
.x-faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.x-faq summary::marker { color: var(--x-accent); }
.x-faq p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.85; color: var(--x-fg-soft); }

.x-quote {
    margin: 34px 0 0;
    padding: 24px 28px;
    border-left: 3px solid var(--x-accent);
    border-radius: 0 var(--x-radius) var(--x-radius) 0;
    background: var(--x-card);
}
.x-quote p { margin: 0; font-size: 17px; line-height: 1.8; }
.x-quote footer { margin-top: 12px; font-size: 13px; color: var(--x-muted); }

/* ------------------------------------------------ 长文布局（正文 + 目录） */
.x-article-layout { display: grid; gap: clamp(26px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) { .x-article-layout { grid-template-columns: minmax(0, 1fr) 230px; } }

.x-toc { align-self: start; font-size: 13.5px; }
@media (min-width: 1040px) { .x-toc { position: sticky; top: 88px; grid-column: 2; grid-row: 1; } }
.x-toc__title {
    display: block;
    margin-bottom: 10px;
    font-family: var(--x-mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--x-muted);
}
.x-toc ol { margin: 0; padding: 0 0 0 2px; list-style: none; display: grid; gap: 7px; border-left: 1px solid var(--x-line); }
.x-toc li { padding-left: 12px; }
.x-toc a { color: var(--x-fg-soft); }
.x-toc a:hover, .x-toc a.is-active { color: var(--x-accent); }
.x-toc__l3 { padding-left: 24px; font-size: 12.5px; }
.x-toc__l4 { padding-left: 34px; font-size: 12.5px; }
.x-toc__top { display: inline-block; margin-top: 16px; font-size: 12.5px; color: var(--x-muted); }
.x-toc__top:hover { color: var(--x-accent); }

/* 正文：细节仍由 blog.css 的 markdown-body 负责，这里只约束宽度与留白 */
.x-prose { max-width: 78ch; font-size: 16.5px; }
.x-prose h2, .x-prose h3, .x-prose h4 { scroll-margin-top: 88px; }
.x-body .markdown-body { background: transparent; padding: 0; max-width: none; }
.x-prose-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px dashed var(--x-line);
    font-size: 12.5px;
    color: var(--x-muted);
}
.x-gallery { display: grid; gap: 10px; align-content: start; }
.x-gallery img { border: 1px solid var(--x-line); border-radius: var(--x-radius); }
@media (min-width: 1040px) { .x-gallery { grid-column: 2; grid-row: 1; } }

/* ------------------------------------------------ 长内容断行（小屏防溢出）
   备案信息、URL、英文长词都可能比屏幕宽：不允许它们把文档撑开。 */
.x-body { overflow-wrap: break-word; }
.x-prose,
.x-card__text,
.x-row__title,
.x-lead,
.x-title { overflow-wrap: anywhere; }
.x-footer__bottom > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.x-proof__list li,
.x-proof__list code,
.x-links a,
.x-chips,
.x-chip { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.x-msg__bubble { overflow-wrap: anywhere; }
.x-marquee__track { max-width: none; }

/* 吸底条出现时给页脚留位置（旧的 .site-main 内边距已不适用） */
.x-body .site-main { padding-bottom: 0; }

/* ==========================================================================
   统一层 · 令牌
   --------------------------------------------------------------------------
   blog.css 里的评论、询价表单、事实摘要仍在读它自己的 --c-* 令牌。
   site.css 排在 blog.css 之后加载，这里把 --c-* 全部指向 --x-*：
   同一个站点不会出现"两个蓝"，暗色模式也跟着一起切（var 是取用时解析的）。
   ========================================================================== */
:root {
    --c-bg: var(--x-bg);
    --c-bg-soft: var(--x-bg-2);
    --c-surface: var(--x-card);
    --c-surface-2: var(--x-bg-2);
    --c-border: var(--x-line);
    --c-text: var(--x-fg);
    --c-text-soft: var(--x-fg-soft);
    --c-muted: var(--x-muted);
    --c-primary: var(--x-accent);
    --c-primary-soft: var(--x-accent-soft);
    --radius-sm: 8px;
    --radius: var(--x-radius);
    --radius-lg: var(--x-radius-lg);
    --shadow-sm: var(--x-shadow);
    --shadow: var(--x-shadow);
    --shadow-lg: var(--x-shadow-lg);
}

/* ==========================================================================
   统一层 · 事实摘要（服务 / 案例详情页最先被读到的部分）
   ========================================================================== */
.fact-summary {
    padding: clamp(18px, 2.6vw, 26px) clamp(18px, 2.6vw, 28px);
    border: 1px solid var(--x-line);
    border-left: 3px solid var(--x-accent);
    border-radius: 0 var(--x-radius) var(--x-radius) 0;
    background: var(--x-card);
}
.fact-summary h2 {
    margin: 0 0 6px;
    font-family: var(--x-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--x-muted);
}
.fact-summary dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.fact-summary dt {
    padding-top: 12px;
    font-family: var(--x-mono);
    font-size: 12px;
    color: var(--x-muted);
}
.fact-summary dd {
    margin: 0;
    padding: 2px 0 12px;
    border-bottom: 1px dashed var(--x-line);
    font-size: 15px;
    line-height: 1.75;
}
.fact-summary dd:last-child { padding-bottom: 0; border-bottom: 0; }
@media (min-width: 720px) {
    .fact-summary dl { grid-template-columns: 96px minmax(0, 1fr); column-gap: 20px; }
    .fact-summary dt { padding-top: 15px; }
    .fact-summary dd { padding: 13px 0; }
    .fact-summary dt:nth-last-child(2) { padding-bottom: 0; border-bottom: 0; }
}

/* ==========================================================================
   统一层 · 评论区（结构是旧的，观感统一到品牌层）
   ========================================================================== */
.x-body .comments { margin-top: 46px; }
.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    margin-left: 8px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--x-accent-soft);
    color: var(--x-accent);
    font-family: var(--x-mono);
    font-size: 12px;
    vertical-align: middle;
}
.comments-empty { margin: 14px 0 0; font-size: 14.5px; color: var(--x-muted); }
.comment-list,
.comment-children { margin: 0; padding: 0; list-style: none; }
.comment-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid var(--x-line);
}
.comment-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--x-accent-soft);
    color: var(--x-accent);
    font-weight: 700;
    font-size: 15px;
}
.comment-avatar--sm { width: 30px; height: 30px; font-size: 12.5px; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; }
.comment-author { font-weight: 600; }
.comment-time { color: var(--x-muted); font-family: var(--x-mono); font-size: 12px; }
.comment-reply-flag { color: var(--x-muted); font-size: 12.5px; }
.comment-reply-link { color: var(--x-muted); font-size: 12.5px; }
.comment-reply-link:hover { color: var(--x-accent); }
.comment-content { margin-top: 8px; font-size: 15px; line-height: 1.85; color: var(--x-fg-soft); }
.comment-children { margin-top: 4px; }
.comment-item--reply { border-top: 1px dashed var(--x-line); }

.comment-form {
    margin-top: 28px;
    padding: clamp(18px, 2.6vw, 28px);
    border: 1px solid var(--x-line);
    border-radius: var(--x-radius-lg);
    background: var(--x-card);
}
.comment-form-title { margin: 0 0 16px; font-size: 16.5px; }
.comment-form-hint { margin: 0 0 14px; font-size: 13px; color: var(--x-muted); }
.comment-form-hint a { color: var(--x-accent); }
.comment-field { display: block; margin-bottom: 14px; }
.comment-field > span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--x-fg-soft); }
.comment-field input,
.comment-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--x-line-strong);
    border-radius: 10px;
    background: var(--x-bg-2);
    color: var(--x-fg);
    font: inherit;
    font-size: 14.5px;
    transition: border-color var(--x-dur) var(--x-ease), box-shadow var(--x-dur) var(--x-ease);
}
.comment-field input:focus,
.comment-field textarea:focus {
    outline: none;
    border-color: var(--x-accent);
    box-shadow: 0 0 0 4px var(--x-accent-soft);
}
.comment-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.comment-submit {
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--x-accent);
    color: var(--x-accent-ink);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--x-dur) var(--x-ease), transform var(--x-dur) var(--x-ease);
}
.comment-submit:hover { background: var(--x-accent-hover); transform: translateY(-2px); }
.comment-form-tip { font-size: 12.5px; color: var(--x-muted); }
.comment-flash,
.inquiry-flash {
    margin: 0 0 18px;
    padding: 12px 16px;
    border: 1px solid var(--x-line);
    border-radius: 10px;
    font-size: 14px;
}
.comment-flash--success,
.inquiry-flash--success { border-color: var(--x-accent); background: var(--x-accent-soft); }
.comment-flash--error,
.inquiry-flash--error { border-color: var(--x-warn); }

/* ==========================================================================
   统一层 · 询价表单（对话式收集的兜底形态，无 JS 时才可见）
   ========================================================================== */
.x-chat__fallback .inquiry { padding: 0; border: 0; background: transparent; }
.x-chat__fallback .inquiry-title { margin: 0 0 6px; font-size: 17px; }
.x-chat__fallback .inquiry-desc { margin: 0 0 18px; font-size: 13.5px; color: var(--x-muted); }
.x-chat__fallback .inquiry-row { margin-bottom: 14px; }
.x-chat__fallback .inquiry-row--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.x-chat__fallback .inquiry-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--x-fg-soft); }
.x-chat__fallback .inquiry-label em { color: var(--x-warn); font-style: normal; }
.x-chat__fallback .inquiry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.x-chat__fallback .inquiry-actions .btn-primary {
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--x-accent);
    color: var(--x-accent-ink);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
}
.x-chat__fallback .inquiry-actions .btn-primary:hover { background: var(--x-accent-hover); }
.x-chat__fallback .inquiry-tip { font-size: 12px; color: var(--x-muted); }
.x-chat__fallback .inquiry-errors {
    margin: 0 0 16px;
    padding: 12px 16px 12px 34px;
    border: 1px solid var(--x-warn);
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--x-fg-soft);
}
@media (max-width: 560px) {
    .x-chat__fallback .inquiry-row--split { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   统一层 · 页脚备案信息
   ========================================================================== */
.x-filing { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.x-filing a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--x-muted);
    transition: color var(--x-dur) var(--x-ease);
}
.x-filing a:hover { color: var(--x-accent); }
.x-filing__icon { flex: none; }
.x-filing__shield { fill: currentColor; opacity: 0.85; }
.x-filing__check { fill: var(--x-bg); }

/* ==========================================================================
   组件 · 通用块
   ========================================================================== */

/* 纵向堆叠（替代模板里的 style="display:grid;gap:14px"） */
.x-stack { display: grid; gap: 14px; }

/* 详情页小节：统一"眉标 + 小标题 + 内容"的节奏 */
.x-subsection { margin-top: clamp(28px, 4vw, 44px); }
.x-title--sm { font-size: clamp(1.35rem, 3vw, 2rem); }
.x-subhead { margin: 12px 0 14px; }

/* 带计数的胶囊（标签 / 分类） */
.x-chip__count {
    margin-left: 6px;
    font-family: var(--x-mono);
    font-size: 11.5px;
    color: var(--x-muted);
}
.x-chip--lg { padding: 9px 15px; font-size: 14px; }
.x-chips--dense { gap: 10px; }

/* 关于页的作者卡（左栏）：头像 + 职位 + 事实 + 行动 */
.x-profile { gap: 14px; }
.x-profile__facts { flex-direction: column; align-items: flex-start; gap: 8px; }
.x-profile__cta { justify-content: center; }

/* 关键事实（价格 / 周期）横排：不可点的信息就不要做成按钮的样子 */
.x-fact-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.x-fact-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 10px 16px;
    border: 1px solid var(--x-line);
    border-radius: 999px;
    background: var(--x-bg-2);
    font-size: 13.5px;
    color: var(--x-muted);
}
.x-fact-chip b { font-family: var(--x-mono); font-size: 15px; color: var(--x-fg); }

/* 报价一览：横向对比比六张卡片更适合"多少钱"这类问题 */
.x-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--x-line);
    border-radius: var(--x-radius);
    background: var(--x-card);
}
.x-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.x-table th,
.x-table td { padding: 14px 18px; border-bottom: 1px solid var(--x-line); text-align: left; vertical-align: baseline; }
.x-table tbody tr:last-child th,
.x-table tbody tr:last-child td { border-bottom: 0; }
.x-table thead th {
    font-family: var(--x-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--x-muted);
}
.x-table tbody tr { transition: background var(--x-dur) var(--x-ease); }
.x-table tbody tr:hover { background: var(--x-accent-soft); }
.x-table td.x-table__price,
.x-table td.x-table__time { font-family: var(--x-mono); white-space: nowrap; }
.x-table tbody th { font-weight: 600; }
.x-table a { color: var(--x-fg); }
.x-table a:hover { color: var(--x-accent); }
@media (max-width: 620px) {
    .x-table { font-size: 13.5px; }
    .x-table th,
    .x-table td { padding: 12px 14px; }
}

/* 列表型卡片：首页「交付结果」用的扁平指标（没有边框，只靠字号分层） */
.x-metric--flat { padding: 0; border: 0; background: transparent; }
.x-metric--flat b { font-size: clamp(1.5rem, 3vw, 2rem); }
.x-metrics--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.x-metrics--inset { margin-top: 8px; gap: 0 18px; }

/* 间距工具（只覆盖模板里真实用到的几档，不做成套 spacing scale） */
.x-mt-sm { margin-top: 16px; }
.x-mt { margin-top: 22px; }
.x-mt-lg { margin-top: 34px; }

/* 筛选行：标签 + 一组胶囊；两组筛选叠在页头下，用 mono 小标签区分 */
.x-filter { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-top: 18px; }
.x-filter__label {
    flex: none;
    font-family: var(--x-mono);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    color: var(--x-muted);
}
.x-filter .x-chips { margin: 0; }

/* 卡片右上角的"看详情"提示：只在 hover / 键盘聚焦时出现 */
.x-card--link { position: relative; }
.x-card__more {
    position: absolute;
    top: 20px;
    right: 22px;
    font-family: var(--x-mono);
    font-size: 11.5px;
    color: var(--x-accent);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--x-dur) var(--x-ease), transform var(--x-dur) var(--x-ease);
}
.x-card--link:hover .x-card__more,
.x-card--link:focus-visible .x-card__more { opacity: 1; transform: none; }

/* 空态：一句话 + 一个出口，别让页面停在"没有内容" */
.x-empty {
    padding: clamp(24px, 4vw, 40px);
    border: 1px dashed var(--x-line-strong);
    border-radius: var(--x-radius);
    text-align: center;
    color: var(--x-muted);
    font-size: 14.5px;
}
.x-empty p { margin: 0 0 10px; }
.x-empty p:last-child { margin-bottom: 0; }
.x-empty a { color: var(--x-accent); }

/* 错误页（404 / 403 / 500）：一屏之内给结论 + 出口 */
.x-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 62svh;
    padding-block: clamp(50px, 9vw, 110px);
}
.x-error__title { font-size: clamp(2.2rem, 7vw, 4.6rem); }
.x-error__search { margin-top: 26px; }

/* 页脚的主副文案与吸底条按钮（原来写在模板的 style 里） */
.x-footer__desc { margin: 0 0 14px; max-width: 36ch; color: var(--x-fg-soft); font-size: 14px; line-height: 1.85; }
.x-footer__mail { margin: 0; font-family: var(--x-mono); font-size: 13px; }
.x-mobile-bar__btn { margin: 0; padding: 9px 16px; font-size: 13px; }

/* ==========================================================================
   组件 · FAQ（details 自带三角太糙，换成 +/− 圆标）
   ========================================================================== */
.x-faq details {
    border-radius: var(--x-radius);
    transition: border-color var(--x-dur) var(--x-ease), background var(--x-dur) var(--x-ease);
}
.x-faq details[open] { border-color: var(--x-line-strong); }
.x-faq summary {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    list-style: none;
    cursor: pointer;
}
.x-faq summary::-webkit-details-marker,
.x-faq summary::marker { display: none; content: ""; }
.x-faq summary::before {
    content: "+";
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--x-accent-soft);
    color: var(--x-accent);
    font-family: var(--x-mono);
    font-size: 15px;
    line-height: 1;
    transition: transform var(--x-dur) var(--x-ease);
}
.x-faq details[open] summary::before { content: "−"; transform: rotate(180deg); }
.x-faq details[open] p { animation: x-faq-open 0.26s var(--x-ease); }
@keyframes x-faq-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   组件 · 归档时间轴
   ========================================================================== */
.x-archive { padding-block: clamp(20px, 3vw, 30px); border-top: 1px solid var(--x-line); }
.x-archive:first-of-type { border-top: 0; }
.x-archive__month {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 6px;
    font-size: clamp(1.2rem, 2.6vw, 1.6rem);
    letter-spacing: -0.02em;
}
.x-archive__count {
    font-family: var(--x-mono);
    font-size: 12.5px;
    font-weight: 400;
    color: var(--x-muted);
}
.x-archive__list { margin-top: 6px; }
.x-row--tight { padding: 14px 4px; }
.x-row__title--sm { font-size: 17px; }

/* ==========================================================================
   组件 · 其它服务（服务详情页底部：内部链接不该断在这里）
   ========================================================================== */
.x-others { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 760px) { .x-others { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.x-other {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--x-line);
    border-radius: var(--x-radius);
    background: var(--x-card);
    font-size: 14.5px;
    transition: transform var(--x-dur) var(--x-ease), border-color var(--x-dur) var(--x-ease);
}
.x-other:hover { transform: translateY(-2px); border-color: var(--x-accent); }
.x-other span:first-child { font-size: 17px; }
.x-other b { margin-left: auto; font-family: var(--x-mono); font-size: 13px; color: var(--x-muted); font-weight: 400; }

/* ==========================================================================
   组件 · 搜索页（同一颗胶囊，只是放大一档）
   ========================================================================== */
/* 大号搜索框：左右内边距不对称——左侧留给放大镜与文字，右侧只留 8px 给按钮，
   让按钮像"嵌在胶囊里"而不是浮在中间 */
.x-search--lg { width: 100%; max-width: 620px; height: 52px; padding: 0 8px 0 18px; gap: 10px; }
.x-search--lg:focus-within {
    width: 100%;
    max-width: 660px;
    border-color: var(--x-accent);
    box-shadow: 0 0 0 4px var(--x-accent-soft), var(--x-shadow);
}
.x-search--lg .x-search__input { font-size: 16px; }
.x-search--lg .x-search__icon svg { width: 20px; height: 20px; }
.x-search--lg .x-search__clear { width: 24px; height: 24px; font-size: 16px; }

/* ==========================================================================
   可达性 · 统一焦点环
   键盘用户必须看得见焦点在哪；鼠标点击不显示（:focus-visible 只认键盘）。
   ========================================================================== */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--x-accent);
    outline-offset: 2px;
}
