/* ==========================================================================
   麻将胡了官网 · 全站共享样式
   路径：/assets/site.css
   说明：负责reset、变量、中文排版、头部/页脚、按钮、面包屑、容器、网格与基础组件。
   页面特色布局由页面专属CSS补充。
   ========================================================================== */

/* ===== 1. CSS 变量 ===== */
:root {
  /* 色彩系统 */
  --color-ink: #0B3D2E;
  --color-ink-deep: #082A20;
  --color-ink-soft: #114C3B;
  --color-gold: #D4AF37;
  --color-gold-bright: #E8C64A;
  --color-gold-soft: #F0E5C8;
  --color-vermilion: #E34234;
  --color-paper: #F5F1E8;
  --color-teal: #1F6F5A;
  --color-black: #1A1A1A;
  --color-smoke: #6B625E;

  /* 字体 */
  --font-display: "Noto Serif SC", "STKaiti", "KaiTi", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* 字号 */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 4rem;

  /* 间距 */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4rem;
  --sp-8: 6rem;

  /* 布局 */
  --container-max: 75rem;
  --container-narrow: 55rem;
  --header-height: 4.5rem;
  --header-height-mobile: 3.75rem;

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(11, 61, 46, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 61, 46, 0.12);
  --shadow-lg: 0 16px 40px rgba(8, 42, 32, 0.18);
  --shadow-gold: 0 0 16px rgba(212, 175, 55, 0.35);
  --shadow-vermilion: 0 0 12px rgba(227, 66, 52, 0.25);

  /* 动效 */
  --ease-fast: 160ms ease;
  --ease-base: 240ms ease;
  --ease-slow: 400ms ease;
}

/* ===== 2. Reset 与基础排版 ===== */
*,
*::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;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--color-black);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-ink);
  margin: 0 0 var(--sp-3) 0;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5, h6 { font-size: var(--fs-md); }

p {
  margin: 0 0 var(--sp-3) 0;
}

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

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--ease-fast);
}

a:hover {
  color: var(--color-vermilion);
}

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

figure {
  margin: 0;
}

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

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

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

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

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-paper);
}
::-webkit-scrollbar-thumb {
  background: var(--color-ink);
  border-radius: 5px;
  border: 2px solid var(--color-paper);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-teal);
}

/* ===== 3. 容器与章节 ===== */
.page-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}

.page-container--narrow {
  max-width: var(--container-narrow);
}

#main-content {
  scroll-margin-top: calc(var(--header-height) + 8px);
  outline: none;
}

.section {
  padding: var(--sp-7) 0;
}

.section--tight {
  padding: var(--sp-5) 0;
}

.section--dark {
  background: var(--color-ink);
  color: rgba(245, 241, 232, 0.85);
}

.section__header {
  margin-bottom: var(--sp-6);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-vermilion);
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-gold);
  flex-shrink: 0;
}

.section-title {
  font-size: var(--fs-2xl);
  color: var(--color-ink);
  margin: var(--sp-2) 0 0 0;
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--color-smoke);
  max-width: 58ch;
  margin-top: var(--sp-2);
}

.section--dark .section-kicker {
  color: var(--color-gold);
}

.section--dark .section-title {
  color: var(--color-paper);
}

.section--dark .section-subtitle {
  color: rgba(245, 241, 232, 0.6);
}

/* ===== 4. 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background var(--ease-fast),
              border-color var(--ease-fast),
              color var(--ease-fast),
              box-shadow var(--ease-fast),
              transform var(--ease-fast);
}

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

.btn--gold {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-ink);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn--gold:hover {
  background: var(--color-gold-bright);
  border-color: var(--color-gold-bright);
  color: var(--color-ink-deep);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.42);
}

.btn--teal {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-paper);
}

.btn--teal:hover {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-gold);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn--outline:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--color-gold-bright);
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn--outline-dark:hover {
  background: var(--color-ink);
  color: var(--color-gold);
}

.btn--sm {
  padding: 8px 14px;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 14px 30px;
  font-size: var(--fs-md);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* ===== 5. 顶部命令栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-ink);
  border-bottom: 2px solid var(--color-gold);
  box-shadow: 0 4px 24px rgba(8, 42, 32, 0.35);
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  max-width: var(--container-max);
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* --- 品牌 --- */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
  color: var(--color-paper);
  text-decoration: none;
  transition: color var(--ease-fast), filter var(--ease-fast);
}

