/* ============================================================
   九号娱乐会馆 / NIGHT INDEX — 共享站点样式
   深墨黑 + 石墨 + 铁灰 / 暖铜 + 铜金 / 霓虹青 + 霓虹品红
   ============================================================ */

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

:root {
  --ink: #0A0A0C;
  --graphite: #141519;
  --iron: #24262D;
  --bronze: #B77A3D;
  --gold: #E8C38B;
  --cyan: #40E0D0;
  --magenta: #F24F9B;
  --smoke: #A9A9B2;
  --paper: #F3EEE4;

  --bronze-line: rgba(183, 122, 61, 0.22);
  --bronze-soft: rgba(183, 122, 61, 0.34);
  --cyan-line: rgba(64, 224, 208, 0.45);
  --hair: rgba(255, 255, 255, 0.075);
  --hair-strong: rgba(255, 255, 255, 0.15);

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

  --wrap: 1240px;
  --gutter: clamp(18px, 4.2vw, 52px);
  --header-h: 74px;
  --radius: 4px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 640px at 84% -10%, rgba(183, 122, 61, 0.13), transparent 62%),
    radial-gradient(820px 560px at -6% 106%, rgba(64, 224, 208, 0.06), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--paper);
}

h1 { font-size: clamp(2.25rem, 5.6vw, 4.2rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.25rem); }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.4rem); }
h4 { font-size: 1rem; letter-spacing: 0.06em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); }
a:hover { color: var(--paper); }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

::selection { background: var(--cyan); color: #04110F; }

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

[id] { scroll-margin-top: calc(var(--header-h) + 28px); }

.visually-hidden {
  position: absolute;
  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;
}

/* ---------------- 布局工具 ---------------- */

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

.section { padding-block: clamp(48px, 8vw, 112px); }

.hairline {
  height: 1px;
  border: 0;
  margin: clamp(28px, 4vw, 56px) 0;
  background: linear-gradient(90deg, transparent, var(--bronze-soft), rgba(64, 224, 208, 0.28), transparent);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
}

.section-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px var(--bronze);
  margin: 0 0 12px;
}

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

.btn {
  --btn-bg: var(--gold);
  --btn-fg: #150E06;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.btn::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 13px;
  transform: translateX(0);
  transition: transform 0.24s ease;
}

.btn:hover,
.btn:focus-visible {
  color: var(--btn-fg);
  box-shadow: 0 0 0 1px rgba(232, 195, 139, 0.6), 0 14px 32px -18px rgba(183, 122, 61, 0.85);
}

.btn:hover::after { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--gold);
  border-color: rgba(183, 122, 61, 0.5);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { background: rgba(183, 122, 61, 0.14); color: var(--paper); }

.btn--cyan {
  --btn-bg: var(--cyan);
  --btn-fg: #04110F;
}
.btn--cyan:hover,
.btn--cyan:focus-visible { box-shadow: 0 0 0 1px rgba(64, 224, 208, 0.7), 0 14px 32px -18px rgba(64, 224, 208, 0.8); }

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

.breadcrumb { margin: 0 0 clamp(20px, 3vw, 32px); }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: rgba(169, 169, 178, 0.8);
}

.breadcrumb-item { display: inline-flex; align-items: center; gap: 10px; }

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(183, 122, 61, 0.65);
}

.breadcrumb-item a {
  color: rgba(169, 169, 178, 0.92);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb-item a:hover { color: var(--gold); }
.breadcrumb-item[aria-current="page"] { color: var(--gold); }

/* ---------------- 头部 ---------------- */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #150E06;
  background: var(--gold);
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-220%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(10, 10, 12, 0.9);
  border-bottom: 1px solid var(--bronze-line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header[data-scrolled] {
  background: rgba(8, 8, 10, 0.96);
  box-shadow: 0 18px 38px -30px #000;
}

.header-rail {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 24px);
  transition: min-height 0.28s ease;
}

.site-header[data-scrolled] .header-rail { min-height: 56px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #170F06;
  background: linear-gradient(150deg, var(--gold), var(--bronze));
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(232, 195, 139, 0.45), 0 8px 20px -10px rgba(183, 122, 61, 0.9);
  transition: box-shadow 0.28s ease;
}

.brand:hover .brand-mark {
  box-shadow: 0 0 0 1px rgba(232, 195, 139, 0.8), 0 0 24px -6px rgba(64, 224, 208, 0.55);
}

.brand-lockup { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--paper);
}

