/* ==========================================================================
   Scmsky App — 基础样式 / 布局 / 组件 / 页面区块
   --------------------------------------------------------------------------
   组织顺序：Reset → 基础排版 → 布局工具 → 通用组件 → 站点外壳 → 页面区块
   → 表单与内容排版 → 状态与辅助 → 响应式与无障碍
   所有取值引用 tokens.css 中的变量。
   ========================================================================== */

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 头部为 sticky，锚点跳转需让出高度 */
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  min-height: 100dvh;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-weight: var(--fw-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

svg {
  flex: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

a {
  color: var(--c-brand);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-out);
}

a:hover {
  color: var(--c-brand-strong);
}

hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin-block: var(--sp-8);
}

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

/* 统一焦点环：只对键盘用户显示，保证可见且不与鼠标点击冲突 */
:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

/* ==========================================================================
   2. 基础排版
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--lh-tight);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--c-text);
}

h1 {
  font-size: var(--fs-4xl);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--fs-2xl);
}

h3 {
  font-size: var(--fs-xl);
}

h4 {
  font-size: var(--fs-lg);
}

p {
  text-wrap: pretty;
}

small {
  font-size: var(--fs-sm);
}

strong,
b {
  font-weight: var(--fw-semibold);
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* 数字统一等宽，价格与统计不跳动 */
.num,
time,
.price,
.stat__value,
.spec-table td {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ==========================================================================
   3. 布局工具
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.section--subtle {
  background: var(--c-bg-subtle);
}

.section--inverse {
  background: var(--grad-dark);
  color: var(--c-text-inverse);
}

.section--inverse h1,
.section--inverse h2,
.section--inverse h3 {
  color: var(--c-text-inverse);
}

.grid {
  display: grid;
  gap: clamp(1rem, 0.5rem + 1.6vw, 1.75rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.stack > * + * {
  margin-top: var(--sp-4);
}

.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;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  translate: -50% -120%;
  z-index: calc(var(--z-dialog) + 10);
  padding: 0.75rem 1.25rem;
  background: var(--c-brand);
  color: var(--c-brand-contrast);
  border-radius: 0 0 var(--r-2) var(--r-2);
  font-weight: var(--fw-semibold);
  transition: translate var(--dur-2) var(--ease-out);
}

.skip-link:focus-visible {
  translate: -50% 0;
  color: var(--c-brand-contrast);
}

/* ==========================================================================
   4. 图标
   ========================================================================== */

.icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: -0.18em;
}

.icon--lg {
  width: 1.6em;
  height: 1.6em;
}

.icon--sm {
  width: 1em;
  height: 1em;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ==========================================================================
   5. 按钮
   ========================================================================== */

.btn {
  --btn-bg: var(--c-brand);
  --btn-fg: var(--c-brand-contrast);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px; /* 触控目标 ≥ 44px */
  padding: 0.7em 1.35em;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: transform var(--dur-1) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--c-brand);
  --btn-fg: var(--c-brand-contrast);
  box-shadow: var(--sh-brand);
}

.btn--primary:hover {
  --btn-bg: var(--c-brand-strong);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-text);
  --btn-bd: var(--c-border-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--c-brand-soft);
  --btn-bd: var(--c-brand);
  --btn-fg: var(--c-brand);
}

.btn--light {
  --btn-bg: rgb(255 255 255 / 0.12);
  --btn-fg: #fff;
  --btn-bd: rgb(255 255 255 / 0.4);
  backdrop-filter: blur(6px);
}

.btn--light:hover {
  --btn-bg: #fff;
  --btn-fg: #0b1120;
}

.btn--sm {
  min-height: 38px;
  padding: 0.45em 1em;
  font-size: var(--fs-sm);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* 文字链接 + 箭头 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: var(--fw-semibold);
  color: var(--c-brand);
}

.link-arrow .icon {
  transition: translate var(--dur-2) var(--ease-out);
}

.link-arrow:hover .icon {
  translate: 3px 0;
}

/* ==========================================================================
   6. 表单
   ========================================================================== */

.field {
  display: grid;
  gap: 0.4rem;
}

.field__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-text-2);
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-2);
  color: var(--c-text);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}

.input::placeholder {
  color: var(--c-text-3);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: var(--focus-ring);
}

/* ==========================================================================
   7. 站点外壳：头部与导航
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  /* 老浏览器回退：不支持 color-mix 时使用不透明背景，不会出现「内容穿透」 */
  background: var(--c-bg);
  background: color-mix(in srgb, var(--c-bg) 86%, transparent);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

/* 支持 backdrop-filter 时使用毛玻璃（渐进增强） */
@supports (backdrop-filter: blur(12px)) {
  .site-header {
    backdrop-filter: saturate(180%) blur(14px);
  }
}

.site-header.is-scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: var(--sh-1);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--c-text);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  flex: none;
}

.brand:hover {
  color: var(--c-text);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-brand);
}

.brand__mark .icon {
  width: 20px;
  height: 20px;
}

.brand__name {
  font-size: 1.0625rem;
  line-height: 1.1;
}

