/* ============================================================
   天天娱乐会馆 · 会馆服务中心 —— 共享样式 /assets/site.css
   夜墨底 + 冰雪蓝 / 暖金对撞，硬边容器 + 软控件
   ============================================================ */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
table { width: 100%; border-collapse: collapse; }
hr { border: 0; }
:focus-visible { outline: 2px solid #E8B44A; outline-offset: 3px; border-radius: 3px; }

/* ---------- 2. 令牌 ---------- */
:root {
  color-scheme: dark;

  --ink: #0B1220;
  --panel: #131C2B;
  --ice: #4EA8DE;
  --ice-deep: #1B4F72;
  --gold: #E8B44A;
  --violet: #8B5CF6;
  --coral: #FF7A59;
  --moss: #5F7A5A;
  --clay: #B5654A;
  --stone: #8A94A6;
  --paper: #F2EFE7;

  --line: rgba(138, 148, 166, .26);
  --line-strong: rgba(138, 148, 166, .5);
  --gold-line: rgba(232, 180, 74, .38);

  --rail-w: 72px;
  --dock-h: 56px;
  --top-h: 68px;
  --gap: 24px;
  --pad-x: clamp(18px, 3.4vw, 48px);
  --measure: 44em;

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

  --scroll-progress: 0;
}

/* ---------- 3. 页面基底 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  padding-top: var(--top-h);
  padding-bottom: var(--dock-h);
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 78% -10%, rgba(78, 168, 222, .10), transparent 70%),
    radial-gradient(720px 480px at 4% 34%, rgba(232, 180, 74, .07), transparent 72%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.85;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.005em;
}

/* ---------- 4. 排版与文字工具 ---------- */
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--paper); font-weight: 800; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--ice);
}

.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }

.section-title {
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.12;
}

.num {
  font-family: var(--font-num);
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.coord {
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--stone);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 5. 布局 ---------- */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { margin-top: 96px; }

.row { display: flex; flex-wrap: wrap; gap: var(--gap); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

.offset-24 { margin-left: 24px; }
.offset-48 { margin-left: 48px; }

.divider { height: 1px; background: var(--line); }

/* ---------- 6. 跳转链 ---------- */
.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: #12161f;
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-220%);
  transition: transform .18s ease;
}
.skip-link:focus-visible { transform: none; }

/* ---------- 7. 头部框架 ---------- */
.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 80;
}

