/* ==========================================================================
   SiteForge front-end theme — industrial B2B
   无构建依赖 / 全部逻辑属性 / 天然支持 RTL
   分层：tokens → reset → layout → components → utilities → responsive
   ========================================================================== */

/* ---------- 1. tokens ---------- */
:root {
    /* 色板：钢、铁、纸。强调色只给 CTA 与关键数字，不做装饰 */
    --ink: #0a0e10;
    --ink-2: #161d20;
    --ink-soft: #3f4a4e;
    --steel: #6b7a80;
    --steel-2: #8d999e;
    --line: #dfe2e1;
    --line-strong: #c3c9c8;
    --paper: #ffffff;
    --sheet: #f3f4f3;
    --sheet-2: #e9ebe9;

    /* 品牌色由 <html style="--brand"> 注入，缺省用熔铁橙 */
    --brand: #e2522b;
    --brand-ink: #ffffff;
    --brand-deep: #b83d1c;
    --brand-tint: #fdeee9;
    --brand-edge: #f2c0b2;

    /* 字阶：8 级，标题与正文拉开对比 */
    --f-xxs: 0.6875rem;
    --f-xs: 0.75rem;
    --f-s: 0.8125rem;
    --f-m: 0.9375rem;
    --f-0: 1rem;
    --f-1: 1.1875rem;
    --f-2: 1.5rem;
    --f-3: 2rem;
    --f-4: clamp(2.125rem, 4.2vw, 3.375rem);

    /* 间距 scale */
    --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
    --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

    --radius: 2px;
    --radius-lg: 4px;
    --radius-pill: 999px;

    --container: 1240px;
    --container-wide: 1480px;
    --measure: min(68ch, 100%);

    --font: "Inter", "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI",
            Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-ar: "Cairo", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;

    --shadow-1: 0 1px 2px rgba(10, 14, 16, .06);
    --shadow-2: 0 12px 32px -12px rgba(10, 14, 16, .24);
    --header-h: 72px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 品牌色派生（不支持 color-mix 时用上面的硬编码兜底） */
@supports (color: color-mix(in srgb, red, blue)) {
    :root {
        --brand-deep: color-mix(in srgb, var(--brand) 82%, #000);
        --brand-tint: color-mix(in srgb, var(--brand) 10%, #fff);
        --brand-edge: color-mix(in srgb, var(--brand) 32%, #fff);
    }
}

/* ---------- 2. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: clip;
    scroll-padding-block-start: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--f-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.locale-ar { font-family: var(--font-ar); line-height: 1.85; }

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--sheet); }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.14; margin: 0; letter-spacing: -0.018em; font-weight: 640; }

p { margin: 0; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--brand); color: var(--brand-ink); }

.skip-link {
    position: absolute;
    inset-inline-start: -9999px;
    inset-block-start: 8px;
    background: var(--brand);
    color: var(--brand-ink);
    padding: 10px 18px;
    z-index: 200;
    font-size: var(--f-s);
    font-weight: 600;
}
.skip-link:focus { inset-inline-start: 8px; }

/* ---------- 3. layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--s-6);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 880px; }
.sec__full { width: 100%; }

.sec { padding-block: var(--s-9); }
.sec--surface { background: var(--paper); }
.sec--muted { background: var(--sheet); }
.sec--dark {
    background-color: var(--ink);
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, .022) 0 1px,
        transparent 1px 7px
    );
    color: #eef1f0;
}
.sec--dark .block__title, .sec--dark .cta__title, .sec--dark h2, .sec--dark h3 { color: #fff; }
.sec--pad-none { padding-block: 0; }
.sec--pad-sm { padding-block: var(--s-6); }
.sec--pad-md { padding-block: var(--s-7); }
.sec--pad-lg { padding-block: var(--s-8); }
.sec--pad-xl { padding-block: var(--s-9); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--f-xs);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-block-end: var(--s-4);
}
.eyebrow::before {
    content: "";
    width: 24px;
    border-block-start: 2px solid currentColor;
}
.sec--dark .eyebrow { color: #ff8a63; }

.lede { font-size: var(--f-1); color: var(--ink-soft); line-height: 1.6; max-width: var(--measure); }
.sec--dark .lede { color: #b9c3c1; }

/* ---------- 4. topbar ---------- */
.topbar {
    background: var(--ink);
    color: #aab4b3;
    font-size: var(--f-xs);
    letter-spacing: .02em;
}
.topbar__inner {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    min-height: 38px;
    flex-wrap: wrap;
}
.topbar__note { margin-inline-end: auto; color: #7f8b8a; }
.topbar__list { display: flex; align-items: center; gap: var(--s-3) var(--s-4); flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: #cfd6d5; }
.topbar a:hover { color: #fff; }
.topbar__sep { width: 1px; height: 12px; background: #2c3537; flex: none; }
.topbar svg { width: 13px; height: 13px; flex: none; }

/* ---------- 5. header ---------- */
.site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(10px);
    border-block-end: 1px solid var(--line);
    transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-1); border-color: transparent; }

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--s-7);
    min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { max-height: 40px; width: auto; background: none; }
/* 上传的 Logo 与品牌名并排：限制宽高，避免长图把导航挤走 */
.brand__logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.brand__text { display: grid; }
.brand__name { font-size: 1.0625rem; font-weight: 680; letter-spacing: -.02em; white-space: nowrap; }
/* 移动端只留 Logo + 首行品牌名，副标题让位给汉堡菜单 */
@media (max-width: 640px) {
    .brand__logo { max-width: 120px; }
    .brand__suffix { display: none; }
}
.brand__mark {
    width: 36px; height: 36px;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    display: grid; place-items: center;
    font-size: var(--f-m);
    font-weight: 700;
    letter-spacing: -.02em;
}
.brand__text { display: grid; }
.brand__name { font-size: 1.0625rem; font-weight: 680; letter-spacing: -.02em; }
.brand__suffix {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--steel);
    line-height: 1.2;
}

/* 主导航 */
.nav {
    display: flex;
    align-items: center;
    gap: var(--s-6);
    margin-inline-start: auto;
    font-size: var(--f-m);
    font-weight: 520;
}
.nav > a, .nav__trigger {
    position: relative;
    padding-block: 6px;
    color: var(--ink-soft);
    background: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color .15s var(--ease);
}
.nav > a::after, .nav__trigger::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: -2px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s var(--ease);
}
[dir="rtl"] .nav > a::after, [dir="rtl"] .nav__trigger::after { transform-origin: right; }
.nav > a:hover, .nav__trigger:hover, .nav > a.is-active { color: var(--ink); }
.nav > a:hover::after, .nav > a.is-active::after, .nav__item:hover .nav__trigger::after { transform: scaleX(1); }

.nav__item { position: relative; }
.nav__item > .nav__sub { display: none; }
.nav__caret { width: 9px; height: 9px; opacity: .5; transition: transform .2s var(--ease); }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

.nav__sub {
    position: absolute;
    inset-block-start: calc(100% + 14px);
    inset-inline-start: -18px;
    min-width: 232px;
    padding: var(--s-3);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    display: grid;
    gap: 2px;
}
.nav__sub a {
    padding: 9px 12px;
    font-size: var(--f-m);
    color: var(--ink-soft);
    border-radius: var(--radius);
}
.nav__sub a:hover { background: var(--sheet); color: var(--ink); }
@media (hover: hover) {
    .nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { display: grid; }
}

/* 语言切换 */
.lang {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--f-s);
    color: var(--steel);
    flex: none;
}
.lang a {
    padding: 4px 7px;
    letter-spacing: .06em;
    font-weight: 600;
    border-radius: var(--radius);
}
.lang a:hover { background: var(--sheet); color: var(--ink); }
.lang a.is-active { color: var(--brand); background: var(--brand-tint); }

.lang__select {
    appearance: none;
    border: 1px solid var(--line);
    background-color: var(--paper);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 8l3-3.5' fill='none' stroke='%236b7a80' stroke-width='1.4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding: 7px 26px 7px 10px;
    font-size: var(--f-s);
    font-weight: 600;
    color: var(--ink);
    border-radius: var(--radius);
    cursor: pointer;
}
[dir="rtl"] .lang__select { background-position: left 8px center; padding: 7px 10px 7px 26px; }

.header__cta { flex: none; }

/* 汉堡按钮 */
.burger {
    display: none;
    width: 42px; height: 42px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    flex: none;
}
.burger span {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--ink);
    position: relative;
    transition: background .2s var(--ease);
}
.burger span::before, .burger span::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    width: 18px; height: 1.5px;
    background: var(--ink);
    transition: transform .2s var(--ease);
}
.burger span::before { inset-block-start: -6px; }
.burger span::after { inset-block-start: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. mobile drawer ---------- */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(400px, 86vw);
    visibility: hidden;
    pointer-events: none;
}
[dir="rtl"] .drawer { grid-template-columns: min(400px, 86vw) minmax(0, 1fr); }