.brand__tag {
  display: block;
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.14em;
  color: var(--c-text-3);
  text-transform: uppercase;
}

.brand img {
  max-height: 38px;
  width: auto;
}

/* 站点 logo 可能是白色透明底图（旧站素材），浅色页头上不可见，统一压深。 */
[data-theme="light"] .brand img {
  filter: brightness(0) opacity(0.85);
}

/* 主导航 */
.site-nav {
  margin-inline: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1vw, 0.75rem);
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem clamp(0.35rem, 0.8vw, 0.7rem);
  border-radius: var(--r-2);
  color: var(--c-text-2);
  font-size: clamp(0.8125rem, 0.74rem + 0.25vw, 1rem);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--c-text);
  background: var(--c-bg-subtle);
}

.nav__item.is-current > .nav__link {
  color: var(--c-brand);
  background: var(--c-brand-soft);
}

.nav__expand {
  display: none;
}

/* 二级菜单：桌面端悬停 / 键盘聚焦展开 */
.nav__sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 0.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  translate: 0 -6px;
  transition: opacity var(--dur-2) var(--ease-out), translate var(--dur-2) var(--ease-out),
    visibility var(--dur-2);
}

.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub,
.nav__item.is-open > .nav__sub {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.nav__sub .nav__item + .nav__item {
  margin-top: 2px;
}

.nav__sub .nav__link {
  display: block;
  width: 100%;
  padding: 0.5rem 0.7rem;
  font-size: var(--fs-base);
  color: var(--c-text-2);
}

.nav__sub .nav__link:hover {
  color: var(--c-brand);
  background: var(--c-brand-soft);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-2);
  color: var(--c-text-2);
  border: 1px solid transparent;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out);
}

.icon-btn:hover {
  background: var(--c-bg-subtle);
  border-color: var(--c-border);
  color: var(--c-text);
}

.header__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill);
  background: var(--c-brand-soft);
  color: var(--c-brand);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
}

.header__tel:hover {
  color: var(--c-brand-strong);
}

.nav-toggle {
  display: none;
}

/* 桌面端导航排版
   现状：一级菜单 10 项 + logo + 右侧操作区，1280 容器内可用宽度约 1216px。
   实测紧凑排版约占 1110px；电话按钮另占 177px，加起来会溢出，
   因此电话只在 ≥1400px 显示。桌面端统一用紧凑排版，不再按宽度分级放大字号——
   之前「≤1519 才收缩」会导致 1520–1899 区间字号变大却放不下，整页横向溢出错位。 */
@media (min-width: 1200px) {
  .nav__list {
    gap: 0.15rem;
  }

  .nav__link {
    font-size: 0.8125rem;
    padding: 0.55rem 0.35rem;
  }
}

.header__tel {
  display: none;
}

@media (min-width: 1400px) {
  .header__tel {
    display: inline-flex;
  }
}

/* 移动端导航面板
   断点取 1200 而非 1024：一级菜单 + 城市类子项所需宽度约 1700px，收缩后仍需 ≥1200px，
   否则 1024–1199（平板横屏）区间页头会横向溢出。此断点与 theme.js 中的 1200 必须保持一致。 */
@media (max-width: 1199px) {
  .header__inner {
    gap: var(--sp-3);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: var(--sp-4) var(--gutter) var(--sp-8);
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--sh-3);
    translate: 0 -12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-2) var(--ease-out), translate var(--dur-2) var(--ease-out),
      visibility var(--dur-2);
  }

  .site-header[data-nav="open"] .site-nav {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav__item {
    border-bottom: 1px solid var(--c-border);
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 0.85rem 0.25rem;
    border-radius: 0;
    font-size: 1rem;
  }

  .nav__item:hover > .nav__link,
  .nav__item.is-current > .nav__link {
    background: transparent;
  }

  /* 折叠态：子菜单默认收起，由按钮控制 */
  .nav__sub {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 0.5rem 0.75rem;
    border: 0;
    border-left: 2px solid var(--c-brand-soft);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    translate: 0;
  }

  .nav__item.is-open > .nav__sub {
    display: block;
  }

  .nav__item:hover > .nav__sub {
    display: none;
  }

  .nav__item.is-open:hover > .nav__sub {
    display: block;
  }

  .nav__expand {
    position: absolute;
    top: 6px;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--c-text-3);
    border-radius: var(--r-2);
  }

  .nav__expand .icon {
    transition: rotate var(--dur-2) var(--ease-out);
  }

  .nav__expand[aria-expanded="true"] .icon {
    rotate: 180deg;
    color: var(--c-brand);
  }

  .nav-toggle {
    display: inline-grid;
  }

  .header__tel {
    display: none;
  }

  /* 菜单展开时锁定背景滚动由 JS 添加类名控制 */
  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 1200px) {
  .site-nav .menu-item-has-children > .nav__link::after {
    content: "";
    display: inline-block;
    width: 0.42em;
    height: 0.42em;
    margin-left: 0.15em;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    rotate: 45deg;
    translate: 0 -2px;
    opacity: 0.6;
  }
}