.header-top {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--top-h);
  padding: 10px var(--pad-x);
  background: rgba(11, 18, 32, .94);
  border-bottom: 1px solid var(--line);
}
.header-top::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--ice), var(--gold));
  transform: scaleX(var(--scroll-progress));
  transform-origin: left center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
}
.brand-mark {
  position: relative;
  flex: 0 0 34px;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: conic-gradient(from 210deg, var(--ice), var(--ice-deep) 34%, var(--gold) 68%, var(--clay));
  box-shadow: inset 0 0 0 1px rgba(242, 239, 231, .22);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 4px;
  background: var(--ink);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-name {
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-sub {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-cta { display: flex; align-items: center; gap: 10px; }

/* 胶囊按钮：容器是硬的，控件是软的 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-gold { background: var(--gold); color: #12161f; }
.btn-gold:hover { background: #f3c566; transform: translateY(-2px); }
.btn-ice { background: var(--ice); color: #07131f; }
.btn-ice:hover { background: #69bae8; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); color: var(--paper); }
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); transform: translateY(-2px); }

/* 汉堡 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.nav-toggle-bar {
  display: block;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.nav-toggle-label { letter-spacing: .08em; }

/* 左侧竖向索引（桌面） */
.primary-nav {
  position: fixed;
  top: var(--top-h);
  bottom: calc(var(--dock-h) + 60px);
  left: 0;
  z-index: 70;
  width: var(--rail-w);
  padding: 16px 0;
  overflow: hidden auto;
  background: var(--panel);
  border-right: 1px solid var(--line);
  scrollbar-width: none;
}
.primary-nav::-webkit-scrollbar { display: none; }

.nav-list { display: flex; flex-direction: column; gap: 4px; }

.nav-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 0;
  border-left: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--stone);
  writing-mode: vertical-rl;
  text-orientation: upright;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.nav-list a:hover { color: var(--paper); background: rgba(78, 168, 222, .09); }
.nav-list a[aria-current="page"] {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(232, 180, 74, .1);
}

.nav-foot { display: none; }

.rail-stamp {
  position: fixed;
  left: 0;
  bottom: calc(var(--dock-h) + 12px);
  width: var(--rail-w);
  margin: 0;
  text-align: center;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--gold);
  opacity: .92;
}
.rail-stamp::before {
  content: "";
  display: block;
  width: 22px; height: 1px;
  margin: 0 auto 8px;
  background: var(--gold);
  opacity: .55;
}

/* 底部固定分类带 */
.dock-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  height: var(--dock-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  background: rgba(19, 28, 43, .97);
  border-top: 1px solid var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dock-bar::-webkit-scrollbar { display: none; }

.dock-list { display: flex; align-items: center; gap: 8px; margin: 0 auto; }

.dock-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--stone);
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background-color .18s ease;
}
.dock-link::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ice);
}
.dock-list > li:nth-child(1) .dock-link::before { background: var(--ice); }
.dock-list > li:nth-child(2) .dock-link::before { background: var(--gold); }
.dock-list > li:nth-child(3) .dock-link::before { background: var(--violet); }
.dock-list > li:nth-child(4) .dock-link::before { background: var(--coral); }
.dock-list > li:nth-child(5) .dock-link::before { background: var(--moss); }
.dock-list > li:nth-child(6) .dock-link::before { background: var(--clay); }

.dock-link:hover {
  transform: translateY(-4px);
  border-color: var(--ice);
  color: var(--paper);
  background: rgba(78, 168, 222, .13);
}
.dock-link[aria-current="page"] {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(232, 180, 74, .1);
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 5;
  margin-top: 96px;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 0%, rgba(19, 28, 43, .9) 42%, #0d1626 100%);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px var(--pad-x) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px 40px;
}

.footer-name {
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 900;
  letter-spacing: .01em;
}
.footer-tagline {
  margin-top: 12px;
  max-width: 26em;
  font-size: 14px;
  color: var(--stone);
}
.footer-update {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--gold-line);
  max-width: 24em;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(232, 180, 74, .85);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-col-title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--ice);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--stone);
  transition: color .18s ease, padding-left .18s ease;
}
.footer-links a:hover { color: var(--paper); padding-left: 4px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item { display: flex; flex-direction: column; gap: 2px; }
.contact-key {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--stone);
}
.contact-val { font-size: 14px; color: var(--paper); overflow-wrap: anywhere; }

.footer-meta {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px var(--pad-x) 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--stone);
}
.footer-icp, .footer-copy { margin: 0; }

/* ---------- 9. 基础组件 ---------- */
.panel {
  padding: clamp(20px, 2.6vw, 36px);
  background: var(--panel);
  border: 1px solid var(--line);
}
.panel-cold {
  background: linear-gradient(160deg, rgba(78, 168, 222, .14), rgba(27, 79, 114, .2));
  border-color: rgba(78, 168, 222, .36);
}
.panel-warm {
  background: linear-gradient(160deg, rgba(232, 180, 74, .14), rgba(181, 101, 74, .16));
  border-color: rgba(232, 180, 74, .36);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.tag-ice { color: var(--ice); border-color: rgba(78, 168, 222, .5); background: rgba(78, 168, 222, .12); }
.tag-gold { color: var(--gold); border-color: rgba(232, 180, 74, .5); background: rgba(232, 180, 74, .12); }
.tag-new { color: var(--violet); border-color: rgba(139, 92, 246, .5); background: rgba(139, 92, 246, .13); }
.tag-warn { color: var(--coral); border-color: rgba(255, 122, 89, .5); background: rgba(255, 122, 89, .13); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 14px 18px;
  background: rgba(19, 28, 43, .62);
  border: 1px solid var(--line);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--stone);
}
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stone); }
.legend-dot--ice { background: var(--ice); }
.legend-dot--gold { background: var(--gold); }
.legend-dot--violet { background: var(--violet); }
.legend-dot--coral { background: var(--coral); }
.legend-dot--moss { background: var(--moss); }
.legend-dot--clay { background: var(--clay); }

