:root {
  color-scheme: dark;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --bg: #08080d;
  --bg-2: #0d0d15;
  --surface: #14141f;
  --surface-2: #1b1b29;
  --surface-3: #232334;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.16);
  --fg: #ecebf4;
  --fg-2: #a8a5bd;
  --fg-3: #78758e;
  --brand: #ff3d68;
  --brand-2: #8b5cf6;
  --brand-3: #ffb347;
  --gold: #f7c948;
  --green: #37d99b;
  --g-brand: linear-gradient(135deg, #ff3d68 0%, #b04cf0 55%, #8b5cf6 100%);
  --g-veil: linear-gradient(180deg, rgba(8, 8, 13, 0) 35%, rgba(8, 8, 13, 0.92) 100%);
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow: 0 20px 48px -16px rgba(0, 0, 0, 0.8);
  --ring: 0 0 0 3px rgba(255, 61, 104, 0.35);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 66px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f4fa;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0eef7;
  --surface-3: #e4e1ef;
  --line: rgba(18, 16, 40, 0.09);
  --line-2: rgba(18, 16, 40, 0.18);
  --fg: #16142a;
  --fg-2: #55516e;
  --fg-3: #7d7a96;
  --g-veil: linear-gradient(180deg, rgba(255, 255, 255, 0) 35%, rgba(12, 10, 26, 0.86) 100%);
  --shadow-sm: 0 2px 10px rgba(24, 20, 56, 0.1);
  --shadow: 0 20px 44px -18px rgba(24, 20, 56, 0.28);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(255, 61, 104, 0.16), transparent 62%),
    radial-gradient(760px 480px at 92% 4%, rgba(139, 92, 246, 0.16), transparent 60%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
  border: 0;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

::selection {
  background: rgba(255, 61, 104, 0.32);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 99px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-xs);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8, 8, 13, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.82);
}

.site-header.is-stuck {
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--g-brand);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 8px 20px -8px rgba(255, 61, 104, 0.75);
}

.logo-cn {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-en {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--fg-3);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg-2);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav a:hover {
  color: var(--fg);
  background: var(--surface-2);
}

.nav a[aria-current="page"] {
  color: var(--fg);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: clamp(150px, 24vw, 300px);
}

.search svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--fg-3);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 36px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-size: 14px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.search input::placeholder {
  color: var(--fg-3);
}

.search input:focus {
  outline: none;
  border-color: rgba(255, 61, 104, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 61, 104, 0.14);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg-2);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.icon-btn:hover {
  color: var(--fg);
  border-color: rgba(255, 61, 104, 0.5);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

.menu-btn {
  display: none;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.mobile-panel.is-open {
  display: block;
}

.search--mobile {
  width: 100%;
  max-width: none;
}

.mobile-panel .nav {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin: 10px 0 16px;
}

.mobile-panel .nav a {
  padding: 12px 14px;
  border-radius: var(--r-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
}

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

.btn--primary {
  background: var(--g-brand);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(255, 61, 104, 0.9);
}

.btn--primary:hover {
  box-shadow: 0 18px 38px -14px rgba(176, 76, 240, 0.95);
}

.btn--soft {
  background: var(--surface-2);
  border-color: var(--line-2);
  color: var(--fg);
}

.btn--soft:hover {
  border-color: rgba(255, 61, 104, 0.45);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--fg-2);
}

.btn--ghost:hover {
  color: var(--fg);
  border-color: var(--fg-3);
}

.btn--sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.btn.is-on {
  background: rgba(255, 61, 104, 0.14);
  border-color: rgba(255, 61, 104, 0.55);
  color: #ff8aa2;
}

.section {
  padding-block: clamp(38px, 5.5vw, 68px);
}

.section--tight {
  padding-block: clamp(26px, 3.5vw, 42px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--g-brand);
}

.section-title {
  font-size: clamp(22px, 2.9vw, 31px);
}

.section-desc {
  max-width: 62ch;
  margin-top: 10px;
  color: var(--fg-2);
  font-size: 14.5px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-2);
  white-space: nowrap;
}

.section-link:hover {
  color: var(--brand);
}

.section-link::after {
  content: "→";
  font-size: 15px;
}

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

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 61, 104, 0.4);
  box-shadow: var(--shadow);
}

.card--link {
  color: inherit;
}

.poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface-3);
  overflow: hidden;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.5s var(--ease), filter 0.3s var(--ease);
}

.card:hover .poster img,
.card:focus-within .poster img {
  transform: scale(1.05);
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--g-veil);
  opacity: 0.82;
  pointer-events: none;
}

.poster-score {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgba(8, 8, 13, 0.72);
  border: 1px solid rgba(247, 201, 72, 0.4);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.poster-score svg {
  width: 11px;
  height: 11px;
}

.poster-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 8px;
  background: var(--g-brand);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
}

.poster-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  color: #f4f3fb;
  font-size: 12px;
  font-weight: 700;
}

.poster-foot .eps {
  color: rgba(244, 243, 251, 0.72);
  font-family: var(--font-mono);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 13px 14px 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

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

.card-title-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--fg-3);
  font-size: 12.5px;
}

.card-meta .dot::before {
  content: "·";
  margin-right: 8px;
}

.card-note {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--fg-2);
  font-size: 13px;
  line-height: 1.7;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.chip:hover {
  color: var(--fg);
  border-color: rgba(255, 61, 104, 0.45);
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: rgba(255, 61, 104, 0.14);
  border-color: rgba(255, 61, 104, 0.55);
  color: #ff8aa2;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 600;
}

.tag:hover {
  color: var(--brand);
  border-color: rgba(255, 61, 104, 0.4);
}

.still {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-3);
  overflow: hidden;
  border-radius: var(--r);
}

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

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 0 18px;
  transition: border-color 0.2s var(--ease);
}

.faq details[open] {
  border-color: rgba(255, 61, 104, 0.35);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--brand);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.22s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 18px;
  color: var(--fg-2);
  font-size: 14.5px;
}

.faq-answer p + p {
  margin-top: 10px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow-x: auto;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table th {
  color: var(--fg-3);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table td {
  color: var(--fg-2);
}

.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(130px, 1fr));
  gap: 34px;
  padding-block: clamp(34px, 4.5vw, 56px);
}

.footer-brand p {
  max-width: 34ch;
  margin-top: 14px;
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.8;
}

.footer-title {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

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

.footer-links a {
  color: var(--fg-2);
  font-size: 13.5px;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 12.5px;
}

.footer-bottom a:hover {
  color: var(--fg-2);
}

.footer-bottom .bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(20, 20, 31, 0.86);
  color: var(--fg-2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  backdrop-filter: blur(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

html[data-theme="light"] .to-top {
  background: rgba(255, 255, 255, 0.92);
}

.to-top:hover {
  color: var(--fg);
  border-color: rgba(255, 61, 104, 0.5);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

.stack {
  margin-top: 22px;
}

.stack-sm {
  margin-top: 12px;
}

.stack-lg {
  margin-top: 34px;
}

.chip-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.data-table tbody th {
  color: var(--fg-3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 20px;
  color: var(--fg-3);
  font-size: 12.5px;
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--fg-3);
  opacity: 0.6;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 179, 71, 0.3);
  border-left-width: 3px;
  border-radius: var(--r-sm);
  background: rgba(255, 179, 71, 0.07);
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.8;
}

.notice strong {
  color: var(--brand-3);
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14.5px;
  }

  .search {
    display: none;
  }

  .mobile-panel .search {
    display: flex;
    width: 100%;
    margin: 12px 0 4px;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
