@charset "UTF-8";
/* ==========================================================================
   顶胜体育 · dingsheng-now.com.cn
   共享样式 /assets/site.css
   语言：深墨绿基底 + 荧光青强调 + 橙红数据 + 电子紫点缀
        分屏叙事 / -8° 斜切分区 / 宽幅数据条带 / 展览说明牌
   ========================================================================== */

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

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

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd, fieldset, legend {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

button { background: none; border: 0; }

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

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

/* --- 2. 变量 ------------------------------------------------------------ */
:root {
  /* 色板 */
  --ink-900: #06231B;
  --ink-700: #0B3529;
  --ink-600: #12483A;
  --cyan: #35F0C0;
  --cyan-soft: #9CFCE0;
  --orange: #FF5A2E;
  --violet: #7A4DFF;
  --paper: #F2F7F4;
  --muted: #8FA9A0;

  --line: rgba(53, 240, 192, .20);
  --line-soft: rgba(53, 240, 192, .10);
  --wash: rgba(53, 240, 192, .08);
  --wash-violet: rgba(122, 77, 255, .08);

  /* 运动与形状 */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 2px;
  --cut: -8deg;

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

  /* 尺寸 */
  --body-size: 17px;
  --wrap: 1400px;
  --pad: clamp(16px, 4vw, 48px);
  --header-h: 96px;
}

html[data-font-size="lg"] { --body-size: 18.5px; }
html[data-font-size="xl"] { --body-size: 20px; }

@media (max-width: 720px) {
  :root { --body-size: 16px; }
}

/* --- 3. 基础排版 -------------------------------------------------------- */
body {
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.06;
  color: var(--paper);
}

h1 { font-size: clamp(2.25rem, 6.5vw, 5.5rem); line-height: .94; }
h2 { font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.02; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.2; }
h4 { font-size: 1.0625rem; line-height: 1.4; letter-spacing: 0; }

small { font-size: 12px; letter-spacing: .06em; color: var(--muted); }

strong, b { font-weight: 700; color: var(--cyan-soft); }

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

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

#main-content,
main { scroll-margin-top: calc(var(--header-h) + 20px); }

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

/* --- 4. 跳转链接 -------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 0;
  left: var(--pad);
  z-index: 200;
  padding: 12px 20px;
  background: var(--cyan);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  border-radius: 0 0 var(--radius) var(--radius);
  transform: translateY(-130%);
  transition: transform .2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --- 5. 页头 ------------------------------------------------------------ */
.site-header {
  --header-h: 96px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg,
      rgba(6, 35, 27, .74) 0%,
      rgba(6, 35, 27, .34) 60%,
      rgba(6, 35, 27, 0) 100%);
  transition: height .32s var(--ease), background-color .32s var(--ease);
}

