/* ==========================================================================
   润彩 AC COLOR · 企业官网样式表
   --------------------------------------------------------------------------
   层次：@layer reset < tokens < base < layout < components < pages < utils
   技术：容器查询 / color-mix / :has() / scroll-driven animation
         content-visibility / text-wrap / view transitions / @starting-style
   兼容：全部特性都是渐进增强，老浏览器退化为可用但不炫的状态
   ========================================================================== */

@layer reset, tokens, base, layout, components, pages, utils;

/* ---------------------------------------------------------------- reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  table { border-collapse: collapse; }
  dialog { padding: 0; border: 0; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

/* --------------------------------------------------------------- tokens */
@layer tokens {
  :root {
    /* 品牌色：AC 红，用在按钮、强调线、关键数字上，不做大面积铺色 */
    --brand: #e0301e;
    --brand-deep: #b8240f;
    --brand-tint: color-mix(in oklab, #e0301e 8%, #fff);
    --brand-tint-2: color-mix(in oklab, #e0301e 14%, #fff);

    /* 中性色阶 */
    --ink: #14181f;
    --ink-2: #3d4553;
    --ink-3: #667085;
    --ink-4: #98a2b3;
    --line: #e5e8ee;
    --line-soft: #eef0f4;
    --bg: #fff;
    --bg-2: #f7f8fa;
    --bg-3: #eceff4;

    /* 语义色 */
    --ok: #0f9d63;
    --warn: #d98207;

    /* 字体 */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
      "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    /* 流体字阶 */
    --fs-h1: clamp(1.9rem, 1.28rem + 2.4vw, 3.35rem);
    --fs-h2: clamp(1.45rem, 1.15rem + 1.15vw, 2.15rem);
    --fs-h3: clamp(1.05rem, .98rem + .3vw, 1.22rem);
    --fs-lead: clamp(1rem, .95rem + .28vw, 1.12rem);
    --fs-body: 1rem;
    --fs-sm: .875rem;
    --fs-xs: .78rem;

    /* 间距节奏 */
    --sp-sec: clamp(56px, 7.5vw, 104px);
    --sp-sec-sm: clamp(36px, 5vw, 64px);
    --gap: clamp(14px, 1.6vw, 22px);

    /* 圆角与阴影 */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 26px;
    --sh-1: 0 1px 2px rgba(16, 24, 40, .05);
    --sh-2: 0 4px 16px -4px rgba(16, 24, 40, .1), 0 1px 3px rgba(16, 24, 40, .04);
    --sh-3: 0 18px 44px -16px rgba(16, 24, 40, .22);

    --ease: cubic-bezier(.22, .61, .36, 1);
    --dur: .28s;

    --wrap: 1260px;
    --hd-h: 74px;
  }
}

/* ----------------------------------------------------------------- base */
@layer base {
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.72;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.22; letter-spacing: -.018em; }
  h1 { font-size: var(--fs-h1); letter-spacing: -.028em; }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); }
  p { text-wrap: pretty; }
  h1, h2 { text-wrap: balance; }
  a { transition: color var(--dur) var(--ease); }
  a:hover { color: var(--brand); }
  strong, b { font-weight: 600; color: var(--ink); }
  ::selection { background: var(--brand-tint-2); color: var(--brand-deep); }
  :focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
  .skip {
    position: absolute; left: 12px; top: -60px; z-index: 999;
    background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 10px;
    transition: top .2s;
  }
  .skip:focus { top: 0; color: #fff; }
  .tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
  .ico { width: 18px; height: 18px; flex: none; }
  .i12 { width: 12px; height: 12px; }
  .i14 { width: 14px; height: 14px; }
  .i16 { width: 16px; height: 16px; }
  .i18 { width: 18px; height: 18px; }
  .i20 { width: 20px; height: 20px; }
  .i24 { width: 24px; height: 24px; }
}

/* --------------------------------------------------------------- layout */
@layer layout {
  .wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
  main { display: block; }
  .sec { padding-block: var(--sp-sec); }
  .sec-tight { padding-block: var(--sp-sec-sm); }
  .sec-alt { background: var(--bg-2); }
  .grid-auto {
    display: grid; gap: var(--gap);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  }
  .grid-2 { display: grid; gap: clamp(20px, 3vw, 44px); grid-template-columns: 1fr; }
  @media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
  .split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; grid-template-columns: 1fr; }
  @media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } }
}

/* ----------------------------------------------------------- components */

