/* ============================================================
   云顶会馆 · 共享样式 /assets/site.css
   夜墨黑底 · 云灰蓝分区 · 晨曦金会员标识 · 霓虹青交互
   ============================================================ */

:root {
  --ink: #080B10;
  --ink-soft: #0C1118;
  --ink-panel: #111823;
  --cloud: #3E5568;
  --mist: #C9D6E0;
  --glass: #F4F7F9;
  --gold: #E6B45E;
  --gold-bright: #F2C877;
  --cyan: #43E0CE;
  --cyan-bright: #63EFDF;
  --violet: #6C63E8;
  --violet-soft: #A6A0FF;
  --green: #56D6A0;
  --orange: #F08A5D;
  --line: #6F8799;
  --glass-08: rgba(255, 255, 255, 0.08);
  --glass-04: rgba(255, 255, 255, 0.045);
  --line-soft: rgba(111, 135, 153, 0.28);
  --line-faint: rgba(111, 135, 153, 0.16);

  --shell: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.72, 0.24, 1);
  --shadow-float: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(230, 180, 94, 0.16),
    0 22px 48px -22px rgba(67, 224, 206, 0.4);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--mist);
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 84% -6%, rgba(62, 85, 104, 0.55), transparent 70%),
    radial-gradient(760px 440px at 6% 2%, rgba(108, 99, 232, 0.18), transparent 72%),
    radial-gradient(620px 360px at 50% 120%, rgba(67, 224, 206, 0.08), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--glass);
}

/* ---------- 中文排版 ---------- */
p,
li,
blockquote {
  text-wrap: pretty;
}

.prose {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.85;
}

.prose p + p {
  margin-top: 18px;
}

.prose h2,
.prose h3 {
  margin-top: 40px;
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  margin-top: 14px;
  padding-left: 20px;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 8px;
}

.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(67, 224, 206, 0.4);
}

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

/* ---------- 布局工具 ---------- */
#main-content {
  display: block;
  scroll-margin-top: 110px;
}

.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

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

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

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section-no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ============================================================
   头部：窄幅悬浮双层导航
   ============================================================ */
.masthead {
  position: sticky;
  top: 10px;
  z-index: 80;
  margin-top: 14px;
  padding-inline: var(--gutter);
}

.masthead__shell {
  max-width: var(--shell);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(11, 16, 23, 0.84);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.masthead.is-condensed .masthead__shell {
  background: rgba(9, 13, 19, 0.94);
  border-color: rgba(111, 135, 153, 0.42);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.62);
}

.masthead__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-height: 150px;
  overflow: hidden;
  padding: 7px clamp(14px, 2vw, 24px);
  border-bottom: 1px solid var(--line-faint);
  background-image: linear-gradient(
    90deg,
    rgba(62, 85, 104, 0.42),
    rgba(108, 99, 232, 0.16) 55%,
    rgba(67, 224, 206, 0.12)
  );
  font-size: 12px;
  line-height: 1.6;
  transition: max-height 0.32s var(--ease), opacity 0.28s var(--ease),
    padding 0.32s var(--ease), border-color 0.3s var(--ease);
}

.masthead.is-condensed .masthead__top {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}

.masthead__brandline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(201, 214, 224, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.masthead__quick {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.quick-link {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid rgba(111, 135, 153, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.quick-link:hover,
.quick-link:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04231F;
}

.masthead__main {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  padding: 10px clamp(14px, 2vw, 24px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-right: auto;
  color: var(--glass);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-image: linear-gradient(145deg, var(--gold), #B98429);
  box-shadow: 0 0 0 1px rgba(230, 180, 94, 0.5),
    0 8px 18px -8px rgba(230, 180, 94, 0.85);
  color: #120D03;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--glass);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201, 214, 224, 0.55);
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.5vw, 8px);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(201, 214, 224, 0.86);
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--glass);
  background: rgba(255, 255, 255, 0.05);
}

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

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

.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--gold);
  box-shadow: 0 0 10px rgba(230, 180, 94, 0.6);
}

.masthead__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9px;
  background: var(--gold);
  box-shadow: 0 10px 24px -12px rgba(230, 180, 94, 0.9);
  color: #15100A;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.masthead__cta:hover,
.masthead__cta:focus-visible {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px rgba(230, 180, 94, 1);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(111, 135, 153, 0.45);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--glass);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.masthead[data-open="true"] .nav-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.masthead[data-open="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle__text {
  line-height: 1.2;
}

/* 跳转链接 */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--cyan);
  color: #04231F;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: top 0.22s var(--ease);
}

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

