:root {
  --bg: #0c0d10;
  --bg-raise: #14161b;
  --card: #181a20;
  --ink: #f6f3ec;
  --muted: #b1aaa0;
  --dim: #8f897f;
  --gold: #e6c27a;
  --gold-2: #f6e2b6;
  --gold-deep: #8a6a2e;
  --line: rgba(230, 194, 122, 0.18);
  --line-strong: rgba(230, 194, 122, 0.38);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --serif: "Songti SC", "STSong", "SimSun", "NSimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max: 1120px;
  --header: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(980px 420px at 100% -10%, rgba(230, 194, 122, 0.16), transparent 60%),
    radial-gradient(760px 380px at -10% 8%, rgba(230, 194, 122, 0.07), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}

body.has-dock {
  padding-bottom: 140px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: #241b0d;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  background: var(--gold);
  color: #241b0d;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(12, 13, 16, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  display: block;
  width: 148px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-2);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4e0b4 0%, #e0b45a 100%);
  color: #2a2112;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn:hover {
  filter: brightness(1.05);
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.btn-ghost {
  background: transparent;
  color: var(--gold-2);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.hero {
  padding: 64px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 42px;
  align-items: center;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.kicker span,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(230, 194, 122, 0.06);
  color: var(--gold-2);
  font-size: 13px;
  text-decoration: none;
}

h1,
h2,
.brand strong {
  font-family: var(--serif);
  font-weight: 600;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.lead {
  margin: 0 0 22px;
  color: #e7e1d6;
  font-size: 18px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.fine {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 15px;
}

.metrics span {
  color: var(--muted);
  font-size: 13px;
}

.shot {
  margin: 0;
  background: #090a0d;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #090a0d;
}

.shot figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 13px;
}

.search-panel {
  margin-top: 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(20, 22, 27, 0.86);
}

.search-panel label,
.section-head p,
.prose p,
.card p,
.flow p,
.faq p {
  color: var(--muted);
}

.hero .wrap > p {
  margin: 28px 0 0;
  color: var(--muted);
}

.search-panel label {
  display: block;
  margin: 0 0 8px;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #0e1014;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

#liucheng,
#yulan,
#jiaocheng,
#topics,
.page-hero {
  scroll-margin-top: 88px;
}

.player {
  position: relative;
  width: min(100%, 960px);
  margin: 0 auto;
  background: #090a0d;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-note {
  width: min(100%, 960px);
  margin: 12px auto 0;
}

.player-note a {
  color: var(--gold-2);
}

.section-head h2,
.prose h2,
.section h2,
.topics h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  max-width: 420px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow li,
.card,
.note,
.faq details {
  background: rgba(24, 26, 32, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.flow li {
  padding: 16px;
  min-height: 100%;
}

.flow span,
.card-kicker {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.flow h3,
.card h3 {
  margin: 8px 0;
  font-size: 18px;
}

.flow p,
.card p {
  margin: 0;
  font-size: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.card {
  display: block;
  min-height: 100%;
  padding: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.gallery {
  display: grid;
  gap: 12px;
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.page-hero {
  padding: 42px 0 10px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.crumb a {
  color: var(--gold-2);
  text-decoration: none;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.prose {
  padding-bottom: 10px;
}

.prose h2 {
  margin: 34px 0 10px;
}

.prose ul,
.prose ol {
  margin: 8px 0 0;
  padding-left: 1.2em;
  color: #e5dfd4;
}

.prose li + li {
  margin-top: 6px;
}

.note {
  margin-top: 22px;
  padding: 14px 16px;
}

.note p {
  margin: 0;
}

.split-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.faq {
  margin-top: 12px;
}

.faq details {
  padding: 0 16px;
}

.faq details + details {
  margin-top: 10px;
}

.faq summary {
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  font-weight: 700;
}

.faq details p {
  margin: 0 0 14px;
}

.topics {
  padding: 10px 0 46px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 28px;
  background: #0a0b0e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.foot-title {
  margin: 0 0 8px;
  color: var(--gold-2);
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-2);
}

.dl-stats {
  margin: 16px 0 0;
  color: var(--gold-2);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  visibility: hidden;
  transform: translateY(110%);
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
  background: rgba(14, 15, 18, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
}

.dock.is-on {
  visibility: visible;
  transform: none;
  transition: transform 0.25s ease;
}

.notice {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.66);
}

.notice[hidden] {
  display: none;
}

.notice-card {
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: min(86vh, 780px);
  overflow: hidden;
  background: #14161b;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.notice-card h2 {
  flex: none;
  margin: 0;
  padding: 20px 22px 8px;
  font-size: 28px;
}

.notice-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 22px 6px;
  color: #e7e1d6;
}

.notice-body p {
  margin: 0 0 10px;
}

.notice-body ol {
  margin: 0;
  padding-left: 1.3em;
}

.notice-body li + li {
  margin-top: 8px;
}

.notice-actions {
  display: flex;
  flex: none;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
}

body.notice-open {
  overflow: hidden;
}

.dock-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dock img {
  width: 120px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.dock p {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.dock strong,
.dock span {
  display: block;
}

.dock span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 980px) {
  .hero-grid,
  .cards,
  .flow,
  .footer-grid,
  .split-shots {
    grid-template-columns: 1fr 1fr;
  }

  .flow {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header {
    height: auto;
    min-height: var(--header);
  }

  .header-inner {
    min-height: var(--header);
    flex-wrap: wrap;
    position: relative;
  }

  .brand {
    order: 1;
  }

  .header-actions {
    order: 2;
  }

  .site-nav {
    display: none;
    position: static;
    order: 3;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 4px 0 12px;
    background: transparent;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
  }

  .brand img {
    width: 120px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero {
    padding-top: 32px;
  }

  .hero-grid,
  .cards,
  .flow,
  .shot-grid,
  .split-shots {
    grid-template-columns: 1fr;
  }

  .lead {
    font-size: 16px;
  }

  .search-row {
    flex-direction: column;
  }

  .dock img,
  .dock span {
    display: none;
  }

  .notice-actions {
    flex-direction: column;
  }

  .notice-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dock,
  .card {
    transition: none;
  }
}
