:root {
  color-scheme: dark;
  --bg: #0e0c0a;
  --bg-soft: #141110;
  --panel: #1a1613;
  --panel-2: #221c18;
  --panel-3: #2b241e;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3ede4;
  --text-soft: #d6cdc0;
  --muted: #a2988a;
  --accent: #e8a33d;
  --accent-deep: #c9603f;
  --accent-soft: rgba(232, 163, 61, 0.14);
  --accent-line: rgba(232, 163, 61, 0.34);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shell: 1220px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f2ea;
  --bg-soft: #f0e9de;
  --panel: #fffdf9;
  --panel-2: #f8f2e8;
  --panel-3: #efe6d8;
  --line: rgba(33, 27, 20, 0.12);
  --line-strong: rgba(33, 27, 20, 0.24);
  --text: #201a13;
  --text-soft: #3c332a;
  --muted: #6d635a;
  --accent: #b0741d;
  --accent-deep: #a8452a;
  --accent-soft: rgba(176, 116, 29, 0.12);
  --accent-line: rgba(176, 116, 29, 0.35);
  --shadow-sm: 0 2px 8px rgba(72, 55, 32, 0.1);
  --shadow-md: 0 12px 28px rgba(72, 55, 32, 0.14);
  --shadow-lg: 0 24px 56px rgba(72, 55, 32, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(232, 163, 61, 0.1), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(201, 96, 63, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  background: var(--panel-2);
}

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

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

[hidden] {
  display: none !important;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

.shell {
  width: min(var(--shell), 100% - 44px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--accent);
  color: #14100b;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #17110a;
  box-shadow: 0 10px 24px rgba(232, 163, 61, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(232, 163, 61, 0.32);
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.btn-ghost {
  border-color: transparent;
  background: var(--panel-2);
  color: var(--text-soft);
}

.btn-ghost:hover {
  background: var(--panel-3);
  color: var(--text);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.icon-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  transform: translateY(-1px);
}

.icon-btn[aria-pressed="true"] {
  color: #17110a;
  background: var(--accent);
  border-color: var(--accent);
}

.icon-btn[aria-pressed="true"] svg {
  fill: currentColor;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list li {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.tag-list-lg li {
  padding: 5px 13px;
  font-size: 13px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--accent), var(--accent-deep));
  color: #17110a;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.06em;
}

.brand-text em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.14em;
}

.nav-primary {
  flex: 1;
}

.nav-list {
  display: flex;
  gap: 4px;
}

.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 15px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-list a:hover {
  color: var(--text);
  background: var(--panel-2);
}

.nav-list a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.tool-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.tool-link svg {
  fill: currentColor;
}

.tool-link:hover {
  color: var(--text);
  background: var(--panel-2);
}

.fav-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #17110a;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.fav-count[data-empty="true"] {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  padding: 0 11px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.mobile-nav-list {
  display: grid;
  gap: 2px;
  padding: 14px 0 20px;
  width: min(var(--shell), 100% - 44px);
  margin-inline: auto;
}

.mobile-nav-list a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 16px;
}

.mobile-nav-list a:hover {
  background: var(--panel-2);
  color: var(--text);
}

.hero {
  position: relative;
  padding: 62px 0 74px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.hero-copy h1 {
  margin-top: 20px;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.2;
}

.hero-lead {
  margin-top: 20px;
  max-width: 40ch;
  color: var(--text-soft);
  font-size: 16.5px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats strong {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--accent);
  line-height: 1.1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 20px 14px;
  background: linear-gradient(transparent, rgba(8, 6, 4, 0.82));
  color: #efe7db;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(23px, 2.4vw, 32px);
}

.section-note {
  max-width: 42ch;
  color: var(--muted);
  font-size: 14.5px;
}

.section-link {
  flex: none;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 600;
  transition: gap 0.2s var(--ease), opacity 0.2s var(--ease);
}

.section-link:hover {
  opacity: 0.78;
}

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

.work-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
}

.work-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--panel-2);
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.work-card:hover .work-card-media img {
  transform: scale(1.04);
}

.work-card-quality,
.work-card-score {
  position: absolute;
  top: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}

.work-card-quality {
  left: 10px;
  background: rgba(10, 8, 6, 0.68);
  color: #f0e8dc;
}

.work-card-score {
  right: 10px;
  background: var(--accent);
  color: #17110a;
}

.work-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 16px 16px 18px;
}

.work-card-title {
  font-size: 18px;
  line-height: 1.35;
}

.work-card-title a {
  transition: color 0.18s var(--ease);
}

.work-card-title a:hover {
  color: var(--accent);
}

.work-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.work-card-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--line-strong);
}

.work-card-desc {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.work-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
}

.feature-card-wide {
  grid-column: span 1;
}

.feature-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel-2);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.feature-kicker {
  color: var(--accent);
  font-size: 12.5px;
  letter-spacing: 0.1em;
}

