:root {
  --bg-deep: #0d0d0d;
  --bg-red: #8b1538;
  --bg-card: #f4efe6;
  --ink: #0a0a0a;
  --accent: #e63946;
  --glow: #ff6b6b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", system-ui, sans-serif;
  background: var(--bg-deep);
  color: #f5f5f5;
}

.font-pixel {
  font-family: "Press Start 2P", "Noto Sans SC", monospace;
}

.pixel-box {
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.pixel-box:active,
.btn-download:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.92);
  border-bottom: 3px solid var(--ink);
  backdrop-filter: blur(8px);
}

.hero-bg {
  background:
    linear-gradient(180deg, rgba(13, 13, 13, 0.75) 0%, rgba(139, 21, 56, 0.85) 100%),
    url("../images/sinisistar2-hero-01.webp") center/cover no-repeat;
  min-height: 100vh;
}

.btn-glow {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink), 0 0 20px rgba(230, 57, 70, 0.5);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.btn-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 4px 4px 0 var(--ink), 0 0 12px rgba(230, 57, 70, 0.4); }
  50% { box-shadow: 4px 4px 0 var(--ink), 0 0 28px rgba(255, 107, 107, 0.7); }
}

.info-card {
  background: var(--bg-card);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 6px 8px 0 var(--ink);
}

.gallery-thumb:hover {
  filter: brightness(1.15);
  transform: scale(1.03);
}

.review-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.review-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 收起时必须完全隐藏内容，避免 0fr 网格在部分浏览器下仍露出半行文字 */
.accordion-panel:not(.open) {
  display: none;
}

.accordion-panel.open {
  display: block;
}

.accordion-panel-inner {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border: 3px solid #fff;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.steam-bar {
  height: 8px;
  background: #1b2838;
  border-radius: 2px;
  overflow: hidden;
}

.steam-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #66c0f4, #4a9fd4);
}

.tab-active {
  background: var(--accent);
  color: #fff;
}
