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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg, #F5F1E6);
  color: var(--text-dark, #1F2937);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

main {
  display: block;
  flex: 1;
}

main:focus {
  outline: none;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul[class], ol[class] {
  list-style: none;
}

p {
  margin-bottom: 1em;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 800;
}

h2 {
  font-size: clamp(22px, 3vw, 32px);
}

h3 {
  font-size: 18px;
}

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

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

button {
  background: none;
  border: 0;
}

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

[hidden] {
  display: none !important;
}

:root {
  --page-bg: #F5F1E6;
  --section-yellow: #FFF3D6;
  --section-blue: #E0F0F2;
  --card-bg: #FFFFFF;
  --accent-orange: #FF5A3C;
  --accent-teal: #00C2A8;
  --accent-purple: #8B5CF6;
  --status-green: #22C55E;
  --status-orange: #F97316;
  --status-gray: #9CA3AF;
  --tag-pink: #FCE7F3;
  --tag-yellow: #FEF3C7;
  --tag-blue: #DBEAFE;
  --text-dark: #1F2937;
  --text-muted: #6B7280;
  --border-light: #E5E7EB;
  --footer-bg: #0F172A;
  --footer-text: #CBD5E1;
  --footer-heading: #F1F5F9;
  --footer-link: #94A3B8;
  --scroll-progress: 0;
}

.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: fixed;
  left: 16px;
  top: 16px;
  z-index: 2000;
  background: var(--accent-purple);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.page-container {
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 40px) 64px;
}

.section {
  padding-block: clamp(40px, 6vw, 72px);
}

.section--yellow {
  background: var(--section-yellow);
}

.section--blue {
  background: var(--section-blue);
}

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

.section-head__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
}

.section-head__link {
  color: var(--accent-purple);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-purple);
}

.eyebrow::after {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent-orange);
}

.page-hero {
  background: var(--section-yellow);
  border-radius: 16px;
  padding: clamp(24px, 5vw, 48px);
  margin-bottom: 24px;
}

.page-hero--blue {
  background: var(--section-blue);
}

.page-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

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

.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--text-muted);
}

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

.breadcrumb [aria-current] {
  font-weight: 800;
  color: var(--text-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 90, 60, 0.3);
}

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

.btn--purple:hover {
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
}

.btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--accent-purple);
  color: var(--accent-purple);
}

.btn--ghost:hover {
  background: var(--accent-purple);
  color: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.card__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.card__cover--orange {
  background: linear-gradient(135deg, var(--accent-orange), #f59e0b);
}

.card__cover--blue {
  background: linear-gradient(135deg, #3b82f6, var(--accent-teal));
}

.card__cover span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card__title {
  font-size: 16px;
  font-weight: 800;
  margin-top: 12px;
  line-height: 1.4;
}

.card__meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.badge--hd {
  background: var(--accent-purple);
  color: #fff;
}

.badge--uhd {
  background: var(--text-dark);
  color: #fff;
}

.badge--sub {
  background: var(--tag-blue);
  color: #1e40af;
}

.badge--complete {
  background: var(--status-green);
  color: #fff;
}

.badge--ongoing {
  background: var(--status-orange);
  color: #fff;
}

.badge--pending {
  background: var(--status-gray);
  color: #fff;
}

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

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 104px;
  padding: 16px;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
  overflow: hidden;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.tile--orange {
  background: var(--accent-orange);
}

.tile--teal {
  background: var(--accent-teal);
}

.tile--purple {
  background: var(--accent-purple);
}

.tile__label {
  font-size: 18px;
  line-height: 1.3;
}

.tile__count {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 8px;
  border-radius: 999px;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: var(--card-bg);
  border-radius: 10px;
  color: var(--text-dark);
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease;
}

.entry-row:hover {
  background: var(--section-yellow);
}

.entry-row__number {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent-orange);
  font-variant-numeric: tabular-nums;
}

.entry-row__title {
  font-size: 16px;
  font-weight: 800;
}

.entry-row__meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.entry-row__arrow {
  color: var(--accent-purple);
  font-weight: 900;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.entry-row:hover .entry-row__arrow {
  opacity: 1;
  transform: translateX(0);
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  transition: transform 200ms ease, filter 200ms ease;
}

.tag:hover {
  transform: translateY(-2px);
  filter: brightness(0.97);
}

.tag--pink {
  background: var(--tag-pink);
}

.tag--yellow {
  background: var(--tag-yellow);
}

.tag--blue {
  background: var(--tag-blue);
}

.tag--dark {
  background: var(--text-dark);
  color: #fff;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge--updated {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.status-badge--ongoing {
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
}

.status-badge--complete {
  background: rgba(156, 163, 175, 0.16);
  color: #4b5563;
}

.index-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--tag-pink);
  color: #db2777;
  font-size: 14px;
  font-weight: 900;
}

.meter {
  height: 8px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}

.meter__bar {
  height: 100%;
  background: var(--accent-purple);
  border-radius: 999px;
}

.meter--teal .meter__bar {
  background: var(--accent-teal);
}

.meter--orange .meter__bar {
  background: var(--accent-orange);
}

.meter__label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.index-bar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.index-bar__link:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.index-bar__link[aria-current="true"],
.index-bar__link.is-active {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #fff;
}

.rail {
  margin-top: 20px;
}

.rail__scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.rail__scroller::-webkit-scrollbar {
  height: 6px;
}

.rail__scroller::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.rail-card {
  flex: 0 0 210px;
  scroll-snap-align: start;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.compare-table th {
  background: var(--section-blue);
  font-weight: 800;
}

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

.compare-table tbody tr:hover {
  background: #f9fafb;
}

.image-ratio {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--section-blue);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 8px;
}

.image-ratio--wide {
  aspect-ratio: 16 / 9;
}

.image-ratio--poster {
  aspect-ratio: 3 / 4;
}

.image-ratio--square {
  aspect-ratio: 1 / 1;
}

.image-ratio--orange {
  background: var(--accent-orange);
  color: #fff;
}

.image-ratio--purple {
  background: var(--accent-purple);
  color: #fff;
}

.image-ratio--teal {
  background: var(--accent-teal);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 241, 230, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  transition: background 200ms ease, box-shadow 200ms ease;
}

.site-header[data-scrolled] {
  background: rgba(245, 241, 230, 0.96);
  box-shadow: 0 6px 20px rgba(31, 41, 55, 0.08);
}

.site-header__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 8px 18px;
}

