/* ============================================================
   百胜游戏中心 — /assets/site.css
   共享外壳：令牌、重置、中文排版、头部、页脚、通用组件
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --dusk: #171A20;
  --panel: #22262E;
  --paper: #F2E8D5;
  --paper-bright: #FBF6EC;
  --barley: #E8B84B;
  --lake: #4FA3C7;
  --ochre: #C4553B;
  --slate-blue: #8A96A3;
  --ink: #0E1014;
  --moss: #6E8B6B;

  --line: rgba(242, 232, 213, .14);
  --line-strong: rgba(242, 232, 213, .28);
  --line-dark: rgba(14, 16, 20, .14);
  --wash: rgba(242, 232, 213, .72);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Sarasa Mono SC", "Cascadia Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --maxw: 1320px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius: 3px;
  --shadow-soft: 0 1px 0 rgba(14, 16, 20, .35), 0 22px 46px -32px rgba(0, 0, 0, .95);
  --ease: cubic-bezier(.2, .6, .3, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--dusk);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .028;
  background-image: radial-gradient(circle at 1px 1px, #F2E8D5 1px, transparent 0);
  background-size: 3px 3px;
}

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

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

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

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

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

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

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

/* ---------- 3. 中文排版基线 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .08em;
  color: var(--paper-bright);
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.08; letter-spacing: .1em; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(19px, 2vw, 23px); letter-spacing: .06em; }

p { text-wrap: pretty; }

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 220;
  padding: 10px 18px;
  background: var(--barley);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  border-radius: var(--radius);
  transform: translateY(-240%);
  transition: transform .18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 26, 32, .94);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid var(--line);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.site-header[data-scrolled="true"] {
  border-bottom-color: rgba(232, 184, 75, .5);
  box-shadow: 0 20px 44px -36px rgba(0, 0, 0, .95);
}

.header-inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 5vw, 96px);
}

/* 品牌块 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 2px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--barley);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(14, 16, 20, .12), 0 1px 0 rgba(14, 16, 20, .55);
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  background: var(--lake);
  transform: translateY(-1px);
}

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.1;
  letter-spacing: .18em;
  color: var(--paper-bright);
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: .26em;
  color: var(--slate-blue);
  white-space: nowrap;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}

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

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}

.nav-toggle-text {
  line-height: 1;
}

/* 导航 */
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  flex: 0 0 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.9vw, 28px);
  counter-reset: navidx;
}

.nav-list li { counter-increment: navidx; }

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .5em;
  padding: 10px 2px 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--wash);
  white-space: nowrap;
  transition: color .18s var(--ease);
}

.nav-list a::before {
  content: counter(navidx, decimal-leading-zero);
  font-size: 10px;
  letter-spacing: .04em;
  color: rgba(138, 150, 163, .75);
  transition: color .18s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--barley);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}

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

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

.nav-list a:hover::after,
.nav-list a:focus-visible::after { transform: scaleX(1); }

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

.nav-list a[aria-current="page"]::before { color: var(--barley); }

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

.nav-entry {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  background: var(--lake);
  border: 1px solid var(--lake);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.nav-entry::after {
  content: "→";
  font-size: 13px;
  line-height: 1;
}

.nav-entry:hover,
.nav-entry:focus-visible {
  background: var(--barley);
  border-color: var(--barley);
  box-shadow: 0 0 0 3px rgba(232, 184, 75, .22);
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  background: var(--ink);
  color: var(--wash);
  border-top: 1px solid rgba(232, 184, 75, .3);
}

.footer-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 80px) var(--gutter) clamp(26px, 3vw, 38px);
}

.footer-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-bottom: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}

.footer-brand-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.25;
  letter-spacing: .14em;
  color: var(--paper-bright);
}

.footer-brand-dot {
  color: var(--barley);
  margin-inline: .5em;
  font-weight: 400;
}

.footer-masthead-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .2em;
  color: var(--slate-blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, .85fr));
  gap: clamp(26px, 4vw, 56px);
  padding-top: clamp(28px, 3.4vw, 44px);
}

.footer-col { min-width: 0; }

.col-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .24em;
  color: var(--barley);
}

.col-title::before {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: var(--barley);
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.contact-item dt {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .16em;
  color: var(--slate-blue);
}

.contact-item dd {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: .03em;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.contact-note {
  margin-top: 16px;
  max-width: 36ch;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(242, 232, 213, .58);
}

.footer-links {
  display: grid;
  gap: 7px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 3px 0;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--wash);
  transition: color .18s var(--ease);
}

.footer-links a::before {
  content: "";
  display: block;
  width: 12px;
  height: 1px;
  background: var(--barley);
  opacity: .35;
  transition: opacity .18s var(--ease), width .18s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--paper-bright); }

.footer-links a:hover::before,
.footer-links a:focus-visible::before { opacity: 1; width: 16px; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(30px, 4vw, 56px);
  padding-top: clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
}

.footer-copy { color: var(--slate-blue); }

.footer-icp {
  color: rgba(242, 232, 213, .62);
}

