/* ==========================================================================
   9博娱乐会馆 — /assets/site.css
   共享外壳（命令栏 + 印刷折页页脚）与通用组件
   ========================================================================== */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

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

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

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

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

:where([id]) { scroll-margin-top: 6.5rem; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #06121F;
  --deep: #0A2540;
  --deep-2: #10395C;
  --paper: #F2F7FA;
  --cyan: #2FF3E0;
  --mist: #9FF7EF;
  --coral: #FF6B4A;
  --steel: #6E8CA0;
  --muted: #9CB4C6;
  --print: #02070D;

  --line: rgba(159, 247, 239, 0.14);
  --line-soft: rgba(159, 247, 239, 0.08);
  --line-strong: rgba(159, 247, 239, 0.34);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", SFMono-Regular, Consolas, "Courier New", monospace;

  --wrap: 1240px;
  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --radius: 2px;
  --shadow-sheet: 10px 10px 0 rgba(2, 7, 13, 0.5);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 620px at 88% -12%, rgba(47, 243, 224, 0.10), transparent 62%),
    radial-gradient(900px 520px at 2% 28%, rgba(255, 107, 74, 0.07), transparent 68%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--paper);
}

h1 { font-size: clamp(2.5rem, 7vw, 5.2rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.38rem); letter-spacing: -0.01em; }
h4 { font-size: 1.02rem; font-weight: 700; }

p { text-wrap: pretty; }

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

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

/* ---------- 4. 跳过链接 ---------- */
.hg-skip {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 400;
  display: inline-block;
  padding: 0.6rem 1rem;
  background: var(--cyan);
  color: var(--print);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: top 0.18s var(--ease);
}

.hg-skip:focus,
.hg-skip:focus-visible { top: 0.75rem; }

/* ---------- 5. 页头：紧凑命令栏 ---------- */
.hg-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 18, 31, 0.95);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hg-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.9rem);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.6rem var(--gutter);
}

.hg-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  color: var(--paper);
  padding-block: 0.2rem;
}

.hg-brand__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1;
  background: linear-gradient(155deg, rgba(47, 243, 224, 0.18), rgba(47, 243, 224, 0) 72%);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.hg-brand:hover .hg-brand__mark,
.hg-brand:focus-visible .hg-brand__mark {
  background: var(--cyan);
  color: var(--print);
}

.hg-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.hg-brand__ver {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  border: 1px solid rgba(47, 243, 224, 0.42);
  border-radius: var(--radius);
  padding: 0.1rem 0.32rem;
  white-space: nowrap;
}

.hg-header__hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: auto;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hg-mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.hg-header__hours {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.hg-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.16);
}

.hg-navtoggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.hg-navtoggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(47, 243, 224, 0.07);
}

.hg-navtoggle__bars { display: grid; gap: 4px; width: 16px; }

.hg-navtoggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.hg-navtoggle__text {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
}

.hg-navtoggle[aria-expanded="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(47, 243, 224, 0.08);
}

.hg-navtoggle[aria-expanded="true"] .hg-navtoggle__bars span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.hg-navtoggle[aria-expanded="true"] .hg-navtoggle__bars span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* 导航：序号下标条 */
.hg-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hg-nav__list {
  display: flex;
  flex-wrap: wrap;
}

.hg-nav__item {
  border-right: 1px solid var(--line-soft);
}

.hg-nav__item:first-child { border-left: 1px solid var(--line-soft); }

.hg-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.72rem clamp(0.62rem, 1.3vw, 1.1rem);
  color: #cfdee8;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.hg-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}

.hg-nav__link:hover,
.hg-nav__link:focus-visible {
  color: var(--cyan);
  background: rgba(47, 243, 224, 0.06);
}

.hg-nav__link:hover::after,
.hg-nav__link:focus-visible::after { transform: scaleX(1); }

.hg-nav__idx {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  color: var(--steel);
  transition: color 0.18s var(--ease);
}

.hg-nav__link:hover .hg-nav__idx,
.hg-nav__link:focus-visible .hg-nav__idx { color: var(--mist); }

