:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --paper-deep: #f3eadc;
  --ink: #24211d;
  --muted: #746b60;
  --line: #ded1bf;
  --accent: #a5523a;
  --accent-deep: #743827;
  --green: #667a63;
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(70, 48, 30, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(251, 247, 239, 0.94)),
    radial-gradient(circle at 14% 8%, rgba(165, 82, 58, 0.11), transparent 34%),
    var(--paper);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-hero,
.article-header {
  min-height: 88vh;
  padding: 24px clamp(18px, 4vw, 56px) 54px;
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  max-width: 1180px;
  min-height: calc(88vh - 90px);
  margin: 0 auto;
  padding-top: 60px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.article-title-wrap h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.tagline {
  margin: 22px 0 0;
  color: var(--accent-deep);
  font-size: clamp(24px, 3vw, 38px);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

.intro,
.article-title-wrap p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
  color: var(--muted);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
  font-weight: 700;
}

.editor-note {
  padding: 24px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.editor-note > p {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 800;
}

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

.latest-list a {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.latest-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px clamp(18px, 4vw, 56px) 72px;
}

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

.toolbar h2 {
  margin: 0;
  font-size: 32px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

.search-box {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}

.filter-button {
  min-height: 38px;
  padding: 7px 12px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-button.is-active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

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

.article-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(70, 48, 30, 0.07);
}

.card-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-deep);
}

.card-cover img,
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 190px;
  place-items: center;
  color: var(--accent-deep);
  background: linear-gradient(135deg, #f6eadb, #dfe7d9);
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-body h2 {
  margin: 12px 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.empty-state {
  margin: 36px 0 0;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 34px 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.article-header {
  min-height: auto;
}

.article-nav {
  margin-bottom: 48px;
}

.article-title-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.article-title-wrap h1 {
  font-size: clamp(34px, 6vw, 72px);
}

.article-cover {
  overflow: hidden;
  max-width: 980px;
  aspect-ratio: 16 / 8.5;
  margin: 42px auto 0;
  background: var(--paper-deep);
  border-radius: 8px;
}

.article-shell {
  max-width: 820px;
}

.article-content {
  color: #302c27;
  font-size: 18px;
  line-height: 1.95;
}

.article-content > div,
.article-content section,
.article-content p {
  max-width: 100%;
}

.article-content p,
.article-content section {
  margin: 1.2em 0;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  margin: 2.2em 0 1em;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  line-height: 1.35;
}

.article-content h2 {
  color: var(--accent-deep);
  font-size: 26px;
}

.article-content strong {
  color: var(--accent-deep);
}

.article-content blockquote {
  margin: 28px 0;
  padding: 2px 0 2px 18px;
  color: var(--muted);
  border-left: 3px solid var(--accent);
}

.article-content ul,
.article-content ol {
  padding-left: 1.4em;
}

.article-content img {
  width: auto;
  max-height: 620px;
  margin: 30px auto;
  border-radius: 8px;
}

.article-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 54px;
}

.article-pager a {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.article-pager span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

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

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

  .search-box {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .site-hero,
  .article-header {
    min-height: auto;
    padding-bottom: 38px;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .tagline {
    font-size: 26px;
  }

  .intro,
  .article-title-wrap p,
  .article-content {
    font-size: 16px;
  }

  main {
    padding-top: 34px;
  }

  .article-cover {
    aspect-ratio: 4 / 3;
  }

  .article-pager {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
