/* 澳门娱乐汇 · 共享站点样式 /assets/site.css */

:root {
  --ink-900: #04100D;
  --green-900: #071A15;
  --green-800: #0E2B23;
  --gold: #D8A84E;
  --gold-deep: #C08F38;
  --champagne: #F6E8C8;
  --magenta: #FF4D8D;
  --blue: #48C7FF;
  --celadon: #7FC8A9;
  --amber: #F2A65A;
  --coral: #FF6B5A;
  --paper: #F7F0E2;
  --glass: rgba(246, 232, 200, 0.12);
  --line: rgba(216, 168, 78, 0.22);
  --line-soft: rgba(246, 232, 200, 0.12);
  --text-soft: rgba(246, 232, 200, 0.72);
  --text-dim: rgba(246, 232, 200, 0.55);
  --rail-w: 96px;
  --bar-h: 76px;
  --maxw: 1240px;
  --font-display: "Noto Serif SC", "Songti SC", "SimSun", "Times New Roman", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", "Courier New", monospace;
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
}

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

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

html.is-nav-open { overflow: hidden; }

body,
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  min-height: 100vh;
  background-color: var(--green-900);
  background-image:
    radial-gradient(900px 620px at 6% 3%, rgba(72, 199, 255, 0.10), transparent 62%),
    radial-gradient(820px 560px at 96% 16%, rgba(255, 77, 141, 0.08), transparent 64%),
    radial-gradient(760px 620px at 50% 106%, rgba(216, 168, 78, 0.08), transparent 66%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--champagne);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(216, 168, 78, 0.32); color: var(--paper); }

#main-content { scroll-margin-top: calc(var(--bar-h) + 16px); }
[data-section] { scroll-margin-top: calc(var(--bar-h) + 24px); }

/* ---------- 基础排版 ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.3; letter-spacing: 0.02em; }

.prose { max-width: 44em; color: rgba(246, 232, 200, 0.82); }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: 1.4rem; margin: 1.8em 0 0.7em; color: var(--champagne); }
.prose h3 { font-size: 1.12rem; margin: 1.5em 0 0.6em; color: var(--champagne); }
.prose ul, .prose ol { margin: 0.8em 0; }
.prose li { position: relative; padding-left: 1.15em; margin: 0.35em 0; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 7px;
  height: 1px;
  background: var(--gold);
}
.prose a { color: var(--blue); border-bottom: 1px solid rgba(72, 199, 255, 0.35); }
.prose a:hover { border-bottom-color: var(--blue); }
.prose strong { color: var(--champagne); font-weight: 600; }

/* ---------- 工具类 ---------- */

.u-mono { font-family: var(--font-mono); letter-spacing: 0.06em; }
.u-gold { color: var(--gold); }
.u-blue { color: var(--blue); }
.u-magenta { color: var(--magenta); }
.u-celadon { color: var(--celadon); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  z-index: 400;
  padding: 0.65rem 1.2rem;
  background: var(--gold);
  color: var(--ink-900);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.8rem; }

/* ---------- 头部骨架 ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(4, 16, 13, 0.82), rgba(4, 16, 13, 0));
  border-bottom: 1px solid transparent;
  transition: background-color 0.32s var(--ease), border-color 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.site-header[data-scrolled="true"] {
  background: rgba(7, 26, 21, 0.94);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  border-bottom-color: var(--line);
  box-shadow: 0 22px 46px -34px rgba(4, 16, 13, 0.95);
}

.site-header[data-open="true"] {
  background: rgba(7, 26, 21, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  min-height: var(--bar-h);
  padding: 10px clamp(16px, 3vw, 36px);
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.header-brand-mark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  position: relative;
  flex: none;
}
.header-brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--gold);
  opacity: 0.85;
}

.header-brand-text {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.18em;
  color: var(--champagne);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: clamp(6px, 1.4vw, 20px);
  flex: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: 2px;
  border: 1px solid rgba(216, 168, 78, 0.55);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  white-space: nowrap;
  box-shadow: 0 12px 26px -16px rgba(216, 168, 78, 0.95);
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.header-cta::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--ink-900);
  transform: rotate(45deg);
  flex: none;
}
.header-cta:hover { transform: translateY(-1px); filter: brightness(1.07); }
.header-cta:active { transform: translateY(0); }

/* ---------- 主导航 ---------- */

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

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.1vw, 18px);
}

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.38rem;
  padding: 0.55rem 0.32rem;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: rgba(246, 232, 200, 0.78);
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.32rem;
  right: 0.32rem;
  bottom: 0.18rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--champagne); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--gold); }
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--gold), var(--magenta));
}
.nav-link[aria-current="page"] .nav-index { color: var(--magenta); }

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: rgba(216, 168, 78, 0.55);
  transition: color 0.2s var(--ease);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(216, 168, 78, 0.35);
  border-radius: 2px;
  background: rgba(246, 232, 200, 0.06);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); }

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--champagne);
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}
.site-header[data-open="true"] .nav-toggle-bars:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bars:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-bars:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 左侧品牌轨道 ---------- */