.site-brand:hover {
  color: var(--color-gold);
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
}

.site-brand__tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  border: 2px solid var(--color-gold);
  border-radius: 5px;
  background: linear-gradient(145deg, var(--color-ink-soft), var(--color-ink-deep));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 0 10px rgba(212, 175, 55, 0.2);
}

.site-brand__tile-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-vermilion);
  box-shadow: 0 0 8px rgba(227, 66, 52, 0.75);
}

.site-brand__text {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  white-space: nowrap;
}

/* --- 导航 --- */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(245, 241, 232, 0.85);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--ease-fast), background var(--ease-fast);
}

.site-nav__link:hover {
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.08);
}

.site-nav__link[aria-current="page"] {
  color: var(--color-gold);
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--color-gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* --- 操作区与状态 --- */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.site-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(245, 241, 232, 0.7);
  white-space: nowrap;
  user-select: none;
}

.site-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
  animation: statusPulse 2.4s ease-in-out infinite;
}

.site-status__text {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
  }
  50% {
    opacity: 0.45;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.95);
  }
}

/* --- 汉堡按钮 --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.06);
  transition: border-color var(--ease-fast), background var(--ease-fast), box-shadow var(--ease-fast);
}

.nav-toggle:hover {
  border-color: var(--color-gold);
  background: rgba(212, 175, 55, 0.12);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--color-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-gold);
  transition: transform var(--ease-base), opacity var(--ease-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== 6. 页脚 ===== */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: var(--color-ink);
  color: rgba(245, 241, 232, 0.75);
  border-top: 4px solid var(--color-gold);
}

.site-footer__main {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1.4fr;
  gap: var(--sp-5);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--sp-7) var(--sp-4);
}

.site-footer__col {
  min-width: 0;
}

.site-footer__col--contact {
  border-left: 1px solid rgba(212, 175, 55, 0.25);
  padding-left: var(--sp-4);
}

.site-footer__brand {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  padding-left: var(--sp-3);
  border-left: 4px solid var(--color-vermilion);
  margin-bottom: var(--sp-3);
}

.site-footer__tagline {
  font-size: var(--fs-sm);
  color: rgba(245, 241, 232, 0.65);
  margin-bottom: var(--sp-3);
  max-width: 36ch;
}

.site-footer__trust {
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: rgba(245, 241, 232, 0.5);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: var(--sp-3);
  max-width: 48ch;
}

.site-footer__heading {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
}

.site-footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 28px;
  height: 2px;
  background: var(--color-vermilion);
}

.site-footer__list li + li,
.site-footer__contact-list li + li {
  margin-top: var(--sp-2);
}

.site-footer__list a {
  color: rgba(245, 241, 232, 0.72);
  font-size: var(--fs-sm);
  transition: color var(--ease-fast), padding-left var(--ease-fast);
}

.site-footer__list a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.site-footer__contact-list {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: rgba(245, 241, 232, 0.72);
  word-break: break-all;
}

.site-footer__label {
  display: inline-block;
  min-width: 32px;
  margin-right: 2px;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--color-gold);
}

.site-footer__bottom {
  background: var(--color-ink-deep);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding: var(--sp-3) 0;
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-3);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-4);
  font-size: var(--fs-xs);
  color: rgba(245, 241, 232, 0.45);
}

/* ===== 7. 面包屑 ===== */
.breadcrumb {
  padding: var(--sp-4) 0 0;
  font-size: var(--fs-sm);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  color: var(--color-smoke);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  color: rgba(107, 98, 94, 0.4);
}

.breadcrumb__link {
  color: var(--color-teal);
}

.breadcrumb__link:hover {
  color: var(--color-vermilion);
}

.breadcrumb__item[aria-current="page"] {
  color: var(--color-ink);
  font-weight: 600;
}

/* ===== 8. 图片容器 ===== */
.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(145deg, var(--color-gold-soft), rgba(240, 229, 200, 0.45));
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.image-frame:hover img {
  transform: scale(1.03);
}

.image-frame--hero { aspect-ratio: 21 / 9; }
.image-frame--wide { aspect-ratio: 16 / 8; }
.image-frame--card { aspect-ratio: 4 / 3; }
.image-frame--portrait { aspect-ratio: 3 / 4; }
.image-frame--square { aspect-ratio: 1 / 1; }

.image-caption {
  font-size: var(--fs-xs);
  color: var(--color-smoke);
  margin-top: var(--sp-2);
  padding-left: var(--sp-3);
  border-left: 2px solid var(--color-gold);
}

