/* ==========================================================================
   电玩棋牌汇 · 共享样式表 /assets/site.css
   夜间电子棋牌室 · 技术蓝图框架 · 仪表盘刻度语言
   ========================================================================== */

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

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

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

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

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

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

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

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

input, textarea, select { font: inherit; }

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

/* ---------- 2. CSS 变量 ---------- */
:root {
  /* 品牌色板 */
  --bg: #07110F;
  --panel: #0F2620;
  --panel-deep: #0B1C18;
  --gold: #C8A24A;
  --cyan: #26E0D6;
  --violet: #9B6BFF;
  --text: #E8F3EE;
  --muted: #8FA8A0;
  --ok: #5BE49B;
  --warn: #FF5C7A;
  --ink: #04100C;

  /* 结构线 */
  --line: rgba(143, 168, 160, 0.18);
  --line-soft: rgba(143, 168, 160, 0.10);
  --line-gold: rgba(200, 162, 74, 0.36);
  --glow-cyan: 0 0 34px -14px rgba(38, 224, 214, 0.85);
  --glow-gold: 0 0 30px -16px rgba(200, 162, 74, 0.9);

  /* 圆角与曲线 */
  --r-lg: clamp(18px, 1.6vw, 26px);
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* 字体 */
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 框架尺寸 */
  --shell: min(1320px, 100% - 2.5rem);
  --header-z: 100;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  letter-spacing: 0.005em;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 540px at 88% -8%, rgba(38, 224, 214, 0.07), transparent 62%),
    radial-gradient(780px 480px at -10% 16%, rgba(155, 107, 255, 0.06), transparent 60%),
    linear-gradient(to right, rgba(143, 168, 160, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 168, 160, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 96px 96px, 96px 96px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.008em;
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.02rem + 0.5vw, 1.375rem);
  line-height: 1.32;
}

h4, .h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}

p { text-wrap: pretty; }

strong, b { font-weight: 700; color: #FFFFFF; }

::selection { background: rgba(38, 224, 214, 0.28); color: #FFFFFF; }

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

/* ---------- 4. 工具类 ---------- */
.wrap { width: var(--shell); margin-inline: auto; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.15rem);
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line-gold), transparent 72%);
}

.stack > * + * { margin-top: 1rem; }

.section { padding-block: clamp(2.6rem, 6vw, 5.5rem); }

.section--tight { padding-block: clamp(1.6rem, 3vw, 2.6rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2.4rem;
  padding-bottom: 1rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--r-pill);
  color: var(--text);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  border-color: var(--cyan);
  color: #CFFBF7;
  box-shadow: var(--glow-cyan);
}

.btn--primary {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(200, 162, 74, 0.18), rgba(200, 162, 74, 0.05));
  color: #F3E3B6;
}

.btn--primary:hover {
  border-color: var(--cyan);
  color: #D6FDF8;
  background: linear-gradient(180deg, rgba(38, 224, 214, 0.16), rgba(38, 224, 214, 0.04));
}

.btn--ghost {
  border-color: var(--line);
  color: var(--muted);
}

.btn--ghost:hover { color: var(--text); border-color: var(--cyan); }

.btn--violet {
  border-color: rgba(155, 107, 255, 0.55);
  color: #DCCBFF;
  background: linear-gradient(180deg, rgba(155, 107, 255, 0.16), rgba(155, 107, 255, 0.04));
}

