:root {
  --bg: #f6f2eb;
  --paper: rgba(255, 252, 247, 0.86);
  --ink: #171411;
  --muted: #6c635d;
  --line: #d8cdc1;
  --accent: #8f3b2e;
  --max: 860px;
  --shadow: 0 16px 40px rgba(88, 65, 44, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Georgia", "Noto Serif SC", "Times New Roman", serif;
  line-height: 1.8;
  background:
    radial-gradient(circle at top left, rgba(203, 168, 137, 0.22), transparent 28%),
    linear-gradient(180deg, #f8f5ef 0%, #f3eee6 100%);
}

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

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

.article-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.article-nav {
  margin-bottom: 22px;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(23, 20, 17, 0.08);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.article-nav a {
  color: var(--muted);
}

.article-nav a:hover,
.article-nav a:focus-visible {
  color: var(--accent);
}

/* 语言切换按钮 */
.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-switcher button {
  min-width: 70px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.75);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.lang-switcher button.active,
.lang-switcher button:hover,
.lang-switcher button:focus-visible {
  background: var(--ink);
  color: #fffaf4;
  border-color: var(--ink);
}

.article {
  padding: 42px;
  border: 1px solid rgba(23, 20, 17, 0.08);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

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

h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  line-height: 1;
}

.lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: 20px;
}

section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

h2 {
  margin-bottom: 12px;
  font-size: 26px;
  font-weight: 500;
}

p + p {
  margin-top: 14px;
}

figure {
  margin: 18px 0;
}

figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 250, 243, 0.7);
}

@media (max-width: 640px) {
  .article-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .article {
    padding: 26px;
  }
}