/* ===== 9. 骨牌卡片 ===== */
.tile-card {
  position: relative;
  padding: var(--sp-5);
  background: var(--color-gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--ease-base), box-shadow var(--ease-base);
}

.tile-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-gold), var(--color-vermilion));
}

.tile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ===== 10. 正文文档 ===== */
.content-article {
  max-width: 72ch;
  line-height: 1.85;
  font-size: var(--fs-md);
}

.content-article p + p,
.content-article ul + p,
.content-article ol + p {
  margin-top: var(--sp-3);
}

.content-article h2 {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--color-gold-soft);
}

.content-article h3 {
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}

.content-article h4 {
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-2);
}

.content-article a {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(212, 175, 55, 0.7);
  transition: color var(--ease-fast), text-decoration-color var(--ease-fast);
}

.content-article a:hover {
  color: var(--color-vermilion);
  text-decoration-color: var(--color-vermilion);
}

.content-article ul {
  list-style: disc;
  padding-left: var(--sp-5);
  margin: var(--sp-3) 0;
}

.content-article ol {
  list-style: decimal;
  padding-left: var(--sp-5);
  margin: var(--sp-3) 0;
}

.content-article li {
  margin-bottom: var(--sp-1);
}

.content-article blockquote {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-gold-soft);
  border-left: 4px solid var(--color-gold);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-ink);
}

.content-article blockquote p:last-child {
  margin-bottom: 0;
}

/* ===== 11. 滚动显现 ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== 12. 滚动进度 ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 9998;
  background: linear-gradient(90deg, var(--color-gold), var(--color-vermilion));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
  pointer-events: none;
}

/* ===== 13. 跳转链接 ===== */
.skip-link {
  position: fixed;
  top: -120px;
  left: var(--sp-3);
  z-index: 9999;
  padding: var(--sp-2) var(--sp-4);
  background: var(--color-ink);
  color: var(--color-gold);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid var(--color-gold);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 8px 24px rgba(8, 42, 32, 0.45);
  transition: top var(--ease-fast);
}

.skip-link:hover {
  color: var(--color-gold-bright);
}

.skip-link:focus {
  top: 0;
}

/* ===== 14. 平板适配 ===== */
@media (max-width: 991.98px) {
  .site-header__bar {
    gap: var(--sp-2);
  }

  .site-nav__link {
    padding: 8px 10px;
    font-size: var(--fs-xs);
    letter-spacing: 0.03em;
  }

  .site-status__text {
    display: none;
  }

  .site-footer__main {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-5) var(--sp-4);
    padding: var(--sp-6) var(--sp-4);
  }

  .site-footer__col--brand {
    grid-column: 1 / -1;
  }

  .site-footer__col--contact {
    border-left: none;
    padding-left: 0;
  }
}

/* ===== 15. 移动端适配 ===== */
@media (max-width: 767.98px) {
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
  h3 { font-size: var(--fs-lg); }

  .page-container {
    padding-left: var(--sp-3);
    padding-right: var(--sp-3);
  }

  .section {
    padding: var(--sp-5) 0;
  }

  .section-title {
    font-size: var(--fs-xl);
  }

  .site-header__bar {
    min-height: var(--header-height-mobile);
    padding: 0 var(--sp-3);
    gap: var(--sp-2);
  }

  .site-brand__tile {
    width: 36px;
    height: 28px;
  }

  .site-brand__text {
    font-size: var(--fs-md);
  }

  .site-status {
    display: none;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    flex: none;
    display: block;
    background: var(--color-ink-deep);
    border-bottom: 2px solid var(--color-gold);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0s 0.3s;
  }

  .site-nav[data-open] {
    max-height: calc(100vh - var(--header-height-mobile));
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    box-shadow: 0 20px 30px rgba(8, 42, 32, 0.35);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-2);
  }

  .site-nav__item {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  }

  .site-nav__item:last-child {
    border-bottom: none;
  }

  .site-nav__link {
    display: block;
    width: 100%;
    padding: 14px var(--sp-4);
    font-size: var(--fs-md);
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(212, 175, 55, 0.1);
  }

  .site-nav__link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 4px;
    height: 100%;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    padding: var(--sp-5) var(--sp-3);
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 var(--sp-3);
  }
}

/* ===== 16. 降低动态效果 ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-status__dot {
    animation: none;
    opacity: 1;
  }
}
