:root {
  --ink: #17131d;
  --muted: #665d73;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #eadfce;
  --accent: #c3193f;
  --accent-2: #f2b84b;
  --deep: #211a2b;
  --soft: #f7efe2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.75;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  font-size: 22px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 15px;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
  background: #fff;
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px) clamp(40px, 6vw, 70px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(26, 20, 34, 0.96), rgba(55, 24, 35, 0.88)),
    radial-gradient(circle at 78% 25%, rgba(242, 184, 75, 0.38), transparent 28%),
    var(--deep);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 700;
}

.button.primary {
  color: var(--deep);
  background: var(--accent-2);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.hero-panel {
  position: relative;
  min-height: 430px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  transform: rotate(-4deg);
}

.screen-card {
  position: absolute;
  width: min(340px, 88%);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.screen-card.top {
  top: 34px;
  right: 20px;
}

.screen-card.middle {
  top: 162px;
  left: 12px;
}

.screen-card.bottom {
  right: 0;
  bottom: 30px;
}

.screen-card span,
.screen-card strong,
.screen-card em {
  display: block;
}

.screen-card span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
}

.screen-card strong {
  margin: 8px 0 6px;
  font-size: 22px;
}

.screen-card em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.section {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading h2,
.copy-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
  letter-spacing: 0;
}

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

.intro-grid article,
.category-grid a,
.copy-card,
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(80, 49, 22, 0.06);
}

.intro-grid article {
  padding: 26px;
}

.intro-grid h3,
.drama-item h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.intro-grid p,
.drama-item p,
.copy-card p,
.faq-list p,
.footer p {
  margin: 0;
  color: var(--muted);
}

.categories {
  background: var(--soft);
}

.category-grid a {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-grid a:hover,
.category-grid a:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  outline: none;
}

.category-grid span {
  font-size: 22px;
  font-weight: 800;
}

.category-grid small {
  color: var(--muted);
  font-size: 14px;
}

.drama-list {
  display: grid;
  gap: 14px;
}

.drama-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.rank {
  color: var(--accent);
  font-size: 32px;
  font-weight: 900;
}

.drama-item strong {
  padding: 8px 12px;
  color: #fff;
  background: var(--deep);
  border-radius: 8px;
  white-space: nowrap;
}

.seo-copy {
  padding-top: 0;
}

.copy-card {
  padding: clamp(26px, 5vw, 48px);
}

.copy-card p {
  margin-top: 16px;
}

.faq {
  background: #fff;
}

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

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-size: 19px;
  font-weight: 800;
}

.faq-list p {
  margin-top: 12px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--deep);
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 860px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    min-height: 360px;
  }

  .intro-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .drama-item {
    grid-template-columns: 1fr;
  }

  .drama-item strong {
    width: fit-content;
  }
}

@media (max-width: 520px) {
  .site-header {
    position: static;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .nav a {
    padding: 7px 9px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-panel::before {
    display: none;
  }

  .screen-card {
    position: static;
    width: 100%;
    margin-bottom: 12px;
  }
}
