/* ============================================================
   /assets/site.css
   万能娱乐棋牌 · 共享骨架
   设计语言：技术蓝图网格 + 夜间棋牌室沉浸氛围
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

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

h1, h2, h3, h4, h5, h6,
p, figure, blockquote { margin: 0; }

[id] { scroll-margin-top: 120px; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --c-ink: #0B1F1A;
  --c-ink-deep: #07110E;
  --c-cyan: #39F2D0;
  --c-heat-high: #2AE6B0;
  --c-heat-low: #0E7C66;
  --c-amber: #F2B84B;
  --c-orange: #FF8A4C;
  --c-text: #EAF7F3;
  --c-text-soft: #9AB8AF;
  --c-line: #1F3B33;
  --c-line-strong: #2E5449;

  --glass-bg: rgba(7, 17, 14, 0.72);
  --glass-brd: rgba(57, 242, 208, 0.16);

  --shell-max: 1320px;
  --shell-pad: clamp(16px, 3.2vw, 40px);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --font-title: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --dur: 0.22s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 中文排版与基础元素 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-ink);
  background-image:
    linear-gradient(to right, rgba(31, 59, 51, 0.38) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 59, 51, 0.38) 1px, transparent 1px);
  background-size: 72px 72px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--c-text);
}

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

a:hover { text-decoration: underline; }

strong, b { font-weight: 700; color: var(--c-text); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---------- 4. 布局基础 ---------- */
.container,
.header-utility__inner,
.header-main__inner,
.footer__inner,
.footer__bottom-inner {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.container--narrow { max-width: 860px; }

#main-content { display: block; min-height: 60vh; }

.section { padding-block: clamp(40px, 6vw, 88px); }
.section--tight { padding-block: clamp(26px, 4vw, 54px); }

.section__head { margin-bottom: clamp(20px, 3vw, 36px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--c-cyan);
  flex: none;
}

.page-title {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  margin: 0 0 16px;
}

.lede {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.78;
  color: var(--c-text-soft);
  max-width: 62ch;
  margin: 0 0 24px;
}

.prose {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text-soft);
  max-width: 72ch;
}

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

.prose h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--c-text);
  margin-top: 1.8em;
}

.prose h3 {
  font-size: 19px;
  color: var(--c-text);
  margin-top: 1.5em;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  list-style: disc;
}

.prose ol { list-style: decimal; }
.prose li { margin-top: 0.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 5. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  background: var(--c-amber);
  color: #141005;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 16px;
  text-decoration: none;
  outline: 2px solid var(--c-text);
  outline-offset: 2px;
}

/* ---------- 6. 头部：双层信息导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 17, 14, 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text);
}

/* 6.1 上层：品牌说明 + 实时状态 */
.header-utility {
  border-bottom: 1px solid var(--c-line);
  background:
    linear-gradient(90deg, rgba(57, 242, 208, 0.05), transparent 42%);
}

.header-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
  min-height: 36px;
  padding-block: 6px;
}

.header-brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--c-text-soft);
}

.header-brandline__mark {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border: 1px solid var(--c-amber);
  border-radius: 2px;
  color: var(--c-amber);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.55;
  flex: none;
}

.header-brandline__text { line-height: 1.55; }

.header-status {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.header-status__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--c-text-soft);
}

.header-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 0 1px rgba(57, 242, 208, 0.28), 0 0 9px rgba(57, 242, 208, 0.85);
  flex: none;
}

.header-status__dot--warn {
  background: var(--c-orange);
  box-shadow: 0 0 0 1px rgba(255, 138, 76, 0.3), 0 0 9px rgba(255, 138, 76, 0.85);
}

.header-status__label { color: var(--c-text-soft); }

.header-status__link {
  color: var(--c-text-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.header-status__link:hover {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
  text-decoration: none;
}

/* 6.2 下层：品牌 + 栏目 */
.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding-block: 8px;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}

.header-brand:hover { text-decoration: none; }

.header-brand__glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--c-heat-high), var(--c-heat-low));
  color: #04120E;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    0 0 0 1px rgba(57, 242, 208, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.45);
}

.header-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-brand__name {
  font-family: var(--font-title);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--c-text);
}

.header-brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--c-text-soft);
}

/* 6.3 栏目 */
.header-nav { margin-left: auto; }