.hg-nav__label { white-space: nowrap; }

.hg-nav__link[aria-current="page"] {
  color: #ffffff;
  background: rgba(47, 243, 224, 0.1);
}

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

.hg-nav__link[aria-current="page"] .hg-nav__idx { color: var(--coral); }

.hg-nav__aside {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
  padding-block: 0.4rem;
}

.hg-nav__coord {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  color: var(--steel);
  white-space: nowrap;
}

/* 阅读进度线（JS 注入） */
.hg-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--mist) 58%, var(--coral));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- 6. 按钮 ---------- */
.hg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.hg-btn--sm { padding: 0.4rem 0.75rem; font-size: 0.78rem; }

.hg-btn--ghost:hover,
.hg-btn--ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(47, 243, 224, 0.08);
}

.hg-btn--solid {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--print);
  font-weight: 700;
}

.hg-btn--solid:hover,
.hg-btn--solid:focus-visible {
  background: var(--mist);
  border-color: var(--mist);
  color: var(--print);
}

.hg-btn--coral {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--print);
  font-weight: 700;
}

.hg-btn--coral:hover,
.hg-btn--coral:focus-visible {
  background: #ff8a70;
  border-color: #ff8a70;
  color: var(--print);
}

.hg-btn:active { transform: translateY(1px); }

/* ---------- 7. 容器 / 长文 / 面包屑 ---------- */
.hg-wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hg-prose {
  max-width: 34em;
  font-size: 1.03rem;
  line-height: 1.85;
  color: #d7e4ec;
}

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

.hg-prose h2,
.hg-prose h3 { margin-top: 1.9em; color: var(--paper); }

.hg-prose ul,
.hg-prose ol {
  padding-left: 1.15em;
  list-style: none;
}

.hg-prose li {
  position: relative;
  padding-left: 1.05em;
}

.hg-prose li + li { margin-top: 0.5em; }

.hg-prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.45em;
  height: 1px;
  background: var(--cyan);
}

.hg-prose ol { counter-reset: hg-ol; }

.hg-prose ol li::before {
  content: counter(hg-ol, decimal-leading-zero);
  counter-increment: hg-ol;
  top: 0;
  width: auto;
  height: auto;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.72em;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.hg-prose a {
  color: var(--mist);
  border-bottom: 1px solid rgba(159, 247, 239, 0.42);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

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

.hg-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.hg-breadcrumb a {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

.hg-breadcrumb__sep { color: var(--steel); }

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

.hg-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hg-eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  flex: none;
}

/* ---------- 8. 分割线 / 波浪引导线 ---------- */
.hg-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--cyan), rgba(159, 247, 239, 0.14) 46%, rgba(159, 247, 239, 0) 100%);
}

.hg-wave-rule {
  height: 10px;
  border: 0;
  background-image: radial-gradient(circle at 12px 11px, transparent 8.5px, rgba(47, 243, 224, 0.5) 9px, transparent 10px);
  background-size: 24px 10px;
  background-position: 0 -5px;
  background-repeat: repeat-x;
  opacity: 0.75;
}

/* ---------- 9. 网格 / 卡面 / 标签 ---------- */
.hg-grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 2rem);
}

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

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

.hg-grid--12 > * { grid-column: span var(--span, 12); }

.hg-panel {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(16, 57, 92, 0.55), rgba(10, 37, 64, 0.78));
}

.hg-panel--sheet {
  box-shadow: var(--shadow-sheet);
}

.hg-panel--sheet::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 42px;
  height: 42px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(47, 243, 224, 0.05);
  pointer-events: none;
}

.hg-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}

.hg-tag--cyan {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--print);
}

.hg-tag--coral {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--print);
}

/* ---------- 10. 图片容器基础规则 ---------- */
.hg-media {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background-color: var(--deep);
  background-image:
    radial-gradient(120% 90% at 12% 0%, rgba(47, 243, 224, 0.2), transparent 62%),
    linear-gradient(160deg, #0d2e4c 0%, #06121f 74%);
  isolation: isolate;
}

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

.hg-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 7, 13, 0) 52%, rgba(2, 7, 13, 0.55) 100%);
  pointer-events: none;
}