.drawer__scrim {
    background: rgba(10, 14, 16, .48);
    opacity: 0;
    transition: opacity .24s var(--ease);
}
.drawer__panel {
    background: var(--paper);
    padding: var(--s-5) var(--s-5) var(--s-7);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform .28s var(--ease);
    box-shadow: -12px 0 40px rgba(10, 14, 16, .18);
}
[dir="rtl"] .drawer__panel { transform: translateX(-100%); box-shadow: 12px 0 40px rgba(10, 14, 16, .18); }

.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block-end: var(--s-4);
    border-block-end: 1px solid var(--line);
    margin-block-end: var(--s-4);
}
.drawer__title { font-size: var(--f-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.drawer__close {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    background: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}
.drawer__list { display: grid; gap: 0; }
.drawer__list > a, .drawer__group > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 4px;
    font-size: 1.0625rem;
    font-weight: 560;
    color: var(--ink);
    background: none;
    border: 0;
    border-block-end: 1px solid var(--line);
    text-align: start;
    cursor: pointer;
}
.drawer__list > a.is-active { color: var(--brand); }
.drawer__group > button svg { width: 10px; height: 10px; opacity: .45; transition: transform .2s var(--ease); }
.drawer__group[data-open="true"] > button svg { transform: rotate(180deg); }
.drawer__sub { display: grid; gap: 0; padding: 0 0 8px; }
.drawer__sub[hidden] { display: none; }
.drawer__sub a { padding: 10px 4px 10px 18px; font-size: var(--f-m); color: var(--ink-soft); border-block-end: 1px dashed var(--line); }
[dir="rtl"] .drawer__sub a { padding: 10px 18px 10px 4px; }

.drawer__foot { margin-block-start: var(--s-5); display: grid; gap: var(--s-4); }
.drawer__lang { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer__lang a {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: var(--f-s);
    font-weight: 600;
    color: var(--ink-soft);
}
.drawer__lang a.is-active { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.drawer__contact { font-size: var(--f-s); color: var(--steel); display: grid; gap: 5px; }
.drawer__contact a { color: var(--ink-soft); }

body.is-locked { overflow: hidden; }

/* ---------- 7. buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 12px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--ink);
    font-size: var(--f-m);
    font-weight: 600;
    letter-spacing: .005em;
    cursor: pointer;
    transition: background .18s var(--ease), border-color .18s var(--ease),
                color .18s var(--ease), transform .18s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--ink); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: currentColor; }
.btn--lg { padding: 15px 30px; font-size: var(--f-0); }
.btn--sm { padding: 8px 14px; font-size: var(--f-s); }
.btn--block { width: 100%; }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ---------- 8. hero ---------- */
.hero {
    position: relative;
    min-height: min(76vh, 660px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
    /* 横向手势交给轮播，纵向仍由页面滚动 */
    touch-action: pan-y;
}
.hero__slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity .8s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    background: var(--ink-2);
}
.hero__slide:only-child { opacity: 1; }

.hero__media--placeholder {
    background:
        radial-gradient(120% 90% at 18% 20%, rgba(226, 82, 43, .20), transparent 58%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 12px),
        linear-gradient(135deg, #1b2427 0%, #0a0e10 72%);
}
/* 遮罩：从文字侧渐深，保证任何照片上的可读性 */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(6, 9, 10, .88) 0%, rgba(6, 9, 10, .62) 42%, rgba(6, 9, 10, .18) 100%);
}
[dir="rtl"] .hero__overlay {
    background: linear-gradient(270deg, rgba(6, 9, 10, .88) 0%, rgba(6, 9, 10, .62) 42%, rgba(6, 9, 10, .18) 100%);
}
.hero--center .hero__overlay {
    background: linear-gradient(180deg, rgba(6, 9, 10, .35) 0%, rgba(6, 9, 10, .78) 100%);
}
/* overlay 数值档位：模板传 0.2~0.8，映射成三档明暗，避免每张图都要手调 */
.hero--tone-soft .hero__overlay { opacity: .62; }
.hero--tone-strong .hero__overlay {
    background: linear-gradient(90deg, rgba(6, 9, 10, .96) 0%, rgba(6, 9, 10, .84) 55%, rgba(6, 9, 10, .52) 100%);
}
[dir="rtl"] .hero--tone-strong .hero__overlay {
    background: linear-gradient(270deg, rgba(6, 9, 10, .96) 0%, rgba(6, 9, 10, .84) 55%, rgba(6, 9, 10, .52) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-block: var(--s-9) var(--s-8);
    width: 100%;
}
.hero--center .hero__content { text-align: center; }
.hero--end .hero__content { text-align: end; }

.hero__title {
    font-size: var(--f-4);
    font-weight: 660;
    letter-spacing: -.028em;
    line-height: 1.06;
    max-width: 19ch;
    margin-block-end: var(--s-4);
    text-wrap: balance;
    text-shadow: 0 1px 24px rgba(0, 0, 0, .25);
}
.hero--center .hero__title, .hero--center .hero__subtitle, .hero--center .lede { margin-inline: auto; }
.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, .84);
    max-width: min(54ch, 100%);
    margin-block: 0 var(--s-6);
}
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .42); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
/* 兜底：hero 上任何未指定样式的按钮都用白字，避免深底深字 */
.hero .btn { color: #fff; border-color: rgba(255, 255, 255, .42); }
.hero .btn--primary { color: var(--brand-ink); border-color: var(--brand); }
.hero__content .btn-row { margin-block-start: var(--s-2); }

/* hero 底部参数条 */
.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-6) var(--s-8);
    margin-block-start: var(--s-8);
    padding-block-start: var(--s-5);
    border-block-start: 1px solid rgba(255, 255, 255, .18);
    max-width: 780px;
}
.hero--center .hero__stats { justify-content: center; margin-inline: auto; }
.stat__num {
    display: block;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 660;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.stat__num em { font-style: normal; color: var(--brand); }
.stat__label {
    display: block;
    font-size: var(--f-xs);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
    margin-block-start: 4px;
}

/* 多屏文案：同一格里叠着，高度取最高一屏，切屏时不跳。
   刻意不用 position:absolute —— 会脱离文档流，hero 高度塌成 min-height、长文案被裁。 */
.hero__panes { display: grid; }

.hero__pane {
    grid-area: 1 / 1;
    align-self: center;
    min-width: 0;
    opacity: 0;
    /* 淡出结束后再隐藏，避免过渡被打断；visibility 顺带把非活动屏的按钮移出 Tab 焦点 */
    visibility: hidden;
    transition: opacity .8s var(--ease), visibility 0s .8s;
}
.hero__pane.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .8s var(--ease), visibility 0s 0s;
}
/* 兜底：只有一屏时永远可见（与 .hero__slide:only-child 对称） */
.hero__pane:only-child { opacity: 1; visibility: visible; }

