:root {
  color-scheme: light;
  --bg: #f3f1ec;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #1d2522;
  --muted: #66716c;
  --line: #d8ded8;
  --accent: #0f6f61;
  --accent-strong: #084c43;
  --accent-soft: #e4f1ed;
  --gold: #a36a16;
  --gold-soft: #fff1d8;
  --shadow: 0 24px 60px rgba(29, 37, 34, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 111, 97, 0.08), transparent 38%),
    linear-gradient(315deg, rgba(163, 106, 22, 0.10), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Noto Sans", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
  letter-spacing: 0;
}

body[data-lang="zh"] [data-lang-block="en"],
body[data-lang="en"] [data-lang-block="zh"] {
  display: none !important;
}

a {
  color: var(--accent);
  font-weight: 700;
  text-underline-offset: 0.22em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px;
  border: 1px solid rgba(216, 222, 216, 0.84);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 30px rgba(29, 37, 34, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-strong);
  color: #fffdf8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.top-nav a,
.language-switch button,
.button {
  min-height: 40px;
  border-radius: 8px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
}

.top-nav a[aria-current="page"],
.top-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.language-switch button {
  border: 0;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.language-switch button[aria-pressed="true"] {
  background: var(--accent-strong);
  color: #fffdf8;
}

.home-shell,
.legal-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 32px auto 64px;
}

.hero,
.legal-document,
.meta-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(32px, 7vw, 72px);
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 36px 0 12px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
}

p,
li,
td,
th,
dd {
  font-size: 16px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  text-decoration: none;
}

.button.primary {
  background: var(--accent-strong);
  color: #fffdf8;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--accent-strong);
}

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

.document-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.document-card h2 {
  margin-top: 0;
}

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

.meta-panel {
  margin-top: 16px;
  padding: 20px 24px;
}

.meta-panel dl,
.document-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.legal-document {
  padding: clamp(24px, 5vw, 56px);
}

.document-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  text-decoration: none;
}

.notice {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid #edd1a4;
  border-radius: 8px;
  background: var(--gold-soft);
  color: #69430c;
  font-weight: 700;
}

section p,
section li {
  color: #33403b;
}

ul {
  padding-left: 1.2em;
}

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

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--surface-strong);
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .top-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .language-switch {
    width: 100%;
  }

  .language-switch button {
    flex: 1;
  }

  .document-grid,
  .meta-panel dl,
  .document-meta {
    grid-template-columns: 1fr;
  }

  .home-shell,
  .legal-shell {
    width: min(100% - 20px, 1040px);
    margin-top: 14px;
  }

  .hero,
  .legal-document {
    padding: 24px 18px;
  }
}