/* ==========================================================================
   8. 搜索对话框
   ========================================================================== */

dialog.search-dialog {
  width: min(640px, calc(100vw - 2rem));
  margin: auto;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--sh-3);
}

dialog.search-dialog::backdrop {
  background: var(--c-overlay);
  backdrop-filter: blur(3px);
}

.search-dialog__inner {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.search-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.search-dialog__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

.search-dialog__form {
  display: flex;
  gap: var(--sp-2);
}

.search-dialog__form .input {
  flex: 1;
}

.search-dialog__hint {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--c-text-3);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  color: var(--c-text-2);
  font-size: var(--fs-sm);
}

.chip:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

/* ==========================================================================
   9. Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: clip;
  background: var(--grad-hero);
  padding-block: clamp(2.25rem, 1rem + 5vw, 4.5rem) clamp(2.5rem, 1rem + 6vw, 5.5rem);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}

.hero__copy {
  max-width: 34rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.hero__title {
  margin-top: var(--sp-4);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.035em;
}

.hero__title em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: var(--sp-5);
  font-size: var(--fs-md);
  color: var(--c-text-2);
  max-width: 32rem;
}

.hero__actions {
  margin-top: var(--sp-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero__stats {
  margin-top: clamp(2rem, 1rem + 3vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
  max-width: 30rem;
}

.stat__value {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--c-text);
  line-height: 1.1;
}

.stat__value span {
  font-size: 0.6em;
  font-weight: var(--fw-semibold);
  color: var(--c-brand);
  margin-left: 0.1em;
}

.stat__label {
  margin-top: 0.3rem;
  font-size: var(--fs-sm);
  color: var(--c-text-3);
}

/* Hero 内的信任条 */
.hero__note {
  margin-top: var(--sp-6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--c-text-3);
}

.hero__note .icon {
  color: var(--c-ok);
}

@media (max-width: 959px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: 44rem;
  }

  .hero__stats {
    max-width: none;
  }
}

/* ==========================================================================
   10. 滑块（原生 scroll-snap，替代 128KB 的 Swiper）
   ========================================================================== */

.slider {
  position: relative;
  border-radius: var(--r-5);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  box-shadow: var(--sh-3);
  overflow: hidden;
}

.slider__viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 4 / 3;
}

.slider__viewport::-webkit-scrollbar {
  display: none;
}

.slider__slide {
  position: relative;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.75rem) clamp(1.75rem, 4vw, 2.25rem);
  background: linear-gradient(to top, rgb(6 12 24 / 0.78) 0%, rgb(6 12 24 / 0.35) 55%, transparent 100%);
  color: #fff;
}

.slider__caption h2,
.slider__caption h3 {
  color: #fff;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
}

.slider__caption-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: #fff;
}

.slider__caption p {
  margin-top: 0.25rem;
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / 0.78);
}

.slider__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.86);
  color: #0b1120;
  box-shadow: var(--sh-2);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
  z-index: 2;
}

.slider__nav--prev {
  left: 0.75rem;
}

.slider__nav--next {
  right: 0.75rem;
}

.slider:hover .slider__nav,
.slider:focus-within .slider__nav {
  opacity: 1;
}

.slider__nav:hover {
  background: #fff;
}

.slider__dots {
  position: absolute;
  inset: auto 0 0.85rem 0;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  z-index: 2;
}

.slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.5);
  transition: width var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}

.slider__dot[aria-current="true"] {
  width: 24px;
  background: #fff;
}

/* 无幻灯片时的降级视觉 */
.slider--placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--grad-brand);
  color: #fff;
  text-align: center;
  padding: var(--sp-8);
}

/* ==========================================================================
   11. 区块标题
   ========================================================================== */

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-title {
  margin-top: var(--sp-3);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
}

.section-desc {
  margin-top: var(--sp-4);
  font-size: var(--fs-md);
  color: var(--c-text-2);
}

.section--inverse .section-desc {
  color: rgb(255 255 255 / 0.72);
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  max-width: none;
  flex-wrap: wrap;
}

/* ==========================================================================
   12. 卡片 / 服务网格
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}

.card:hover {
  border-color: var(--c-border-strong);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--c-brand-soft);
  color: var(--c-brand);
}

.card__icon .icon {
  width: 22px;
  height: 22px;
}

.card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}

.card__text {
  color: var(--c-text-2);
  font-size: var(--fs-base);
}

.card__list {
  display: grid;
  gap: 0.45rem;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}

.card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.card__list .icon {
  color: var(--c-ok);
  margin-top: 0.2em;
  width: 1em;
  height: 1em;
}

.card__foot {
  margin-top: auto;
  padding-top: var(--sp-4);
}

/* 强调卡片 */
.card--accent {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}

.card--accent .card__title,
.card--accent .card__text,
.card--accent .card__list {
  color: #fff;
}

.card--accent .card__text,
.card--accent .card__list {
  color: rgb(255 255 255 / 0.86);
}