/* ---------- 7. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section {
  padding-block: clamp(44px, 6vw, 92px);
}

/* ---------- 8. 文字组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .26em;
  color: var(--barley);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5.2vw, 58px);
  line-height: 1.06;
  letter-spacing: .1em;
  color: var(--paper-bright);
}

.lede {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.85;
  color: var(--wash);
  max-width: 40em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: .06em;
  color: var(--slate-blue);
}

.prose {
  max-width: 40em;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.1vw, 17.5px);
  line-height: 1.85;
  color: rgba(242, 232, 213, .86);
}

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

.prose h2 {
  margin-top: 2em;
  font-size: clamp(22px, 2.6vw, 30px);
}

.prose h3 {
  margin-top: 1.7em;
  font-size: clamp(18px, 1.9vw, 22px);
  color: var(--paper);
}

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

.prose ol { list-style: decimal; }

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

.prose a {
  color: var(--lake);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .18s var(--ease);
}

.prose a:hover,
.prose a:focus-visible { color: var(--barley); }

.prose strong { color: var(--paper-bright); font-weight: 700; }

.prose blockquote {
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--barley);
  color: var(--wash);
}

.prose code {
  font-family: var(--font-mono);
  font-size: .88em;
  padding: 1px 6px;
  background: rgba(79, 163, 199, .14);
  border: 1px solid rgba(79, 163, 199, .3);
  border-radius: 2px;
  color: var(--lake);
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}

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

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--lake);
  border-color: var(--lake);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(79, 163, 199, .2);
}

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

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--lake);
  color: var(--lake);
}

.btn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--slate-blue);
  padding-inline: 6px;
}

.btn--quiet:hover,
.btn--quiet:focus-visible { color: var(--barley); }

/* ---------- 10. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(79, 163, 199, .42);
  border-radius: 2px;
  background: rgba(79, 163, 199, .14);
  color: var(--lake);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .04em;
  cursor: default;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

button.tag { cursor: pointer; }

button.tag:hover,
button.tag:focus-visible {
  border-color: var(--lake);
  background: rgba(79, 163, 199, .26);
}

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

.tag--lake {
  background: rgba(79, 163, 199, .14);
  border-color: rgba(79, 163, 199, .42);
  color: var(--lake);
}

.tag--barley {
  background: rgba(232, 184, 75, .14);
  border-color: rgba(232, 184, 75, .48);
  color: var(--barley);
}

.tag--ochre {
  background: rgba(196, 85, 59, .18);
  border-color: rgba(196, 85, 59, .55);
  color: #E88C74;
  font-weight: 700;
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: .1em;
  color: var(--slate-blue);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(138, 150, 163, .5);
}

.breadcrumb a {
  color: var(--slate-blue);
  transition: color .18s var(--ease);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--barley); }

.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- 12. 面板与网格 ---------- */
.panel {
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.panel--paper {
  background: var(--paper);
  border-color: rgba(14, 16, 20, .16);
  color: var(--ink);
}

.panel--paper h2,
.panel--paper h3,
.panel--paper h4,
.panel--paper strong { color: var(--ink); }

.panel--ink {
  background: var(--ink);
  border-color: rgba(242, 232, 213, .12);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 13. 图片容器 ---------- */
.figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.figure-media {
  position: relative;
  overflow: hidden;
  background: var(--panel);
}

.figure-media > img,
.figure-media > picture > img,
.figure-media > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.figure--wide .figure-media { aspect-ratio: 16 / 9; }
.figure--square .figure-media { aspect-ratio: 1 / 1; }
.figure--tall .figure-media { aspect-ratio: 3 / 4; }
.figure--band .figure-media { aspect-ratio: 21 / 9; }

.figure figcaption {
  padding: 10px 14px;
  background: rgba(14, 16, 20, .55);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .08em;
  color: var(--slate-blue);
}

/* ---------- 14. 阅读进度条（JS 注入） ---------- */
.scroll-progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--lake), var(--barley));
  pointer-events: none;
  will-change: transform;
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1180px) {
  .brand-tagline { display: none; }
  .nav-list { gap: 13px; }
  .nav-list a { font-size: 12.5px; }
  .nav-entry { padding: 8px 13px; font-size: 12px; }
}

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

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 24px;
    background: var(--panel);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 30px 56px -30px rgba(0, 0, 0, .85);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .site-header[data-open="true"] .nav-toggle {
    border-color: var(--barley);
    color: var(--barley);
  }

  .site-header[data-open="true"] .nav-toggle-bars span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .site-header[data-open="true"] .nav-toggle-bars span:nth-child(2) {
    opacity: 0;
  }

  .site-header[data-open="true"] .nav-toggle-bars span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

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

  .nav-list a {
    width: 100%;
    padding: 15px 2px;
    font-size: 14px;
    letter-spacing: .1em;
    border-bottom: 1px solid rgba(242, 232, 213, .1);
  }

  .nav-list a::after { display: none; }

  .nav-list a[aria-current="page"] {
    color: var(--barley);
    border-bottom-color: rgba(232, 184, 75, .45);
  }

  .nav-entry {
    margin-top: 20px;
    justify-content: center;
    padding: 14px 18px;
    font-size: 13px;
  }

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

  .footer-contact { grid-column: 1 / -1; }
}

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

@media (max-width: 680px) {
  body { font-size: 16px; }

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

  .footer-masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .footer-contact { grid-column: 1 / -1; }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .contact-item { grid-template-columns: 44px minmax(0, 1fr); }
  .contact-note { max-width: none; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 15px; letter-spacing: .12em; }
  .brand-mark { width: 30px; height: 30px; font-size: 16px; }
}

/* ---------- 16. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .scroll-progress { display: none; }

  .brand:hover .brand-mark { transform: none; }
}

/* ---------- 17. 打印 ---------- */
@media print {
  .site-header,
  .site-footer,
  .scroll-progress,
  .skip-link { display: none !important; }

  body { background: #fff; color: #000; }
  body::before { display: none; }
}
