:root {
  color-scheme: light;
  --ink: #1c2430;
  --muted: #667085;
  --paper: #fbfaf7;
  --line: #e5e1d8;
  --amber: #c67a31;
  --moss: #4f7a68;
  --blue: #243c5a;
  --rose: #a84d5f;
  --shadow: 0 18px 45px rgba(28, 36, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  min-height: 82vh;
  background-image:
    linear-gradient(90deg, rgba(20, 27, 37, 0.76), rgba(20, 27, 37, 0.34) 45%, rgba(20, 27, 37, 0.08)),
    url("assets/hero.png");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  flex-direction: column;
}

.nav {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.nav-links a:hover {
  color: white;
}

.hero {
  width: min(1120px, calc(100% - 40px));
  margin: auto auto 72px;
}

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

.eyebrow,
.section-kicker,
.post-meta {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b36c;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 1;
  letter-spacing: 0;
}

.hero p:last-child {
  max-width: 580px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 56px;
  align-items: start;
}

h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.18;
}

.intro > p {
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

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

.post-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(28, 36, 48, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 122, 49, 0.5);
  box-shadow: var(--shadow);
}

.post-card h3 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.35;
}

.post-card h3 a:hover {
  color: var(--amber);
}

.post-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.film {
  border-top: 4px solid var(--rose);
}

.anime {
  border-top: 4px solid var(--moss);
}

.site-footer {
  padding: 28px 20px 34px;
  color: #7a746d;
  text-align: center;
  font-size: 14px;
}

.site-footer a {
  color: inherit;
}

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

.article-header {
  background: #17202b;
  color: white;
  padding-bottom: 64px;
}

.article-nav {
  width: min(860px, calc(100% - 40px));
}

.article-hero {
  width: min(860px, calc(100% - 40px));
  margin: 42px auto 0;
}

.article-hero h1 {
  max-width: 780px;
  font-size: clamp(40px, 7vw, 72px);
}

.article-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.article {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.article h2 {
  margin: 44px 0 14px;
  font-size: 26px;
}

.article p,
.article li {
  color: #3e4652;
  font-size: 17px;
}

.article code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eee8dd;
  color: var(--blue);
  font-family: Consolas, "Courier New", monospace;
}

.back-link {
  display: inline-flex;
  margin-top: 26px;
  color: #f0b36c;
  font-weight: 700;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 76vh;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

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

  .section {
    padding: 52px 0;
  }

  .intro > p {
    margin-top: 0;
  }

  .post-card {
    min-height: 0;
  }
}
