:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --surface: #fffaf0;
  --surface-strong: #ffffff;
  --ink: #1f2933;
  --muted: #667085;
  --line: #e3dccd;
  --green: #2f6f5e;
  --blue: #2f5d8c;
  --red: #b5523a;
  --gold: #c38a2e;
  --shadow: 0 18px 50px rgba(57, 49, 35, 0.12);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  line-height: 1.75;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(245, 241, 232, 0.98)),
    radial-gradient(circle at 15% 10%, rgba(195, 138, 46, 0.18), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(47, 111, 94, 0.16), transparent 32%);
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(227, 220, 205, 0.82);
  background: rgba(255, 250, 240, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-grid,
.section-heading,
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner {
  min-height: 76px;
}

.brand,
.site-nav,
.footer-links,
.hero-actions,
.tag-row,
.filter-bar {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  box-shadow: 8px 8px 0 rgba(181, 82, 58, 0.18);
}

.site-nav {
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.site-nav a,
.filter-bar a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a {
  padding: 8px 14px;
}

.site-nav a:hover,
.site-nav a.active,
.filter-bar a.active,
.filter-bar a:hover {
  color: var(--ink);
  background: var(--surface-strong);
}

.hero {
  padding: 58px 0 46px;
}

.hero-grid,
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero h1,
.page-heading h1,
.about-hero h1,
.article-header h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1.02;
}

.hero-lede,
.page-heading p,
.about-hero p,
.article-header p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button,
.subscribe-form button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(47, 111, 94, 0.18);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
}

.button-secondary {
  color: var(--ink);
  background: var(--surface-strong);
}

.hero-photo,
.feature-card,
.post-card,
.content-panel,
.profile-panel,
.timeline-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: var(--shadow);
}

.hero-photo {
  margin: 0;
  overflow: hidden;
}

.hero-photo img,
.about-hero img,
.article-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-photo figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section,
.page-heading,
.about-layout,
.timeline {
  padding: 54px 0;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.newsletter h2,
.timeline h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.text-link,
.back-link,
.footer-links a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 18px;
}

.feature-card,
.post-card,
.content-panel,
.profile-panel {
  padding: 24px;
}

.feature-card.large {
  grid-row: span 2;
}

.feature-card.large img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.feature-card.accent {
  background: #f2eadb;
}

.meta {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 800;
}

.feature-card h3,
.post-card h2 {
  margin-bottom: 10px;
  line-height: 1.25;
}

.feature-card a,
.post-card a {
  text-decoration: none;
}

.feature-card p,
.post-card p,
.content-panel p,
.timeline p {
  color: var(--muted);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.topic-grid article {
  padding: 24px 0;
  border-top: 2px solid var(--ink);
}

.topic-icon {
  color: var(--gold);
  font-weight: 900;
}

.newsletter {
  margin-top: 24px;
  padding: 48px 0;
  color: #fff;
  background: #213d36;
}

.newsletter .eyebrow {
  color: #f1c27d;
}

.subscribe-form {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  gap: 10px;
}

.subscribe-form input {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.subscribe-form button {
  min-height: 48px;
  padding: 0 18px;
  color: var(--ink);
  background: #f1c27d;
}

.page-heading {
  padding-bottom: 28px;
}

.filter-bar {
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-bar a {
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 64px;
}

.tag-row {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--blue);
  background: rgba(47, 93, 140, 0.1);
  font-size: 0.82rem;
  font-weight: 800;
}

.about-hero {
  padding: 56px 0 26px;
}

.about-hero img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}

.check-list {
  padding-left: 20px;
}

.check-list li {
  margin-bottom: 10px;
}

.profile-panel dl,
.profile-panel dd {
  margin: 0;
}

.profile-panel div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.profile-panel div:last-child {
  border-bottom: 0;
}

.profile-panel dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-panel dd {
  font-weight: 800;
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.timeline-list article span {
  color: var(--red);
  font-weight: 900;
}

.article {
  padding: 54px 0 72px;
}

.article-header,
.article-body {
  width: min(760px, 100%);
  margin: 0 auto;
}

.article-header h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.article-cover {
  width: min(980px, 100%);
  max-height: 520px;
  margin: 32px auto 42px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-body {
  color: #334155;
  font-size: 1.06rem;
}

.article-body h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.65rem;
}

.article-body blockquote {
  margin: 34px 0;
  border-left: 5px solid var(--gold);
  padding: 18px 22px;
  color: var(--ink);
  background: #fff7e8;
  font-size: 1.18rem;
  font-weight: 800;
}

.article-body code {
  border-radius: 5px;
  padding: 2px 6px;
  background: rgba(47, 93, 140, 0.1);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: rgba(255, 250, 240, 0.75);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-stack {
  display: grid;
  gap: 10px;
}

.footer-links {
  gap: 16px;
  flex-wrap: wrap;
}

.beian-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

.beian-links a {
  text-decoration: none;
}

.beian-links a:hover {
  color: var(--blue);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .hero-grid,
  .about-hero,
  .featured-grid,
  .about-layout,
  .posts-grid,
  .timeline-list {
    grid-template-columns: 1fr;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-inner,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1,
  .page-heading h1,
  .about-hero h1,
  .article-header h1 {
    font-size: 2.35rem;
  }

  .topic-grid,
  .subscribe-form {
    grid-template-columns: 1fr;
  }

  .section,
  .page-heading,
  .about-layout,
  .timeline {
    padding: 38px 0;
  }
}