/* 轮播指示点 */
.hero__dots {
    position: absolute;
    inset-block-end: var(--s-5);
    inset-inline-end: var(--s-6);
    z-index: 3;
    display: flex;
    gap: 8px;
}
.hero__dot {
    width: 26px; height: 3px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, .34);
    cursor: pointer;
    transition: background .2s var(--ease), width .2s var(--ease);
}
.hero__dot.is-active { background: var(--brand); width: 40px; }

/* ---------- 9. blocks ---------- */
.block { padding-block: 0; }
.block__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--s-5);
    margin-block-end: var(--s-6);
    flex-wrap: wrap;
}
.block__title { font-size: var(--f-3); letter-spacing: -.022em; }
.block__desc { color: var(--ink-soft); font-size: var(--f-m); margin-block-start: var(--s-2); max-width: min(62ch, 100%); }
.block__link {
    font-size: var(--f-m);
    font-weight: 600;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.block__link:hover { gap: 10px; }
.block + .block { margin-block-start: var(--s-8); }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--tight { gap: var(--s-4); }

/* ---------- 10. cards ---------- */
.card {
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper);
    transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card__link { display: flex; flex-direction: column; height: 100%; }
.card__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--sheet);
    transition: transform .5s var(--ease);
}
.card:hover .card__media { transform: scale(1.035); }
/* 占位图：没有实拍图时也要像「有意留白」，而不是破图 */
.card__media--placeholder {
    position: relative;
    background:
        repeating-linear-gradient(135deg, var(--sheet) 0 2px, var(--sheet-2) 2px 11px);
}
.card__media--placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a80' stroke-width='1.2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.6'/%3E%3Cpath d='m4.5 17 5-5 3.5 3.5L16 12l4 5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 38px 38px;
    opacity: .4;
}
.card__flag {
    position: absolute;
    inset-block-start: var(--s-3);
    inset-inline-start: var(--s-3);
    z-index: 2;
    background: rgba(10, 14, 16, .82);
    color: #fff;
    font-size: var(--f-xxs);
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: var(--radius);
}
.card__body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: var(--f-1); font-weight: 620; letter-spacing: -.012em; }
.card__text { color: var(--steel); font-size: var(--f-m); line-height: 1.55; }
.card__price {
    margin-block-start: auto;
    padding-block-start: var(--s-3);
    font-size: var(--f-s);
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}
.card__price strong { color: var(--ink); font-weight: 650; }
.card__meta { display: flex; gap: var(--s-3); font-size: var(--f-xs); color: var(--steel); font-variant-numeric: tabular-nums; }
.card__arrow {
    margin-block-start: var(--s-3);
    font-size: var(--f-s);
    font-weight: 600;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s var(--ease);
}
.card:hover .card__arrow { gap: 10px; }