.brand-rail { display: none; }

.rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.rail-seal {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(216, 168, 78, 0.14), 0 0 20px rgba(216, 168, 78, 0.42);
}

.rail-mark {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.34em;
  color: var(--champagne);
}

.rail-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  padding-top: 2.4rem;
}
.rail-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 1.7rem;
  background: linear-gradient(180deg, transparent, rgba(216, 168, 78, 0.55));
}

.rail-section-label {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: rgba(216, 168, 78, 0.7);
}

.rail-section-value {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.26em;
  color: var(--blue);
}

.rail-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(246, 232, 200, 0.7);
  opacity: 0.42;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), color 0.2s var(--ease);
}
.site-header[data-scrolled="true"] .rail-top { opacity: 1; pointer-events: auto; }
.rail-top:hover { color: var(--gold); }

.rail-top-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(216, 168, 78, 0.45);
  border-radius: 50%;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.rail-top-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 7px;
  height: 7px;
  border-left: 1px solid var(--gold);
  border-top: 1px solid var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}
.rail-top:hover .rail-top-icon { border-color: var(--gold); background: rgba(216, 168, 78, 0.12); }

.rail-top-text {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
}

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 116px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 43, 35, 0.55), var(--ink-900) 82%);
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.footer-glow {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -40%;
  height: 360px;
  pointer-events: none;
  background:
    radial-gradient(50% 100% at 18% 100%, rgba(255, 77, 141, 0.16), transparent 70%),
    radial-gradient(46% 100% at 78% 100%, rgba(72, 199, 255, 0.14), transparent 72%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) clamp(18px, 4vw, 40px) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 48px);
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }

.footer-seal {
  width: 11px;
  height: 11px;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(216, 168, 78, 0.12);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.2em;
  color: var(--champagne);
}

.footer-brand-note {
  margin-top: 0.7rem;
  max-width: 30ch;
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text-dim);
}

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

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.15rem; }

.footer-link {
  position: relative;
  display: inline-block;
  padding: 0.24rem 0;
  font-size: 0.92rem;
  color: rgba(246, 232, 200, 0.76);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-link::before {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--magenta);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible { color: var(--gold); transform: translateX(2px); }
.footer-link:hover::before { opacity: 1; }

.footer-contact { display: flex; flex-direction: column; gap: 0.55rem; }

.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(246, 232, 200, 0.12);
}

.footer-contact-key {
  flex: none;
  min-width: 2.6em;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: rgba(216, 168, 78, 0.85);
}

.footer-contact-val {
  color: rgba(246, 232, 200, 0.82);
  font-size: 0.88rem;
  word-break: break-word;
}

.copy-btn {
  margin-left: auto;
  padding: 0.16rem 0.48rem;
  border: 1px solid rgba(72, 199, 255, 0.35);
  border-radius: 2px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.copy-btn:hover { background: rgba(72, 199, 255, 0.12); border-color: var(--blue); }
.copy-btn[data-copied="true"] { color: var(--celadon); border-color: rgba(127, 200, 169, 0.6); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.4rem;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 1.1rem 0 1.5rem;
  border-top: 1px solid rgba(246, 232, 200, 0.12);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(246, 232, 200, 0.48);
}

.footer-copyright [data-year] { color: var(--gold); }
.footer-icp { color: rgba(246, 232, 200, 0.42); }
.footer-hours { color: rgba(127, 200, 169, 0.75); }

/* ---------- 页面容器 ---------- */

.page-main { padding-top: var(--bar-h); }
.page-main--flush { padding-top: 0; }

.content-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) clamp(18px, 4vw, 40px);
}

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

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 62ch;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  color: var(--blue);
}
.section-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  color: var(--champagne);
}

