/* ==========================================================================
   冠军娱乐汇 · 全站共享样式 /assets/site.css
   舞台底色 + 索引式导航 + 编辑部目录组件
   ========================================================================== */

:root {
  --ink: #121212;
  --ink-deep: #0B0C10;
  --slate: #1B1F27;
  --slate-2: #232833;
  --gold: #D4A017;
  --gold-hi: #F2D27A;
  --gold-deep: #8A6A0E;
  --cyan: #00E5FF;
  --cyan-deep: #00707F;
  --magenta: #C2185B;
  --magenta-deep: #7A0E37;
  --silver: #C9CED6;
  --ivory: #F5F1E8;

  --rail-w: 272px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(.22, .68, .36, 1);
  --shadow-gold: 0 14px 34px -18px rgba(212, 160, 23, .95);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(920px 640px at 92% -10%, rgba(212, 160, 23, .17), transparent 62%),
    radial-gradient(760px 560px at 4% 14%, rgba(0, 229, 255, .09), transparent 60%),
    radial-gradient(680px 520px at 68% 108%, rgba(194, 24, 91, .14), transparent 66%);
  background-repeat: no-repeat;
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ivory);
}

h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }

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

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

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

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

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

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -80px;
  left: 14px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 0 0 14px 14px;
  background: var(--gold);
  color: #1A1300;
  font-size: 14px;
  font-weight: 800;
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 0; }

/* ==========================================================================
   头部：移动端 sticky 顶栏 → 桌面端固定左侧轨道
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 10px 16px;
  background: rgba(16, 17, 21, .96);
  border-bottom: 1px solid rgba(201, 206, 214, .14);
}

.header-glow { display: none; }

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* 品牌署名 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gold-hi), var(--gold) 46%, var(--gold-deep));
  color: #1A1300;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  transform: skewX(-3deg);
  box-shadow: 0 0 0 1px rgba(242, 210, 122, .5), 0 10px 24px -14px rgba(212, 160, 23, .95);
}

.brand-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-tag {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--silver);
}

/* 移动导航按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 229, 255, .42);
  background: rgba(0, 229, 255, .06);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

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

.nav-toggle-lines i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: width .2s var(--ease);
}

.nav-toggle-lines i:last-child { width: 10px; }

.site-header[data-open] .nav-toggle {
  border-color: var(--gold);
  background: rgba(212, 160, 23, .12);
  color: var(--gold-hi);
}

.site-header[data-open] .nav-toggle-lines i:last-child { width: 16px; }

/* 导航：移动端为右侧抽屉 */
.rail-nav {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(88vw, 360px);
  padding: 84px 24px 36px;
  background: linear-gradient(200deg, #191C23 0%, #0F1116 72%);
  border-left: 1px solid rgba(212, 160, 23, .26);
  transform: translateX(101%);
  transition: transform .3s var(--ease);
  overflow-y: auto;
}

.site-header[data-open] .rail-nav { transform: translateX(0); }

.rail-nav-kicker {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--gold);
}

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

.rail-nav-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 800;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.rail-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--silver);
  opacity: .68;
}

.rail-name { flex: 1; }

.rail-nav-list a:hover,
.rail-nav-list a:focus-visible {
  background: rgba(0, 229, 255, .09);
  color: var(--cyan);
}

.rail-nav-list a[aria-current="page"] {
  background: linear-gradient(100deg, rgba(212, 160, 23, .24), rgba(212, 160, 23, .02));
  color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, .38);
}

.rail-nav-list a[aria-current="page"] .rail-idx {
  color: var(--gold);
  opacity: 1;
}

.rail-actions {
  margin-top: auto;
  padding-top: 30px;
  display: grid;
  gap: 10px;
}

.rail-progress { display: none; }

/* ==========================================================================
   通用按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
    background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.btn-gold {
  background: linear-gradient(120deg, var(--gold-hi), var(--gold) 56%, #B5851A);
  color: #1A1300;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(212, 160, 23, 1); }

.btn-outline {
  border: 1px solid rgba(0, 229, 255, .45);
  background: rgba(0, 229, 255, .05);
  color: var(--cyan);
}

.btn-outline:hover { background: rgba(0, 229, 255, .14); transform: translateY(-2px); }

/* ==========================================================================
   页面通用骨架
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 60px 0; }

.kicker {
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--gold);
}

.display {
  font-size: clamp(2.1rem, 7vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.display em {
  font-style: normal;
  color: var(--gold);
}

.tilt {
  display: inline-block;
  transform: skewX(-3deg);
}

.lede {
  max-width: 42ch;
  font-size: clamp(1rem, 2.1vw, 1.22rem);
  line-height: 1.85;
  color: var(--silver);
}

.v-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--silver);
}

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(212, 160, 23, .6), rgba(194, 24, 91, .34) 48%, rgba(0, 229, 255, 0) 100%);
}

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

/* 面包屑 */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--silver);
}

.crumbs li { display: inline-flex; align-items: center; }
.crumbs li::after { content: "/"; margin-left: 8px; color: rgba(201, 206, 214, .38); }
.crumbs li:last-child::after { content: none; }
.crumbs a:hover { color: var(--cyan); }

/* 胶囊标签 */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.6;
}

