:root {
  --paper: #f7f3e8;
  --paper-2: #fffdf7;
  --ink: #322f28;
  --ink-soft: #6c6659;
  --line: rgba(70, 64, 50, 0.13);
  --accent: #3f7a4a;
  --accent-2: #c98a3a;
  --accent-soft: rgba(63, 122, 74, 0.1);
  --shadow-sm: 0 2px 10px rgba(70, 60, 40, 0.06);
  --shadow: 0 14px 40px rgba(70, 60, 40, 0.1);
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti TC", "Noto Serif TC", "Songti SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "PingFang SC",
    "Hiragino Sans", "Microsoft JhengHei", "Microsoft YaHei", "Noto Sans TC", system-ui, sans-serif;
}

/* 语言切换：默认显示英文 */
html[data-lang="en"] .lang-zh { display: none !important; }
html[data-lang="zh"] .lang-en { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(201, 138, 58, 0.07), transparent 70%),
    radial-gradient(50% 40% at 100% 10%, rgba(63, 122, 74, 0.08), transparent 70%);
}

.wrap { width: min(1080px, calc(100% - 44px)); margin: 0 auto; position: relative; z-index: 1; }

a { color: var(--accent); }

/* ---------------- header ---------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 232, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }

.brand-mark {
  width: 40px; height: 40px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #4c8a57, #2f6339);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 16px rgba(47, 99, 57, 0.28);
}

.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-txt strong { font-size: 15px; letter-spacing: 0.01em; font-family: var(--serif); }
.brand-txt small { color: var(--ink-soft); font-size: 11px; letter-spacing: 0.08em; }

.head-nav { display: flex; align-items: center; gap: 20px; }
.head-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.head-nav a:hover { color: var(--accent); }
.head-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.lang-switch {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-family: inherit;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-switch:hover { color: var(--accent); border-color: rgba(63, 122, 74, 0.4); background: #fff; }

/* ---------------- hero ---------------- */

.hero { padding: 96px 0 64px; }

.kicker {
  margin: 0 0 20px;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 0 0 24px;
  max-width: 18em;
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.hero h1 em { font-style: italic; color: var(--accent); }

.lead {
  margin: 0;
  max-width: 42em;
  color: var(--ink-soft);
  font-size: clamp(14.5px, 1.5vw, 17.5px);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.7);
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ---------------- sections ---------------- */

.section { padding: 34px 0 46px; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.sec-head h2 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: 0.01em; }
.sec-note { color: var(--ink-soft); font-size: 12px; letter-spacing: 0.08em; }

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

.card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(63, 122, 74, 0.32);
}

.ico {
  width: 96px; height: 96px;
  border-radius: 22px;
  display: block;
  object-fit: cover;
  background: var(--accent-soft);
  box-shadow: 0 6px 18px rgba(70, 60, 40, 0.14);
}

.card-txt h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.card-txt p { margin: 0; color: var(--ink-soft); font-size: 13px; }

.go { color: var(--ink-soft); font-size: 17px; transition: transform 0.22s ease, color 0.22s ease; }
.card:hover .go { transform: translateX(4px); color: var(--accent); }

.two-col { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.two-col h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.two-col p { margin: 0 0 14px; color: var(--ink-soft); max-width: 40em; }

.contact-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: 0.04em; }
.contact-card p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-soft); }
.contact-card a { font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(63, 122, 74, 0.35); }
.muted { opacity: 0.8; font-size: 12.5px; }

/* ---------------- doc pages ---------------- */

.doc-wrap {
  width: min(780px, calc(100% - 44px));
  margin: 0 auto;
  padding: 40px 0 80px;
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.back-link:hover { color: var(--accent); }

.doc h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.updated { margin: 0 0 30px; color: var(--ink-soft); font-size: 12.5px; letter-spacing: 0.08em; }

.doc h2 {
  margin: 34px 0 10px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.doc h3 { margin: 22px 0 6px; font-size: 14.5px; font-weight: 600; color: #423e34; }

.doc p { margin: 0 0 12px; color: #4a463c; font-size: 14.5px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin: 0 0 6px; color: #4a463c; font-size: 14.5px; }
.doc a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(63, 122, 74, 0.3); }

/* ---------------- footer ---------------- */

.site-foot {
  padding: 26px 0 calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}
.foot-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.foot-row a { color: var(--ink-soft); text-decoration: none; }
.foot-row a:hover { color: var(--accent); }
.dots { opacity: 0.45; }

/* ---------------- responsive ---------------- */

@media (max-width: 820px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 60px 0 42px; }
  .head-nav { gap: 14px; }
  .head-nav a { font-size: 12px; }
  .grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .card { grid-template-columns: 76px minmax(0, 1fr) 18px; gap: 14px; padding: 14px; }
  .ico { width: 76px; height: 76px; border-radius: 18px; }
  .doc-wrap { width: calc(100% - 32px); padding: 28px 0 56px; }
}

@media (max-width: 520px) {
  .brand-txt small { display: none; }
  .head-row { height: 64px; }
  .head-nav { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .go, .lang-switch { transition: none; }
  html { scroll-behavior: auto; }
}