.site-header[data-scrolled="true"] {
  --header-h: 64px;
  background: rgba(6, 35, 27, .97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

/* 品牌块 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  background: var(--ink-900);
  transform: translate(-50%, -50%) rotate(-8deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--paper);
  white-space: nowrap;
}

.brand-sub {
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .16em;
  color: var(--muted);
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 24px);
}

.nav-list a {
  position: relative;
  display: block;
  padding: 9px 2px;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible { color: var(--paper); }

.nav-list a[aria-current="page"] {
  color: var(--cyan);
  font-weight: 700;
}

.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

/* 工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: clamp(4px, 1vw, 16px);
}

.tool-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--cyan-soft);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .1em;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.tool-btn:hover,
.tool-btn:focus-visible {
  background: var(--wash);
  border-color: var(--cyan);
  color: var(--paper);
}

.tool-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 34px;
  flex: 0 0 auto;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 1px;
  background: var(--cyan);
  transition: transform .3s var(--ease), top .3s var(--ease);
}

.nav-toggle::before { top: 12px; }
.nav-toggle::after { top: 20px; }

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--cyan);
  background: var(--wash);
}

.nav-toggle[aria-expanded="true"]::before { top: 16px; transform: rotate(-8deg); }
.nav-toggle[aria-expanded="true"]::after { top: 16px; transform: rotate(8deg); }

/* 阅读进度 */
.read-progress {
  flex: 0 0 auto;
  width: 100%;
  height: 2px;
  background: rgba(53, 240, 192, .14);
  overflow: hidden;
}

.progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
}

/* --- 6. 页脚 ------------------------------------------------------------ */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 140px);
  padding: calc(clamp(72px, 9vw, 128px) + clamp(28px, 4vw, 56px)) var(--pad) clamp(28px, 4vw, 44px);
  background:
    radial-gradient(120% 80% at 88% 0%, rgba(122, 77, 255, .16) 0%, rgba(122, 77, 255, 0) 58%),
    radial-gradient(90% 70% at 6% 100%, rgba(53, 240, 192, .12) 0%, rgba(53, 240, 192, 0) 62%),
    var(--ink-700);
  clip-path: polygon(0 clamp(28px, 4vw, 56px), 100% 0, 100% 100%, 0 100%);
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) minmax(0, 2fr) minmax(210px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand .brand-mark {
  width: 38px;
  height: 38px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--paper);
}

.footer-tag {
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--muted);
  max-width: 16em;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 36px);
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--cyan);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--paper);
  transform: translateX(4px);
}

.footer-contact { display: flex; flex-direction: column; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list li {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--paper);
  word-break: break-word;
}

.contact-label {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 2px;
}

.footer-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 26em;
}

.footer-bottom {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-top: clamp(20px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.legal-line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--cyan-soft);
}

.footer-copyright {
  margin-left: auto;
  max-width: 40em;
  color: var(--muted);
}

.footer-copyright [data-year] {
  font-family: var(--font-mono);
  color: var(--cyan);
}

/* --- 7. 通用容器与节奏 -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.wrap--tight { max-width: 980px; }

.section { padding-block: clamp(56px, 8vw, 120px); }

.section--ink {
  background: var(--ink-700);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 28px;
  margin-bottom: clamp(24px, 3.5vw, 48px);
}

.section-head > :first-child { flex: 1 1 22ch; }
.section-head > :last-child:not(:first-child) { flex: 0 1 40ch; }

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 24px);
}

.stack--tight { gap: 8px; }

/* --- 8. 网格原型 -------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 32px);
}

.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--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

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

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* --- 9. 说明牌与标签 ---------------------------------------------------- */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  background: var(--wash);
  font-size: 12px;
  letter-spacing: .16em;
  line-height: 1.5;
  color: var(--cyan-soft);
}

.plate-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--orange);
}

.plate--violet {
  border-left-color: var(--violet);
  background: var(--wash-violet);
}

.plate--violet .plate-num { color: var(--violet); }

.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--wash);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--cyan-soft);
}

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

.chip {
  appearance: none;
  cursor: pointer;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .06em;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.chip:hover { color: var(--paper); border-color: var(--cyan); }

.chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
  font-weight: 700;
}

/* --- 10. 数据条带 ------------------------------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 2.2vw, 28px);
  background: var(--ink-900);
}

.stat--ink { background: var(--ink-700); }

.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cyan);
}

.stat-value--alert { color: var(--orange); }
.stat-value--violet { color: var(--violet); }
.stat-value--paper { color: var(--paper); }

.stat-label {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--muted);
}

/* --- 11. 卡片索引 ------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--ink-700);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color .24s var(--ease), background-color .24s var(--ease), transform .24s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(53, 240, 192, 0) 72%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease);
}

.card:hover,
.card:focus-within {
  border-color: var(--line);
  background: var(--ink-600);
  transform: translateY(-3px);
}

.card:hover::before,
.card:focus-within::before { transform: scaleX(1); }

.card-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--paper);
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.card-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.card--alert { border-left: 3px solid var(--orange); }
.card--violet { border-left: 3px solid var(--violet); }

/* --- 12. 图像容器（页面阶段放图） --------------------------------------- */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-600);
  border-radius: var(--radius);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.7) contrast(1.12) brightness(.92);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(155deg, rgba(53, 240, 192, .18) 0%, rgba(53, 240, 192, 0) 46%),
    rgba(6, 35, 27, .30);
}