/* 按钮 */
@layer components {
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding-inline: 22px; border-radius: 999px;
    font-size: .94rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
    border: 1px solid transparent; cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
      border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
      box-shadow var(--dur) var(--ease);
  }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(224, 48, 30, .28); }
  .btn-primary:hover { background: var(--brand-deep); color: #fff; box-shadow: 0 6px 18px -6px rgba(224, 48, 30, .55); }
  .btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
  .btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); background: var(--bg-2); }
  .btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
  .btn-line:hover { background: var(--ink); color: #fff; }
  .btn-lg { height: 52px; padding-inline: 30px; font-size: 1rem; }
  .btn-sm { height: 36px; padding-inline: 16px; font-size: .85rem; }
  .btn-block { width: 100%; }

  .icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    border-radius: 10px; color: var(--ink-2);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  .icon-btn:hover { background: var(--bg-3); color: var(--ink); }

  /* 头部 */
  .site-hd { position: sticky; top: 0; z-index: 60; background: #fff; }
  .site-hd::after {
    content: ""; position: absolute; inset: auto 0 -1px; height: 1px;
    background: var(--line); opacity: .9;
  }
  .site-hd.is-scrolled { box-shadow: 0 8px 28px -20px rgba(16, 24, 40, .5); }
  .hd-bar {
    background: var(--ink); color: rgba(255, 255, 255, .68);
    font-size: var(--fs-xs); height: 34px; display: flex; align-items: center;
  }
  .hd-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .hd-tag { display: inline-flex; align-items: center; gap: 7px; letter-spacing: .01em; }
  .hd-tag .ico { color: var(--brand); }
  .hd-tel { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .78); }
  .hd-tel b { color: #fff; font-weight: 600; letter-spacing: .01em; }
  .hd-tel:hover { color: #fff; }
  .hd-main { height: var(--hd-h); display: flex; align-items: center; }
  .hd-main-in { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 34px); }

  .brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-tx { display: flex; flex-direction: column; line-height: 1.1; }
  .brand-tx b { font-size: 1.06rem; letter-spacing: -.01em; }
  .brand-tx em {
    font-style: normal; font-size: .68rem; letter-spacing: .19em;
    color: var(--ink-4); font-weight: 500;
  }
  /* 后台「全站公用 → 品牌与页头 → 站点 Logo 图片」上传后使用 */
  .brand-img { display: block; width: auto; height: auto; max-height: 46px; max-width: 190px; object-fit: contain; }
  .ftr-brand .brand-img { max-height: 46px; max-width: 210px; }
  .ov-brand .brand-img { max-height: 32px; max-width: 150px; }
  @media (max-width: 560px) { .brand-img { max-height: 36px; max-width: 148px; } }

  /* HTML 站点地图：纯链接多列列表，蜘蛛一次可发现全站深层页面 */
  .smap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 20px; margin-top: 18px; }
  .smap-list li { min-width: 0; }
  .smap-list a { display: block; padding: 6px 0; font-size: .88rem; color: var(--ink-2, #52607a); border-bottom: 1px dashed var(--line, #e3e9f2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .smap-list a:hover { color: var(--brand, #e0301e); }

  /* 文章上一篇 / 下一篇：让文章形成连续可抓取的内链链 */
  .art-prevnext { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line, #e3e9f2); }
  .art-prevnext a { flex: 1 1 240px; padding: 10px 12px; border-radius: 8px; background: var(--bg-2, #f6f8fb); font-size: .88rem; }
  .art-prevnext a:hover { color: var(--brand, #e0301e); }
  .art-prevnext small { display: block; color: var(--ink-4, #8c97a8); font-size: .74rem; margin-bottom: 3px; }

  /* 主导航 */
  .nav-main { margin-inline: auto; }
  .nav-main > ul { display: flex; align-items: center; gap: clamp(2px, 1.1vw, 16px); }
  .nav-item { position: relative; }
  .nav-item > a {
    display: inline-block; padding: 10px 12px; border-radius: 9px;
    font-size: .96rem; font-weight: 500; color: var(--ink); position: relative;
  }
  .nav-item > a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
    background: var(--brand); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav-item.is-on > a, .nav-item:hover > a { color: var(--brand); }
  .nav-item.is-on > a::after, .nav-item:hover > a::after { transform: scaleX(1); }
  .mega-toggle { display: none; }

  /* 下拉大面板 */
  .mega {
    position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0;
    min-width: 320px; padding-top: 8px;
    opacity: 0; visibility: hidden; translate: -50% 8px;
    transition: opacity .24s var(--ease), translate .24s var(--ease), visibility .24s;
    z-index: 70;
  }
  .mega-in {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--sh-3); padding: 18px;
  }
  .nav-item:hover > .mega,
  .nav-item:focus-within > .mega,
  .nav-item.is-open > .mega { opacity: 1; visibility: visible; translate: -50% 0; }
  .mega-cols { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 6px; }
  .mega-col { padding: 8px 10px 10px; border-radius: var(--r-md); }
  .mega-col-hd { display: flex; align-items: baseline; gap: 7px; padding-block: 4px 8px; }
  .mega-col-hd b { font-size: .95rem; }
  .mega-col-hd em { font-style: normal; font-size: .7rem; letter-spacing: .12em; color: var(--ink-4); text-transform: uppercase; }
  .mega-col ul { display: grid; gap: 1px; }
  .mega-col li a {
    display: block; padding: 6px 8px; border-radius: 7px;
    font-size: .875rem; color: var(--ink-2); line-height: 1.45;
  }
  .mega-col li a:hover { background: var(--brand-tint); color: var(--brand-deep); }
  .mega-col-more {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 4px 8px;
    font-size: .8rem; font-weight: 600; color: var(--brand);
  }
  .mega-grid { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 4px; min-width: 620px; }
  .mega-grid-3 { grid-template-columns: repeat(3, minmax(170px, 1fr)); min-width: 560px; }
  .mega-grid-2 { grid-template-columns: repeat(2, minmax(170px, 1fr)); min-width: 420px; }
  .mega-cell { display: grid; gap: 3px; padding: 10px 12px; border-radius: var(--r-md); }
  .mega-cell b { font-size: .92rem; font-weight: 600; color: var(--ink); }
  .mega-cell span { font-size: .78rem; color: var(--ink-3); line-height: 1.5; }
  .mega-cell:hover { background: var(--brand-tint); }
  .mega-cell:hover b { color: var(--brand-deep); }
  .mega-cell.is-on { background: var(--bg-2); }

  .hd-act { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
  .hd-burger { display: none; }

  @media (max-width: 1080px) {
    .nav-main, .hd-cta { display: none; }
    .hd-burger { display: inline-grid; }
  }

  /* 页面头部（内页） */
  .page-hd { padding-block: clamp(28px, 4vw, 52px) clamp(18px, 2vw, 26px); background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .page-hd h1 { font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.5rem); }
  .page-hd .lead { margin-top: 12px; max-width: 62ch; color: var(--ink-3); font-size: var(--fs-lead); }

  /* 面包屑 */
  .crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--ink-3); }
  .crumb li { display: inline-flex; align-items: center; gap: 6px; }
  .crumb li:not(:last-child)::after { content: "/"; color: var(--ink-4); }
  .crumb a { color: var(--ink-3); }
  .crumb a:hover { color: var(--brand); }
  .crumb [aria-current] { color: var(--ink); }

  /* 卡片 */
  .card {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
    content-visibility: auto; contain-intrinsic-size: 380px;
  }
  .card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #d8dce4; }
  .card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
  .card-media img { width: 100%; height: 100%; object-fit: cover; transition: scale .55s var(--ease); }
  .card:hover .card-media img { scale: 1.045; }
  .card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
  .card-kicker {
    font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em;
    color: var(--brand); text-transform: uppercase;
  }
  .card-body h3 { font-size: 1rem; line-height: 1.45; font-weight: 600; }
  .card-body p { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.62; }
  .card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .tag {
    display: inline-block; padding: 2px 9px; border-radius: 999px;
    background: var(--bg-2); color: var(--ink-3);
    font-size: var(--fs-xs); font-weight: 500; white-space: nowrap;
  }
  .card-more {
    display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 6px;
    font-size: .84rem; font-weight: 600; color: var(--ink); 
  }
  .card-more .ico { transition: translate .28s var(--ease); }
  .card:hover .card-more { color: var(--brand); }
  .card:hover .card-more .ico { translate: 4px 0; }
  .card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .card-meta time { font-size: var(--fs-xs); color: var(--ink-4); }
  .card-article .card-media { aspect-ratio: 16 / 10; }

  /* 区块标题 */
  .sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(22px, 3vw, 38px); }
  .sec-head-tx { display: grid; gap: 8px; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em;
    color: var(--brand); text-transform: uppercase;
  }
  .eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }
  .sec-head h2 { font-size: var(--fs-h2); }
  .sec-more { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; padding-bottom: 4px; }
  .sec-more:hover { color: var(--brand); }
  .sec-more .ico { transition: translate .28s var(--ease); }
  .sec-more:hover .ico { translate: 4px 0; }

  /* 分页 */
  .pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: clamp(28px, 4vw, 48px); }
  .pg {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    min-width: 40px; height: 40px; padding-inline: 12px; border-radius: 10px;
    border: 1px solid var(--line); background: #fff; color: var(--ink-2);
    font-size: .875rem; font-variant-numeric: tabular-nums;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
  }
  .pg:hover { border-color: var(--ink-3); color: var(--ink); }
  .pg.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
  .pg-gap { border: 0; background: none; color: var(--ink-4); min-width: 20px; }
  .pg-prev, .pg-next { gap: 6px; }
  @media (max-width: 560px) {
    .pg-prev span, .pg-next span { display: none; }
    .pg-prev, .pg-next { min-width: 40px; padding-inline: 0; }
  }

  /* 筛选条 */
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(18px, 2.4vw, 28px); }
  .chip {
    display: inline-flex; align-items: center; height: 38px; padding-inline: 16px;
    border-radius: 999px; border: 1px solid var(--line); background: #fff;
    font-size: .875rem; font-weight: 500; color: var(--ink-2);
    transition: all var(--dur) var(--ease);
  }
  .chip:hover { border-color: var(--ink-3); color: var(--ink); }
  .chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

  /* CTA 条 */
  .cta-band { background: var(--ink); color: #fff; padding-block: clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
  .cta-band::after {
    content: ""; position: absolute; right: -8%; top: -30%; width: 44%; aspect-ratio: 1;
    background: radial-gradient(circle, rgba(224, 48, 30, .34), transparent 64%);
    pointer-events: none;
  }
  .cta-in { display: grid; gap: 26px; align-items: center; position: relative; z-index: 1; }
  @media (min-width: 860px) { .cta-in { grid-template-columns: 1fr auto; } }
  .cta-tx h2 { color: #fff; font-size: var(--fs-h2); }
  .cta-tx p { margin-top: 10px; color: rgba(255, 255, 255, .68); font-size: var(--fs-sm); max-width: 56ch; }
  .cta-act { display: flex; flex-wrap: wrap; gap: 10px; }
  .cta-band .btn-primary { background: var(--brand); }
  .cta-band .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
  .cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }

  /* 空状态 */
  .empty-state { display: grid; justify-items: center; gap: 12px; padding: 64px 20px; text-align: center; color: var(--ink-3); }
  .empty-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); color: var(--ink-4); }

  /* 页脚 */
  .site-ftr { background: #0f131a; color: rgba(255, 255, 255, .62); font-size: var(--fs-sm); padding-top: clamp(44px, 5.5vw, 72px); }
  .ftr-top { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: 1fr; padding-bottom: 44px; }
  @media (min-width: 720px) { .ftr-top { grid-template-columns: 1.1fr 1.6fr; } }
  @media (min-width: 1060px) { .ftr-top { grid-template-columns: 1.05fr 2.1fr .95fr; } }
  .ftr-brand .brand-tx b { color: #fff; }
  .ftr-brand .brand-tx em { color: rgba(255, 255, 255, .4); }
  .ftr-brand p { margin-top: 16px; max-width: 34ch; line-height: 1.75; color: rgba(255, 255, 255, .56); font-size: .84rem; }
  .ftr-qr { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
  .ftr-qr img { border-radius: 8px; background: #fff; padding: 5px; }
  .ftr-qr span { font-size: .76rem; line-height: 1.6; color: rgba(255, 255, 255, .46); }
  .ftr-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
  @media (min-width: 620px) and (max-width: 1059px) { .ftr-links { grid-template-columns: repeat(4, 1fr); } }
  .ftr-col h3 { font-size: .84rem; color: #fff; font-weight: 600; letter-spacing: .02em; margin-bottom: 12px; }
  .ftr-col ul { display: grid; gap: 8px; }
  .ftr-col a { color: rgba(255, 255, 255, .58); font-size: .84rem; }
  .ftr-col a:hover { color: #fff; }
  .ftr-contact { display: grid; gap: 10px; align-content: start; }
  .ftr-contact a, .ftr-addr { display: flex; align-items: flex-start; gap: 8px; color: rgba(255, 255, 255, .62); font-size: .84rem; line-height: 1.6; }
  .ftr-contact .ico { margin-top: 3px; color: rgba(255, 255, 255, .4); }
  .ftr-bot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .78rem; color: rgba(255, 255, 255, .42);
  }
  .ftr-bot a { color: rgba(255, 255, 255, .42); }
  .ftr-bot a:hover { color: #fff; }

  /* 浮动侧栏 */
  .rail {
    position: fixed; right: 16px; bottom: 24px; z-index: 55;
    display: grid; gap: 8px;
  }
  @media (max-width: 720px) { .rail { display: none; } }
  .rail a, .rail button {
    position: relative; display: grid; place-items: center; width: 46px; height: 46px;
    border-radius: 13px; background: #fff; color: var(--ink-2);
    border: 1px solid var(--line); box-shadow: var(--sh-2);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .rail a:hover, .rail button:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }
  .rail-tip {
    position: absolute; right: calc(100% + 10px); top: 50%; translate: 0 -50%;
    background: var(--ink); color: #fff; font-size: .76rem; padding: 5px 10px;
    border-radius: 7px; white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease);
  }
  .rail a:hover .rail-tip, .rail button:hover .rail-tip { opacity: 1; }

  /* 弹层（搜索 / 移动菜单） */
  .ov {
    position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none;
    margin: 0; background: transparent; z-index: 90; overflow: visible;
  }
  .ov::backdrop { background: rgba(11, 14, 20, .55); backdrop-filter: blur(3px); }
  .ov-in {
    background: #fff; margin: clamp(20px, 6vh, 84px) auto; width: min(720px, calc(100% - 32px));
    border-radius: var(--r-xl); padding: clamp(18px, 3vw, 28px); box-shadow: var(--sh-3);
  }
  .ov[open] .ov-in { animation: ovIn .3s var(--ease) both; }
  @keyframes ovIn { from { opacity: 0; translate: 0 14px; scale: .985; } }
  .ov-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
  .ov-hd h2 { font-size: 1.06rem; }
  .ov-brand { display: inline-flex; align-items: center; gap: 9px; }
  .ov-brand .brand-mark { width: 30px; height: 30px; }
  .ov-brand b { font-size: .98rem; }
  .ov-form { display: flex; gap: 8px; }
  .ov-form input {
    flex: 1; height: 48px; padding-inline: 16px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--bg-2); font-size: .95rem;
  }
  .ov-form input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-tint); }
  .ov-hint { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--ink-4); }
  .ov-hint a { padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: var(--fs-xs); }
  .ov-hint a:hover { background: var(--brand-tint); color: var(--brand-deep); }
  .ov-res { margin-top: 14px; max-height: min(52vh, 420px); overflow: auto; display: grid; gap: 2px; }
  .ov-res a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: .9rem; }
  .ov-res a:hover { background: var(--bg-2); }
  .ov-res .r-k { font-size: var(--fs-xs); color: var(--ink-4); flex: none; }
  .ov-res .r-t { color: var(--ink); }
  .ov-res .r-m { color: var(--ink-3); font-size: .82rem; }
  .ov-empty { padding: 20px 4px; color: var(--ink-3); font-size: .88rem; }
  .ov-cnt { font-size: var(--fs-xs); color: var(--ink-4); padding: 4px 12px 8px; }

  .ov-side .ov-in {
    margin: 0 0 0 auto; height: 100%; width: min(400px, 88vw);
    border-radius: 0; padding: 16px 20px 28px; overflow: auto;
    animation: drawerIn .3s var(--ease) both;
  }
  @keyframes drawerIn { from { translate: 100% 0; } }
  .m-nav { display: grid; gap: 2px; margin-top: 6px; }
  .m-nav-grp { border-bottom: 1px solid var(--line-soft); padding-block: 4px; }
  .m-nav-l1 { display: block; padding: 11px 4px; font-size: 1rem; font-weight: 600; color: var(--ink); }
  .m-nav-grp.is-on .m-nav-l1 { color: var(--brand); }
  .m-nav-l2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 0 4px 10px; }
  .m-nav-l2 a { padding: 6px 8px; border-radius: 7px; font-size: .85rem; color: var(--ink-3); background: var(--bg-2); }
  .m-nav-cta { margin-top: 18px; }
  .m-nav-tel { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: .95rem; font-weight: 600; color: var(--brand); }

  /* 滚动淡入：支持滚动驱动动画才启用，否则直接显示 */
  @layer utils {
    @supports (animation-timeline: view()) {
      @media (prefers-reduced-motion: no-preference) {
        .rv { animation: rvIn linear both; animation-timeline: view(); animation-range: entry 8% cover 26%; }
        @keyframes rvIn { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
      }
    }
  }
}

/* -------------------------------------------------------------- pages */

@layer pages {
  /* 首页 Hero */
  .hero { position: relative; padding-block: clamp(34px, 5vw, 72px) clamp(30px, 4vw, 56px); overflow: hidden; }
  .hero::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(60% 48% at 82% 8%, rgba(224, 48, 30, .07), transparent 70%),
      radial-gradient(46% 40% at 6% 92%, rgba(43, 127, 212, .06), transparent 70%);
    pointer-events: none;
  }
  .hero-in { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; position: relative; }
  @media (min-width: 960px) { .hero-in { grid-template-columns: 1.02fr .98fr; } }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px;
    border-radius: 999px; background: var(--brand-tint); color: var(--brand-deep);
    font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em;
  }
  .hero-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
  .hero h1 { margin-top: 18px; }
  .hero h1 em { font-style: normal; color: var(--brand); }
  .hero-lead { margin-top: 16px; font-size: var(--fs-lead); color: var(--ink-3); max-width: 46ch; }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
  .hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
  .hero-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--ink-3); }
  .hero-trust .ico { color: var(--ok); }

  .hero-media { position: relative; }
  .hero-stage {
    position: relative; border-radius: var(--r-xl); overflow: hidden;
    aspect-ratio: 4 / 3.15; background: var(--bg-3); box-shadow: var(--sh-3);
  }
  .hero-stage img { width: 100%; height: 100%; object-fit: cover; }
  .hero-stage figcaption {
    position: absolute; left: 14px; bottom: 14px; right: 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; border-radius: 12px;
    background: rgba(15, 19, 26, .62); backdrop-filter: blur(8px);
    color: #fff; font-size: .8rem;
  }
  .hero-stage figcaption b { color: #fff; font-weight: 600; }
  .hero-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
  .hero-thumbs a {
    display: flex; align-items: center; gap: 10px; padding: 8px;
    border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  }
  .hero-thumbs a:hover { border-color: #cfd5e0; box-shadow: var(--sh-1); }
  .hero-thumbs img { width: 52px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; }
  .hero-thumbs span { font-size: .82rem; color: var(--ink-2); line-height: 1.4; }

  /* 首屏轮播（后台最多 5 张）：
     版位 16:9，图片按原始比例完整显示（contain），不裁横幅上的文案；
     文案固定在底部深色条里，切换图片时由 JS 同步文字与链接。 */
  .hero-slider {
    position: relative; border-radius: var(--r-xl); overflow: hidden;
    aspect-ratio: 16 / 9; background: #f6f8fb; box-shadow: var(--sh-3);
  }
  /* 每张都叠在同一位置，靠 is-on 淡入淡出。
     旧版用 flex 横排 100% + overflow:hidden，第 2 张起被推到容器外，
     JS 又没有移动轨道，结果只有第一张看得见——这里改成堆叠定位。 */
  .hs-track { position: absolute; inset: 0; }
  .hs-slide {
    position: absolute; inset: 0; margin: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .68s var(--ease), visibility .68s var(--ease);
  }
  .hs-slide.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
  .hero-slider.is-single .hs-slide { opacity: 1; visibility: visible; pointer-events: auto; }
  .hs-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; }

  .hs-cap {
    position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; border-radius: 12px;
    background: rgba(15, 19, 26, .62); backdrop-filter: blur(8px);
    color: #fff; font-size: .8rem;
  }
  .hs-cap-tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hs-cap-tx b { color: #fff; font-weight: 600; }
  .hs-cap-tx em { font-style: normal; color: rgba(255, 255, 255, .82); }
  .hs-cap-b { color: rgba(255, 255, 255, .85); letter-spacing: .04em; flex: none; }
  .hs-cap-b[hidden] { display: none; }

  .hs-dots {
    position: absolute; top: 14px; right: 14px; z-index: 4;
    display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px;
    background: rgba(15, 19, 26, .42); backdrop-filter: blur(6px);
  }
  .hs-dot {
    width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px;
    background: rgba(255, 255, 255, .5); cursor: pointer;
    transition: width .3s var(--ease), background .3s var(--ease);
  }
  .hs-dot.is-on { width: 18px; background: #fff; }
  .hs-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

  .hs-more {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255, 255, 255, .18); color: #fff;
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .hs-more:hover { background: var(--brand); color: #fff; transform: translateX(2px); }
  .hs-more[hidden] { display: none; }

  /* 左右切换箭头：旧页面里没有时由 site.js 自动补上 */
  .hs-nav {
    position: absolute; top: 50%; z-index: 4; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(15, 19, 26, .42); color: #fff; cursor: pointer;
    opacity: .8; transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
  }
  .hs-nav:hover { opacity: 1; background: rgba(15, 19, 26, .74); }
  .hs-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .hs-nav[data-hs-prev] { left: 12px; }
  .hs-nav[data-hs-next] { right: 12px; }
  @media (max-width: 560px) {
    .hs-cap { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; font-size: .74rem; }
    .hs-dots { top: 8px; right: 8px; }
    .hs-nav { display: none; }
  }

  /* 首页友情链接（首屏下方的收尾区） */
  .sec-friend {
    background: var(--bg-2); border-top: 1px solid var(--line);
    padding-block: clamp(24px, 3vw, 38px);
  }
  .fr-hd {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px;
    margin-bottom: 12px; font-size: .86rem; font-weight: 600; color: var(--ink-2);
  }
  .fr-hd em { font-style: normal; font-weight: 400; font-size: var(--fs-xs); color: var(--ink-4); }
  .fr-list { display: flex; flex-wrap: wrap; gap: 4px 22px; }
  .fr-list a { font-size: var(--fs-xs); color: var(--ink-3); line-height: 2; }
  .fr-list a:hover { color: var(--brand); }

  /* 数据条（数字加大、整块居中） */
  .stats-band { background: var(--ink); color: #fff; padding-block: clamp(32px, 4vw, 56px); }
  .stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); }
  @media (min-width: 780px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
  .stat { text-align: center; }
  .stat b { display: flex; justify-content: center; align-items: baseline; gap: 4px; font-size: 1.5rem; font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1; }
  .stat b i { font-style: normal; font-size: .62em; color: var(--brand); font-weight: 700; }
  .stat > span { display: block; margin-top: 10px; font-size: .9rem; color: rgba(255, 255, 255, .62); }

  /* 首页栏目导航卡 */
  .cat-links { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
  .cat-link {
    display: grid; gap: 6px; padding: 22px 20px; border-radius: var(--r-lg);
    border: 1px solid var(--line); background: #fff;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .cat-link:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-2px); }
  .cat-link .ico { color: var(--brand); width: 22px; height: 22px; }
  .cat-link b { font-size: 1rem; color: var(--ink); }
  .cat-link span { font-size: .82rem; color: var(--ink-3); line-height: 1.55; }
  .cat-link em { font-style: normal; font-size: var(--fs-xs); color: var(--brand); font-weight: 600; margin-top: 4px; }

  /* 分类页头部 */
  .cat-hd { display: grid; gap: 18px; }
  .cat-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
  .cat-tab {
    display: inline-flex; align-items: center; gap: 7px; height: 40px; padding-inline: 16px;
    border-radius: 10px; border: 1px solid var(--line); background: #fff;
    font-size: .9rem; font-weight: 500; color: var(--ink-2);
  }
  .cat-tab em { font-style: normal; font-size: .74rem; color: var(--ink-4); font-variant-numeric: tabular-nums; }
  .cat-tab:hover { border-color: var(--ink-3); color: var(--ink); }
  .cat-tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
  .cat-tab.is-on em { color: rgba(255, 255, 255, .6); }

  /* 产品详情 */
  .pdp { display: grid; gap: clamp(24px, 3.4vw, 48px); align-items: start; }
  @media (min-width: 900px) { .pdp { grid-template-columns: 1.06fr .94fr; } }
  .pdp-stage {
    border-radius: var(--r-xl); overflow: hidden; background: var(--bg-2);
    border: 1px solid var(--line); aspect-ratio: 4 / 3;
  }
  .pdp-stage img { width: 100%; height: 100%; object-fit: cover; }
  .pdp-hd { display: grid; gap: 12px; }
  .pdp-slogan { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.65; }
  .pdp-specs { margin-top: 22px; border-top: 1px solid var(--line); }
  .pdp-specs .row {
    display: grid; grid-template-columns: minmax(88px, 30%) 1fr; gap: 12px;
    padding-block: 11px; border-bottom: 1px solid var(--line-soft);
    font-size: .88rem;
  }
  .pdp-specs .k { color: var(--ink-3); }
  .pdp-specs .v { color: var(--ink); }
  .pdp-note { margin-top: 12px; font-size: var(--fs-xs); color: var(--ink-4); line-height: 1.6; }
  .pdp-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
  .pdp-video { margin-top: clamp(30px, 4vw, 52px); }
  .pdp-video video { width: 100%; border-radius: var(--r-lg); background: #000; }
  .prose { max-width: 78ch; }
  .prose h2 { font-size: clamp(1.2rem, 1.05rem + .55vw, 1.5rem); margin-top: 2em; margin-bottom: .55em; }
  .prose h2:first-child { margin-top: 0; }
  .prose h3 { margin-top: 1.6em; margin-bottom: .45em; }
  .prose p { margin-block: .85em; color: var(--ink-2); }
  .prose ul, .prose ol { margin-block: .9em; padding-left: 1.3em; display: grid; gap: .4em; }
  .prose ul { list-style: disc; }
  .prose ol { list-style: decimal; }
  .prose img { border-radius: var(--r-md); margin-block: 1.4em; }
  .prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
  .prose blockquote {
    margin-block: 1.4em; padding: 14px 20px; border-left: 3px solid var(--brand);
    background: var(--bg-2); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink-2);
  }
  .prose table { width: 100%; font-size: .88rem; margin-block: 1.4em; }
  .prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
  .prose th { background: var(--bg-2); font-weight: 600; }

  /* 文章详情 */
  .art { max-width: 800px; }
  .art-hd { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
  .art-hd h1 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem); line-height: 1.32; }
  .art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; font-size: var(--fs-xs); color: var(--ink-3); }
  .art-meta .sep { color: var(--ink-4); }
  .art-foot { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
  .art-cta {
    margin-top: 30px; padding: 18px 22px; border-radius: var(--r-md);
    background: var(--bg-2); border-left: 3px solid var(--brand);
    font-size: .9rem; color: var(--ink-2);
  }
  .art-cta a { color: var(--brand); font-weight: 600; }

  /* 侧栏布局（详情页右栏） */
  .with-side { display: grid; gap: clamp(24px, 3.4vw, 44px); align-items: start; }
  @media (min-width: 980px) { .with-side { grid-template-columns: minmax(0, 1fr) 300px; } }
  .side-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: #fff; }
  .side-card + .side-card { margin-top: var(--gap); }
  .side-card h3 { font-size: .95rem; margin-bottom: 12px; }
  .side-list { display: grid; gap: 2px; }
  .side-list a { display: grid; gap: 2px; padding: 9px 10px; border-radius: 9px; font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
  .side-list a:hover { background: var(--bg-2); color: var(--brand); }
  .side-list time { font-size: .74rem; color: var(--ink-4); }
  .side-cta { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .7); }
  .side-cta h3 { color: #fff; }
  .side-cta p { font-size: .84rem; line-height: 1.65; margin-bottom: 14px; }

  /* 关于我们分栏 */
  .about-hero { display: grid; gap: clamp(22px, 3vw, 44px); align-items: center; }
  @media (min-width: 900px) { .about-hero { grid-template-columns: 1fr 1fr; } }
  .about-figure { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-3); }
  .about-figure img { width: 100%; height: 100%; object-fit: cover; }
  .fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
  @media (min-width: 720px) { .fact-grid { grid-template-columns: repeat(4, 1fr); } }
  .fact { background: #fff; padding: 20px 18px; }
  .fact b { display: block; font-size: 1.5rem; color: var(--ink); letter-spacing: -.02em; }
  .fact span { display: block; margin-top: 4px; font-size: .8rem; color: var(--ink-3); }

  /* 联系页 */
  .contact-grid { display: grid; gap: clamp(24px, 3.4vw, 48px); align-items: start; }
  @media (min-width: 940px) { .contact-grid { grid-template-columns: .92fr 1.08fr; } }
  .contact-list { display: grid; gap: 14px; }
  .contact-item {
    display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
    padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff;
  }
  .contact-item .ico { color: var(--brand); width: 20px; height: 20px; margin-top: 3px; }
  .contact-item b { display: block; font-size: .82rem; color: var(--ink-3); font-weight: 500; }
  .contact-item strong { display: block; margin-top: 3px; font-size: 1.05rem; color: var(--ink); font-weight: 600; word-break: break-word; }
  .lead-form { display: grid; gap: 14px; }
  .lead-form .row2 { display: grid; gap: 14px; }
  @media (min-width: 560px) { .lead-form .row2 { grid-template-columns: 1fr 1fr; } }
  .field { display: grid; gap: 6px; }
  .field label { font-size: .82rem; color: var(--ink-2); font-weight: 500; }
  .field label .req { color: var(--brand); }
  .field input, .field select, .field textarea {
    width: 100%; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--line);
    background: #fff; font-size: .92rem; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  }
  .field textarea { min-height: 108px; resize: vertical; }
  .field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint);
  }
  .field input:user-invalid { border-color: var(--brand); }
  .form-note { font-size: var(--fs-xs); color: var(--ink-4); line-height: 1.6; }
  .form-msg { padding: 12px 16px; border-radius: 11px; font-size: .88rem; display: none; }
  .form-msg.is-ok { display: block; background: color-mix(in oklab, #0f9d63 10%, #fff); color: #0b6b45; }
  .form-msg.is-err { display: block; background: var(--brand-tint); color: var(--brand-deep); }
  .map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 8; background: var(--bg-3); }
  .map-embed iframe { width: 100%; height: 100%; border: 0; }

  /* 富文本图片自适应 */
  .art .prose img, .prose img { height: auto; }
}

/* -------------------------------------------------------------- utils */
@layer utils {
  .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;
  }
  .muted { color: var(--ink-3); }
  .mt-0 { margin-top: 0; }
  .mt-s { margin-top: 12px; }
  .mt-m { margin-top: 24px; }
  .mt-l { margin-top: clamp(28px, 4vw, 48px); }
  [hidden] { display: none !important; }
}

/* 跨页转场（支持的浏览器才有） */
@view-transition { navigation: auto; }
