:root {
  color-scheme: light;
  --ink: #171312;
  --muted: #6b625a;
  --paper: #f7f3ea;
  --paper-strong: #fffaf0;
  --line: #ddd0bd;
  --red: #a82e24;
  --red-dark: #6f1813;
  --gold: #b78337;
  --green: #2f5c4c;
  --charcoal: #211816;
  --shadow: 0 16px 40px rgba(36, 22, 14, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(70, 45, 26, 0.16);
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: var(--charcoal);
  color: #f6d58c;
  font-family: "Songti SC", serif;
  font-size: 24px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
  white-space: nowrap;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #423833;
  font-size: 14px;
}

.top-nav a {
  padding: 9px 12px;
  border-radius: 6px;
}

.top-nav a:hover {
  background: rgba(120, 64, 28, 0.1);
}

.hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(34px, 7vw, 92px) clamp(18px, 5vw, 72px) clamp(46px, 6vw, 86px);
  background:
    linear-gradient(90deg, rgba(247, 243, 234, 0.98), rgba(247, 243, 234, 0.83)),
    radial-gradient(circle at 82% 34%, rgba(168, 46, 36, 0.18), transparent 36%),
    linear-gradient(135deg, #f7f3ea, #e9ddc7);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 780px;
  overflow-wrap: anywhere;
}

.hero h1 span {
  display: block;
}

.hero-subtitle {
  max-width: 650px;
  margin: 26px 0 0;
  color: #3b3430;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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

.primary-link,
.secondary-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
}

.primary-link {
  background: var(--red);
  color: #fff8ee;
  box-shadow: 0 10px 24px rgba(130, 29, 20, 0.2);
}

.secondary-link {
  border: 1px solid rgba(60, 39, 24, 0.28);
  background: rgba(255, 250, 240, 0.58);
}

.text-link {
  min-height: 36px;
  padding: 0 12px;
  color: var(--green);
}

.hero-board {
  position: relative;
  min-height: 560px;
}

.hero-board img {
  position: absolute;
  width: min(78%, 680px);
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  border: 1px solid rgba(255, 244, 218, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #201611;
}

.hero-board img:nth-child(1) {
  top: 8px;
  right: 0;
  transform: rotate(1deg);
}

.hero-board img:nth-child(2) {
  top: 188px;
  left: 0;
  transform: rotate(-2deg);
}

.hero-board img:nth-child(3) {
  right: 46px;
  bottom: 0;
  transform: rotate(2deg);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--charcoal);
  color: #f7ead1;
}

.stats-band div {
  min-height: 132px;
  padding: 28px clamp(18px, 4vw, 64px);
  border-right: 1px solid rgba(255, 238, 199, 0.16);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong {
  display: block;
  font-family: "Songti SC", serif;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
}

.stats-band span {
  display: block;
  margin-top: 10px;
  color: #d9c39f;
  font-size: 15px;
}

.section-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 34px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: start;
}

.intro-grid h2,
.section-head h2,
.feature-strip h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.18;
  letter-spacing: 0;
}

.intro-grid p:not(.section-kicker),
.feature-strip p {
  margin: 0;
  color: #433b35;
  font-size: 19px;
  line-height: 2;
}

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

.column-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.column-card {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 10px 30px rgba(51, 34, 20, 0.06);
}

.column-card.is-empty {
  opacity: 0.58;
}

.column-card strong {
  display: block;
  font-family: "Songti SC", serif;
  font-size: 26px;
  line-height: 1.25;
}

.column-card p {
  min-height: 72px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.column-card span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(47, 92, 76, 0.1);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.feature-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(26px, 5vw, 60px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) clamp(18px, 6vw, 78px);
  background: #ede2d0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-strip img {
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #221714;
}

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

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 10px 28px rgba(53, 34, 20, 0.08);
}

.article-card img {
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  background: #211816;
}

.article-card-content {
  padding: 18px 18px 20px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.article-card h3 {
  margin: 0;
  font-family: "Songti SC", serif;
  font-size: 22px;
  line-height: 1.35;
}

.article-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 360px);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.search-box span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 22px;
}

.filter-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
  color: #473b34;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.filter-button.is-active {
  border-color: var(--red);
  background: var(--red);
  color: #fff8ee;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--charcoal);
  color: #f0dfbd;
}

.site-footer span {
  color: #d2b889;
}

.reader-body {
  background: #eee5d5;
}

.reader-header {
  background: rgba(238, 229, 213, 0.94);
}

.reader-shell {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 72px);
}

.reader-side {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  overflow: auto;
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.reader-side h1 {
  margin: 0;
  font-family: "Songti SC", serif;
  font-size: 34px;
  line-height: 1.25;
}

.reader-side p {
  color: var(--muted);
  line-height: 1.8;
}

.reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.reader-meta span,
.mini-list a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  background: rgba(47, 92, 76, 0.1);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.reader-meta span {
  padding: 0 10px;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.mini-list a {
  justify-content: flex-start;
  min-height: auto;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--paper-strong);
  color: #453a32;
  line-height: 1.55;
}

.mini-list a.is-current {
  background: var(--charcoal);
  color: #f0dfbd;
}

.reader-frame-wrap {
  padding: 26px;
}

.reader-frame-wrap iframe {
  width: 100%;
  min-height: calc(100vh - 124px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.not-found {
  max-width: 720px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 18vh 24px;
}

.not-found h1 {
  margin: 0;
  font-family: "Songti SC", serif;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.15;
}

.not-found p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

@media (max-width: 1060px) {
  .hero,
  .feature-strip,
  .intro-grid,
  .reader-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-board {
    min-height: 440px;
  }

  .hero-board img {
    width: 72%;
  }

  .column-grid,
  .latest-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reader-side {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero-board {
    min-height: 350px;
    overflow: hidden;
  }

  .hero-board img {
    width: 82%;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.05;
  }

  .hero-subtitle {
    max-width: 18em;
    word-break: break-all;
  }

  .stats-band,
  .column-grid,
  .latest-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    min-height: 106px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 238, 199, 0.16);
  }

  .section-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .reader-frame-wrap {
    padding: 12px;
  }

  .reader-frame-wrap iframe {
    min-height: 76vh;
  }
}