.feature-body h3 {
  font-size: 21px;
}

.feature-body h3 a:hover {
  color: var(--accent);
}

.feature-body p {
  color: var(--text-soft);
  font-size: 14px;
}

.feature-score {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 12.5px;
}

.feature-score strong {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 21px;
}

.feature-body .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 24px;
}

.series-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}

.series-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
}

.series-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel-2);
}

.series-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 20px 22px;
}

.series-sub {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.series-body h3 {
  font-size: 20px;
}

.series-body h3 a:hover {
  color: var(--accent);
}

.series-body p {
  color: var(--text-soft);
  font-size: 13.5px;
}

.series-count {
  color: var(--muted);
  font-size: 12.5px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.value-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.value-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

.value-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-soft);
  font-size: 14px;
}

.step-list {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step-list li {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
}

.step-list li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}

.step-list h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-list p {
  color: var(--text-soft);
  font-size: 13.5px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.faq-item[open] {
  border-color: var(--accent-line);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-size: 20px;
  font-family: var(--font-sans);
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-index {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

.faq-answer {
  padding: 0 22px 20px;
}

.faq-answer p {
  color: var(--text-soft);
  font-size: 14.5px;
}

.faq-list-lg .faq-item summary {
  font-size: 17.5px;
}

.faq-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px dashed var(--accent-line);
  background: var(--accent-soft);
}

.faq-cta p {
  color: var(--text-soft);
  font-size: 15px;
}

.cta-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 56px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(232, 163, 61, 0.18), transparent 70%),
    var(--panel);
  text-align: center;
}

.cta-panel h2 {
  font-size: clamp(24px, 2.6vw, 34px);
}

.cta-panel p {
  max-width: 56ch;
  color: var(--text-soft);
  font-size: 15px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
}

.breadcrumb {
  margin-bottom: 26px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb li[aria-current="page"] {
  color: var(--text-soft);
}

.page-head {
  padding: 48px 0 44px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft), transparent);
}

.page-head h1 {
  margin-top: 14px;
  font-size: clamp(26px, 3.2vw, 42px);
}

.page-lead {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 16px;
}

.page-head-media {
  background: var(--bg-soft);
}

.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 44px;
  align-items: center;
}

.page-head-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.stat-row li {
  display: flex;
  flex-direction: column;
}

.stat-row strong {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.2;
}

.stat-row span {
  color: var(--muted);
  font-size: 12.5px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px 26px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.filter-group-wide {
  flex: 1 1 240px;
}

.filter-label {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text-soft);
  font-size: 13.5px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.chip:hover {
  border-color: var(--accent-line);
  color: var(--text);
}

.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #17110a;
  font-weight: 600;
}

select,
input[type="search"],
input[type="text"] {
  min-width: 150px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

select:hover,
input[type="search"]:hover,
input[type="text"]:hover {
  border-color: var(--line-strong);
}

select:focus,
input[type="search"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--panel-3);
}

input[type="search"]::placeholder {
  color: var(--muted);
}

.filter-status {
  margin: 20px 0 24px;
  color: var(--muted);
  font-size: 13.5px;
}

.empty-state {
  padding: 42px 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}

.search-box {
  display: flex;
  gap: 12px;
  max-width: 620px;
  margin-top: 28px;
}

.search-box input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
}

.error-code {
  font-family: var(--font-serif);
  font-size: clamp(56px, 10vw, 108px);
  line-height: 1;
  color: var(--accent);
  opacity: 0.9;
}

.detail {
  padding-top: 40px;
}

.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.detail-head h1 {
  margin-top: 12px;
  font-size: clamp(27px, 3.4vw, 44px);
}

.detail-logline {
  margin-top: 16px;
  max-width: 54ch;
  color: var(--text-soft);
  font-size: 17px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.detail-meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 96px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
}