.brand-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: rgba(183, 122, 61, 0.95);
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: clamp(0px, 0.5vw, 6px);
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-cluster--right { margin-left: 0; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 11px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(243, 238, 228, 0.72);
  text-decoration: none;
  border-radius: 3px;
  transition: color 0.22s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 1px;
  background: linear-gradient(90deg, var(--bronze), var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--gold); }
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(64, 224, 208, 0.7);
}

.header-gauge {
  flex: 1 1 auto;
  min-width: 36px;
  height: 18px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(183, 122, 61, 0.45) 0 1px,
    transparent 1px 9px
  );
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  opacity: 0.85;
  pointer-events: none;
}

.utility-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(64, 224, 208, 0.07);
  border: 1px solid var(--cyan-line);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.utility-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(64, 224, 208, 0.9);
}

.utility-chip:hover,
.utility-chip:focus-visible {
  color: var(--paper);
  background: rgba(64, 224, 208, 0.16);
  box-shadow: 0 0 0 1px rgba(64, 224, 208, 0.5), 0 0 22px -4px rgba(64, 224, 208, 0.6);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 13px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(183, 122, 61, 0.42);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.nav-toggle:hover { background: rgba(183, 122, 61, 0.12); border-color: rgba(183, 122, 61, 0.7); }

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

.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s ease;
}

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

.mobile-nav { display: none; }
.mobile-nav[hidden] { display: none !important; }

.mobile-nav-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 6px var(--gutter) 26px;
}

.mobile-nav-list { display: flex; flex-direction: column; }

.mobile-nav-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(243, 238, 228, 0.86);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  transition: color 0.2s ease;
}

.mobile-nav-link span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--bronze);
}

.mobile-nav-link:hover { color: var(--gold); }

.mobile-nav-link[aria-current="page"],
.mobile-nav-link[aria-current="page"] span { color: var(--cyan); }

.mobile-nav-cta {
  display: block;
  margin-top: 18px;
  padding: 13px 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-decoration: none;
  background: rgba(64, 224, 208, 0.06);
  border: 1px solid var(--cyan-line);
  border-radius: var(--radius);
  transition: background 0.22s ease, color 0.22s ease;
}
.mobile-nav-cta:hover { background: rgba(64, 224, 208, 0.16); color: var(--paper); }

.mobile-nav-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}

.mobile-nav-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(169, 169, 178, 0.7);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.scroll-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--bronze), var(--cyan));
  box-shadow: 0 0 10px rgba(64, 224, 208, 0.65);
  transition: width 0.12s linear;
}

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

.site-footer {
  position: relative;
  margin-top: clamp(72px, 11vw, 132px);
  border-top: 1px solid var(--bronze-line);
  background:
    radial-gradient(900px 420px at 10% -20%, rgba(183, 122, 61, 0.14), transparent 66%),
    linear-gradient(180deg, #0C0D11 0%, #08080A 100%);
  color: var(--smoke);
  font-size: 14px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze) 16%, var(--cyan) 50%, var(--bronze) 84%, transparent);
  opacity: 0.55;
  pointer-events: none;
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 82px) var(--gutter) clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.15fr);
  gap: clamp(30px, 4.5vw, 72px);
  align-items: start;
}

.footer-crest { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.footer-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(183, 122, 61, 0.08);
  border: 1px solid rgba(183, 122, 61, 0.55);
  border-radius: var(--radius);
  box-shadow: inset 0 0 26px rgba(183, 122, 61, 0.16);
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.footer-contact { display: flex; flex-direction: column; gap: 3px; }

.footer-contact-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.95;
  letter-spacing: 0.05em;
  color: rgba(169, 169, 178, 0.86);
  overflow-wrap: anywhere;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  min-width: 0;
}

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

.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(243, 238, 228, 0.74);
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease;
}