/* ---------- 11. spec table ---------- */
.specs__wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.specs table { width: 100%; border-collapse: collapse; font-size: var(--f-m); min-width: 430px; }
.specs th, .specs td {
    padding: 13px var(--s-4);
    text-align: start;
    border-block-end: 1px solid var(--line);
    vertical-align: top;
}
.specs th { font-weight: 600; color: var(--ink-soft); background: var(--sheet); width: 40%; white-space: nowrap; }
.specs td { font-variant-numeric: tabular-nums; color: var(--ink); }
.specs tr:last-child th, .specs tr:last-child td { border-block-end: 0; }
.specs tbody tr:hover th, .specs tbody tr:hover td { background: #fafbfa; }
.specs__note { font-size: var(--f-xs); color: var(--steel); margin-block-start: var(--s-3); }
.specs__title { font-size: var(--f-1); font-weight: 620; margin-block-end: var(--s-4); }

/* 移动端横向滚动时首列不丢参数名 */
@media (max-width: 760px) {
    .specs th { position: sticky; inset-inline-start: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
}

/* ---------- 12. stat band ---------- */
.statband { display: grid; gap: var(--s-6); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.statband--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.statband .stat { border-inline-start: 1px solid var(--line); padding-inline-start: var(--s-5); }
.sec--dark .statband .stat { border-color: rgba(255, 255, 255, .16); }
.statband .stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
/* 颜色按宿主环境显式声明，避免浅色规则泄漏进 hero */
.statband .stat__num { color: var(--ink); }
.statband .stat__label { color: var(--steel); }
.sec--dark .statband .stat__num { color: #fff; }
.sec--dark .statband .stat__label { color: rgba(255, 255, 255, .62); }

/* ---------- 13. feature split ---------- */
.feature {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: var(--s-8);
}
.feature--media-start .feature__media { order: -1; }
/* 没有配图时不塌成一列半宽的空格子 */
.feature--no-media { grid-template-columns: 1fr; }
.feature--no-media .feature__body { max-width: 66ch; }
.feature__media { position: relative; }
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.feature__media--tall img { aspect-ratio: 3 / 4; }
.feature__body { max-width: min(56ch, 100%); }
.feature__body > .eyebrow { margin-block-end: var(--s-3); }
.feature__title { font-size: var(--f-3); margin-block-end: var(--s-4); letter-spacing: -.022em; }
.feature__text { color: var(--ink-soft); font-size: var(--f-0); line-height: 1.7; }
.feature__text p + p { margin-block-start: var(--s-3); }
.feature__list { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.feature__list li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: var(--s-3);
    font-size: var(--f-m);
    color: var(--ink-soft);
    align-items: start;
}
.feature__list li::before {
    content: "";
    width: 16px; height: 16px;
    margin-block-start: 3px;
    border-radius: 50%;
    background: var(--brand-tint);
    border: 1.5px solid var(--brand);
}
.feature__actions { margin-block-start: var(--s-6); }
/* 图片角上的浮动数据块 */
.feature__badge {
    position: absolute;
    inset-block-end: -18px;
    inset-inline-end: -18px;
    background: var(--ink);
    color: #fff;
    padding: var(--s-4) var(--s-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    min-width: 148px;
}
.feature__badge strong {
    display: block;
    font-size: var(--f-2);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.feature__badge span { font-size: var(--f-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--steel-2); }

/* ---------- 14. cert grid ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s-4); }
.cert {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--s-5);
    background: var(--paper);
    display: grid;
    gap: 6px;
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.cert:hover { border-color: var(--ink); transform: translateY(-2px); }
.cert__code {
    font-family: var(--font-mono);
    font-size: var(--f-xs);
    letter-spacing: .08em;
    color: var(--brand);
    font-weight: 600;
    text-transform: uppercase;
}
.cert__name { font-size: var(--f-0); font-weight: 620; letter-spacing: -.01em; }
.cert__note { font-size: var(--f-s); color: var(--steel); line-height: 1.5; }
.sec--dark .cert { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); }
.sec--dark .cert:hover { border-color: rgba(255, 255, 255, .4); }
.sec--dark .cert__code { color: #ff8a63; }
.sec--dark .cert__note { color: #9aa6a4; }

/* ---------- 15. prose ---------- */
.prose { max-width: var(--measure); font-size: var(--f-0); }
.prose--narrow { max-width: 58ch; }
.prose--wide { max-width: 86ch; }
.prose > *:first-child { margin-block-start: 0; }
.prose h2 { font-size: var(--f-3); margin-block: var(--s-7) var(--s-3); letter-spacing: -.022em; }
.prose h3 { font-size: var(--f-2); margin-block: var(--s-6) var(--s-2); }
.prose p { margin-block: 0 var(--s-4); color: var(--ink-soft); }
.prose ul, .prose ol { margin-block: 0 var(--s-4); padding-inline-start: 1.2em; color: var(--ink-soft); }
.prose li { margin-block-end: 6px; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand-edge); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose img { border-radius: var(--radius-lg); margin-block: var(--s-5); }
.prose blockquote {
    margin: var(--s-6) 0;
    padding-inline-start: var(--s-5);
    border-inline-start: 3px solid var(--brand);
    font-size: var(--f-1);
    color: var(--ink);
}
.prose table { width: 100%; border-collapse: collapse; margin-block: var(--s-5); font-size: var(--f-m); }
.prose th, .prose td { border-block-end: 1px solid var(--line); padding: 11px 14px; text-align: start; }
.prose th { background: var(--sheet); font-weight: 620; font-size: var(--f-s); letter-spacing: .02em; }
.prose hr { border: 0; border-block-start: 1px solid var(--line); margin-block: var(--s-6); }
.sec--dark .prose p, .sec--dark .prose li { color: #b9c3c1; }

/* ---------- 16. faq ---------- */
.faq { border-block-start: 1px solid var(--line); }
.faq__item { border-block-end: 1px solid var(--line); }
.faq__q {
    cursor: pointer;
    padding-block: var(--s-5);
    font-size: var(--f-1);
    font-weight: 600;
    letter-spacing: -.01em;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: var(--s-4);
    align-items: center;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: "+";
    color: var(--brand);
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1;
    flex: none;
}
.faq__item[open] .faq__q::after { content: "–"; }
.faq__a { padding-block-end: var(--s-5); color: var(--ink-soft); max-width: var(--measure); }
.sec--dark .faq { border-color: rgba(255, 255, 255, .16); }
.sec--dark .faq__item { border-color: rgba(255, 255, 255, .16); }
.sec--dark .faq__a { color: #b9c3c1; }

/* ---------- 17. cta ---------- */
.cta { text-align: center; padding-block: var(--s-5); }
.cta__title { font-size: var(--f-3); margin-block-end: var(--s-5); letter-spacing: -.022em; text-wrap: balance; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.cta__note { margin-block-start: var(--s-4); font-size: var(--f-s); color: var(--steel); }
.sec--dark .cta__note { color: #93a09e; }

/* ---------- 18. footer ---------- */
.site-footer {
    background: var(--ink);
    color: #9fadab;
    padding-block: var(--s-8) var(--s-5);
    font-size: var(--f-m);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: var(--s-7) var(--s-6);
    padding-block-end: var(--s-7);
    border-block-end: 1px solid rgba(255, 255, 255, .12);
}
.footer__brand { font-size: 1.0625rem; font-weight: 660; color: #fff; margin-block-end: var(--s-3); letter-spacing: -.01em; }
.footer__desc { color: #93a09e; font-size: var(--f-s); line-height: 1.65; max-width: 34ch; }
.footer__col-title {
    font-size: var(--f-xxs);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #6f7d7b;
    margin-block-end: var(--s-4);
    font-weight: 600;
}
.footer__links { display: grid; gap: 9px; }
.footer__links a { color: #c3cdcb; }
.footer__links a:hover { color: #fff; }
.footer__muted { color: #93a09e; font-size: var(--f-s); margin-block-end: var(--s-3); line-height: 1.6; }
.footer__contact { display: grid; gap: 9px; }
.footer__contact a { color: #dbe3e1; display: inline-flex; align-items: center; gap: 8px; }
.footer__contact a:hover { color: #fff; }
.footer__contact svg { width: 14px; height: 14px; flex: none; opacity: .7; }

.footer__social { display: flex; gap: var(--s-2); margin-block-start: var(--s-5); }
.social {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    transition: background .18s var(--ease), border-color .18s var(--ease);
}
.social:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.social svg { width: 15px; height: 15px; }

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    padding-block-start: var(--s-4);
    font-size: var(--f-xs);
    color: #6f7d7b;
}
.footer__legal-links { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.footer__legal-links a:hover { color: #c3cdcb; }

/* ---------- 19. floating whatsapp ---------- */
.wa-float {
    position: fixed;
    inset-block-end: var(--s-5);
    inset-inline-end: var(--s-5);
    z-index: 70;
    background: #25d366;
    color: #06301a;
    font-weight: 650;
    font-size: var(--f-s);
    padding: 13px 19px;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 28px rgba(6, 48, 26, .28);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(6, 48, 26, .34); }
.wa-float svg { width: 18px; height: 18px; flex: none; }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-block-end: var(--s-6);
    padding-block-end: var(--s-5);
    border-block-end: 1px solid var(--line);
}
.filters__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--paper);
    font-size: var(--f-s);
    color: var(--ink-soft);
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.filters__chip:hover { border-color: var(--line-strong); color: var(--ink); }
.filters__chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters__count { font-size: var(--f-xxs); color: var(--steel); font-variant-numeric: tabular-nums; }
.filters__chip.is-active .filters__count { color: rgba(255, 255, 255, .6); }

/* ---------- 20. product detail ---------- */
.crumbs {
    border-block-end: 1px solid var(--line);
    background: var(--sheet);
    font-size: var(--f-xs);
    color: var(--steel);
}
.crumbs__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); padding-block: var(--s-3); }
.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs__sep { color: var(--line-strong); }
.crumbs [aria-current] { color: var(--ink); font-weight: 560; }

.pdp { padding-block: var(--s-7) var(--s-8); }
.pdp__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--s-8);
    align-items: start;
}

.pdp__gallery { position: sticky; top: calc(var(--header-h, 76px) + var(--s-4)); }
.pdp__stage {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--sheet);
    border: 1px solid var(--line);
    overflow: hidden;
}
.pdp__stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pdp__stage--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    height: 100%;
    padding: var(--s-5);
    text-align: center;
    font-size: var(--f-xs);
    color: var(--steel-2);
    background: repeating-linear-gradient(45deg, var(--sheet) 0 2px, var(--sheet-2) 2px 12px);
}
.pdp__stage--empty svg { width: 48px; height: 48px; opacity: .55; }

.pdp__thumbs {
    display: flex;
    gap: var(--s-2);
    margin-block-start: var(--s-3);
    overflow-x: auto;
    padding-block-end: 2px;
}
.pdp__thumb {
    flex: 0 0 88px;
    padding: 0;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    background: none;
    cursor: pointer;
    overflow: hidden;
}
.pdp__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb:hover { border-color: var(--line-strong); }
.pdp__thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

.pdp__info { min-width: 0; }
.pdp__eyebrow {
    font-size: var(--f-xs);
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 620;
    color: var(--brand);
    margin-block-end: var(--s-3);
}
.pdp__title {
    font-size: var(--f-3);
    line-height: 1.12;
    letter-spacing: -.028em;
    margin-block-end: var(--s-4);
    text-wrap: balance;
}
.pdp__summary {
    font-size: var(--f-1);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: min(46ch, 100%);
    margin-block-end: var(--s-5);
}

.pdp__price {
    border-inline-start: 3px solid var(--brand);
    padding-inline-start: var(--s-4);
    margin-block-end: var(--s-5);
}
.pdp__price span {
    display: block;
    font-size: var(--f-xs);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--steel);
}
.pdp__price strong {
    display: block;
    font-size: var(--f-2);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    margin-block: 2px;
}
.pdp__price small { font-size: var(--f-xs); color: var(--steel); }

.specs--compact { margin-block: var(--s-5); }
.specs--compact th { width: 42%; }
.specs.specs--compact table { min-width: 0; }

.pdp__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-block: var(--s-5); }
.pdp__trust {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-block-start: var(--s-4);
    border-block-start: 1px solid var(--line);
    display: grid;
    gap: var(--s-2);
}
.pdp__trust li { position: relative; padding-inline-start: var(--s-5); font-size: var(--f-s); color: var(--ink-soft); }
.pdp__trust li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: .42em;
    width: 10px;
    height: 10px;
    border: 1.5px solid var(--brand);
    border-radius: 50%;
}

.pdp__section { max-width: 900px; }
.pdp__section-title { font-size: var(--f-2); letter-spacing: -.02em; margin-block-end: var(--s-4); }

@media (max-width: 960px) {
    .pdp { padding-block: var(--s-6) var(--s-7); }
    .pdp__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
    .pdp__gallery { position: static; }
    .pdp__title { font-size: var(--f-2); }
    .pdp__summary { font-size: var(--f-0); }
    .pdp__thumb { flex-basis: 72px; }
}

/* ---------- 21. blog / article ---------- */
.card--article .card__media--wide { aspect-ratio: 16 / 9; }
.card--article .card__meta { align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--brand-tint);
    color: var(--brand-deep);
    font-size: var(--f-xxs);
    font-weight: 640;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
a.tag:hover { background: var(--brand); color: var(--brand-ink); }

/* 分页：上一页 / 页码 / 下一页 */
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--s-3);
    margin-block-start: var(--s-7);
    padding-block-start: var(--s-5);
    border-block-start: 1px solid var(--line);
}
.pager__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: var(--f-s);
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--paper);
}
.pager__link:hover { border-color: var(--ink); color: var(--ink); }
.pager__pages { display: flex; gap: 4px; }
.pager__num {
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: var(--f-s);
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}
.pager__num:hover { border-color: var(--line); color: var(--ink); }
.pager__num.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.article { padding-block: var(--s-7) var(--s-8); }
.article__head { max-width: 760px; }
.article__title {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    line-height: 1.14;
    letter-spacing: -.03em;
    margin-block: var(--s-3) var(--s-4);
    text-wrap: balance;
}
.article__lede { font-size: var(--f-1); line-height: 1.6; color: var(--ink-soft); max-width: 70ch; }
.article__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-3);
    margin-block-start: var(--s-4);
    font-size: var(--f-xs);
    color: var(--steel);
    font-variant-numeric: tabular-nums;
}
.article__cover { margin-block: var(--s-6); }
.article__cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
}
/* 详情页正文比通用 prose 宽一点：长篇阅读行宽 68ch 左右最舒服 */
.article__body { margin-block-start: var(--s-6); max-width: 68ch; }
.article__body > p:first-child { font-size: var(--f-1); line-height: 1.7; color: var(--ink-soft); }