.site-header__main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 20px;
  color: var(--text-dark);
}

.site-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-orange);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  letter-spacing: -0.5px;
  transform: rotate(-3deg);
}

.site-brand__name {
  letter-spacing: 0.02em;
}

.site-brand--footer .site-brand__mark {
  background: var(--accent-purple);
}

.site-brand--footer .site-brand__name {
  color: var(--footer-heading);
}

.site-nav {
  display: flex;
  margin-inline: auto;
}

.site-nav__list {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-nav__link {
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  transition: background 200ms ease, color 200ms ease;
}

.site-nav__link:hover {
  background: var(--accent-orange);
  color: #fff;
}

.site-nav__link[aria-current="page"] {
  background: var(--accent-purple);
  color: #fff;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-search__input {
  width: 180px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  color: var(--text-dark);
  transition: width 200ms ease, border-color 200ms ease, background 200ms ease;
}

.site-search__input:focus {
  width: 240px;
  border-color: var(--accent-purple);
  background: #fff;
  outline: none;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--accent-purple);
  cursor: pointer;
}

.nav-toggle__line {
  height: 2px;
  width: 22px;
  background: #fff;
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

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

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

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

@media (max-width: 1024px) {
  .site-search__input {
    width: 140px;
  }

  .site-search__input:focus {
    width: 160px;
  }
}

@media (max-width: 980px) {
  .site-header__main {
    padding-bottom: 4px;
  }

  .site-nav {
    flex-basis: 100%;
    order: 3;
    display: none;
    margin-inline: 0;
  }

  .site-nav[data-open] {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    padding: 8px;
  }

  .site-nav__link {
    padding: 10px 14px;
  }

  .site-header__actions {
    margin-left: auto;
  }

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

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 0;
}

.site-footer__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 56px clamp(16px, 4vw, 40px) 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.site-footer__desc {
  margin-top: 14px;
  max-width: 32ch;
  color: var(--footer-link);
  font-size: 14px;
}

.site-footer__heading {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--footer-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__list {
  list-style: none;
}

.site-footer__list li {
  margin-bottom: 8px;
  font-size: 14px;
}

.site-footer__list a {
  color: var(--footer-link);
  transition: color 200ms ease;
}

.site-footer__list a:hover {
  color: var(--accent-teal);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px clamp(16px, 4vw, 40px);
  text-align: center;
  font-size: 13px;
  color: #64748b;
  max-width: 1280px;
  margin-inline: auto;
}

.site-footer__bottom p {
  line-height: 1.7;
  margin-bottom: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1200;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-purple), var(--accent-teal));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

.back-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  display: flex;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  z-index: 900;
  border: none;
  cursor: pointer;
}

.back-top::after {
  content: "↑";
  font-size: 20px;
  font-weight: 900;
}

.back-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--accent-teal);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