.hg-media--band { aspect-ratio: 21 / 9; }
.hg-media--tall { aspect-ratio: 4 / 5; }
.hg-media--square { aspect-ratio: 1 / 1; }

.hg-media__caption {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- 11. 页脚：印刷折页 ---------- */
.hg-footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  background: var(--deep);
  color: var(--paper);
  overflow: hidden;
}

.hg-footer__wave {
  display: block;
  line-height: 0;
  background: var(--ink);
}

.hg-footer__wave svg {
  display: block;
  width: 100%;
  height: clamp(30px, 4.5vw, 58px);
}

.hg-footer__wave svg path { fill: var(--deep); }

.hg-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3.25rem) var(--gutter) clamp(1.5rem, 3vw, 2.25rem);
}

.hg-footer__kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hg-footer__tagline {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.32rem, 2.6vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--paper);
}

.hg-footer__mast .hg-btn { margin-top: 1.3rem; }

.hg-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
}

.hg-footer__coltitle {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--steel);
}

.hg-footer__list { margin-top: 0.7rem; }

.hg-footer__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-block: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.hg-footer__link:hover,
.hg-footer__link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.hg-footer__idx {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.hg-footer__link:hover .hg-footer__idx,
.hg-footer__link:focus-visible .hg-footer__idx { color: var(--coral); }

.hg-footer__contact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1rem 1.75rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.hg-footer__contactitem {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.hg-footer__label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.hg-footer__value {
  font-size: 0.95rem;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.hg-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.5rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1rem var(--gutter) clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid rgba(242, 247, 250, 0.14);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hg-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.hg-footer__base .hg-footer__link {
  padding-block: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.hg-footer__copy,
.hg-footer__icp { color: var(--muted); }

.hg-footer__watermark {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter) 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 14vw, 10rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  white-space: nowrap;
  overflow: hidden;
  color: rgba(159, 247, 239, 0.06);
  -webkit-text-stroke: 1px rgba(159, 247, 239, 0.16);
  user-select: none;
  pointer-events: none;
}

/* ---------- 12. 显现动效 ---------- */
.hg-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.hg-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1180px) {
  .hg-header__hint { display: none; }
  .hg-nav__coord { display: none; }
}

@media (max-width: 1023px) {
  .hg-navtoggle { display: inline-flex; }
  .hg-header__hours { margin-left: auto; }

  .hg-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(10, 37, 64, 0.98), rgba(6, 18, 31, 0.98));
  }

  .hg-nav[data-open] { display: flex; }

  .hg-nav__list { flex-direction: column; }

  .hg-nav__item,
  .hg-nav__item:first-child {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .hg-nav__link {
    padding: 0.95rem var(--gutter);
    font-size: 1.02rem;
  }

  .hg-nav__link::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: center top;
  }

  .hg-nav__link:hover::after,
  .hg-nav__link:focus-visible::after,
  .hg-nav__link[aria-current="page"]::after { transform: scaleY(1); }

  .hg-nav__aside {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 1rem var(--gutter) 1.25rem;
    border-top: 1px solid var(--line);
  }

  .hg-nav__aside .hg-btn { width: 100%; }

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

@media (max-width: 900px) {
  .hg-footer__cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
}

@media (max-width: 760px) {
  .hg-header__hours { display: none; }
  .hg-brand { gap: 0.45rem; }
  .hg-brand__ver { font-size: 0.58rem; }
  .hg-navtoggle__text { display: none; }
  .hg-navtoggle { padding: 0.5rem 0.55rem; }
  .hg-footer__base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .hg-grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hg-grid--12 > * { grid-column: span var(--span-sm, 6); }
  .hg-prose { font-size: 1rem; }
  .hg-footer__tagline br { display: none; }
}

/* ---------- 14. 降低动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hg-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