.article__share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-block: var(--s-7);
    padding-block: var(--s-5);
    border-block: 1px solid var(--line);
}
.article__share-label {
    font-size: var(--f-xxs);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--steel);
    margin-inline-end: var(--s-2);
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--paper);
    color: var(--ink-soft);
    font-size: var(--f-s);
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s var(--ease), color .15s var(--ease);
}
.share-btn:hover { border-color: var(--ink); color: var(--ink); }
.share-btn svg { width: 14px; height: 14px; flex: none; }

.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.article__nav-item {
    display: grid;
    gap: 4px;
    padding: var(--s-4) var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    transition: border-color .15s var(--ease);
}
.article__nav-item span {
    font-size: var(--f-xxs);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--steel);
}
.article__nav-item strong { font-size: var(--f-m); font-weight: 600; letter-spacing: -.01em; }
.article__nav-item:hover { border-color: var(--ink); }
.article__nav-item--end { text-align: end; justify-items: end; }

@media (max-width: 760px) {
    .article { padding-block: var(--s-6) var(--s-7); }
    .article__nav { grid-template-columns: 1fr; }
    .article__share { gap: 6px; }
    .share-btn { padding: 7px 11px; }
    .pager { justify-content: center; }
}

/* ---------- 22. utilities ---------- */
.empty { color: var(--steel); font-size: var(--f-m); }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--s-6); }