.section-note { color: var(--text-soft); font-size: 1rem; }

/* ---------- 网格与卡片 ---------- */

.grid { display: grid; gap: clamp(14px, 2.4vw, 26px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }

.card {
  position: relative;
  padding: clamp(18px, 2.6vw, 26px);
  padding-left: clamp(22px, 3vw, 32px);
  background: rgba(14, 43, 35, 0.72);
  border: 1px solid rgba(216, 168, 78, 0.18);
  border-radius: 3px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(18px, 2.6vw, 26px);
  width: 2px;
  height: 26px;
  background: var(--gold);
}
.card:hover { border-color: rgba(216, 168, 78, 0.42); }

.card--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: rgba(246, 232, 200, 0.2);
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin-bottom: 0.6rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--champagne);
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: rgba(216, 168, 78, 0.8);
}

.card-body { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- 标签 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.16rem 0.58rem;
  border-radius: 2px;
  border: 1px solid rgba(72, 199, 255, 0.32);
  background: rgba(72, 199, 255, 0.12);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.tag--gold { border-color: rgba(216, 168, 78, 0.4); background: rgba(216, 168, 78, 0.12); color: var(--gold); }
.tag--magenta { border-color: rgba(255, 77, 141, 0.4); background: rgba(255, 77, 141, 0.12); color: var(--magenta); }
.tag--blue { border-color: rgba(72, 199, 255, 0.32); background: rgba(72, 199, 255, 0.12); color: var(--blue); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.3rem;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--ink-900); font-weight: 600; }
.btn--gold:hover { filter: brightness(1.07); }
.btn--ghost { border-color: rgba(216, 168, 78, 0.45); color: var(--champagne); background: rgba(246, 232, 200, 0.05); }
.btn--ghost:hover { border-color: var(--gold); background: rgba(216, 168, 78, 0.14); }
.btn--magenta { background: linear-gradient(135deg, var(--magenta), #E23A78); color: var(--ink-900); font-weight: 600; }
.btn--magenta:hover { filter: brightness(1.07); }

/* ---------- 面包屑 ---------- */

.breadcrumb { margin: 0 0 clamp(16px, 3vw, 26px); }

.breadcrumb-list {
  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(--text-dim);
}

.breadcrumb-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: rgba(216, 168, 78, 0.5);
}
.breadcrumb-sep { color: rgba(216, 168, 78, 0.5); }
.breadcrumb-link { color: rgba(246, 232, 200, 0.7); transition: color 0.2s var(--ease); }
.breadcrumb-link:hover { color: var(--gold); }

/* ---------- 索引与时间轴 ---------- */

.index-list { display: flex; flex-direction: column; }

.index-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(246, 232, 200, 0.1);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.index-row:hover { border-bottom-color: rgba(216, 168, 78, 0.38); }

.index-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.index-label { color: rgba(246, 232, 200, 0.85); font-size: 0.96rem; }

.index-row time {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ---------- 图片容器 ---------- */

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid rgba(216, 168, 78, 0.18);
  background:
    linear-gradient(150deg, rgba(14, 43, 35, 0.95), rgba(4, 16, 13, 0.98)),
    radial-gradient(80% 60% at 20% 10%, rgba(72, 199, 255, 0.14), transparent 70%);
}
.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 92% at 50% 0%, transparent 42%, rgba(4, 16, 13, 0.58) 100%);
}

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

.media-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  max-width: 100%;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: rgba(246, 232, 200, 0.86);
  background: rgba(4, 16, 13, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(216, 168, 78, 0.3);
}

/* ---------- 折叠卡 ---------- */

.fold-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 0;
  color: inherit;
}

.fold-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--champagne);
}

.fold-arrow {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(216, 168, 78, 0.4);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), border-color 0.2s var(--ease);
}
.fold-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}
[data-fold][data-open="true"] .fold-arrow { transform: rotate(180deg); border-color: var(--gold); }

