/* ============================================
   今晚看什么 — 样式表
   纯 CSS，无框架，无 JS。目的是加载快、结构清晰。
   ============================================ */

:root {
  --bg: #fbf9f5;
  --fg: #1c1a17;
  --muted: #6f675e;
  --line: #e6dfd3;
  --accent: #b4461c;
  --card: #fffdf9;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ---------- 布局 ---------- */

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 249, 245, 0.92);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.logo:hover { text-decoration: none; }

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
}

.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- 主体 ---------- */

main { padding: 48px 0 72px; }

h1 {
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h2 {
  font-size: 21px;
  line-height: 1.4;
  margin: 40px 0 14px;
}

h3 {
  font-size: 17px;
  margin: 28px 0 8px;
}

p { margin: 0 0 16px; }

.lede {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ---------- 首页 hero ---------- */

.hero { padding: 8px 0 40px; }

.hero h1 {
  font-size: 36px;
  margin-bottom: 18px;
}

/* ---------- 卡片 ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0 8px;
  padding: 0;
  list-style: none;
}

.card {
  display: block;
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.card .card-title {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.card .card-desc {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- 片单 ---------- */

.film-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  counter-reset: film;
}

.film {
  position: relative;
  padding: 18px 0 18px 46px;
  border-bottom: 1px solid var(--line);
  counter-increment: film;
}

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

.film::before {
  content: counter(film);
  position: absolute;
  left: 0;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-name {
  font-weight: 700;
  font-size: 17px;
}

.film-year {
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  margin-left: 6px;
}

.film-why {
  margin: 6px 0 0;
  font-size: 15px;
  color: #3a3530;
}

.film-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  padding-left: 10px;
  border-left: 2px solid var(--line);
}

/* ---------- 提示块 ---------- */

.callout {
  background: #f4efe6;
  border-left: 3px solid var(--accent);
  padding: 16px 18px;
  margin: 28px 0;
  font-size: 15px;
  border-radius: 0 6px 6px 0;
}

.callout p:last-child { margin-bottom: 0; }

/* ---------- 相关阅读 ---------- */

.related {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-size: 17px;
  margin-top: 0;
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related li { margin-bottom: 10px; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

/* ---------- 移动端 ---------- */

@media (max-width: 560px) {
  body { font-size: 15px; }
  main { padding: 32px 0 56px; }
  h1 { font-size: 25px; }
  .hero h1 { font-size: 28px; }
  .film { padding-left: 40px; }
  .film::before { width: 26px; height: 26px; }
}
