/* ============================================================
   page.css — 内容页共用（清单/榜单型页面）
   配色与排版沿用 index.html 的变量，保证进站不出戏
   ============================================================ */

:root {
  --paper: #ffffff;
  --paper-soft: #f8f6f7;
  --ink: #15151b;
  --ink-2: #52525f;
  --ink-3: #8c8c9a;
  --line: #e7e3e6;
  --brand: #ec2a6a;
  --brand-deep: #c11b52;
  --brand-wash: #fceef3;
  --shell: 860px;
  --gutter: 24px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 顶栏 ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.topbar__brand span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.topbar__link {
  font-size: 14px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}

.topbar__link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- 页头 ---------- */

.page-head {
  padding: 64px 0 40px;
}

.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 20px;
}

.page-head h1 {
  font-size: clamp(30px, 5.2vw, 44px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.page-head h1 em {
  font-style: normal;
  color: var(--brand);
}

.lede {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-2);
  margin: 0;
  max-width: 640px;
}

/* 「如果只看一部」的钩子块 */
/* ---------- 分档 ---------- */

.tier {
  padding: 44px 0 8px;
  border-top: 1px solid var(--line);
}

.tier + .tier { margin-top: 12px; }

.tier__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tier__head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.tier__tag {
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-wash);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tier__note {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 8px;
}

/* ---------- 剧集条目 ---------- */

.list {
  display: flex;
  flex-direction: column;
}

.show {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.show:last-child { border-bottom: 0; }

.show__poster {
  display: block;
  width: 86px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-soft);
  box-shadow: 0 2px 6px rgba(21, 21, 27, 0.14);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

.show__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 3px;
}

.show__rate {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.show__rate span {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 1px;
}

.show__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.show__en {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 6px;
}

.show__meta {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
  display: inline-block;
}

.show__why {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0;
}

.show__why strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 收尾 CTA ---------- */

.cta {
  margin: 56px 0 72px;
  padding: 32px;
  border-radius: 16px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.cta h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.cta p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 20px;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  transition: background 0.2s;
}

.btn:hover { background: var(--brand-deep); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  margin-left: 10px;
}

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

/* ---------- 页脚 ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
}

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

@media (max-width: 640px) {
  .page-head { padding: 40px 0 28px; }
  .show { grid-template-columns: 52px 1fr; gap: 14px; padding: 18px 0; }
  .show__rate { font-size: 22px; }
  .cta { padding: 24px; }
  .btn--ghost { margin: 12px 0 0; display: block; text-align: center; }
}

/* 缺图占位：灰底 + 片名首字，避免出现裂图 */
.show__poster--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  box-shadow: none;
}