.header-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.header-nav__list::-webkit-scrollbar { display: none; }

.header-nav__item { display: block; flex: none; }

.header-nav__link {
  display: inline-block;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--c-text-soft);
  text-decoration: none;
  transition:
    color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.header-nav__link:hover {
  color: var(--c-text);
  background: rgba(57, 242, 208, 0.08);
  text-decoration: none;
}

.header-nav__link[aria-current="page"] {
  color: var(--c-cyan);
  background: rgba(57, 242, 208, 0.1);
  border-color: rgba(57, 242, 208, 0.34);
}

/* 6.4 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-sm);
  background: rgba(57, 242, 208, 0.07);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: none;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}

.nav-toggle__bars::before { top: 1px; }
.nav-toggle__bars::after { top: 7px; }

.site-header[data-open] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

.nav-toggle__text { line-height: 1; }

/* 6.5 滚动进度条 */
.header-progress {
  height: 2px;
  background: rgba(31, 59, 51, 0.65);
  overflow: hidden;
}

.header-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-heat-low), var(--c-cyan) 68%, var(--c-amber));
}

/* ---------- 7. 通用按钮 / 标签 / 卡片 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-amber);
  color: #141005;
  box-shadow: 0 10px 24px rgba(242, 184, 75, 0.18);
}

.btn--primary:hover { background: #ffc961; }

.btn--ghost {
  border-color: var(--c-line-strong);
  background: rgba(57, 242, 208, 0.05);
  color: var(--c-text);
}

.btn--ghost:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

.btn--cyan {
  background: var(--c-cyan);
  color: #04120E;
}

.btn--cyan:hover { background: var(--c-heat-high); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid var(--c-line-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--c-text-soft);
}

.tag--cyan {
  border-color: rgba(57, 242, 208, 0.4);
  background: rgba(57, 242, 208, 0.08);
  color: var(--c-cyan);
}

.tag--amber {
  border-color: rgba(242, 184, 75, 0.45);
  background: rgba(242, 184, 75, 0.1);
  color: var(--c-amber);
}

.tag--warn {
  border-color: rgba(255, 138, 76, 0.45);
  background: rgba(255, 138, 76, 0.1);
  color: var(--c-orange);
}

.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(11, 31, 26, 0.92), rgba(7, 17, 14, 0.92));
  transition: border-color var(--dur) var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 34px;
  height: 2px;
  background: var(--c-cyan);
}

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

.card__title {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text);
  margin-bottom: 8px;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--c-text-soft);
}

/* ---------- 8. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- 9. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background-color: var(--c-ink-deep);
  background-image:
    radial-gradient(circle at 72% 18%, rgba(57, 242, 208, 0.16), transparent 62%),
    linear-gradient(150deg, rgba(11, 31, 26, 0.96), rgba(7, 17, 14, 0.96));
}

.media--4x3 { aspect-ratio: 4 / 3; }
.media--wide { aspect-ratio: 21 / 9; }

.media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__placeholder {
  display: grid;
  place-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-soft);
}

.media__placeholder::before {
  content: "";
  width: 40px;
  height: 56px;
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgba(57, 242, 208, 0.12);
}

.media__caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-text-soft);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--c-text-soft);
}

.breadcrumb__link {
  color: var(--c-text-soft);
  text-decoration: none;
}

.breadcrumb__link:hover { color: var(--c-cyan); text-decoration: none; }

.breadcrumb__sep {
  color: var(--c-line-strong);
  user-select: none;
}

.breadcrumb__current { color: var(--c-cyan); }

/* ---------- 11. 页脚：分栏折叠抽屉 ---------- */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--c-ink-deep);
  border-top: 1px solid var(--c-line);
  color: var(--c-text-soft);
  font-size: 14px;
}

.footer__inner { padding-top: clamp(28px, 4vw, 52px); }

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c-line);
}

.footer-brand__link {
  font-family: var(--font-title);
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-text);
  text-decoration: none;
}

.footer-brand__link:hover { color: var(--c-cyan); text-decoration: none; }

.footer-brand__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--c-text-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-drawer {
  padding: 24px 24px 26px;
  border-left: 1px solid var(--c-line);
  min-width: 0;
}

.footer-drawer:first-child {
  border-left: 0;
  padding-left: 0;
}

.footer-drawer:last-child { padding-right: 0; }

