:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-soft: #f1f7f5;
  --ink: #10231f;
  --muted: #5d6f6a;
  --line: #d9e5e1;
  --teal: #0f766e;
  --teal-dark: #0d4f49;
  --shadow: 0 18px 42px rgba(7, 35, 31, 0.08);
  --radius: 8px;
  --container: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0) 280px),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.66;
}

a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 253, 252, 0.92);
  border-bottom: 1px solid rgba(216, 228, 224, 0.72);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  color: #fff;
  background: var(--teal);
  box-shadow: 0 7px 16px rgba(15, 118, 110, 0.18);
  font-size: 15px;
  font-weight: 850;
}

.brand-copy { min-width: 0; }
.eyebrow {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 740;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-title {
  max-width: 260px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 730;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-lang="zh"] .brand { gap: 12px; }
body[data-lang="zh"] .brand-copy { display: grid; gap: 2px; }
body[data-lang="zh"] .eyebrow {
  font-size: 10.5px;
  font-weight: 720;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
body[data-lang="zh"] .brand-title {
  font-size: 15.5px;
  font-weight: 740;
  line-height: 1.28;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.48);
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: center;
}

.nav-links a:hover { color: var(--teal-dark); }
.nav-links a:hover::after { opacity: 0.42; transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--teal-dark); }
.nav-links a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }

.lang-toggle {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.lang-toggle button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
}

.lang-toggle button.active {
  color: #fff;
  background: var(--teal);
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 740;
  cursor: pointer;
}

.mobile-nav-toggle-icon { display: grid; gap: 4px; }
.mobile-nav-toggle-icon span { width: 16px; height: 2px; border-radius: 2px; background: currentColor; }

.page-hero {
  padding: 48px 0 22px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: end;
}

.kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 760;
  margin-bottom: 18px;
}

h1 {
  max-width: 720px;
  font-family: "Iowan Old Style", "Charter", "Bitstream Charter", Georgia, serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 .lang-zh {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
}

.lead {
  max-width: 690px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.62;
  text-wrap: pretty;
}

.quiet-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 14px;
  box-shadow: var(--shadow);
}

.quiet-panel strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 15px;
}

section { padding: 20px 0; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card,
.source-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(7, 35, 31, 0.04);
}

.info-card { padding: 20px; }
.info-card .mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  margin-bottom: 14px;
  color: var(--teal-dark);
  background: #dff1ed;
  font-weight: 850;
}

.info-card:nth-child(2) .mark { background: #f4ead2; color: #7f5514; }
.info-card:nth-child(3) .mark { background: #f5e4e1; color: #8d453f; }
.info-card h2 { font-size: 20px; line-height: 1.28; margin-bottom: 10px; }
.info-card p { color: var(--muted); font-size: 15px; }

.section-head {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  margin-bottom: 10px;
  text-wrap: balance;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

.source-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.source-card {
  padding: 22px;
}

.source-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.source-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.source-row strong { color: var(--ink); font-size: 14px; }
.source-link {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.source-link:hover {
  color: var(--teal);
}

.safety-list {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

.safety-list li {
  padding-left: 18px;
  position: relative;
}

.safety-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
}

.updates-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.updates-card {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.updates-card h2 {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.3;
}

.updates-card p {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.inline-link {
  color: var(--teal-dark);
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  padding: 22px 0 36px;
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.footer-links a {
  color: var(--teal-dark);
  font-weight: 780;
  text-decoration: none;
}

@media (hover: hover) {
  .nav-links a::after { transition: opacity 170ms ease, transform 170ms ease; }
}

@media (max-width: 980px) {
  .hero-layout,
  .source-layout {
    grid-template-columns: 1fr;
  }

  .quiet-panel { max-width: 620px; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .topbar-inner { min-height: 62px; }
  .nav { position: relative; }
  .mobile-nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(292px, calc(100vw - 40px));
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav-links a { justify-content: flex-start; }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .page-hero {
    padding: 34px 0 18px;
  }

  .hero-layout {
    gap: 18px;
  }

  .kicker {
    min-height: 27px;
    margin-bottom: 13px;
    font-size: 11.5px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  body[data-lang="zh"] h1 {
    font-size: 32px;
    line-height: 1.16;
  }

  .lead {
    margin-top: 14px;
    font-size: 15.5px;
    line-height: 1.58;
  }

  .quiet-panel {
    max-width: none;
    padding: 15px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.55;
  }

  .quiet-panel strong {
    font-size: 15px;
  }

  section {
    padding: 22px 0;
  }

  .info-card {
    padding: 16px;
    border-radius: 16px;
  }

  .info-card .mark {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .info-card h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .info-card p {
    font-size: 14.5px;
    line-height: 1.56;
  }

  .section-head {
    margin-bottom: 14px;
  }

  .section-head h2 {
    font-size: 27px;
    line-height: 1.18;
  }

  .section-head p {
    font-size: 15px;
    line-height: 1.58;
  }

  .source-layout {
    gap: 12px;
  }

  .source-card {
    padding: 16px;
    border-radius: 16px;
  }

  .source-card h3 {
    line-height: 1.25;
  }

  .source-list {
    gap: 9px;
  }

  .source-row {
    gap: 6px;
    padding-top: 8px;
    font-size: 13.5px;
  }

  .source-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    text-underline-offset: 4px;
  }

  .safety-list {
    gap: 7px;
    font-size: 14px;
  }

  .updates-card {
    padding-top: 14px;
  }

  .updates-row {
    gap: 10px;
  }

  .inline-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }

  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .topbar-inner { gap: 10px; }
  .brand { gap: 9px; }
  .brand-mark { width: 34px; height: 34px; font-size: 14px; }
  .brand .eyebrow { display: none; }
  .brand-title { max-width: 126px; font-size: 14px; }
  body[data-lang="zh"] .brand { gap: 9px; }
  body[data-lang="zh"] .brand-title { font-size: 14px; line-height: 1.22; }
  .lang-toggle button { min-width: 42px; padding: 0 7px; }
  .mobile-nav-toggle { min-width: 38px; padding: 0 9px; }
  .mobile-nav-toggle-text { display: none; }
  .page-hero { padding: 30px 0 16px; }
  h1 { font-size: 31px; line-height: 1.08; }
  body[data-lang="zh"] h1 { font-size: 30px; line-height: 1.18; }
  .lead { font-size: 15px; }
  section { padding: 20px 0; }
  .source-row { grid-template-columns: 1fr; gap: 4px; }
  .updates-row { grid-template-columns: 1fr; }
  .footer-card { display: grid; }
}

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