:root {
  --paper: #f5f1e8;
  --paper-deep: #ece4d5;
  --ink: #272621;
  --muted: #68645b;
  --line: rgba(39, 38, 33, 0.14);
  --gold: #c98b2d;
  --gold-soft: #f0d9ae;
  --green: #4f8055;
  --green-soft: #dce8d8;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(52, 43, 27, 0.11);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 139, 45, 0.13), transparent 26rem),
    radial-gradient(circle at 90% 34%, rgba(79, 128, 85, 0.12), transparent 30rem),
    var(--paper);
  line-height: 1.7;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(201, 139, 45, 0.5);
  outline-offset: 4px;
  border-radius: 6px;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}

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

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 7px 18px rgba(39, 38, 33, 0.12);
}

.brand small {
  display: block;
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 580;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.76);
}

.language-link {
  border: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 24px;
  padding: 58px 0 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  background: var(--green);
  content: "";
}

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

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(2.75rem, 7vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-card {
  align-self: end;
  padding: 28px;
  border: 1px solid rgba(39, 38, 33, 0.1);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.75);
  box-shadow: var(--shadow);
}

.hero-card .status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px var(--green-soft);
}

.hero-card p { color: var(--muted); }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(39, 38, 33, 0.18);
}

.button.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button.is-unconfigured {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.3fr) minmax(0, 0.7fr);
  gap: 46px;
  align-items: start;
  padding: 38px 0 80px;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 22px;
  border-left: 2px solid var(--gold-soft);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.toc a:hover { color: var(--ink); }

.content-card {
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid rgba(39, 38, 33, 0.1);
  border-radius: 32px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow);
}

.section + .section {
  margin-top: 54px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.section h3 {
  margin: 28px 0 8px;
  font-size: 1.02rem;
}

.section p,
.section li { color: #504d46; }

.section ul,
.section ol { padding-left: 1.25rem; }

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

.callout {
  margin: 26px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--green);
  border-radius: 0 16px 16px 0;
  background: var(--green-soft);
}

.callout strong { color: var(--ink); }

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.meta-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.meta-item dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meta-item dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.faq-list { border-top: 1px solid var(--line); }

details { border-bottom: 1px solid var(--line); }

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  color: var(--gold);
  content: "+";
  font-size: 1.45rem;
  font-weight: 400;
}

details[open] summary::after { content: "−"; }

details p { padding-right: 28px; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

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

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

.footer-links a:hover { color: var(--ink); }

.language-home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 0;
}

.language-panel {
  width: min(900px, calc(100% - 40px));
  padding: clamp(30px, 7vw, 76px);
  border: 1px solid rgba(39, 38, 33, 0.1);
  border-radius: 38px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
  text-align: center;
}

.language-panel img {
  width: 92px;
  height: 92px;
  margin-bottom: 24px;
  border-radius: 25px;
  box-shadow: 0 14px 34px rgba(39, 38, 33, 0.14);
}

.language-panel h1 {
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2.7rem, 8vw, 5.2rem);
}

.language-panel > p {
  max-width: 580px;
  margin-right: auto;
  margin-bottom: 34px;
  margin-left: auto;
  color: var(--muted);
}

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

.language-option {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  text-align: left;
}

.language-option strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.language-option a {
  display: inline-block;
  margin-right: 14px;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.language-option a:hover { text-decoration: underline; }

@media (max-width: 780px) {
  .site-shell { width: min(100% - 28px, 1120px); }
  .site-header { align-items: flex-start; }
  .nav a:not(.language-link) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 38px; }
  .hero-card { align-self: stretch; }
  .content-grid { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; display: none; }
  .content-card { border-radius: 24px; }
  .meta-list { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .language-options { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