.footer-drawer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0 0 12px;
  margin: 0;
  background: none;
  border: 0;
  color: var(--c-text);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.footer-drawer__toggle:hover { color: var(--c-cyan); }

.footer-drawer__chevron {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: -3px;
  border-right: 1.5px solid var(--c-cyan);
  border-bottom: 1.5px solid var(--c-cyan);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease), margin var(--dur) var(--ease);
}

.footer-drawer[data-open] .footer-drawer__chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

.footer-drawer__panel {
  display: none;
  counter-reset: flink;
  margin: 0;
  padding: 0;
}

.footer-drawer[data-open] .footer-drawer__panel { display: block; }

.footer-link {
  position: relative;
  display: block;
  padding: 5px 0 5px 26px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-text-soft);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-link::before {
  position: absolute;
  left: 0;
  top: 6px;
  counter-increment: flink;
  content: counter(flink, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--c-line-strong);
}

.footer-link:hover { color: var(--c-cyan); text-decoration: none; }

.footer-link--plain { padding-left: 0; }
.footer-link--plain::before { content: none; }

.footer-legacy {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 0 6px;
  border: 1px solid rgba(242, 184, 75, 0.45);
  border-radius: 2px;
  background: rgba(242, 184, 75, 0.12);
  color: var(--c-amber);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.7;
  vertical-align: 1px;
}

.footer-contact { margin: 0; }

.footer-contact__row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 0 12px;
}

.footer-contact__row:last-child { margin-bottom: 0; }

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-soft);
}

.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--c-text);
  word-break: break-word;
}

.footer__bottom {
  border-top: 1px solid var(--c-line);
  background: rgba(11, 31, 26, 0.5);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
}

.footer__copyright { color: var(--c-text-soft); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer__legal-link {
  color: var(--c-text-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer__legal-link:hover {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
  text-decoration: none;
}

/* ---------- 12. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  background: rgba(7, 17, 14, 0.94);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

.to-top__icon {
  font-size: 13px;
  line-height: 1;
}

.to-top__text { line-height: 1; }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1180px) {
  .header-nav__link { padding: 9px 10px; font-size: 13.5px; }
  .footer-drawer { padding: 22px 18px 24px; }
}

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-drawer { padding: 20px 18px 24px; }
  .footer-drawer:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .footer-drawer:nth-child(n + 3) { border-top: 1px solid var(--c-line); }
}

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

  .header-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 8px var(--shell-pad) 18px;
    background: rgba(7, 17, 14, 0.985);
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.6);
  }

  .site-header[data-open] .header-nav { display: block; }

  .header-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: visible;
  }

  .header-nav__link {
    display: block;
    padding: 13px 10px;
    border: 0;
    border-bottom: 1px solid var(--c-line);
    border-radius: 0;
    font-size: 15px;
  }

  .header-nav__link[aria-current="page"] {
    border-left: 2px solid var(--c-cyan);
    padding-left: 14px;
    background: rgba(57, 242, 208, 0.08);
  }

  .header-nav__item:last-child .header-nav__link { border-bottom: 0; }
}

@media (max-width: 720px) {
  .header-utility__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-block: 9px;
  }

  .header-brandline { font-size: 10.5px; }
  .header-status { font-size: 11px; gap: 6px 16px; }

  .header-main__inner { min-height: 58px; }

  .header-brand__glyph { width: 36px; height: 36px; font-size: 17px; }
  .header-brand__name { font-size: 15px; }
  .header-brand__sub { font-size: 9.5px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-drawer {
    border-left: 0;
    border-top: 1px solid var(--c-line);
    padding: 0;
  }
  .footer-drawer:first-child { border-top: 0; }
  .footer-drawer:nth-child(n + 3) { border-top: 1px solid var(--c-line); }
  .footer-drawer__toggle {
    padding: 15px 0;
    font-size: 14.5px;
  }
  .footer-drawer[data-open] .footer-drawer__panel { padding-bottom: 16px; }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .btn { width: 100%; padding: 13px 20px; }
  .to-top { padding: 10px 13px; }
  .to-top__text { display: none; }
  .to-top__icon { font-size: 15px; }
}

/* ---------- 14. 减少动态偏好 ---------- */
@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;
    transition-delay: 0ms !important;
  }

  .btn:hover { transform: none; }
  .to-top { transform: none; }
}
