/* 老司G · 暮色霓虹 x 琥珀金视觉方向
 * 主色: #130b15 #221223 #5d2b3a #ff9f66 #72f1b8 #ffcf7a
 */
:root {
  --bg: #130b15;
  --bg-2: #221223;
  --panel: rgba(34, 18, 35, 0.88);
  --panel-soft: rgba(255, 250, 244, 0.95);
  --text: #f7efe8;
  --muted: #ccb9b0;
  --line: rgba(255, 207, 122, 0.16);
  --accent: #ff9f66;
  --accent-2: #72f1b8;
  --accent-3: #ffcf7a;
  --shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.58);
}

html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans SC", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 159, 102, 0.14), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(114, 241, 184, 0.12), transparent 24%),
    linear-gradient(180deg, #130b15 0%, #160d18 44%, #0f0911 100%);
  color: var(--text);
}
.heading-display { font-weight: 900; letter-spacing: 0.04em; }
.serif-display { font-family: "Noto Serif SC", "Noto Sans SC", serif; }
#siteHeader {
  background: rgba(19, 11, 21, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-link {
  position: relative;
  color: #e8dcd6;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav-link:hover,
.nav-link.active { color: var(--accent-2); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.hero-grid {
  background-image:
    linear-gradient(to right, rgba(255, 207, 122, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 207, 122, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
}
.panel-dark {
  background: linear-gradient(180deg, rgba(42, 22, 44, 0.92), rgba(24, 13, 27, 0.96));
  border: 1px solid rgba(255, 207, 122, 0.14);
  box-shadow: var(--shadow);
}
.panel-soft {
  background: var(--panel-soft);
  color: #241520;
  border: 1px solid rgba(93, 43, 58, 0.12);
  box-shadow: var(--shadow);
}
.glass-line { border: 1px solid rgba(255,255,255,.08); }
.soft-chip,
.data-pill,
.hero-badge,
.stat-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 207, 122, 0.18);
}
.cta-primary {
  position: relative;
  overflow: hidden;
  color: #1b1013;
  background: linear-gradient(135deg, #fff0d8 0%, #ffcf7a 26%, #ff9f66 58%, #72f1b8 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 46px -16px rgba(255, 159, 102, 0.62), inset 0 1px 0 rgba(255,255,255,.5);
  font-weight: 900;
}
.cta-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.84) 50%, transparent 100%);
  filter: blur(4px);
  animation: shine 2.4s linear infinite;
  pointer-events: none;
}
.cta-primary:hover { transform: translateY(-2px); }
.cta-secondary {
  background: rgba(27, 16, 19, 0.68);
  border: 1px solid rgba(255, 207, 122, 0.18);
  color: #f7efe8;
}
.cta-secondary:hover { border-color: rgba(114, 241, 184, 0.55); color: var(--accent-2); }
.accent-panel { border-left: 4px solid var(--accent); }
.accent-panel-2 { border-left: 4px solid var(--accent-2); }
.accent-panel-3 { border-left: 4px solid var(--accent-3); }
.hero-scrim {
  background: linear-gradient(105deg, rgba(19,11,21,0.98) 0%, rgba(19,11,21,0.92) 42%, rgba(19,11,21,0.56) 75%, transparent 100%);
}
@media (max-width: 1023px) {
  .hero-scrim {
    background: linear-gradient(180deg, rgba(19,11,21,0.97) 0%, rgba(19,11,21,0.92) 58%, rgba(19,11,21,0.78) 100%);
  }
}
.lb-overlay { background: rgba(7, 4, 8, 0.95); }
.lb-img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.show { opacity: 1; transform: translateY(0); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.acc-icon { transition: transform .25s ease; }
details[open] .acc-icon { transform: rotate(45deg); }
[data-gallery-filter] {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,207,122,.14);
}
[data-gallery-filter].is-active {
  background: linear-gradient(135deg, #ffcf7a, #72f1b8);
  color: #130b15;
  border-color: rgba(255,255,255,.35);
  font-weight: 900;
}
.toc a.active { color: var(--accent); border-color: var(--accent-2); }
table.toc-table th,
table.toc-table td {
  border: 1px solid rgba(93, 43, 58, 0.16);
  padding: .7rem .85rem;
}
table.toc-table thead th {
  background: #2d172d;
  color: #fff4e4;
  text-align: left;
  font-weight: 900;
}
table.toc-table tbody tr:nth-child(even) { background: rgba(255, 247, 237, 0.74); }
.glow-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff9f66, #72f1b8, #ffcf7a, transparent);
}
.wave-line {
  background: repeating-linear-gradient(135deg, #ffcf7a 0 12px, rgba(34, 18, 35, .9) 12px 24px);
}
.spotlight {
  box-shadow: 0 0 0 12px rgba(255, 159, 102, 0.06), 0 0 60px rgba(255, 207, 122, 0.18);
}
.soft-shadow { box-shadow: var(--shadow); }
.menu-open { max-height: 560px; }
#mobileMenu { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