.card--accent .card__icon {
  background: rgb(255 255 255 / 0.18);
  color: #fff;
}

.card--accent .card__list .icon {
  color: #fff;
}

.card--accent:hover {
  border-color: transparent;
  box-shadow: var(--sh-3);
}

/* 服务卡片：图标在上、无边框噪音 */
.service {
  padding: clamp(1.35rem, 1rem + 1vw, 1.75rem);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out),
    border-color var(--dur-3) var(--ease-out);
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: transparent;
}

/* ==========================================================================
   13. 特性带（深色 + 背景图）
   ========================================================================== */

.feature-band {
  position: relative;
  overflow: clip;
  color: #fff;
  background: var(--c-surface-inverse);
  isolation: isolate;
}

.feature-band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.feature-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.feature-band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 20% 10%, rgb(22 93 255 / 0.55), transparent 70%),
    linear-gradient(180deg, rgb(7 11 20 / 0.7), rgb(7 11 20 / 0.92));
}

.feature-band .section-title,
.feature-band h3 {
  color: #fff;
}

.feature-band .section-desc {
  color: rgb(255 255 255 / 0.74);
}

.feature-band .eyebrow {
  color: #bcd0ff;
}

.feature-item {
  padding: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  border-radius: var(--r-4);
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  backdrop-filter: blur(8px);
  transition: background-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}

.feature-item:hover {
  background: rgb(255 255 255 / 0.1);
  transform: translateY(-2px);
}

.feature-item__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  margin-bottom: var(--sp-4);
}

.feature-item h3 {
  font-size: var(--fs-lg);
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: var(--fs-base);
  color: rgb(255 255 255 / 0.74);
}

/* ==========================================================================
   14. 产品规格表
   ========================================================================== */

.table-scroll {
  overflow-x: auto;
  border-radius: var(--r-4);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
}

.spec-table {
  min-width: 760px;
  font-size: var(--fs-base);
}

.spec-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.85rem 1rem;
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.spec-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-2);
  vertical-align: middle;
}

.spec-table tbody tr {
  transition: background-color var(--dur-1) var(--ease-out);
}

.spec-table tbody tr:hover {
  background: var(--c-brand-soft);
}

.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.spec-table__code {
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  white-space: nowrap;
}

.spec-table__price {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  white-space: nowrap;
}

.spec-table__price small {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--c-text-3);
  margin-left: 0.15rem;
}

.spec-table__price sup {
  font-size: 0.62em;
  font-weight: var(--fw-semibold);
  margin-right: 0.1em;
  color: var(--c-text-2);
}

/* 移动端：表格转卡片（用 data-label 提供字段名） */
@media (max-width: 860px) {
  .table-scroll {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .spec-table {
    min-width: 0;
    display: block;
  }

  .spec-table thead {
    display: none;
  }

  .spec-table tbody {
    display: grid;
    gap: var(--sp-4);
  }

  .spec-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    padding: 1rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-3);
    box-shadow: var(--sh-1);
  }

  .spec-table td {
    display: grid;
    gap: 0.15rem;
    padding: 0;
    border: 0;
    font-size: var(--fs-base);
    text-align: left;
  }

  .spec-table td::before {
    content: attr(data-label);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-text-3);
  }

  .spec-table td[data-label="编号"],
  .spec-table td[data-label="价格"] {
    grid-column: span 1;
  }

  .spec-table td:last-child {
    grid-column: 1 / -1;
  }

  .spec-table td:last-child .btn {
    width: 100%;
  }
}

/* ==========================================================================
   15. 规格网格 / 价格列表 / 图文分栏
   ========================================================================== */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.spec-grid__item {
  padding: 0.75rem 0.9rem;
  background: var(--c-bg-subtle);
  border-radius: var(--r-2);
}

.spec-grid__item dt {
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-3);
}

.spec-grid__item dd {
  margin: 0.15rem 0 0;
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}

.price-list {
  display: grid;
  gap: 0.5rem;
}

.price-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-2);
  background: var(--c-bg-subtle);
  font-size: var(--fs-base);
  color: var(--c-text-2);
}

.price-list b {
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  align-items: center;
}

.split__media {
  border-radius: var(--r-4);
  overflow: hidden;
  background: var(--c-bg-muted);
  aspect-ratio: 4 / 3;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__body .section-title {
  margin-top: 0;
  margin-bottom: 1rem;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   16. 新闻列表
   ========================================================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

.news-col__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--c-border);
}

.news-col__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  position: relative;
}

.news-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.8rem;
  width: 100%;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.news-list {
  display: grid;
}

.news-item {
  border-bottom: 1px solid var(--c-border);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item__link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: 1rem 0.25rem;
  color: var(--c-text);
  transition: color var(--dur-1) var(--ease-out), padding-inline-start var(--dur-2) var(--ease-out);
}

.news-item__link:hover {
  color: var(--c-brand);
  padding-inline-start: 0.6rem;
}