.detail-meta span {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.detail-meta strong {
  font-family: var(--font-serif);
  font-size: 17px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.detail-poster {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.detail-poster img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-poster figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  padding-top: 44px;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 44px;
  min-width: 0;
}

.detail-banner {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.detail-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.detail-banner figcaption {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
}

.detail-section h2 {
  font-size: 23px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-section > p {
  color: var(--text-soft);
  font-size: 15.5px;
}

.detail-section > p + p {
  margin-top: 14px;
}

.detail-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent-line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--panel);
  color: var(--muted);
  font-size: 13.5px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.highlight-card {
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.highlight-index {
  display: block;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.highlight-card h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.highlight-card p {
  color: var(--text-soft);
  font-size: 13.5px;
}

.role-list {
  display: grid;
  gap: 12px;
}

.role-list li {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.role-list h3 {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.role-list p {
  color: var(--text-soft);
  font-size: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}

.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  padding: 9px 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.episode-table {
  display: grid;
  gap: 6px;
}

.episode-table li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 14.5px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.episode-table li:hover {
  border-color: var(--accent-line);
  background: var(--panel-2);
}

.ep-no {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.ep-name {
  color: var(--text);
}

.ep-time {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.detail-aside,
.watch-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 88px;
  align-self: start;
}

.aside-card {
  padding: 20px 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.aside-card h2 {
  font-size: 16.5px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.info-list {
  display: grid;
  gap: 9px;
}

.info-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
}

.info-list dd {
  color: var(--text);
  text-align: right;
}

.info-list a:hover {
  color: var(--accent);
}

.aside-links {
  display: grid;
  gap: 4px;
}

.aside-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 14px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.aside-links a:hover {
  background: var(--panel-2);
  color: var(--text);
}

.aside-links em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  flex: none;
}

.aside-card-note p {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 14px;
}

.watch {
  padding-top: 40px;
}

.watch-head h1 {
  font-size: clamp(24px, 2.8vw, 36px);
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  margin-top: 34px;
}

.watch-player-col {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.player {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #080706;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #080706;
}

.player-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.player-start-icon {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(232, 163, 61, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.player-start-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #17110a;
}

.player-start:hover .player-start-icon {
  transform: scale(1.07);
  background: var(--accent);
}

.player-start[data-playing="true"] .player-start-icon::after {
  border: 0;
  width: 16px;
  height: 20px;
  border-left: 5px solid #17110a;
  border-right: 5px solid #17110a;
  background: transparent;
}

.player-state {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px 20px 16px;
  background: linear-gradient(transparent, rgba(6, 5, 4, 0.9));
  color: #f0e8dc;
  pointer-events: none;
}

.player-state-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
}

.player-state-note {
  margin-top: 5px;
  color: rgba(240, 232, 220, 0.72);
  font-size: 12.5px;
}

.player-bar {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.player-progress {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--panel-3);
  overflow: hidden;
}

.player-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transition: width 0.4s var(--ease);
}

.player-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.player-time {
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.player-lines {
  display: flex;
  gap: 6px;
}

.line-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12.5px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.line-btn:hover {
  color: var(--text);
  border-color: var(--accent-line);
}

.line-btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
  font-weight: 600;
}

.episode-panel {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.episode-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.episode-panel-head h2 {
  font-size: 19px;
}

.episode-panel-head p {
  color: var(--muted);
  font-size: 13px;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
}

.episode-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  text-align: left;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}

.episode-btn:hover {
  border-color: var(--accent-line);
  transform: translateY(-1px);
}

.episode-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.episode-btn.is-watched .episode-name::after {
  content: "已看";
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--panel-3);
  color: var(--muted);
  font-size: 10px;
  vertical-align: middle;
}

.episode-no {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  grid-row: span 2;
}

.episode-name {
  color: var(--text);
  font-size: 14px;
}

.episode-time {
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.bullet-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 14.5px;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.bullet-list strong {
  color: var(--text);
}

.timeline {
  display: grid;
  max-width: 900px;
  margin-left: 4px;
}

.timeline-item {
  position: relative;
  padding: 0 0 26px 30px;
  border-left: 1px solid var(--line);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--bg-soft);
}

.timeline-date {
  color: var(--accent);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.timeline-tag {
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.timeline-item p {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 14.5px;
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.prose {
  max-width: 74ch;
}

.prose-wide {
  max-width: 84ch;
}

.prose h2 {
  font-size: 23px;
  margin-top: 38px;
  margin-bottom: 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--text-soft);
  font-size: 15.5px;
}

.prose p + p {
  margin-top: 14px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--panel);
}

.prose blockquote p {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
}

.prose .bullet-list {
  margin-top: 18px;
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-top: 52px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.8fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-desc {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-mail {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-mail a {
  color: var(--accent);
}

.footer-title {
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: var(--muted);
  font-size: 13.5px;
  transition: color 0.18s var(--ease);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--text);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.to-top svg {
  fill: currentColor;
}

.to-top:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: var(--accent-line);
}

.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .hero-lead {
    max-width: none;
  }

  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .page-head-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .detail-head,
  .detail-body,
  .watch-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-poster {
    max-width: 340px;
  }

  .detail-aside,
  .watch-aside {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .nav-primary,
  .header-tools {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .header-inner {
    gap: 16px;
  }

  .hero {
    padding: 44px 0 52px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-note {
    max-width: none;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

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

  .work-card-body {
    padding: 13px 13px 15px;
    gap: 8px;
  }

  .work-card-title {
    font-size: 15.5px;
  }

  .work-card-desc {
    display: none;
  }

  .work-card-actions .btn {
    padding: 7px 12px;
    font-size: 12.5px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .filter-bar {
    padding: 16px;
    gap: 14px 18px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
  }

  .episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(var(--shell), 100% - 32px);
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .episode-table li {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 10px;
    font-size: 13.5px;
  }

  .search-box {
    flex-direction: column;
  }

  .faq-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-poster {
    max-width: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .to-top,
  .filter-bar,
  .player {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