.pill-gold { color: var(--gold); background: rgba(212, 160, 23, .1); }
.pill-cyan { color: var(--cyan); background: rgba(0, 229, 255, .08); }
.pill-magenta { color: #FF74A8; background: rgba(194, 24, 91, .16); border-color: rgba(194, 24, 91, .62); }

/* 卡片与网格 */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--slate) 0%, #13161C 100%);
  border: 1px solid rgba(201, 206, 214, .1);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(0, 229, 255, .18), transparent 72%);
  pointer-events: none;
}

.card > * { position: relative; z-index: 1; }

/* 索引行 */
.index-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(201, 206, 214, .16);
}

.index-row:last-child { border-bottom: 0; }

.index-row .idx {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

/* 响应式图片容器 */
.media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(201, 206, 214, .12);
  background:
    radial-gradient(120% 92% at 18% 0%, rgba(212, 160, 23, .34), transparent 62%),
    radial-gradient(100% 84% at 92% 100%, rgba(0, 229, 255, .26), transparent 64%),
    linear-gradient(160deg, var(--slate-2), #101218);
}

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

.media-wide { aspect-ratio: 21 / 9; }
.media-square { aspect-ratio: 1 / 1; }

/* 滚动显现 */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 72px;
  overflow: hidden;
  border-top: 1px solid rgba(201, 206, 214, .14);
  background:
    radial-gradient(720px 380px at 10% 0%, rgba(194, 24, 91, .18), transparent 66%),
    radial-gradient(620px 340px at 88% 12%, rgba(0, 229, 255, .1), transparent 68%),
    linear-gradient(180deg, #101216 0%, var(--ink-deep) 82%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--magenta) 44%, var(--cyan) 100%);
  opacity: .92;
}

.footer-inner {
  display: grid;
  gap: 34px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 20px 34px;
}

.footer-logo {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--gold-hi);
}

.footer-blurb {
  max-width: 34ch;
  font-size: 14px;
  color: var(--silver);
}

.footer-icp {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 206, 214, .22);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--silver);
}

.footer-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--gold);
}

.footer-links li + li { margin-top: 8px; }

.footer-links a {
  font-size: 14px;
  color: var(--silver);
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}

.footer-links a:hover {
  color: var(--gold-hi);
  padding-left: 6px;
}

.svc-list li {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(201, 206, 214, .12);
  font-size: 13px;
  line-height: 1.7;
  color: var(--silver);
}

.svc-list li:last-child { border-bottom: 0; }

.svc-key {
  flex: 0 0 64px;
  font-weight: 800;
  color: var(--cyan);
}

.svc-val { flex: 1; min-width: 0; word-break: break-word; }

.footer-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(201, 206, 214, .78);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px 32px;
  border-top: 1px solid rgba(201, 206, 214, .12);
  font-size: 12px;
  color: rgba(201, 206, 214, .74);
}

.footer-base p { margin: 0; }

/* ==========================================================================
   平板
   ========================================================================== */
@media (min-width: 640px) {
  .site-header { padding: 12px 24px; }
  .brand-tag { display: block; }
  .wrap { padding: 0 28px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 60px 28px 36px; }
  .footer-base { padding: 20px 28px 34px; }
}

/* ==========================================================================
   桌面：固定左侧轨道
   ========================================================================== */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    padding: 34px 26px 28px;
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-right: 1px solid rgba(201, 206, 214, .14);
    background: linear-gradient(190deg, #181B22 0%, var(--ink) 56%, #0C0E12 100%);
    overflow: hidden;
  }

  .header-glow {
    display: block;
    position: absolute;
    inset: auto -30% -12% -30%;
    height: 54%;
    background: radial-gradient(58% 72% at 50% 100%, rgba(212, 160, 23, .3),
      rgba(194, 24, 91, .15) 56%, transparent 80%);
    pointer-events: none;
  }

  .header-top { display: block; }

  .brand { gap: 14px; }

  .brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    font-size: 22px;
  }

  .brand-name { font-size: 19px; }

  .nav-toggle { display: none; }

  .rail-nav {
    position: static;
    width: auto;
    transform: none;
    padding: 36px 0 0;
    background: none;
    border-left: 0;
    overflow: visible;
    flex: 1;
  }

  .site-header.is-scrolled .rail-nav { padding-top: 24px; }

  .site-header.is-scrolled .brand-tag { opacity: .64; }

  .rail-nav-list a {
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 15px;
  }

  .rail-nav-list a:hover { padding-left: 16px; }

  .rail-actions { padding-top: 24px; }

  .rail-progress {
    display: block;
    position: absolute;
    top: 34px;
    bottom: 28px;
    right: 0;
    width: 2px;
    background: rgba(201, 206, 214, .13);
  }

  .rail-progress-fill {
    display: block;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--gold-hi), var(--gold) 46%, var(--magenta));
    box-shadow: 0 0 12px rgba(212, 160, 23, .8);
    transition: height .12s linear;
  }

  .section { padding: 96px 0; }
  .wrap { padding: 0 40px; }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    padding: 68px 40px 40px;
    gap: 40px;
  }

  .footer-base { padding: 22px 40px 40px; }

  .site-footer { margin-top: 96px; }
}

/* ==========================================================================
   动效降级
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .rail-progress-fill { transition: none !important; }
}