.route-line {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.steps { display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: baseline; }
.step-num {
  font-family: var(--font-num);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}
.step-body { min-width: 0; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--gold);
  transition: gap .18s ease;
}
.link-arrow::after { content: "→"; font-family: var(--font-num); }
.link-arrow:hover { gap: 12px; }

.breadcrumb {
  font-size: 13px;
  color: var(--stone);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li:not(:first-child)::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}
.breadcrumb a { color: var(--stone); }
.breadcrumb a:hover { color: var(--ice); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* 标签页 */
.tabs { display: block; }
.tablist {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(19, 28, 43, .72);
}
.tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--stone);
  transition: background-color .18s ease, color .18s ease;
}
.tab:hover { color: var(--paper); }
.tab[aria-selected="true"] { background: var(--ice); color: #07131f; }
.tabpanel { margin-top: 24px; }
.tabpanel[hidden] { display: none; }

/* 折叠块 */
.collapse {
  border: 1px solid var(--line);
  background: rgba(19, 28, 43, .5);
}
.collapse + .collapse { border-top: 0; }
.collapse summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.collapse summary::-webkit-details-marker { display: none; }
.collapse summary::after {
  content: "+";
  font-family: var(--font-num);
  font-size: 18px;
  color: var(--gold);
}
.collapse[open] summary::after { content: "–"; }
.collapse-body { padding: 0 20px 20px; color: var(--stone); }

/* 图片容器基础规则 */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f1727;
  border: 1px solid var(--line);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(78, 168, 222, .18), transparent 58%),
    linear-gradient(315deg, rgba(232, 180, 74, .12), transparent 52%),
    repeating-linear-gradient(90deg, rgba(138, 148, 166, .14) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(138, 148, 166, .1) 0 1px, transparent 1px 48px);
}
.media-frame { position: absolute; inset: 12px; border: 1px solid rgba(242, 239, 231, .12); pointer-events: none; }

/* 显现 */
[data-reveal] { transition: opacity .5s ease, transform .5s ease; }
html.js-ready [data-reveal] { opacity: 0; transform: translateY(16px); }
html.js-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1200px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
}

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--flip { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --top-h: 60px; --rail-w: 0px; }

  body { padding-left: 0; }

  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .rail-stamp { display: none; }

  .primary-nav {
    top: var(--top-h);
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    max-height: calc(100vh - var(--top-h) - var(--dock-h));
    max-height: calc(100dvh - var(--top-h) - var(--dock-h));
    padding: 12px var(--pad-x) 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease, visibility .18s ease;
  }
  .site-header[data-open] .primary-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a {
    justify-content: flex-start;
    width: 100%;
    padding: 13px 12px;
    border-left: 2px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    letter-spacing: .06em;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .nav-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .nav-foot .btn { width: 100%; }

  .dock-list { margin: 0; }

  .site-footer { margin-top: 56px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); padding-top: 48px; gap: 40px; }
  .footer-contact-list { grid-template-columns: minmax(0, 1fr); }
  .section { margin-top: 56px; }
  .offset-24, .offset-48 { margin-left: 0; }
}

@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-sub { display: none; }
  .nav-toggle-label { display: none; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 11. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .dock-link:hover, .btn:hover, .footer-links a:hover { transform: none; padding-left: 0; }
  html.js-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}
