:root {
  color-scheme: light;
  --bg: #f6f2ea;
  --bg-alt: #fffaf3;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #1f2937;
  --muted: #5b6472;
  --brand: #295c4b;
  --brand-strong: #17382f;
  --accent: #d08a3f;
  --border: rgba(31, 41, 55, 0.12);
  --shadow: 0 24px 60px rgba(31, 41, 55, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1120px;
  --font-body: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-display: "Avenir Next", "Inter", "Noto Sans TC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(208, 138, 63, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(41, 92, 75, 0.16), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}

a {
  color: inherit;
}

.page {
  position: relative;
  overflow: hidden;
}

.page::before,
.page::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(36px);
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}

.page::before {
  top: -7rem;
  right: -7rem;
  background: rgba(41, 92, 75, 0.16);
}

.page::after {
  bottom: -7rem;
  left: -8rem;
  background: rgba(208, 138, 63, 0.14);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 24px 0 72px;
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #2f6a57 0%, #214a3d 100%);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: 160ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.75);
  color: var(--brand-strong);
  border-color: var(--border);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: 160ms ease;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

.lang-toggle button:hover {
  color: var(--brand-strong);
}

html[data-lang="en"] [data-lang-block="zh"],
html:not([data-lang]) [data-lang-block="en"],
html[data-lang="zh"] [data-lang-block="en"] {
  display: none;
}

html[data-lang="en"] [data-lang-block="en"] {
  display: revert;
}

.language-note {
  margin-top: 14px;
  color: var(--brand-strong);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero,
.panel,
.card,
.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  padding: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(41, 92, 75, 0.09);
  color: var(--brand-strong);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero h1,
.section h2,
.card h3,
.note h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1.04;
  margin-top: 18px;
}

.hero p,
.section p,
.card p,
.note p,
.meta,
li,
td,
th {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 13px 18px;
  transition: 160ms ease;
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.primary:hover {
  background: var(--brand-strong);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  color: var(--brand-strong);
}

.button.secondary:hover {
  border-color: rgba(41, 92, 75, 0.3);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,242,234,0.95));
  border-radius: 24px;
  border: 1px solid rgba(41, 92, 75, 0.14);
}

.hero-panel .stat {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.hero-panel .stat strong {
  display: block;
  font-size: 1rem;
  color: var(--brand-strong);
}

.hero-panel .stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.section {
  margin-top: 26px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.card,
.note {
  padding: 22px;
}

.card h3,
.note h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p,
.note p {
  margin: 0;
}

.card ul,
.note ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

th {
  color: var(--brand-strong);
  font-size: 0.92rem;
  background: rgba(41, 92, 75, 0.04);
}

.list {
  display: grid;
  gap: 14px;
}

.list-item {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
}

.list-item strong {
  display: block;
  color: var(--brand-strong);
  margin-bottom: 6px;
}

.footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(31, 41, 55, 0.1);
  color: var(--muted);
  font-size: 0.93rem;
}

.footer a {
  color: var(--brand-strong);
}

@media (max-width: 920px) {
  .hero,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .lang-toggle {
    align-self: flex-start;
  }
}

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

  .hero,
  .card,
  .note {
    padding: 18px;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