.news-item__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item__desc {
  margin-top: 0.3rem;
  font-size: var(--fs-sm);
  color: var(--c-text-3);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item__date {
  text-align: center;
  min-width: 3.5rem;
  padding-left: var(--sp-4);
  border-left: 1px solid var(--c-border);
  line-height: 1.2;
}

.news-item__day {
  display: block;
  font-size: 1.375rem;
  font-weight: var(--fw-bold);
  color: var(--c-brand);
  font-variant-numeric: tabular-nums;
}

.news-item__month {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-text-3);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   16. 页面头图 / 面包屑
   ========================================================================== */

.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(2rem, 1rem + 3vw, 3.25rem);
  color: #fff;
  background-color: #0b1120;
  background-image: linear-gradient(120deg, rgb(9 17 33 / 0.9), rgb(11 30 66 / 0.72)),
    var(--page-hero-image, none);
  background-size: cover;
  background-position: center;
  overflow: clip;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.6;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  color: #fff;
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
}

.page-hero__desc {
  margin-top: var(--sp-3);
  max-width: 48rem;
  color: rgb(255 255 255 / 0.78);
  font-size: var(--fs-md);
}

.page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: var(--sp-4);
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.2);
  font-size: var(--fs-sm);
  color: #fff;
}

.crumbs {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  color: var(--c-text-3);
}

.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.crumbs__item + .crumbs__item::before {
  content: "/";
  color: var(--c-border-strong);
}

.crumbs__link {
  color: var(--c-text-3);
}

.crumbs__link:hover {
  color: var(--c-brand);
}

.crumbs__current {
  color: var(--c-text-2);
}

.page-hero + .crumbs {
  background: var(--c-bg-subtle);
}

/* ==========================================================================
   17. 内容布局（正文 + 侧栏）
   ========================================================================== */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  align-items: start;
}

.layout--full {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1023px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 文章卡片 */
.post-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  padding: 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}

.post-card + .post-card {
  margin-top: var(--sp-4);
}

.post-card:hover {
  border-color: var(--c-border-strong);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}

.post-card__media {
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--c-bg-muted);
  aspect-ratio: 3 / 2;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale var(--dur-3) var(--ease-out);
}

.post-card:hover .post-card__media img {
  scale: 1.04;
}

.post-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

.post-card__title a {
  color: var(--c-text);
}

.post-card__title a:hover {
  color: var(--c-brand);
}

.post-card__desc {
  margin-top: 0.5rem;
  color: var(--c-text-2);
  font-size: var(--fs-base);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  margin-top: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--c-text-3);
}

.meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta__item a {
  color: var(--c-text-3);
}

.meta__item a:hover {
  color: var(--c-brand);
}

@media (max-width: 700px) {
  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card__media {
    aspect-ratio: 16 / 9;
  }
}

/* 文章详情 */
.post {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  padding: clamp(1.25rem, 1rem + 2vw, 2.75rem);
}

.post__header {
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}

.post__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.025em;
}

.post__footer {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list a {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--c-bg-subtle);
  color: var(--c-text-2);
  font-size: var(--fs-sm);
}

.tag-list a:hover {
  background: var(--c-brand-soft);
  color: var(--c-brand);
}

/* 上/下一篇 */
.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.post-nav__item {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.15rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}

.post-nav__item:hover {
  border-color: var(--c-brand);
  background: var(--c-brand-soft);
}

.post-nav__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
}

