/* NijiGoGoGo · 视觉体系与 uyougame.com 主站一致 */
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans SC', system-ui, sans-serif; background: #f4f4f4; color: #16161c; }
.heading-serif { font-family: 'Noto Serif SC', 'Noto Sans SC', serif; letter-spacing: .02em; }
.ink-grid {
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.seal-tape {
  background: repeating-linear-gradient(45deg, #c8202a 0 14px, #16161c 14px 28px);
}
.btn-flame {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffb547 0%, #FF9900 50%, #ff7a00 100%);
  color: #16161c; font-weight: 900;
  border: 2px solid #c46500;
  box-shadow: 0 12px 28px -10px rgba(255,153,0,0.7), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -3px 0 rgba(0,0,0,0.18);
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-flame:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-flame:active { transform: translateY(0); }
.btn-flame::after {
  content: ""; position: absolute; top:0; bottom:0; left:0; width: 35%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.85) 50%, transparent 100%);
  filter: blur(4px); animation: shine 2.4s linear infinite; pointer-events: none;
}
@keyframes shine {
  0% { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(220%) skewX(-20deg); }
}
.btn-ghost-dark {
  background: rgba(15,15,18,0.78); color: #fff; border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}
.btn-ghost-dark:hover { background: rgba(15,15,18,0.92); border-color: #FF9900; color: #FF9900; }
.module-card { background: #1f1f26; color: #f4f4f4; }
.paper-card { background: #fff; border: 1px solid #e6e6e6; }
.ribbon::before {
  content:""; position:absolute; left:-1px; top: 12px; height: 22px; width: 6px; background: #FF9900;
}
.nav-link { position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: #FF9900; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.lb-overlay { background: rgba(0,0,0,0.92); }
.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; }
.stripe-warn {
  background: repeating-linear-gradient(135deg, #16161c 0 12px, #FF9900 12px 24px);
}
.data-pill { background: rgba(15,15,18,0.7); border: 1px solid rgba(255,255,255,0.18); }
.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: 480px; }
#siteHeader {
  background-color: #0b0b0e !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#siteHeader > nav a.nav-link { color: #f4f4f4 !important; }
#siteHeader > nav a.nav-link:hover,
#siteHeader > nav a.nav-link.active { color: #FF9900 !important; }
#siteHeader .group .heading-serif { color: #fbfbfb !important; }
#siteHeader #hamburger { color: #fbfbfb !important; }
#siteHeader #mobileMenu a:not(.btn-flame) { color: #f4f4f4 !important; }
#siteHeader #mobileMenu a.text-flame-500 { color: #FF9900 !important; }
[data-gallery-filter] { background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.12); }
[data-gallery-filter].is-active { background: #FF9900; color:#16161c; border-color:#FF9900; font-weight:900; }
table.toc-table th, table.toc-table td { border:1px solid #e6e6e6; padding:.6rem .8rem; }
table.toc-table thead th { background:#16161c; color:#fbfbfb; font-weight:900; text-align:left; }
table.toc-table tbody tr:nth-child(even) { background:#f4f4f4; }
.toc a.active { color:#FF9900; border-color:#FF9900; }
