:root {
  --ink: #17142d;
  --muted: #78748e;
  --paper: #fffaf4;
  --card: #ffffff;
  --orange: #ffb13b;
  --coral: #f36e58;
  --violet: #6655df;
  --line: #eee8e1;
  --shadow: 0 18px 55px rgba(38, 28, 70, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 244, 0.92);
  border-bottom: 1px solid rgba(238, 232, 225, 0.86);
  backdrop-filter: blur(18px);
}

.nav-wrap,
.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--orange);
  border-radius: 13px 13px 13px 4px;
  place-items: center;
  font-weight: 900;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 11px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: #fff0d6;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 70px;
  background: linear-gradient(120deg, #19162f 0%, #2b2455 55%, #5540a4 100%);
  color: #ffffff;
}

.hero::after {
  position: absolute;
  right: -120px;
  bottom: -210px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(255, 255, 255, 0.035),
    0 0 0 100px rgba(255, 255, 255, 0.025);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: var(--orange);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.hero-copy {
  max-width: 550px;
  color: #d9d5e8;
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: var(--orange);
  box-shadow: 0 8px 20px rgba(255, 177, 59, 0.22);
}

.button-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster {
  position: relative;
  min-height: 400px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
  transform: rotate(2deg);
}

.hero-poster img {
  height: 400px;
}

.poster-tag {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 11px;
  color: var(--ink);
  background: var(--orange);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
}

.section {
  padding: 82px 0;
}

.section-alt {
  background: #f5f0eb;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 5px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.topic-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.topic-card {
  min-height: 118px;
  padding: 19px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 7px 22px rgba(38, 28, 70, 0.05);
  transition: 0.2s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.topic-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  color: var(--ink);
  background: #fff0d6;
  place-items: center;
  font-size: 16px;
}

.topic-card:nth-child(2n) .topic-icon {
  background: #eae7ff;
}

.topic-card:nth-child(3n) .topic-icon {
  background: #ffe2df;
}

.topic-card h3 {
  margin-bottom: 1px;
  font-size: 16px;
}

.topic-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.drama-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.drama-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 7px 20px rgba(38, 28, 70, 0.04);
}

.drama-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.drama-cover img {
  height: 100%;
  transition: transform 0.3s ease;
}

.drama-card:hover .drama-cover img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  color: var(--ink);
  background: var(--orange);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
}

.drama-body {
  padding: 15px 16px 17px;
}

.drama-body h3 {
  overflow: hidden;
  margin-bottom: 3px;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drama-body p {
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.rating {
  color: #e39b21;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
}

.feature-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--ink);
  color: #ffffff;
}

.feature-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0.42;
}

.feature-content {
  position: relative;
  z-index: 1;
  max-width: 370px;
}

.feature-content h3 {
  margin: 20px 0 9px;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.18;
}

.feature-content p {
  color: #d9d5e8;
  font-size: 14px;
}

.feature-card.small {
  background: var(--coral);
}

.feature-card.small img {
  opacity: 0.3;
}

.feature-card.small .feature-content h3 {
  font-size: 27px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 30px;
  align-items: start;
}

.ranking-intro {
  padding: 28px;
  border-radius: 24px;
  background: #ebe8ff;
}

.ranking-intro h3 {
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.25;
}

.ranking-intro p {
  color: #635d81;
  font-size: 14px;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-top: 20px;
}

.tab {
  padding: 8px 13px;
  border: 0;
  border-radius: 9px;
  color: #635d81;
  background: rgba(255, 255, 255, 0.63);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.tab.active {
  color: #ffffff;
  background: var(--violet);
}

.ranking-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.rank-item {
  display: grid;
  grid-template-columns: 38px 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-number {
  color: var(--muted);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.rank-number.top {
  color: var(--coral);
}

.rank-thumb {
  width: 54px;
  height: 62px;
  border-radius: 10px;
}

.rank-title {
  margin-bottom: 2px;
  font-weight: 800;
}

.rank-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.rank-score {
  color: var(--violet);
  font-size: 14px;
  font-weight: 900;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-grid h2 {
  margin-bottom: 17px;
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.about-grid p {
  color: var(--muted);
  font-size: 15px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.stat {
  padding: 17px;
  border-radius: 16px;
  background: #fff0d6;
}

.stat:nth-child(2) {
  background: #eae7ff;
}

.stat:nth-child(3) {
  background: #ffe2df;
}

.stat strong {
  display: block;
  margin-bottom: 2px;
  font-size: 26px;
}

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

.about-art {
  position: relative;
  min-height: 330px;
  border-radius: 28px;
  overflow: hidden;
}

.about-art img {
  height: 330px;
}

.about-note {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 220px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.subscribe {
  padding: 34px 38px;
  border-radius: 24px;
  background: var(--orange);
}

.subscribe-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.subscribe h2 {
  margin-bottom: 6px;
  font-size: 28px;
}

.subscribe p {
  margin-bottom: 0;
  color: #69502a;
  font-size: 14px;
}

.subscribe-form {
  display: flex;
  min-width: min(100%, 390px);
  gap: 8px;
}

.subscribe-form input {
  flex: 1;
  min-width: 0;
  padding: 0 15px;
  border: 1px solid rgba(23, 20, 45, 0.15);
  border-radius: 12px;
  outline: 0;
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 13px;
}

.subscribe-form .button {
  color: #ffffff;
  background: var(--ink);
}

.site-footer {
  padding: 34px 0 20px;
  color: #d1ccdc;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 28px;
  padding-bottom: 32px;
}

.footer-brand {
  color: #ffffff;
}

.footer-grid h3 {
  margin-bottom: 11px;
  color: #ffffff;
  font-size: 14px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin-bottom: 5px;
  color: #aaa5bd;
  font-size: 12px;
}

.footer-grid a:hover {
  color: var(--orange);
}

.copyright {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #817b99;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    width: min(500px, 100%);
    margin: 0 auto;
  }

  .topic-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .drama-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-content {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav-wrap {
    display: block;
    padding: 13px 0 10px;
  }

  .brand {
    margin-bottom: 9px;
  }

  .nav-menu {
    margin: 0 -6px;
  }

  .nav-link {
    padding: 7px 8px;
    font-size: 12px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 320px;
    height: 320px;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    display: inline-block;
    margin-top: 9px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .drama-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .drama-body {
    padding: 12px;
  }

  .feature-card {
    min-height: 280px;
    padding: 24px;
  }

  .rank-item {
    grid-template-columns: 28px 45px 1fr auto;
    gap: 9px;
    padding: 12px;
  }

  .rank-thumb {
    width: 45px;
    height: 53px;
  }

  .rank-score {
    font-size: 12px;
  }

  .subscribe {
    padding: 25px 20px;
  }

  .subscribe-form {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .subscribe-form input {
    min-height: 46px;
  }

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

.poster-landscape-1200-800 {
  aspect-ratio: 1200/800;
  object-fit: cover;
}
