/* ==========================================================================
   WILLIAMHILL 共享层 /assets/site.css
   1 重置  2 变量  3 基础排版  4 通用工具  5 头部  6 按钮
   7 页脚  8 浮动件  9 页面通用组件  10 响应式  11 减弱动效
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, fieldset {
  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 { display: block; max-width: 100%; }

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

:focus-visible {
  outline: 2px solid #C9A55B;
  outline-offset: 3px;
  border-radius: 6px;
}

/* 2 变量 ---------------------------------------------------------------- */
:root {
  --ink-900: #0E2A24;
  --ink-700: #17453A;
  --ink-500: #2E6B59;
  --gold-500: #C9A55B;
  --gold-300: #E6CF9A;
  --gold-700: #8A6A2F;
  --brick-500: #9C4A3C;
  --paper: #FFFDF8;
  --cream: #F6F1E7;
  --muted: #7C8B83;

  --line-soft: rgba(23, 69, 58, 0.14);
  --line-gold: rgba(201, 165, 91, 0.42);
  --line-gold-strong: rgba(201, 165, 91, 0.68);

  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-panel: 18px;

  --shadow-float: 0 22px 46px -30px rgba(14, 42, 36, 0.6);
  --shadow-card: 0 16px 34px -26px rgba(14, 42, 36, 0.55);

  --font-head: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;

  --shell-max: 1180px;
  --gutter: clamp(18px, 4vw, 32px);
  --nav-break: 960px;
}

/* 3 基础排版 ------------------------------------------------------------ */
body {
  font-family: var(--font-body);
  font-size: clamp(16px, 0.5vw + 15px, 17.5px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--ink-700);
  min-height: 100vh;
  background-color: var(--cream);
  background-image:
    radial-gradient(120% 88% at 50% -18%, #FFFDF8 0%, rgba(255, 253, 248, 0) 58%),
    linear-gradient(180deg, #F8F4EC 0%, #F6F1E7 44%, #F1EADB 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 900px) {
  body { background-attachment: fixed; }
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.14; }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: clamp(19px, 2vw, 23px); }
h4 { font-size: clamp(17px, 1.5vw, 19px); font-weight: 700; }

p { text-wrap: pretty; }

strong { color: var(--ink-900); }

/* 4 通用工具 ------------------------------------------------------------ */
.container {
  width: min(var(--shell-max), 100% - clamp(28px, 6vw, 64px));
  margin-inline: auto;
}

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

.section-head {
  display: grid;
  gap: 12px;
  max-width: 64ch;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.section-title { margin: 0; }

.section-lede {
  font-size: clamp(16px, 1.2vw, 17.5px);
  color: var(--ink-500);
  max-width: 58ch;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brick-500);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold-500);
  flex: none;
}

.lede {
  font-size: clamp(16.5px, 1.3vw, 18.5px);
  line-height: 1.85;
  color: var(--ink-500);
}

.note {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  border-left: 2px solid var(--gold-500);
  padding-left: 12px;
}

.glass {
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.82), rgba(246, 241, 231, 0.62));
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink-900);
  color: var(--gold-300);
  border: 1px solid var(--gold-500);
  font-size: 14px;
  letter-spacing: 0.08em;
  transform: translateY(-180%);
  transition: transform 0.24s ease;
}

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

/* 5 头部 ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px clamp(12px, 3vw, 28px) 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 95;
  background: rgba(14, 42, 36, 0.1);
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-700), var(--gold-500) 45%, var(--gold-300));
  transition: width 0.12s linear;
}

.header-shell {
  position: relative;
  width: min(var(--shell-max), 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  padding: 10px clamp(12px, 1.6vw, 18px);
  border-radius: 20px;
  border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.93), rgba(246, 241, 231, 0.88));
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: var(--shadow-float), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  transition: box-shadow 0.32s ease, border-color 0.32s ease, background 0.32s ease;
}

.site-header[data-scrolled="true"] .header-shell {
  border-color: var(--line-gold-strong);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(246, 241, 231, 0.95));
  box-shadow: 0 24px 48px -28px rgba(14, 42, 36, 0.68), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

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

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-900);
  border: 1px solid var(--line-gold-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark i { display: block; }
.brand-mark i:nth-child(1) { background: var(--gold-500); }
.brand-mark i:nth-child(4) { background: var(--gold-500); }

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  color: var(--ink-900);
}

.brand-subline {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  background: rgba(255, 253, 248, 0.7);
  color: var(--ink-700);
  font-size: 13.5px;
  letter-spacing: 0.1em;
  transition: border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.nav-toggle:hover { border-color: var(--gold-500); color: var(--ink-900); }

.nav-toggle[aria-expanded="true"] {
  border-color: var(--gold-500);
  background: rgba(201, 165, 91, 0.2);
  color: var(--ink-900);
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
  flex: none;
}

.nav-toggle-bars i {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.26s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

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

/* 导航面板 */
.nav-panel {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
  margin-left: auto;
  min-width: 0;
}

