:root {
  --bg: #f4efe6;
  --paper: rgba(255, 251, 245, 0.84);
  --panel: rgba(255, 248, 238, 0.92);
  --text: #1f1b17;
  --muted: #665c52;
  --line: rgba(73, 53, 31, 0.12);
  --accent: #d96b2b;
  --accent-deep: #8a3d17;
  --accent-soft: #f6d3b8;
  --success: #256c45;
  --shadow: 0 24px 80px rgba(86, 50, 18, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 107, 43, 0.18), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(77, 124, 89, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f2ea 0%, #f2eadf 52%, #efe7da 100%);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(95, 65, 38, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 65, 38, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 92%);
}

a {
  color: inherit;
}

.shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(244, 239, 230, 0.74);
  border-bottom: 1px solid rgba(73, 53, 31, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff8f1;
  background: linear-gradient(135deg, #d96b2b 0%, #b74d18 100%);
  box-shadow: 0 12px 28px rgba(183, 77, 24, 0.28);
  font-family: "Iowan Old Style", "Songti SC", "STSong", serif;
  font-size: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--accent-deep);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 247, 238, 0.92);
  border: 1px solid rgba(73, 53, 31, 0.08);
  box-shadow: 0 8px 24px rgba(86, 50, 18, 0.08);
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.lang-button:hover {
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.lang-button.active {
  color: #fff7f2;
  background: linear-gradient(135deg, #d96b2b 0%, #b74d18 100%);
  box-shadow: 0 10px 20px rgba(183, 77, 24, 0.22);
}

.hero {
  padding: 72px 0 28px;
}

.hero-card,
.panel,
.article {
  background: var(--paper);
  border: 1px solid rgba(73, 53, 31, 0.08);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: 36px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -6% -28% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 107, 43, 0.22), transparent 70%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 243, 230, 0.9);
  color: var(--accent-deep);
  border: 1px solid rgba(183, 77, 24, 0.12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: end;
}

.hero h1,
.article h1,
.article h2,
.article h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Songti SC", "STSong", serif;
  letter-spacing: -0.02em;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
}

.hero p {
  margin: 18px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.btn-primary {
  color: #fff7f2;
  background: linear-gradient(135deg, #d96b2b 0%, #b74d18 100%);
  box-shadow: 0 16px 30px rgba(183, 77, 24, 0.24);
}

.btn-secondary {
  color: var(--accent-deep);
  background: rgba(255, 250, 244, 0.7);
  border-color: rgba(183, 77, 24, 0.18);
}

.hero-aside {
  position: relative;
  z-index: 1;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 245, 234, 0.95), rgba(255, 251, 246, 0.88));
  border: 1px solid rgba(73, 53, 31, 0.08);
}

.hero-stat {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(73, 53, 31, 0.08);
}

.hero-stat:last-child {
  border-bottom: 0;
}

.hero-stat strong {
  font-size: 24px;
  font-family: "Iowan Old Style", "Songti SC", "STSong", serif;
}

.hero-stat span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 18px 0 24px;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

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

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

.panel {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.panel h3 {
  margin: 12px 0 10px;
  font-size: 28px;
}

.panel p,
.panel li {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 108, 69, 0.12);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.article {
  margin: 48px auto;
  padding: 34px;
  border-radius: 34px;
}

.article h1 {
  font-size: clamp(32px, 4.5vw, 50px);
}

.article h2 {
  margin-top: 28px;
  font-size: 24px;
}

.article h3 {
  margin-top: 22px;
  font-size: 18px;
}

.article p,
.article li {
  color: var(--muted);
}

.article ul {
  padding-left: 20px;
}

.article li + li {
  margin-top: 8px;
}

.footer {
  padding: 24px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.footer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(73, 53, 31, 0.08);
  background: rgba(255, 250, 243, 0.75);
}

.list-clean {
  margin: 0;
  padding-left: 18px;
}

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

.meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 242, 227, 0.86);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .footer-card {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-card,
  .article,
  .panel {
    padding: 24px;
  }

  .hero {
    padding-top: 40px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 20px), var(--content));
  }

  .hero h1 {
    font-size: 38px;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .language-switcher {
    width: 100%;
    flex-wrap: wrap;
  }

  .lang-button {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }
}
