:root {
  --ink: #101323;
  --ink-soft: #1b2038;
  --panel: #ffffff;
  --paper: #f5f2ea;
  --line: #e2ddd2;
  --muted: #69707f;
  --accent: #d97706;
  --accent-2: #0f766e;
  --rose: #be3455;
  --white: #ffffff;
  --header-h: 68px;
  --footer-h: 58px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: var(--footer-h);
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  flex: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  background: url("../images/hero.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 11, 26, 0.88) 0%, rgba(13, 17, 36, 0.6) 52%, rgba(8, 11, 26, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: 88px 0 110px;
}

.hero-kicker {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 700;
  color: #fbbf24;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 56px;
  line-height: 1.18;
  font-weight: 800;
}

.hero p {
  margin: 0 0 30px;
  max-width: 560px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: transparent;
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 800;
}

.section-head p,
.page-hero p,
.detail-info > p {
  margin: 0;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.about-grid h2 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.25;
}

.about-grid > div > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scope-chip {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.category-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(16, 19, 35, 0.12);
}

.category-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.category-body {
  padding: 20px;
}

.category-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(16, 19, 35, 0.12);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.feature-item strong,
.feature-item small {
  display: block;
  padding: 0 16px;
}

.feature-item strong {
  padding-top: 14px;
  font-size: 17px;
}

.feature-item small {
  padding-bottom: 16px;
  color: var(--muted);
}

.compliance-band {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
}

.compliance-band .container {
  max-width: 880px;
  text-align: center;
}

.compliance-band h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 24px;
}

.compliance-band p {
  margin: 0;
  font-size: 15px;
}

.page-hero {
  padding: 58px 0 56px;
  background: linear-gradient(115deg, #101323 0%, #2c2448 58%, #431d36 100%);
  color: var(--white);
}

.page-hero h1,
.page-hero p {
  color: var(--white);
}

.page-hero p {
  max-width: 720px;
}

.music-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
  margin-bottom: 64px;
}

.player-shell,
.playlist-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.player-shell {
  padding: 24px;
}

.player-now {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.player-now img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
}

.player-now strong {
  display: block;
  font-size: 20px;
}

.player-now small {
  color: var(--muted);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.control-btn:hover {
  background: var(--ink);
  color: var(--white);
}

.control-btn.play-btn {
  width: 54px;
  height: 54px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.control-btn .icon-pause,
.control-btn.is-playing .icon-play {
  display: none;
}

.control-btn.is-playing .icon-pause {
  display: block;
}

.player-progress {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.player-progress input,
.player-volume input {
  width: 100%;
  accent-color: var(--accent);
}

.player-volume {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
}

.playlist-shell {
  padding: 10px;
}

.playlist-shell h2 {
  margin: 8px 10px 10px;
  font-size: 18px;
}

.playlist {
  display: grid;
  gap: 6px;
}

.playlist-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.playlist-item:hover,
.playlist-item.is-active {
  background: #faf7f0;
  border-color: var(--line);
}

.playlist-item.is-active {
  border-left: 3px solid var(--accent);
}

.playlist-index {
  font-size: 13px;
  color: var(--muted);
}

.playlist-main strong,
.playlist-main small {
  display: block;
}

.playlist-main strong {
  font-size: 15px;
}

.playlist-main small,
.playlist-duration {
  font-size: 12px;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.work-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.work-body {
  padding: 18px;
}

.work-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.work-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.work-body dl,
.comic-body dl {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  font-size: 13px;
}

.work-body dt,
.comic-body dt {
  color: var(--muted);
}

.work-body dd,
.comic-body dd {
  margin: 0;
}

.text-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-2);
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.comic-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

.poster-actions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(16, 19, 35, 0.72);
  color: var(--white);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.icon-btn:hover {
  background: var(--ink);
}

.comic-body {
  padding: 18px;
}

.comic-body h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.comic-type {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f6eee1;
  color: #8a5a12;
  font-size: 12px;
  font-weight: 700;
}

.comic-body > p:not(.comic-type) {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.review-note {
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef6f3;
  color: #12634f;
  font-size: 13px;
}

.scene-grid,
.replay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.scene-card,
.replay-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.scene-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.scene-body,
.replay-body {
  padding: 18px;
}

.scene-body h3,
.replay-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.scene-body p,
.replay-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #eef2f6;
  color: #274b73;
  font-size: 12px;
  font-weight: 700;
}

.replay-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.detail-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
  margin: 48px 0 36px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.detail-info {
  padding-top: 8px;
}

.meta-list {
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  font-size: 15px;
}

.meta-list dt {
  color: var(--muted);
}

.meta-list dd {
  margin: 0;
  font-weight: 600;
}

.detail-block {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.detail-block h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.detail-block p {
  margin: 0;
  color: var(--muted);
}

.breadcrumb {
  padding-top: 28px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent-2);
  font-weight: 600;
}

.compliance-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  min-height: var(--footer-h);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.compliance-inner {
  min-height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 8px 24px;
  font-size: 13px;
  text-align: center;
}

.compliance-inner span + span::before {
  content: "·";
  margin-right: 22px;
  color: rgba(255, 255, 255, 0.35);
}

.compliance-inner a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s ease;
}

.compliance-inner a:hover,
.compliance-inner a:focus-visible {
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(6, 8, 18, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(16, 19, 35, 0.7);
  color: var(--white);
}

.lightbox-figure {
  max-width: 960px;
  width: 100%;
  margin: 0;
  text-align: center;
}

.lightbox-figure img,
.lightbox-figure video {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
}

.lightbox-figure figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

body.no-scroll {
  overflow: hidden;
}

.text-muted {
  color: var(--muted);
}

@media (max-width: 960px) {
  .category-grid,
  .feature-row,
  .scene-grid,
  .replay-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .music-layout {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 44px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, 1200px);
  }

  .brand {
    font-size: 18px;
    gap: 8px;
  }

  .brand-logo {
    height: 36px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: calc(100vh - var(--header-h));
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 52px 0;
  }

  .category-grid,
  .feature-row,
  .scene-grid,
  .replay-grid,
  .comic-grid {
    grid-template-columns: 1fr;
  }

  .player-shell,
  .playlist-shell {
    padding: 16px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .compliance-inner {
    flex-direction: column;
    gap: 2px;
  }

  .compliance-inner span + span::before {
    content: none;
    margin: 0;
  }

  body {
    padding-bottom: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
