/* 太妃物语 · 霓虹糖果漫画夜视觉方向 */
/* 主色: #120f25 #261a43 #ff8e6e #f5cf65 #ff5fb2 #6de6ff */
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  background: #120f25;
  color: #f8f5ff;
}
.heading-display {
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  letter-spacing: .05em;
  font-weight: 900;
}
.midnight-grid {
  background-image:
    linear-gradient(to right, rgba(109,230,255,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,95,178,0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}
.candy-stripe {
  background: repeating-linear-gradient(135deg, #f5cf65 0 10px, #ff8e6e 10px 20px);
}
.btn-coral {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffd2a0 0%, #ff8e6e 46%, #ff5fb2 100%);
  color: #120f25;
  font-weight: 900;
  border: 2px solid #ffba73;
  box-shadow: 0 14px 32px -12px rgba(255,95,178,0.55), inset 0 1px 0 rgba(255,255,255,0.48);
  transition: transform .15s ease, filter .2s ease;
}
.btn-coral:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-coral:active { transform: translateY(0); }
.btn-coral::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.78) 50%, transparent 100%);
  filter: blur(3px);
  animation: shine 2.5s linear infinite;
  pointer-events: none;
}
@keyframes shine {
  0% { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(220%) skewX(-20deg); }
}
.btn-outline {
  background: rgba(18, 15, 37, 0.78);
  color: #f8f5ff;
  border: 1.5px solid rgba(109,230,255,0.34);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: #6de6ff;
  color: #6de6ff;
  background: rgba(27, 20, 52, 0.95);
}
.panel-dark {
  background: linear-gradient(180deg, rgba(38,26,67,0.95), rgba(21,17,41,0.98));
  border: 1px solid rgba(109,230,255,0.12);
}
.panel-light {
  background: #fff7f4;
  border: 1px solid #ffd7c8;
  color: #2b1d39;
}
.nav-link { position: relative; color: #f4eefe; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #f5cf65;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.active { color: #f5cf65; }
.lb-overlay { background: rgba(10, 8, 19, 0.94); }
.lb-img { max-height: 86vh; max-width: 92vw; object-fit: contain; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .acc-icon { transform: rotate(45deg); }
.acc-icon { transition: transform .25s ease; }
.stat-chip {
  background: rgba(38, 26, 67, 0.74);
  border: 1px solid rgba(245,207,101,0.25);
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
#mobileMenu { transition: max-height .3s ease; max-height: 0; overflow: hidden; }
#mobileMenu.open { max-height: 520px; }
#siteHeader {
  background-color: rgba(18, 15, 37, 0.92) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
[data-gallery-filter] { background: rgba(255,255,255,.05); border: 1px solid rgba(109,230,255,.18); }
[data-gallery-filter].is-active { background: #ff8e6e; color: #120f25; border-color: #ff8e6e; font-weight: 900; }
table.toc-table th, table.toc-table td { border: 1px solid #dbc7ea; padding: .6rem .8rem; }
table.toc-table thead th { background: #261a43; color: #f5cf65; font-weight: 900; text-align: left; }
table.toc-table tbody tr:nth-child(even) { background: #fff1eb; }
.toc a.active { color: #ff5fb2; border-color: #ff5fb2; }
.neon-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #6de6ff, #ff5fb2, #f5cf65, transparent);
}
.hero-badge {
  border-left: 3px solid #f5cf65;
  background: linear-gradient(90deg, rgba(245,207,101,0.18), rgba(18,15,37,0.6));
}
.hero-cloud {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,95,178,0.28), transparent 34%),
    radial-gradient(circle at 80% 30%, rgba(109,230,255,0.22), transparent 26%),
    radial-gradient(circle at 50% 70%, rgba(255,142,110,0.18), transparent 28%);
}
#hero .hero-text-panel {
  background: rgba(18, 15, 37, 0.92);
  border: 1px solid rgba(109, 230, 255, 0.13);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.88);
}
#hero .hero-title {
  color: #fff9ff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.88), 0 1px 2px rgba(0, 0, 0, 0.82);
}
#hero .hero-subtitle {
  color: #f5cf65;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.82);
}
#hero .hero-lead {
  color: #f6eefe;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.74);
}
#hero .hero-meta { color: #d5caf1; }
#hero .stat-chip {
  background: rgba(38, 26, 67, 0.98);
  border: 1px solid rgba(245, 207, 101, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
#hero .hero-scrim-left {
  background: linear-gradient(105deg,
    rgba(18, 15, 37, 1) 0%,
    rgba(18, 15, 37, 0.97) 40%,
    rgba(18, 15, 37, 0.72) 64%,
    rgba(18, 15, 37, 0.34) 80%,
    transparent 100%);
}
@media (max-width: 1023px) {
  #hero .hero-scrim-left {
    background: linear-gradient(180deg,
      rgba(18, 15, 37, 0.97) 0%,
      rgba(18, 15, 37, 0.92) 56%,
      rgba(18, 15, 37, 0.72) 100%);
  }
  #hero .hero-text-panel { background: rgba(18, 15, 37, 0.96); }
}