.footer-link:hover,
.footer-link:focus-visible { color: var(--gold); transform: translateX(3px); }

.footer-base {
  border-top: 1px solid var(--hair);
  background: rgba(0, 0, 0, 0.26);
}

.footer-base-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(20px, 2.6vw, 30px) var(--gutter) clamp(26px, 3.4vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-note {
  margin: 0;
  max-width: 78ch;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(169, 169, 178, 0.72);
}

.footer-base-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(169, 169, 178, 0.66);
}

.footer-icp,
.footer-copy { margin: 0; }

/* ---------------- 通用内容组件 ---------------- */

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(160deg, #16171C 0%, #101116 100%);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(183, 122, 61, 0.45);
  box-shadow: 0 0 0 1px rgba(183, 122, 61, 0.14), 0 22px 46px -30px #000;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(243, 238, 228, 0.78);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.chip:hover { border-color: rgba(183, 122, 61, 0.6); color: var(--gold); }

.chip[aria-pressed="true"],
.chip.is-active {
  color: #04110F;
  font-weight: 600;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 18px -6px rgba(64, 224, 208, 0.8);
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #14151A 0%, #0B0C10 100%);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}

.media-frame > img,
.media-frame > picture,
.media-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06) brightness(0.94);
}

.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% 90% at 80% 4%, rgba(64, 224, 208, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(183, 122, 61, 0.08) 0%, transparent 34%, rgba(10, 10, 12, 0.58) 100%);
}

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

.scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroller::-webkit-scrollbar { display: none; }

.scroller > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.accordion { border-top: 1px solid var(--hair); }

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

.accordion-trigger {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: clamp(15.5px, 1.6vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  color: var(--paper);
  background: none;
  border: 0;
  cursor: pointer;
}

.accordion-trigger::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--bronze);
  transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); color: var(--cyan); }

.accordion-index {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--bronze);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s ease;
}

.accordion-panel[data-open] { grid-template-rows: 1fr; }

.accordion-content {
  overflow: hidden;
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(243, 238, 228, 0.78);
}

.accordion-panel[data-open] .accordion-content { padding-bottom: 22px; }

.index-rail {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  display: flex;
  flex-direction: column;
  padding-left: 1px;
  border-left: 1px solid var(--hair-strong);
}

.index-rail-link {
  position: relative;
  display: block;
  padding: 9px 0 9px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(169, 169, 178, 0.8);
  text-decoration: none;
  transition: color 0.25s ease;
}

.index-rail-link::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(64, 224, 208, 0.8);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.32s ease;
}

.index-rail-link:hover { color: var(--gold); }

.index-rail-link.is-current,
.index-rail-link[aria-current="true"] { color: var(--cyan); }

.index-rail-link.is-current::after,
.index-rail-link[aria-current="true"]::after { transform: scaleY(1); }

/* ---------------- 入场显现 ---------------- */

[data-reveal] {
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1080px) {
  .nav-link { padding: 9px 8px; font-size: 13.5px; }
  .nav-link::after { left: 8px; right: 8px; }
}

@media (max-width: 1000px) {
  .nav-cluster,
  .header-gauge,
  .utility-chip { display: none; }

  .nav-toggle { display: inline-flex; margin-left: auto; }

  .mobile-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid rgba(183, 122, 61, 0.18);
    background: linear-gradient(180deg, #0D0E12 0%, #0A0A0C 100%);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .site-header[data-open] .mobile-nav {
    max-height: 78vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

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

@media (max-width: 660px) {
  :root { --header-h: 64px; }

  body { font-size: 15.5px; }

  .brand-mark { width: 32px; height: 32px; font-size: 12px; }
  .brand-name { font-size: 14px; }
  .brand-sub { font-size: 8.5px; letter-spacing: 0.22em; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .footer-col:last-child { grid-column: 1 / -1; }

  .footer-base-row { flex-direction: column; align-items: flex-start; gap: 6px; }

  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .nav-toggle-label { display: none; }
}

/* ---------------- 动效降级 ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
  .nav-link::after,
  .index-rail-link::after { transition: none !important; }
}