.post-nav__title {
  color: var(--c-text);
  font-weight: var(--fw-medium);
  font-size: var(--fs-base);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav__item--next {
  text-align: right;
}

@media (max-width: 640px) {
  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav__item--next {
    text-align: left;
  }
}

/* ==========================================================================
   18. 正文排版（.prose）
   ========================================================================== */

.prose {
  font-size: var(--fs-md);
  line-height: var(--lh-base);
  color: var(--c-text-2);
  max-width: 46rem;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.9em;
  margin-bottom: 0.6em;
  color: var(--c-text);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.prose h2 {
  font-size: var(--fs-xl);
}

.prose h3 {
  font-size: var(--fs-lg);
}

.prose strong {
  color: var(--c-text);
}

.prose a {
  color: var(--c-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
  display: grid;
  gap: 0.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li::marker {
  color: var(--c-brand);
}

.prose img {
  border-radius: var(--r-3);
  margin-inline: auto;
}

.prose figure {
  margin-inline: 0;
}

.prose figcaption {
  margin-top: 0.5em;
  font-size: var(--fs-sm);
  color: var(--c-text-3);
  text-align: center;
}

.prose blockquote {
  margin-inline: 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--c-brand);
  background: var(--c-bg-subtle);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  color: var(--c-text-2);
}

.prose blockquote p {
  margin: 0;
}

.prose pre {
  padding: 1rem 1.25rem;
  background: var(--c-surface-inverse);
  color: #e6edf7;
  border-radius: var(--r-3);
  overflow-x: auto;
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.prose code {
  padding: 0.15em 0.4em;
  background: var(--c-bg-muted);
  border-radius: 5px;
  color: var(--c-text);
}

.prose pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.prose table {
  font-size: var(--fs-base);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  overflow: hidden;
}

.prose th,
.prose td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
}

.prose th {
  background: var(--c-surface-2);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}

.prose hr {
  margin-block: 2em;
}

/* 旧模板（.entry-content）也复用同一套排版基线 */
.entry-content {
  font-size: var(--fs-md);
  line-height: var(--lh-base);
  color: var(--c-text-2);
}

/* ==========================================================================
   19. 侧边栏
   ========================================================================== */

.sidebar {
  display: grid;
  gap: var(--sp-5);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
}

@media (max-width: 1023px) {
  .sidebar {
    position: static;
  }
}

.widget {
  padding: 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
}

.widget__title,
.widget h2 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--c-border);
}

.widget ul {
  display: grid;
  gap: 0.55rem;
}

.widget ul li a {
  color: var(--c-text-2);
  font-size: var(--fs-base);
  display: flex;
  gap: 0.5rem;
  line-height: var(--lh-snug);
}

.widget ul li a:hover {
  color: var(--c-brand);
}

.widget__cta {
  background: var(--grad-brand);
  color: #fff;
  border: 0;
}

.widget__cta h2 {
  color: #fff;
  border-bottom-color: rgb(255 255 255 / 0.25);
}

.widget__cta p {
  color: rgb(255 255 255 / 0.86);
  font-size: var(--fs-base);
}

.widget__cta .btn {
  margin-top: var(--sp-3);
  --btn-bg: #fff;
  --btn-fg: #0b1120;
}

/* ==========================================================================
   20. 分页
   ========================================================================== */

.pager {
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.pager__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.pager__item .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.6rem;
  border-radius: var(--r-2);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-2);
  font-variant-numeric: tabular-nums;
  transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
    background-color var(--dur-1) var(--ease-out);
}

.pager__item .page-numbers:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

.pager__item .page-numbers.current {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: var(--c-brand-contrast);
  font-weight: var(--fw-semibold);
}

.pager__item .page-numbers.dots {
  border-color: transparent;
  background: none;
}

.pager__item .page-numbers .sr-only {
  position: absolute;
}

/* ==========================================================================
   21. 页脚
   ========================================================================== */

.site-footer {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  background: var(--grad-dark);
  color: rgb(255 255 255 / 0.72);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) var(--sp-6);
}

.site-footer a {
  color: rgb(255 255 255 / 0.72);
}

.site-footer a:hover {
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
}

.footer__brand .brand {
  color: #fff;
}

.footer__about {
  margin-top: var(--sp-4);
  font-size: var(--fs-base);
  color: rgb(255 255 255 / 0.62);
  max-width: 24rem;
}

.footer__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}

.footer__links {
  display: grid;
  gap: 0.6rem;
  font-size: var(--fs-base);
}

.footer__contact {
  display: grid;
  gap: 0.7rem;
  font-size: var(--fs-base);
}

.footer__contact li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.footer__contact .icon {
  margin-top: 0.2em;
  color: rgb(255 255 255 / 0.5);
}

.footer__tel {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: #fff !important;
  letter-spacing: -0.01em;
}

.qr-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.qr-card {
  width: 92px;
  text-align: center;
}

.qr-card img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  padding: 4px;
  background: #fff;
  border-radius: var(--r-2);
}

.qr-card p {
  margin-top: 0.35rem;
  font-size: var(--fs-xs);
  color: rgb(255 255 255 / 0.6);
  line-height: 1.3;
}

.footer__bottom {
  margin-top: clamp(2rem, 1rem + 3vw, 3rem);
  padding-top: var(--sp-5);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / 0.5);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
}

.footer__beian {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.footer-links {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.footer-links__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.45);
  margin-bottom: 0.6rem;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: var(--fs-sm);
}

@media (max-width: 960px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   22. 右侧悬浮工具条
   ========================================================================== */

.rail {
  position: fixed;
  right: clamp(0.5rem, 1.4vw, 1.25rem);
  bottom: clamp(1rem, 4vh, 2.5rem);
  z-index: var(--z-rail);
  display: grid;
  gap: 0.5rem;
}

.rail__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
  box-shadow: var(--sh-2);
  transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out),
    background-color var(--dur-1) var(--ease-out), opacity var(--dur-2) var(--ease-out);
}

.rail__btn:hover {
  color: var(--c-brand);
  border-color: var(--c-brand);
}

.rail__btn[hidden] {
  display: none;
}

.rail__label {
  position: absolute;
  right: calc(100% + 8px);
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
  border-radius: var(--r-1);
  background: var(--c-surface-inverse);
  color: #fff;
  font-size: var(--fs-xs);
  opacity: 0;
  pointer-events: none;
  translate: 4px 0;
  transition: opacity var(--dur-1) var(--ease-out), translate var(--dur-1) var(--ease-out);
}

.rail__btn:hover .rail__label,
.rail__btn:focus-visible .rail__label {
  opacity: 1;
  translate: 0 0;
}