.primary-nav { display: flex; min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink-700);
  white-space: nowrap;
  transition: color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--ink-900);
  background: rgba(201, 165, 91, 0.15);
}

.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--ink-900);
  font-weight: 600;
  background: rgba(201, 165, 91, 0.24);
  box-shadow: inset 0 0 0 1px rgba(201, 165, 91, 0.52);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

/* 6 按钮 ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  white-space: nowrap;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease,
              border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 58%, #B8913F);
  color: #12261F;
  border-color: rgba(138, 106, 47, 0.5);
  box-shadow: 0 12px 24px -16px rgba(138, 106, 47, 0.95);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -16px rgba(138, 106, 47, 1);
}

.btn-ghost {
  border-color: rgba(23, 69, 58, 0.3);
  background: rgba(255, 253, 248, 0.6);
  color: var(--ink-700);
}

.btn-ghost:hover {
  border-color: var(--ink-500);
  background: rgba(46, 107, 89, 0.1);
  color: var(--ink-900);
}

.btn--sm { padding: 8px 15px; font-size: 13px; }
.btn--block { width: 100%; }

/* 7 页脚 ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 92px);
  overflow: hidden;
  color: #EDE7DA;
  border-top: 1px solid var(--line-gold-strong);
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(201, 165, 91, 0.2), rgba(201, 165, 91, 0) 58%),
    radial-gradient(90% 70% at 95% 10%, rgba(46, 107, 89, 0.35), rgba(46, 107, 89, 0) 62%),
    linear-gradient(180deg, #14413A 0%, var(--ink-900) 52%, #0A211C 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(230, 207, 154, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(230, 207, 154, 0.075) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0) 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0) 78%);
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: min(var(--shell-max), 100% - clamp(36px, 8vw, 64px));
  margin-inline: auto;
  padding: clamp(38px, 6vw, 66px) 0 26px;
  display: grid;
  gap: clamp(26px, 4vw, 40px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

.footer-lead {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.brand--footer .brand-name { color: #F5EFE1; }
.brand--footer .brand-subline { color: rgba(230, 207, 154, 0.72); }
.brand--footer .brand-mark { border-color: rgba(230, 207, 154, 0.7); }

.footer-tagline {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--gold-300);
}

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

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

.footer-col-title {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-500);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(201, 165, 91, 0.4);
}

.footer-list { display: grid; gap: 9px; }

.footer-link {
  position: relative;
  display: inline-block;
  padding: 2px 0;
  font-size: 15px;
  color: rgba(246, 241, 231, 0.86);
  transition: color 0.22s ease, padding-left 0.24s ease;
}

.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.24s ease;
}

.footer-link:hover { color: var(--gold-300); padding-left: 15px; }
.footer-link:hover::before { width: 11px; }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px clamp(18px, 2.4vw, 28px);
  padding: clamp(18px, 2.4vw, 24px);
  border-radius: var(--radius-card);
  border: 1px solid rgba(201, 165, 91, 0.34);
  background: linear-gradient(140deg, rgba(255, 253, 248, 0.075), rgba(201, 165, 91, 0.1));
}

.contact-item { display: grid; gap: 4px; min-width: 0; }

.contact-label {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--gold-500);
}

.contact-value {
  font-size: 15px;
  line-height: 1.6;
  color: #F4EEDF;
  overflow-wrap: anywhere;
}

.contact-note {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px dashed rgba(201, 165, 91, 0.3);
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(246, 241, 231, 0.66);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(201, 165, 91, 0.28);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(246, 241, 231, 0.62);
}

.footer-icp { color: rgba(230, 207, 154, 0.82); }

.footer-copy { text-align: right; }

/* 8 浮动件 -------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 165, 91, 0.6);
  background: rgba(14, 42, 36, 0.92);
  color: var(--gold-300);
  font-size: 13px;
  letter-spacing: 0.1em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px -18px rgba(14, 42, 36, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
              background 0.24s ease, color 0.24s ease;
}

.back-to-top::before {
  content: "↑";
  font-size: 14px;
  line-height: 1;
}

.back-to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--ink-700);
  color: #FFF7E4;
}

/* 9 页面通用组件 ------------------------------------------------------- */
.breadcrumb {
  padding-block: 16px 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list > li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(124, 139, 131, 0.7);
}

