:root {
  --bg: #f5f1e7;
  --paper: rgba(255, 252, 246, 0.88);
  --paper-strong: #fffdf8;
  --text: #2d241b;
  --muted: #6b5c4d;
  --line: rgba(78, 61, 43, 0.12);
  --brand: #b45a28;
  --brand-dark: #8b431a;
  --accent: #dca356;
  --shadow: 0 24px 60px rgba(88, 59, 28, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(220, 163, 86, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(180, 90, 40, 0.15), transparent 26%),
    linear-gradient(180deg, #f8f3e8 0%, #efe8d8 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(120, 97, 73, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 97, 73, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 95%);
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.site-header,
.hero-card,
.section-card,
.topic-card,
.timeline-item,
.faq-item,
.site-footer,
.stat-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper);
  backdrop-filter: blur(10px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff7ee;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
}

.brand-block h1,
.section-heading h2,
.section-heading h3,
.hero-copy h2,
.feature-card h4,
.topic-card h3,
.timeline-item h3,
.faq-item h3,
.site-footer strong {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-block p,
.hero-copy p,
.section-heading p,
.feature-card p,
.topic-card p,
.timeline-item p,
.faq-item p,
.site-footer p,
.plain-list,
.footer-meta {
  margin: 0;
}

.eyebrow {
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link,
.primary-btn,
.secondary-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff9f1;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  box-shadow: 0 14px 24px rgba(139, 67, 26, 0.24);
  transform: translateY(-1px);
}

.content-area {
  margin-top: 24px;
}

.view-panel {
  display: none;
  animation: fade-in 0.35s ease;
}

.view-panel.is-active {
  display: block;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-copy h2 {
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: 1.08;
}

.hero-text {
  max-width: 740px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.secondary-btn {
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
}

.primary-btn {
  color: #fff9f1;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.secondary-btn {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(180, 90, 40, 0.18);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.hero-side {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 110px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(251, 245, 234, 0.82));
}

.mini-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-card strong {
  margin-top: 8px;
  font-size: 1.08rem;
  line-height: 1.5;
}

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

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-md);
}

.stat-card strong {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2.25rem;
  color: var(--brand);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-card,
.compact-card {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.section-heading h2,
.section-heading h3 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

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

.feature-card {
  min-height: 150px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.feature-card h4,
.topic-card h3,
.timeline-item h3,
.faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p,
.topic-card p,
.timeline-item p,
.faq-item p,
.site-footer p,
.footer-meta span,
.footer-meta a,
.plain-list li {
  color: var(--muted);
  line-height: 1.75;
}

.footer-meta a {
  text-decoration: none;
  border-bottom: 1px solid rgba(180, 90, 40, 0.28);
}

.footer-meta a:hover {
  color: var(--brand-dark);
}

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

.topic-list,
.faq-list {
  display: grid;
  gap: 14px;
}

.topic-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-md);
}

.topic-index,
.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff9f1;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-weight: 700;
}

.topic-index {
  width: 58px;
  min-height: 58px;
  border-radius: 18px;
  font-size: 1rem;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item,
.faq-item {
  padding: 20px;
  border-radius: var(--radius-md);
}

.timeline-step {
  margin-bottom: 12px;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(180, 90, 40, 0.16);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.site-footer strong {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
  text-align: right;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .site-header,
  .site-footer,
  .hero-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

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

  .footer-meta {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 14px;
  }

  .site-header,
  .hero-card,
  .section-card,
  .topic-card,
  .timeline-item,
  .faq-item,
  .site-footer,
  .stat-card {
    border-radius: 22px;
  }

  .site-nav,
  .hero-actions {
    width: 100%;
  }

  .nav-link,
  .primary-btn,
  .secondary-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }

  .stats-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .topic-card {
    grid-template-columns: 1fr;
  }
}