.rail__panel {
  position: absolute;
  right: calc(100% + 10px);
  bottom: 0;
  display: none;
  width: 236px;
  padding: 0.75rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  box-shadow: var(--sh-3);
}

.rail__panel[data-open="true"] {
  display: block;
}

.rail__panel .qr-grid {
  gap: 0.5rem;
}

.rail__panel .qr-card {
  width: 100px;
}

.rail__panel .qr-card img {
  width: 100px;
  height: 100px;
}

.rail__panel .qr-card p {
  color: var(--c-text-3);
}

@media (max-width: 767px) {
  .rail {
    display: none;
  }
}

/* ==========================================================================
   23. 对话框（QQ 咨询等）
   ========================================================================== */

dialog.dialog {
  width: min(880px, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--sh-3);
}

dialog.dialog::backdrop {
  background: var(--c-overlay);
  backdrop-filter: blur(3px);
}

.dialog__inner {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.dialog__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

.dialog__desc {
  margin-top: 0.25rem;
  font-size: var(--fs-sm);
  color: var(--c-text-3);
}

.manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-4);
}

.manager {
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  background: var(--c-surface-2);
}

.manager img {
  width: 100%;
  max-width: 150px;
  margin: 0.5rem auto;
  border-radius: var(--r-2);
  background: #fff;
}

.manager__name {
  font-weight: var(--fw-semibold);
}

.manager__meta {
  font-size: var(--fs-sm);
  color: var(--c-text-3);
}

/* ==========================================================================
   24. 提示 / 空状态
   ========================================================================== */

.notice {
  padding: 0.85rem 1rem;
  border-radius: var(--r-2);
  border: 1px solid var(--c-border);
  background: var(--c-bg-subtle);
  color: var(--c-text-2);
  font-size: var(--fs-base);
}

.notice--empty {
  border-style: dashed;
  color: var(--c-text-3);
}

.empty-state {
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) var(--sp-4);
  text-align: center;
  background: var(--c-surface);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--r-4);
}

.empty-state__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
}

.empty-state__desc {
  margin-top: 0.5rem;
  color: var(--c-text-2);
}

.empty-state .btn {
  margin-top: var(--sp-5);
}

/* ==========================================================================
   25. Tab 组件（原生 + JS 增强）
   ========================================================================== */

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.35rem;
  background: var(--c-bg-subtle);
  border-radius: var(--r-pill);
  width: fit-content;
  margin-inline: auto;
}

.tabs__tab {
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--c-text-2);
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}

.tabs__tab:hover {
  color: var(--c-text);
}

.tabs__tab[aria-selected="true"] {
  background: var(--c-surface);
  color: var(--c-brand);
  box-shadow: var(--sh-1);
}

.tabs__panel[hidden] {
  display: none;
}

/* ==========================================================================
   26. 滚动显现动画（尊重 prefers-reduced-motion）
   ========================================================================== */

/* 滚动显现动画：仅在 JS 可用时启用（html.js），保证脚本失效时内容仍完整可见 */
.js [data-reveal] {
  opacity: 0;
  translate: 0 14px;
  transition: opacity var(--dur-3) var(--ease-out), translate var(--dur-3) var(--ease-out);
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

/* 首屏 Hero 内容不做滚动动画，直接淡入，避免 LCP 延迟 */
.hero__copy {
  animation: fade-up var(--dur-3) var(--ease-out) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    translate: 0 10px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ==========================================================================
   27. 响应式细节
   ========================================================================== */

@media (max-width: 767px) {
  .section-head--split {
    align-items: flex-start;
  }

  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-3);
  }

  .stat__value {
    font-size: var(--fs-lg);
  }

  .post {
    padding: 1.15rem;
    border-radius: var(--r-3);
  }

  .crumbs__list {
    font-size: var(--fs-xs);
  }
}

/* 旧模板仍使用的辅助类，保留以保证兼容（仅在移动端隐藏，桌面端保持元素默认显示方式） */
@media screen and (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }

  .mobile-show {
    display: block !important;
  }
}

/* ==========================================================================
   28. 打印
   ========================================================================== */

@media print {
  .site-header,
  .rail,
  .site-footer,
  .pager,
  .post-nav,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ==========================================================================
   29. 无障碍与偏好
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    translate: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --c-border: #94a3b8;
    --c-text-2: #1f2937;
    --c-text-3: #374151;
  }
}

/* ==========================================================================
   27. 营销落地页组件（pageTemplates 统一改造后共用）
   ========================================================================== */

/* 页头补充信息：优惠活动等一句话说明 */
.page-hero__note {
  margin-top: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.22);
  color: #fff;
  font-size: var(--fs-sm);
}

.page-hero__note a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero__actions {
  margin-top: var(--sp-5);
}

/* 命令 / 代码块（安装脚本等） */
.code-block {
  position: relative;
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--c-bg-muted);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--c-text-2);
  overflow-x: auto;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

.code-row {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border);
}

.code-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.code-row__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}

.code-row__label span {
  font-size: var(--fs-sm);
  font-weight: var(--fw-normal);
  color: var(--c-text-3);
}

