:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --bg-elev: #12141a;
  --surface: #161922;
  --surface-2: #1c2030;
  --text: #f3f1ec;
  --muted: #9a9eaa;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #f39a28;
  --accent-deep: #db6f20;
  --ok: #3dd68c;
  --shell: min(1200px, calc(100% - 40px));
  --font-display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --radius: 14px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body, h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(243, 154, 40, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(61, 214, 140, 0.05), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.wrap { width: var(--shell); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(243, 154, 40, 0.2);
}
.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  position: relative;
  color: #b4b8c2;
  font-size: 0.82rem;
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: 0.2s;
}
.official-chip {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.official-chip i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(61, 214, 140, 0.15);
}

@media (min-width: 1100px) {
  .official-chip { display: inline-flex; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgba(11, 12, 14, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: -8%;
  overflow: hidden;
}
.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: soft-light;
}
.hero-media::before {
  background:
    radial-gradient(ellipse 55% 45% at 70% 30%, rgba(243, 154, 40, 0.45), transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(61, 214, 140, 0.18), transparent 55%);
  animation: heroGlow 14s ease-in-out infinite alternate;
}
.hero-media::after {
  background: linear-gradient(
    115deg,
    transparent 22%,
    rgba(255, 200, 120, 0.2) 48%,
    transparent 72%
  );
  animation: heroSweep 16s ease-in-out infinite;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  will-change: transform;
  transform-origin: 58% 38%;
  animation: heroDrift 18s ease-in-out infinite alternate;
  filter: saturate(1.1) contrast(1.05);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 12, 14, 0.94) 0%, rgba(11, 12, 14, 0.72) 40%, rgba(11, 12, 14, 0.28) 100%),
    linear-gradient(0deg, rgba(11, 12, 14, 0.96) 0%, transparent 48%);
  animation: heroShadePulse 16s ease-in-out infinite alternate;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  padding: 120px 0 72px;
  max-width: 640px;
  justify-self: start;
}
.hero-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  margin-bottom: 16px;
  animation: fadeUp 0.7s ease both;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-bottom: 18px;
  animation: fadeUp 0.75s ease 0.05s both;
}
.hero p {
  color: #d5d7de;
  font-size: 1.02rem;
  margin-bottom: 22px;
  animation: fadeUp 0.75s ease 0.1s both;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  animation: fadeUp 0.75s ease 0.15s both;
}
.hero-facts span {
  border: 1px solid rgba(243, 154, 40, 0.35);
  background: rgba(243, 154, 40, 0.08);
  color: #f0d2a8;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
}
.hero small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  animation: fadeUp 0.75s ease 0.2s both;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  animation: fadeUp 0.75s ease 0.18s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #1a1208;
  font-weight: 700;
}
.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

@keyframes heroDrift {
  0% {
    transform: scale(1.1) translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: scale(1.2) translate3d(-3%, -2%, 0) rotate(-0.65deg);
  }
  100% {
    transform: scale(1.16) translate3d(2.8%, 1.5%, 0) rotate(0.55deg);
  }
}
@keyframes heroGlow {
  from {
    opacity: 0.6;
    transform: translate3d(-2.5%, 1.5%, 0) scale(1);
  }
  to {
    opacity: 1;
    transform: translate3d(3.5%, -3%, 0) scale(1.14);
  }
}
@keyframes heroSweep {
  0% {
    transform: translate3d(-18%, 6%, 0) rotate(5deg);
    opacity: 0.18;
  }
  50% {
    opacity: 0.55;
  }
  100% {
    transform: translate3d(20%, -8%, 0) rotate(-3deg);
    opacity: 0.24;
  }
}
@keyframes heroShadePulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.92;
  }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .hero-media::before,
  .hero-media::after,
  .hero-shade {
    animation: none !important;
  }
  .hero-media img {
    transform: scale(1.08);
    filter: none;
  }
}

/* Sections */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}
.section-head .eyebrow {
  display: block;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: 0.04em;
}
.section-head p {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cat-block { margin-bottom: 48px; }
.cat-block:last-child { margin-bottom: 0; }
.cat-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}
.cat-block-head .en {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}
.cat-block-head h2,
.cat-block-head h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}
.cat-block-head a { color: var(--accent); font-size: 0.85rem; }

.drama-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
@media (max-width: 1100px) {
  .drama-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .drama-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section-head { flex-direction: column; align-items: start; }
}

.drama-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease;
}
.drama-card:hover { transform: translateY(-4px); color: inherit; }
.drama-card .poster {
  position: relative;
  aspect-ratio: 3 / 4.3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.drama-card .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.drama-card:hover .poster img { transform: scale(1.05); }
.drama-card .poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}
.drama-card h3 {
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.drama-card .meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* SEO prose / about blocks */
.prose-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--line);
}
.prose-panel img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.prose-panel h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.prose-panel p { color: #c8cbd3; margin-bottom: 14px; }
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud span {
  font-size: 0.78rem;
  color: #d7dae2;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
@media (max-width: 800px) {
  .prose-panel { grid-template-columns: 1fr; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  padding: 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 180px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(243, 154, 40, 0.4);
  transform: translateY(-2px);
}
.feature-card .label {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.feature-card p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* Page hero (inner) */
.page-hero {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden="true"] { opacity: 0.5; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.page-hero p { color: var(--muted); max-width: 640px; }

/* Article */
.article-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 48px 0 72px;
}
.article-cover {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
}
.article-cover img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4.3;
  object-fit: cover;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 8px;
}
.article-tags span {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(243, 154, 40, 0.12);
  color: #f0d2a8;
  border: 1px solid rgba(243, 154, 40, 0.28);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 28px 0 12px;
}
.article-body p {
  color: #d4d7df;
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.article-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
@media (max-width: 800px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-cover { position: static; max-width: 280px; }
}

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 4px 16px;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary { color: var(--accent); }
.faq-list details p {
  color: var(--muted);
  padding-bottom: 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #090a0c;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand strong {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}
.footer-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}
.site-footer h2 {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: #e6e8ee;
}
.site-footer a {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 8px;
}
.site-footer a:hover { color: var(--accent); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.footer-meta nav { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.disclaimer {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}
.disclaimer strong { color: #e8eaf0; }

.about-lead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 8px 0 16px;
  color: #f0e6d4;
}

/* Nav portals */
.portal-section {
  background: linear-gradient(180deg, rgba(243, 154, 40, 0.06), transparent 70%);
}
.portal-section code {
  font-size: 0.85em;
  color: #d7b48a;
}
.portal-links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px 16px;
}
.portal-links li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.portal-links li:hover {
  border-color: rgba(243, 154, 40, 0.45);
  transform: translateY(-2px);
}
.portal-links a {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.portal-links a:hover { color: #ffb24d; }
.portal-links a[data-placeholder="true"] {
  color: #c9a87a;
  text-decoration-style: dashed;
}
.portal-desc {
  color: var(--muted);
  font-size: 0.8rem;
}