/* 后台「点条目预览」进入草稿时的提示条：只有登录的站长看得到，公开页面不会渲染 */
.preview-note {
    margin-block: var(--s-4);
    padding: 10px 14px;
    border: 1px dashed #d97706;
    border-radius: 6px;
    background: #fffbeb;
    color: #92400e;
    font-size: .875rem;
    line-height: 1.6;
}

/* ---------- 22. responsive ---------- */
@media (max-width: 1080px) {
    .topbar__note { display: none; }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .feature { gap: var(--s-6); }
    .statband { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
    .statband .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}

/* 移动端：主导航收进抽屉，header 只留 logo + 汉堡 */
@media (max-width: 960px) {
    .nav, .header__cta, .lang { display: none; }
    .burger { display: inline-flex; }
    .header-inner { gap: var(--s-4); justify-content: space-between; min-height: 64px; }
    .hero__stats { gap: var(--s-5) var(--s-6); margin-block-start: var(--s-7); }
}

@media (max-width: 760px) {
    :root { --header-h: 64px; }
    .container { padding-inline: var(--s-4); }
    /* 提高特异性，避免基础 padding 覆盖 --pad-none 等修饰符 */
    .sec:not(.sec--pad-none) { padding-block: var(--s-7); }
    .sec.sec--pad-xl, .sec.sec--pad-lg { padding-block: var(--s-7); }
    .sec.sec--pad-md { padding-block: var(--s-6); }
    .sec.sec--pad-sm { padding-block: var(--s-5); }
    .sec.sec--pad-none { padding-block: 0; }
    .sec--mpad-md { padding-block: var(--s-6); }
    .sec--mpad-sm { padding-block: var(--s-5); }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .grid { gap: var(--s-4); }
    .hero { min-height: 76vh; }
    .hero__content { padding-block: var(--s-8) var(--s-7); }
    .hero__title { max-width: 100%; }
    .hero__dots { inset-block-end: var(--s-3); inset-inline-end: auto; inset-inline-start: var(--s-4); }
    .feature { grid-template-columns: 1fr; gap: var(--s-5); }
    .feature--media-start .feature__media { order: 0; }
    .feature__badge { position: static; display: inline-block; margin-block-start: var(--s-4); box-shadow: none; }
    .footer-inner { grid-template-columns: 1fr; gap: var(--s-6); }
    .block__head { align-items: start; }
    .block__title, .feature__title, .cta__title { font-size: var(--f-2); }
    .card__body { padding: var(--s-3) var(--s-4) var(--s-4); }
    .statband, .statband--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 1.875rem; }
    .hero__stats { gap: var(--s-4) var(--s-5); }
    .stat__num { font-size: 1.375rem; }
    .statband { grid-template-columns: 1fr; }
    .statband .stat {
        border-inline-start: 0;
        padding-inline-start: 0;
        border-block-start: 1px solid var(--line);
        padding-block-start: var(--s-3);
    }
    .statband .stat:first-child { border-block-start: 0; padding-block-start: 0; }
    .wa-float { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
    .wa-float span { display: none; }
}

/* 无 JS：抽屉不可用，退化成可横向滚动的导航条 */
.no-js .nav {
    display: flex;
    overflow-x: auto;
    gap: var(--s-4);
    scrollbar-width: none;
    margin-inline-start: var(--s-4);
}
.no-js .nav::-webkit-scrollbar { display: none; }
.no-js .burger { display: none; }
.no-js .header__cta { display: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
    html { scroll-behavior: auto; }
}

/* ===== 询盘表单（contact-form） ===== */
.cform { max-width: 680px; }
.cform__intro { color: var(--steel); font-size: var(--f-m); margin-block: var(--s-2) var(--s-4); }
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.cform__field { display: flex; flex-direction: column; gap: var(--s-2); }
.cform__field--full { grid-column: 1 / -1; }
.cform__field label { font-size: var(--f-s); font-weight: 600; color: var(--ink-soft); }
.cform__field label span { color: var(--brand); }
.cform__field input,
.cform__field textarea {
    font: inherit;
    font-size: var(--f-m);
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    padding: 10px 12px;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.cform__field input:focus,
.cform__field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-tint);
}
.cform__field .is-invalid { border-color: #c0392b; box-shadow: 0 0 0 3px #fdecea; }
.cform__field textarea { resize: vertical; min-height: 120px; }
.cform__submit { margin-block-start: var(--s-5, 20px); }
.cform__privacy { color: var(--steel-2); font-size: var(--f-xs); margin-block-start: var(--s-3); }
.cform__ok {
    display: flex; align-items: center; gap: var(--s-3);
    background: #eef7f0; color: #1e6b39;
    border: 1px solid #cfe8d6; border-radius: 6px;
    padding: var(--s-4); font-size: var(--f-m);
}
.cform__ok svg { width: 20px; height: 20px; flex: none; }
.cform__err {
    background: #fdecea; color: #a83226;
    border: 1px solid #f2c6bf; border-radius: 6px;
    padding: var(--s-3) var(--s-4); font-size: var(--f-s);
    margin-block-end: var(--s-4);
}
/* 蜜罐：双重隐藏且不出现在无障碍树 */
.cform__hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
    .cform__grid { grid-template-columns: 1fr; }
}