.btn--violet:hover { border-color: var(--violet); color: #F0E9FF; box-shadow: 0 0 30px -14px rgba(155, 107, 255, 0.95); }

/* ---------- 6. 页头框架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  background: linear-gradient(180deg, rgba(7, 17, 15, 0.98) 0%, rgba(7, 17, 15, 0.92) 100%);
  border-bottom: 1px solid var(--line-gold);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(143, 168, 160, 0.06) 1px, transparent 1px);
  background-size: 80px 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--cyan);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--text);
  font-size: 0.9rem;
  transition: top 0.22s ease;
}

.skip-link:focus { top: 0.75rem; }

.header-rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: var(--shell);
  margin-inline: auto;
  height: 26px;
  border-bottom: 1px solid var(--line-soft);
}

.rail-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(143, 168, 160, 0.7);
}

.rail-label--end { color: rgba(200, 162, 74, 0.75); }

.rail-ticks {
  flex: 1 1 auto;
  height: 10px;
  min-width: 2rem;
  background-image:
    repeating-linear-gradient(to right, rgba(200, 162, 74, 0.42) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(to right, rgba(143, 168, 160, 0.24) 0 1px, transparent 1px 16px);
  background-size: 100% 10px, 100% 5px;
  background-repeat: repeat-x, repeat-x;
  background-position: 0 0, 0 0;
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 2.2rem);
  width: var(--shell);
  margin-inline: auto;
  padding-block: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line-gold);
  border-radius: 12px;
  background: rgba(200, 162, 74, 0.07);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.brand-mark span { border-radius: 2px; background: var(--gold); opacity: 0.4; }
.brand-mark span:nth-child(2) { background: var(--cyan); opacity: 0.95; }
.brand-mark span:nth-child(3) { background: var(--violet); opacity: 0.85; }
.brand-mark span:nth-child(4) { background: var(--gold); opacity: 0.62; }

.brand:hover .brand-mark { border-color: var(--cyan); box-shadow: var(--glow-cyan); }

.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* 导航 */
.nav-frame { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.3vw, 1.4rem);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.42rem;
  padding: 0.5rem 0.1rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--cyan);
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--text); }
.nav-link:hover .nav-index { opacity: 1; }
.nav-link:hover::after { width: 100%; }

.nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"] .nav-index { color: var(--cyan); opacity: 1; }
.nav-link[aria-current="page"]::after { width: 100%; background: var(--gold); }

/* 页头右侧 */
.header-side {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 0 0 auto;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(91, 228, 155, 0.14);
}

@media (prefers-reduced-motion: no-preference) {
  .status-dot { animation: dotPulse 2.8s ease-in-out infinite; }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.header-hours {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(143, 168, 160, 0.8);
  white-space: nowrap;
}

.header-cta { font-size: 0.86rem; padding: 0.52rem 1rem; }

/* 移动端切换按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  padding: 0.5rem 0.9rem 0.5rem 0.75rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--r-pill);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.22s ease, color 0.22s ease;
}

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

.nav-toggle-bars { display: inline-grid; gap: 3px; width: 16px; }

.nav-toggle-bars span {
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

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

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid var(--line-gold);
  background:
    radial-gradient(680px 320px at 92% 0%, rgba(38, 224, 214, 0.06), transparent 65%),
    linear-gradient(180deg, rgba(15, 38, 32, 0.85), rgba(7, 17, 15, 1) 72%);
}

.footer-rail {
  display: flex;
  align-items: center;
  width: var(--shell);
  margin-inline: auto;
  height: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-rail .rail-ticks { height: 8px; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1.15fr 0.85fr;
  gap: clamp(1.6rem, 4vw, 4rem);
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(2rem, 4vw, 3.4rem) clamp(1.4rem, 2.4vw, 2rem);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.footer-brand-line {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.footer-brand-note {
  margin-top: 0.9rem;
  max-width: 42ch;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-stamp {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: rgba(143, 168, 160, 0.85);
}

.footer-stamp .mono { color: var(--cyan); font-size: 0.78rem; }

.footer-title {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.footer-key-index {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.footer-list { display: grid; gap: 0.7rem; }

.footer-list li {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: baseline;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer-value {
  font-size: 0.9rem;
  color: var(--text);
  word-break: break-word;
}

.footer-value.mono { font-size: 0.82rem; color: #CFEDE7; }

.footer-list--links li { grid-template-columns: 1fr; }

.footer-link {
  position: relative;
  display: inline-block;
  padding-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--cyan);
  transition: width 0.3s ease;
}

.footer-link:hover { color: var(--text); }
.footer-link:hover::after { width: 100%; }

.footer-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: rgba(143, 168, 160, 0.8);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.6rem;
  width: var(--shell);
  margin-inline: auto;
  padding-block: 1rem 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-copy { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; }

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
}

.footer-legal .mono { color: rgba(200, 162, 74, 0.9); font-size: 0.74rem; }

.footer-sep { color: rgba(143, 168, 160, 0.45); }

/* ---------- 8. 通用组件 ---------- */
/* 面板 */
.panel {
  position: relative;
  padding: clamp(1.15rem, 2.2vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(160deg, rgba(38, 224, 214, 0.05), transparent 46%),
    var(--panel);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }

/* 展览标签 */
.exhibit-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.85rem 0.32rem 0.55rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--r-pill);
  background: rgba(200, 162, 74, 0.09);
  color: #E4CF95;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* 胶囊筛选 */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(143, 168, 160, 0.28);
  border-radius: var(--r-pill);
  background: rgba(15, 38, 32, 0.6);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.chip:hover { color: var(--text); border-color: var(--cyan); }

.chip[aria-pressed="true"],
.chip.is-active {
  color: #CDFBF6;
  border-color: var(--cyan);
  background: rgba(38, 224, 214, 0.12);
}

/* 数据表 */
.data-table { font-size: 0.92rem; }

.data-table caption {
  padding-bottom: 0.8rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.data-table tbody tr { transition: background-color 0.2s ease; }
.data-table tbody tr:hover { background-color: rgba(38, 224, 214, 0.07); }

.data-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* 时间轴 */
.timeline {
  position: relative;
  padding-left: 0.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(143, 168, 160, 0.12));
}

.timeline li {
  position: relative;
  padding: 0 0 1.4rem 2rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.timeline li:hover::before {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(38, 224, 214, 0.12);
}

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-gold);
  border-radius: var(--r-lg);
  background-color: var(--panel);
  background-image:
    linear-gradient(to right, rgba(143, 168, 160, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 168, 160, 0.08) 1px, transparent 1px),
    radial-gradient(120% 90% at 15% 0%, rgba(38, 224, 214, 0.12), transparent 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(155, 107, 255, 0.12), transparent 60%);
  background-size: 48px 48px, 48px 48px, auto, auto;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(200, 162, 74, 0.18);
  border-radius: calc(var(--r-lg) - 8px);
  pointer-events: none;
}