/* 套餐 / 定价卡 */
.plan {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  height: 100%;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out),
    translate var(--dur-2) var(--ease-out);
}

.plan:hover {
  border-color: var(--c-brand);
  box-shadow: var(--sh-2);
  translate: 0 -3px;
}

.plan--featured {
  border-color: var(--c-brand);
  box-shadow: var(--sh-2);
}

.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.plan__name {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}

.plan__tag {
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-pill);
  background: var(--c-brand-soft);
  color: var(--c-brand);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}

.plan__desc {
  font-size: var(--fs-sm);
  color: var(--c-text-3);
  min-height: 2.6em;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  color: var(--c-text);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}

.plan__price sup {
  font-size: 0.55em;
  font-weight: var(--fw-medium);
  color: var(--c-text-2);
}

.plan__price small {
  font-size: var(--fs-sm);
  font-weight: var(--fw-normal);
  color: var(--c-text-3);
}

.plan__price del {
  margin-left: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-normal);
  color: var(--c-text-3);
}

.plan__list {
  display: grid;
  gap: 0.5rem;
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}

.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.plan__list .icon {
  flex: none;
  margin-top: 0.15rem;
  color: var(--c-brand);
}

.plan__foot {
  margin-top: auto;
  padding-top: var(--sp-4);
}

/* 左右图文交替：反向排列 */
.split--reverse .split__media {
  order: 2;
}

@media (max-width: 767px) {
  .split--reverse .split__media {
    order: 0;
  }
}

/* 表格式规格卡片（首页表头吸顶、行内价格对齐） */
.spec-table caption {
  caption-side: top;
  text-align: left;
}

.spec-table__price small {
  color: var(--c-text-3);
}

/* ==========================================================================
   28. 文章详情版式
   ========================================================================== */

/* 正文区不再叠加两层 section 留白，单独收紧 */
.section--article {
  padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
}

/* 文章页更宽的正文列 + 稍窄侧栏，避免正文被挤成窄条 */
.layout--article {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem);
}

.layout--article > .post {
  padding: clamp(1.25rem, 1rem + 1.4vw, 2.25rem);
  min-width: 0;
}

/* 长文正文：行高与段距按中文阅读优化，图片不再撑破容器 */
.layout--article .prose {
  max-width: none;
  font-size: var(--fs-base);
  line-height: 1.85;
}

.layout--article .prose > * + * {
  margin-top: 1.1em;
}

.layout--article .prose img,
.layout--article .prose iframe,
.layout--article .prose table {
  max-width: 100%;
  height: auto;
}

.layout--article .prose table {
  display: block;
  overflow-x: auto;
}

/* 侧栏吸顶 */
.layout--article > .sidebar,
.layout--article > aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  align-self: start;
}

@media (max-width: 1023px) {
  .layout--article {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout--article > .sidebar,
  .layout--article > aside {
    position: static;
  }
}

@media (max-width: 767px) {
  .section--article {
    padding-block: 1.25rem 2rem;
  }

  .layout--article > .post {
    border-radius: var(--r-3);
    padding: 1.1rem 1rem;
  }
}

/* ==========================================================================
   29. 网站建设页：流程步骤 + 常见问题
   ========================================================================== */

/* 流程步骤：有序列表 + 序号徽标，六步固定三列（3+3），窄屏降为两列、单列 */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 0.5rem + 1.2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps__item {
  counter-increment: step;
  padding: clamp(1.15rem, 0.9rem + 1vw, 1.6rem);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  box-shadow: var(--sh-1);
}

.steps__item::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.7rem;
  border-radius: var(--r-pill);
  background: var(--c-brand-soft);
  color: var(--c-brand);
  font-size: var(--fs-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.steps__title {
  margin: 0 0 0.4rem;
  font-size: var(--fs-lg);
  line-height: 1.4;
}

.steps__text {
  margin: 0;
  color: var(--c-text-2);
  font-size: var(--fs-sm);
  line-height: 1.75;
}

/* 常见问题：原生 details，无需 JS，键盘可直接操作 */
.faq {
  display: grid;
  gap: var(--sp-3);
  max-width: 860px;
  margin-inline: auto;
}

.faq__item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item:hover {
  border-color: var(--c-border-strong);
}

.faq__item[open] {
  border-color: var(--c-brand);
  box-shadow: var(--sh-1);
}

.faq__q {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.85rem, 0.7rem + 0.5vw, 1.1rem) clamp(1rem, 0.85rem + 0.7vw, 1.4rem);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-inline-end: 0.35rem;
  border-right: 2px solid var(--c-text-3);
  border-bottom: 2px solid var(--c-text-3);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__q::after {
  transform: rotate(-135deg);
}

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

.faq__a {
  padding: 0 clamp(1rem, 0.85rem + 0.7vw, 1.4rem) clamp(1rem, 0.85rem + 0.7vw, 1.4rem);
  color: var(--c-text-2);
  font-size: var(--fs-base);
  line-height: 1.8;
}

@media (max-width: 959px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
