/* ==========================================================
   美狮贵宾开服 · climb-meishi.com.cn
   共享样式 /assets/site.css
   阶梯网格 · 夜间开服大厅
   ========================================================== */

/* ---------- 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, li, figure, blockquote, dl, dd, details, summary { 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; }
summary { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ---------- tokens ---------- */
:root {
  --ink: #0B0F1A;
  --ink-2: #121A2B;
  --line: #1E2A42;
  --amber-deep: #B87B12;
  --amber: #F2B23E;
  --teal: #2FE3C1;
  --violet: #7A5CFF;
  --mist: #E8EDF5;
  --muted: #9AA7BD;
  --paper: #F5F1E8;
  --paper-ink: #1A1F2B;
  --alert: #FF6B4A;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Roboto Mono", monospace;

  --gutter: clamp(18px, 4vw, 44px);
  --header-h: 94px;
  --rule: 1px solid var(--line);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- base ---------- */
body {
  padding-top: var(--header-h);
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body[data-hero] { padding-top: 0; }
body[data-nav-locked] { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--mist);
}
h1 { font-size: clamp(34px, 6vw, 76px); }
h2 { font-size: clamp(24px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 26px); }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.mono,
[data-year],
time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

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

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- shell / layout ---------- */
.shell,
.header-inner,
.footer-inner {
  width: min(1280px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.section { padding-block: clamp(48px, 7vw, 96px); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 32px;
  padding-bottom: 18px;
  margin-bottom: clamp(24px, 3vw, 40px);
  border-bottom: var(--rule);
}
.section__title { font-size: clamp(24px, 3.4vw, 40px); }
.section__note {
  max-width: 56ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.section--paper {
  background: var(--paper);
  color: var(--paper-ink);
}
.section--paper h1,
.section--paper h2,
.section--paper h3,
.section--paper h4,
.section--paper .section__title { color: var(--paper-ink); }
.section--paper .section__head { border-bottom-color: rgba(26, 31, 43, 0.18); }
.section--paper .section__note { color: #4C5768; }
.section--paper .plate { color: #8A5E06; border-bottom-color: rgba(26, 31, 43, 0.22); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.stair-1 { padding-left: clamp(0px, 5vw, 64px); }
.stair-2 { padding-left: clamp(0px, 10vw, 128px); }
.stair-3 { padding-left: clamp(0px, 14vw, 192px); }

/* ---------- typography helpers ---------- */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.prose {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.85;
}
.prose > * + * { margin-top: 1.2em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(20px, 2.4vw, 28px); }
.prose h3 { margin-top: 1.6em; }
.prose ul,
.prose ol { padding-left: 0; }
.prose li { position: relative; padding-left: 1.2em; }
.prose li + li { margin-top: 0.5em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 9px;
  height: 1px;
  background: var(--amber-deep);
}
.prose--paper { color: #3A4456; }
.prose a { color: var(--teal); border-bottom: 1px solid rgba(47, 227, 193, 0.4); }
.section--paper .prose a { color: #0F6B5B; border-bottom-color: rgba(15, 107, 91, 0.4); }

/* ---------- breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.crumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.crumbs__item + .crumbs__item::before { content: "/"; color: var(--line); }
.crumbs__link { transition: color 0.2s var(--ease); }
.crumbs__link:hover { color: var(--teal); }
.crumbs__item[aria-current="page"] { color: var(--mist); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { border-color: var(--teal); color: var(--teal); }
.btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 700;
}
.btn--primary:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--ink);
}
.btn--ghost { background: transparent; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(11, 15, 26, 0.98), rgba(18, 26, 43, 0.95));
  border-bottom: var(--rule);
  backdrop-filter: blur(12px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
body[data-hero] .site-header:not([data-scrolled]) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.notice-bar {
  overflow: hidden;
  background: rgba(11, 15, 26, 0.92);
  border-bottom: 1px solid var(--line);
}
.notice-bar__track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.notice-bar:hover .notice-bar__track { animation-play-state: paused; }
.notice-bar__group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 56px 7px 0;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.notice-bar__group::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--teal);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__mark {
  display: grid;
  gap: 3px;
  flex: 0 0 auto;
  width: 26px;
  align-content: end;
}
.brand__mark i { display: block; height: 3px; background: var(--amber-deep); }
.brand__mark i:nth-child(1) { width: 10px; }
.brand__mark i:nth-child(2) { width: 18px; background: var(--amber); }
.brand__mark i:nth-child(3) { width: 26px; background: var(--teal); }
.brand__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--mist);
  white-space: nowrap;
}
.brand__tagline {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--teal); color: var(--teal); }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  margin-left: auto;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}
.site-nav__item { display: block; }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  color: var(--mist);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--teal);
  transition: right 0.24s var(--ease);
}
.site-nav__link:hover { color: var(--teal); }
.site-nav__link:hover::after { right: 0; }
.site-nav__link[aria-current="page"] { color: var(--amber); }
.site-nav__link[aria-current="page"]::after { right: 0; background: var(--amber); }
.header-cta { white-space: nowrap; }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber), var(--teal));
  transition: width 0.1s linear;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 130px);
  background: var(--ink-2);
  border-top: var(--rule);
}
.footer-stair {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 58px;
  padding-inline: var(--gutter);
  border-bottom: var(--rule);
}
.footer-stair i {
  flex: 1 1 auto;
  height: 16%;
  background: linear-gradient(180deg, rgba(184, 123, 18, 0.6), rgba(184, 123, 18, 0));
}
.footer-stair i:nth-child(2) { height: 30%; }
.footer-stair i:nth-child(3) { height: 46%; }
.footer-stair i:nth-child(4) { height: 62%; }
.footer-stair i:nth-child(5) { height: 80%; }
.footer-stair i:nth-child(6) { height: 100%; background: linear-gradient(180deg, rgba(47, 227, 193, 0.55), rgba(47, 227, 193, 0)); }

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(0, 1.5fr) minmax(230px, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(40px, 6vw, 72px) clamp(26px, 4vw, 40px);
}
.footer-brand__name {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--mist);
}
.footer-brand__note {
  margin-top: 12px;
  max-width: 40ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}
.footer-brand__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: var(--mist);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 227, 193, 0.16);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-col__title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: var(--rule);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-col__list { display: block; }
.footer-col__link {
  display: inline-block;
  padding: 6px 0;
  color: var(--mist);
  font-size: 14.5px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-col__link:hover { color: var(--teal); transform: translateX(4px); }

.footer-contact__text {
  padding: 6px 0;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.7;
}
.footer-contact__note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}
.field { display: block; }
.field + .field { margin-top: 8px; }
.copy-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(11, 15, 26, 0.6);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-align: left;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.copy-btn:hover { border-color: var(--teal); color: var(--teal); }
.copy-btn__value { overflow-wrap: anywhere; }
.copy-btn__hint {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.copy-btn[data-copied] { border-color: var(--teal); }
.copy-btn[data-copied] .copy-btn__hint { color: var(--teal); }
.copy-status {
  display: block;
  min-height: 16px;
  margin-top: 4px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: var(--rule);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

/* ---------- media frames ---------- */
.media { position: relative; display: block; }
.media__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 18% 0%, #16233C 0%, #0B0F1A 72%);
  aspect-ratio: 16 / 9;
}
.media--wide .media__frame { aspect-ratio: 21 / 9; }
.media--tall .media__frame { aspect-ratio: 3 / 4; }
.media--square .media__frame { aspect-ratio: 1 / 1; }
.media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(47, 227, 193, 0) 58%, rgba(47, 227, 193, 0.12));
  pointer-events: none;
}
.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media__tag {
  position: absolute;
  left: -1px;
  bottom: -1px;
  z-index: 2;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.media__caption {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--amber-deep);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}
.section--paper .media__caption { color: #5A6478; }

/* ---------- drawer (折叠索引) ---------- */
.drawer {
  border: var(--rule);
  border-left: 2px solid var(--line);
  background: var(--ink-2);
  transition: border-color 0.24s var(--ease);
}
.drawer + .drawer { margin-top: -1px; }
.drawer[open] { border-left-color: var(--teal); }
.drawer__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  list-style: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--mist);
}
.drawer__head::-webkit-details-marker { display: none; }
.drawer__head:hover { color: var(--teal); }
.drawer__idx {
  flex: 0 0 auto;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
}
.drawer__mark {
  position: relative;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-left: auto;
}
.drawer__mark::before,
.drawer__mark::after {
  content: "";
  position: absolute;
  background: var(--teal);
  transition: transform 0.24s var(--ease);
}
.drawer__mark::before { left: 0; right: 0; top: 5px; height: 1px; }
.drawer__mark::after { top: 0; bottom: 0; left: 5px; width: 1px; }
.drawer[open] .drawer__mark::after { transform: scaleY(0); }
.drawer__body {
  max-width: 70ch;
  padding: 0 18px 20px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}

/* ---------- tabs ---------- */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  border-bottom: var(--rule);
}
.tabs__btn {
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tabs__btn:hover { color: var(--mist); }
.tabs__btn[aria-selected="true"] {
  color: var(--amber);
  border-bottom-color: var(--amber);
}
.tabs__panel { padding-top: 22px; }
.tabs__panel[hidden] { display: none; }

/* ---------- chips ---------- */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip[aria-pressed="true"] {
  background: rgba(47, 227, 193, 0.12);
  border-color: var(--teal);
  color: var(--teal);
}

/* ---------- reveal ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.has-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .col-4 { grid-column: span 6; }
  .footer-inner { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr); }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  :root { --header-h: 84px; }
  .header-inner { height: 56px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    display: block;
    max-height: calc(100dvh - var(--header-h));
    margin: 0;
    padding: 22px var(--gutter) 34px;
    overflow-y: auto;
    background: var(--ink-2);
    border-bottom: var(--rule);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s var(--ease);
  }
  .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__item { border-bottom: 1px solid var(--line); }
  .site-nav__link {
    display: block;
    padding: 16px 0;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 900;
  }
  .header-cta {
    width: 100%;
    margin-top: 20px;
    padding: 14px 20px;
  }
  .col-4, .col-6, .col-8 { grid-column: span 12; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .stair-1, .stair-2, .stair-3 { padding-left: 0; }
  .brand__tagline { display: none; }
}
@media (max-width: 460px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-legal { font-size: 11.5px; }
}

/* ---------- motion preferences ---------- */
@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;
  }
  .notice-bar__track { animation: none; transform: none; }
  .has-js [data-reveal],
  .has-js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}