.media-frame:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* 面包屑 */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumb a { transition: color 0.2s ease; }
.crumb a:hover { color: var(--cyan); }
.crumb-sep { color: rgba(143, 168, 160, 0.45); }

/* 正文容器 */
.prose { max-width: 72ch; }

.prose p + p { margin-top: 1rem; }

.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }

.prose ul,
.prose ol {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: 0.8rem;
}

.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.35rem; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(38, 224, 214, 0.35);
}

/* 折线 / 手风琴基础 */
.accordion { border-top: 1px solid var(--line); }

.accordion-item { border-bottom: 1px solid var(--line); }

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0.2rem;
  text-align: left;
  font-weight: 600;
  transition: color 0.2s ease;
}

.accordion-trigger:hover { color: var(--cyan); }

.accordion-panel {
  padding: 0 0.2rem 1.2rem;
  color: var(--muted);
}

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

/* ---------- 9. 网格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

@media (min-width: 901px) {
  .col-2 { grid-column: span 2; }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
  .col-9 { grid-column: span 9; }
  .col-10 { grid-column: span 10; }
  .col-12 { grid-column: span 12; }
}

@media (max-width: 900px) {
  .grid-12 { grid-template-columns: 1fr; }
}

/* ---------- 10. 滚动进度 ---------- */
.progress-bar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--cyan) 58%, var(--violet) 100%);
  pointer-events: none;
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1180px) {
  .header-hours { display: none; }
}

@media (max-width: 1060px) {
  .header-status { display: none; }
}

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }

  .nav-frame {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.4rem);
    display: none;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    padding: 0.6rem;
    border: 1px solid var(--line-gold);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(15, 38, 32, 0.99), rgba(7, 17, 15, 0.99));
    box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.95);
    z-index: 90;
  }

  .nav-frame[data-open] { display: block; }

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

  .nav-link {
    padding: 0.78rem 0.9rem;
    border-radius: var(--r-md);
    font-size: 1rem;
  }

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

  .nav-link:hover { background: rgba(38, 224, 214, 0.08); }

  .nav-link[aria-current="page"] {
    background: rgba(200, 162, 74, 0.1);
    box-shadow: inset 0 0 0 1px var(--line-gold);
  }

  .brand-tagline { display: none; }
}

@media (max-width: 1000px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --shell: min(1320px, 100% - 1.75rem); }

  .rail-label--end { display: none; }

  .header-cta { display: none; }

  .footer-list li { grid-template-columns: 1fr; gap: 0.15rem; }

  .footer-base { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .nav-toggle-text { display: none; }
}

/* ---------- 12. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html { scroll-behavior: auto; }
}