.breadcrumb-link { color: var(--ink-500); transition: color 0.2s ease; }
.breadcrumb-link:hover { color: var(--gold-700); }

.breadcrumb-current { color: var(--ink-900); font-weight: 600; }

.card {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius-card);
  border: 1px solid var(--line-soft);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-gold-strong);
  box-shadow: 0 22px 40px -28px rgba(14, 42, 36, 0.7);
}

.card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.32;
  color: var(--ink-900);
}

.panel-dark {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 2.8vw, 30px);
  border-radius: var(--radius-panel);
  border: 1px solid rgba(201, 165, 91, 0.38);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(201, 165, 91, 0.22), rgba(201, 165, 91, 0) 60%),
    linear-gradient(160deg, #17453A 0%, var(--ink-900) 70%);
  color: #EFE9DC;
  box-shadow: 0 26px 50px -32px rgba(14, 42, 36, 0.9);
}

.panel-dark h2,
.panel-dark h3,
.panel-dark h4 { color: var(--gold-300); }
.panel-dark p { color: rgba(246, 241, 231, 0.85); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(156, 74, 60, 0.34);
  background: rgba(156, 74, 60, 0.12);
  color: var(--brick-500);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.6;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(46, 107, 89, 0.3);
  background: rgba(46, 107, 89, 0.1);
  color: var(--ink-500);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.6;
}

.chess-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
  align-items: start;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}

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

.toc {
  display: grid;
  gap: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--line-soft);
  font-size: 14px;
}

.toc-list { display: grid; gap: 2px; }

.toc-link {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.toc-link:hover { color: var(--ink-900); background: rgba(201, 165, 91, 0.14); }

.toc-link[aria-current="true"] {
  color: var(--ink-900);
  font-weight: 600;
  background: rgba(201, 165, 91, 0.22);
  box-shadow: inset 0 0 0 1px rgba(201, 165, 91, 0.36);
}

/* 图片容器基础规则（页面阶段填充占位） */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--line-gold);
  background:
    linear-gradient(135deg, rgba(201, 165, 91, 0.24), rgba(46, 107, 89, 0.18) 60%, rgba(255, 253, 248, 0.5));
}

.media-frame img,
.media-frame > picture,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-caption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 显现 */
html[data-reveal="on"] .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html[data-reveal="on"] .reveal[data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* 10 响应式 ------------------------------------------------------------- */
@media (max-width: 1120px) {
  .nav-link { padding: 8px 9px; font-size: 13.5px; }
  .nav-link::after { left: 9px; right: 9px; }
  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 960px) {
  html { scroll-padding-top: 96px; }

  .site-header { padding: 12px clamp(10px, 3vw, 20px) 0; }

  .header-shell { padding: 10px 12px; border-radius: 18px; }

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

  .nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line-gold-strong);
    background: linear-gradient(180deg, #FFFDF8 0%, #F6F1E7 100%);
    box-shadow: 0 32px 60px -32px rgba(14, 42, 36, 0.72);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.99);
    transform-origin: top center;
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s ease;
  }

  .nav-panel[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav { display: block; }

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

  .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
  }

  .nav-link::after { display: none; }

  .header-actions { flex-direction: column; align-items: stretch; gap: 10px; }

  .header-actions .btn,
  .header-actions .btn-ghost { display: inline-flex; width: 100%; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .footer-copy { text-align: left; }
}

@media (max-width: 760px) {
  .footer-contact { grid-template-columns: 1fr; }
  .chess-grid,
  .grid-2,
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .back-to-top { padding: 9px 13px; font-size: 12px; }
}

@media (max-width: 480px) {
  .brand-subline { display: none; }
  .brand-name { font-size: 0.95rem; letter-spacing: 0.12em; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 10px 12px; }
  .footer-shell { width: min(var(--shell-max), 100% - 36px); }
}

/* 11 减弱动效 ----------------------------------------------------------- */
@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;
  }

  html[data-reveal="on"] .reveal {
    opacity: 1;
    transform: none;
  }
}