.media-frame--wide { aspect-ratio: 16 / 7; }
.media-frame--hero { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-frame--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
}

.media-caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* --- 13. 正文、面包屑、章节指示器 --------------------------------------- */
.prose {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  max-width: 34em;
}

.prose p { max-width: 34em; }
.prose h2 { margin-top: .5em; }
.prose h3 { margin-top: .35em; }

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: .5em;
  padding-left: 1.2em;
  list-style: disc;
}

.prose ol { list-style: decimal; }
.prose li { max-width: 32em; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(53, 240, 192, .4);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.prose a:hover,
.prose a:focus-visible {
  color: var(--cyan-soft);
  border-bottom-color: var(--cyan);
}

.breadcrumb {
  padding-top: calc(var(--header-h) + clamp(20px, 3vw, 36px));
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb li::after {
  content: "/";
  color: var(--ink-600);
}

.breadcrumb li:last-child::after { content: none; }

.breadcrumb a { color: var(--muted); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--cyan-soft); }

.chapter-rail {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  display: flex;
  flex-direction: column;
}

.chapter-rail a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  transition: color .2s var(--ease);
}

.chapter-rail a:last-child { border-bottom: 1px solid var(--line-soft); }
.chapter-rail a .plate-num { color: var(--ink-600); transition: color .2s var(--ease); }
.chapter-rail a:hover { color: var(--paper); }

.chapter-rail a.is-active {
  color: var(--cyan);
  font-weight: 700;
}

.chapter-rail a.is-active .plate-num { color: var(--orange); }

@media (max-width: 900px) {
  .chapter-rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }
  .chapter-rail a {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .chapter-rail a:last-child { border-bottom: 1px solid var(--line); }
  .chapter-rail a.is-active {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--ink-900);
  }
  .chapter-rail a.is-active .plate-num { color: var(--ink-900); }
}

/* --- 14. 按钮 ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
}

.btn--primary:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan-soft);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--cyan);
}

.btn--ghost:hover {
  background: var(--wash);
  border-color: var(--cyan);
  color: var(--paper);
}

.btn--alert {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink-900);
}

.btn--alert:hover { background: #FF7550; border-color: #FF7550; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- 15. 入场显现 ------------------------------------------------------- */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-armed {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

/* --- 16. 响应式页头 ----------------------------------------------------- */
@media (max-width: 1100px) {
  .brand-sub { display: none; }
  .tool-label { display: none; }
}

@media (max-width: 900px) {
  .site-header { --header-h: 64px; }
  .site-header[data-scrolled="true"] { --header-h: 60px; }

  .header-inner { gap: 10px; }

  .nav-toggle { display: block; }

  .header-tools {
    margin-left: auto;
    gap: 6px;
  }

  .tool-btn { padding: 6px 10px; }
  .tool-btn[data-font-toggle] { display: none; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 6px var(--pad) 24px;
    background: rgba(11, 53, 41, .985);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li { width: 100%; }

  .nav-list a {
    padding: 15px 0 15px 16px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-list li:last-child a { border-bottom: 0; }

  .nav-list a::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 18px;
    background: var(--orange);
    transform: translateY(-50%) scaleY(0);
    transform-origin: center center;
  }

  .nav-list a[aria-current="page"]::after { transform: translateY(-50%) scaleY(1); }
}

@media (max-width: 1000px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
  .footer-brand .brand-mark { width: 34px; height: 34px; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-copyright { margin-left: 0; }
}

/* --- 17. 减少动态效果 --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal,
  .reveal.is-armed {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn:hover,
  .card:hover,
  .card:focus-within,
  .footer-links a:hover { transform: none; }
}