/* 滚动进度光带 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background-image: linear-gradient(
    90deg,
    var(--gold),
    var(--cyan) 55%,
    var(--violet)
  );
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform;
}

/* ============================================================
   页脚：下沉云台
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 112px);
  border-top: 1px solid rgba(111, 135, 153, 0.3);
  background-color: var(--ink-soft);
  background-image: linear-gradient(
    180deg,
    rgba(62, 85, 104, 0.28),
    rgba(8, 11, 16, 0.92) 62%
  );
  color: rgba(201, 214, 224, 0.82);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background-image: linear-gradient(
    90deg,
    var(--gold),
    var(--cyan) 42%,
    var(--violet) 78%,
    transparent
  );
  opacity: 0.85;
}

.site-footer__shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1.35fr;
  gap: clamp(22px, 3vw, 48px);
}

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

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.site-footer__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--glass);
}

.site-footer__summary {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(201, 214, 224, 0.72);
}

.site-footer__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 5px 12px;
  width: fit-content;
  border: 1px solid rgba(67, 224, 206, 0.28);
  border-radius: 999px;
  background: rgba(67, 224, 206, 0.07);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.footer__col {
  min-width: 0;
}

.footer__col-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201, 214, 224, 0.5);
}

.footer__list {
  display: grid;
  gap: 9px;
}

.footer__link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(201, 214, 224, 0.82);
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--cyan);
  transform: translateX(3px);
}

.footer__contact {
  display: grid;
  gap: 11px;
}

.footer__contact li {
  display: grid;
  gap: 2px;
}

.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(111, 135, 153, 0.95);
}

.footer__contact-value {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--glass);
  word-break: break-word;
}

.footer__contact-value.is-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.footer__contact-note {
  margin-top: 14px;
  max-width: 38ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(201, 214, 224, 0.6);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 16px 0 24px;
  border-top: 1px solid rgba(111, 135, 153, 0.22);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(201, 214, 224, 0.5);
}

.site-footer__icp {
  margin: 0;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__legal a {
  color: rgba(201, 214, 224, 0.72);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--cyan);
}

/* ============================================================
   通用组件
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: #15100A;
  box-shadow: 0 14px 30px -16px rgba(230, 180, 94, 0.95);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.btn--cyan {
  background: var(--cyan);
  color: #04231F;
  box-shadow: 0 14px 30px -16px rgba(67, 224, 206, 0.95);
}

.btn--cyan:hover,
.btn--cyan:focus-visible {
  background: var(--cyan-bright);
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--glass-04);
  border-color: rgba(111, 135, 153, 0.5);
  color: var(--glass);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

/* 展览说明牌 / 标签 */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(111, 135, 153, 0.45);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}

.plate--gold {
  border-color: rgba(230, 180, 94, 0.5);
  background: rgba(230, 180, 94, 0.1);
  color: var(--gold);
}

.plate--cyan {
  border-color: rgba(67, 224, 206, 0.45);
  background: rgba(67, 224, 206, 0.1);
  color: var(--cyan);
}

.plate--violet {
  border-color: rgba(108, 99, 232, 0.55);
  background: rgba(108, 99, 232, 0.16);
  color: var(--violet-soft);
}

.plate--green {
  border-color: rgba(86, 214, 160, 0.45);
  background: rgba(86, 214, 160, 0.1);
  color: var(--green);
}

.plate--orange {
  border-color: rgba(240, 138, 93, 0.45);
  background: rgba(240, 138, 93, 0.1);
  color: var(--orange);
}

/* 状态点 */
.status-dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

.status-dot--cyan {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(67, 224, 206, 0.85);
}

.status-dot--gold {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(230, 180, 94, 0.85);
}

.status-dot--green {
  background: var(--green);
  box-shadow: 0 0 8px rgba(86, 214, 160, 0.85);
}

.status-dot--orange {
  background: var(--orange);
  box-shadow: 0 0 8px rgba(240, 138, 93, 0.85);
}

.status-dot--violet {
  background: var(--violet);
  box-shadow: 0 0 8px rgba(108, 99, 232, 0.85);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(201, 214, 224, 0.55);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(111, 135, 153, 0.8);
}

.breadcrumb a {
  color: rgba(201, 214, 224, 0.72);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

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

/* 图片容器 */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background-color: var(--ink-panel);
  background-image: linear-gradient(
    160deg,
    rgba(62, 85, 104, 0.55),
    rgba(8, 11, 16, 0.88)
  );
  aspect-ratio: 16 / 10;
}

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

.figure--wide {
  aspect-ratio: 21 / 9;
}

.figure--tall {
  aspect-ratio: 4 / 5;
}

.figure--square {
  aspect-ratio: 1 / 1;
}

.figure__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 3px 9px;
  border: 1px solid rgba(230, 180, 94, 0.5);
  border-radius: 4px;
  background: rgba(8, 11, 16, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.figure__caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 14px 16px;
  background-image: linear-gradient(
    180deg,
    rgba(8, 11, 16, 0),
    rgba(8, 11, 16, 0.88)
  );
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--glass);
}

/* 滚动显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* 焦点 */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1023px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: clamp(26px, 4vw, 40px);
  }

  .site-footer__lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 899px) {
  .masthead__main {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .brand {
    order: 1;
  }

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

  .masthead__cta {
    display: none;
  }

  .site-nav {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-left: 0;
    transition: max-height 0.34s var(--ease), opacity 0.24s var(--ease),
      margin 0.34s var(--ease);
  }

  .masthead[data-open="true"] .site-nav {
    max-height: 62vh;
    opacity: 1;
    margin-top: 6px;
    overflow-y: auto;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 6px;
    border-top: 1px solid var(--line-faint);
  }

  .site-nav__link {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    border-bottom: 1px solid rgba(111, 135, 153, 0.14);
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link:hover,
  .site-nav__link:focus-visible {
    background: rgba(67, 224, 206, 0.1);
    color: var(--glass);
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(230, 180, 94, 0.13);
    color: var(--gold);
  }
}

@media (max-width: 719px) {
  .masthead {
    top: 6px;
    margin-top: 10px;
  }

  .masthead__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 8px 14px;
  }

  .masthead__brandline {
    white-space: normal;
    line-height: 1.5;
  }

  .masthead__quick {
    flex-wrap: wrap;
  }

  .quick-link {
    font-size: 11px;
    padding: 2px 9px;
  }

  .masthead__main {
    padding: 9px 14px;
  }

  .brand__sub {
    letter-spacing: 0.18em;
  }

  #main-content {
    scroll-margin-top: 96px;
  }
}

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-footer__legal {
    gap: 12px;
  }
}

/* ============================================================
   动效降级
   ============================================================ */
@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-progress {
    display: none;
  }

  .footer__link:hover,
  .footer__link:focus-visible {
    transform: none;
  }
}

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

  body {
    background: #fff;
    color: #111;
  }

  .site-footer {
    background: #fff;
    color: #333;
  }
}