.fold-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease);
}
[data-fold][data-open="true"] .fold-panel { grid-template-rows: 1fr; }

.fold-panel-inner {
  min-height: 0;
  overflow: hidden;
}
.fold-panel-inner > * { padding-top: 0.9rem; }

/* ---------- 标签页 ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(216, 168, 78, 0.2);
}

.tab {
  padding: 0.6rem 0.95rem;
  border-bottom: 2px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: rgba(246, 232, 200, 0.6);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tab:hover { color: var(--champagne); }
.tab[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }

.tab-panel[hidden] { display: none; }

/* ---------- 筛选 ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.filter-chip {
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(216, 168, 78, 0.28);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(246, 232, 200, 0.72);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.filter-chip:hover { color: var(--champagne); border-color: rgba(216, 168, 78, 0.55); }
.filter-chip[aria-pressed="true"] {
  color: var(--champagne);
  border-color: var(--gold);
  background: rgba(216, 168, 78, 0.16);
}

/* ---------- 显现 ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.36s var(--ease), transform 0.36s var(--ease);
}
[data-reveal][data-revealed="true"] { opacity: 1; transform: none; }

/* ---------- 焦点 ---------- */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 桌面端（≥1024px） ---------- */

@media (min-width: 1024px) {
  .brand-rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--rail-w);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 24px;
    background: linear-gradient(180deg, rgba(14, 43, 35, 0.94), rgba(7, 26, 21, 0.99));
    border-right: 1px solid rgba(216, 168, 78, 0.18);
  }

  .brand-rail::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 12%;
    width: 1px;
    height: 22%;
    background: linear-gradient(180deg, transparent, rgba(216, 168, 78, 0.7), transparent);
  }

  .header-inner { padding-left: calc(var(--rail-w) + 32px); }
  .header-brand { display: none; }

  .page-main { margin-left: var(--rail-w); }
  .site-footer { margin-left: var(--rail-w); }
}

/* ---------- 平板与手机 ---------- */

@media (max-width: 1023px) {
  .brand-rail { display: contents; }
  .rail-brand,
  .rail-section { display: none; }

  .rail-top {
    position: fixed;
    left: 14px;
    bottom: 16px;
    z-index: 110;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s var(--ease);
  }
  .site-header[data-scrolled="true"] .rail-top { opacity: 1; pointer-events: auto; }
  .rail-top-text { display: none; }
  .rail-top-icon {
    width: 40px;
    height: 40px;
    background: rgba(7, 26, 21, 0.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 26px -16px rgba(4, 16, 13, 0.95);
  }
}

@media (max-width: 900px) {
  :root { --bar-h: 64px; }

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

  .primary-nav {
    position: fixed;
    top: var(--bar-h);
    right: 0;
    bottom: 0;
    z-index: 3;
    width: min(84vw, 340px);
    padding: 20px 22px 32px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(14, 43, 35, 0.99), rgba(7, 26, 21, 0.99));
    border-left: 1px solid rgba(216, 168, 78, 0.28);
    box-shadow: -30px 0 60px -32px rgba(4, 16, 13, 0.95);
    transform: translateX(104%);
    transition: transform 0.34s var(--ease);
    margin-left: 0;
  }
  .site-header[data-open="true"] .primary-nav { transform: translateX(0); }

  .site-header::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(4, 16, 13, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }
  .site-header[data-open="true"]::after { opacity: 1; pointer-events: auto; }

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

  .nav-link {
    justify-content: flex-start;
    padding: 0.95rem 0.2rem;
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(246, 232, 200, 0.1);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--gold); }
  .nav-index { font-size: 0.7rem; }

  .footer-top { grid-template-columns: 1fr; }
}

@media (min-width: 760px) and (max-width: 1023px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1.2fr; }
}

@media (min-width: 1024px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

@media (max-width: 560px) {
  .header-cta {
    padding: 0.5rem 0.62rem;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }
  .header-cta::before { display: none; }
  .header-brand-text { font-size: 0.92rem; letter-spacing: 0.12em; }
  .breadcrumb-list { font-size: 0.64rem; }
  .footer-base { font-size: 0.64rem; }
}

/* ---------- 减少动态效果 ---------- */

@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;
    scroll-behavior: auto !important;
  }

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