:root {
  --ink: #102b46;
  --blue: #1e40af;
  --muted: #566574;
  --paper: #ffffff;
  --soft: #f3f6f6;
  --line: #d9e2e6;
  --accent: #f5ad42;
  --accent-hover: #ed9b2a;
  --gap: clamp(24px, 5.2vw, 88px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; width: 100%; height: auto; }
figure, p, h1, h2, h3, h4 { margin: 0; }
p { line-height: 1.7; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #d1821a;
  outline-offset: 4px;
}
[hidden] { display: none !important; }

.wrap { width: min(1344px, calc(100% - var(--gap) * 2)); margin-inline: auto; }
.skip { position: fixed; top: -70px; left: 20px; z-index: 60; padding: 14px 18px; background: #fff; border: 1px solid var(--line); }
.skip:focus { top: 8px; }

/* Bilingual review toggle */
.zh { display: none !important; }
.show-zh .zh {
  display: block !important;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0;
  font-weight: 400;
  margin-top: 6px;
  text-transform: none;
  color: var(--muted);
}

.review-bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px var(--gap);
  background: #edf2f5;
  color: #596c7c;
  font-size: 11px;
  letter-spacing: .025em;
}
.review-bar > span { display: flex; align-items: center; gap: 8px; }
.review-bar i { width: 5px; height: 5px; border-radius: 50%; background: #709f8e; flex: 0 0 auto; }
.review-bar button { font-size: 11px; padding: 4px 0; white-space: nowrap; }
.review-bar button span { margin-left: 8px; }

/* Shared Header */
.header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 27px;
  letter-spacing: -1.4px;
  font-weight: 750;
  white-space: nowrap;
}
.brand > span { color: var(--blue); }
.brand b { font-size: 23px; color: var(--blue); margin-left: 4px; vertical-align: top; }

.header nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 36px;
  font-size: 13px;
  font-weight: 600;
}
.header nav a { padding: 8px 0; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.header nav a:hover { color: var(--blue); }
.header nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

.header-cta {
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  gap: 22px;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  align-items: center;
  white-space: nowrap;
}
.header-cta:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* Shared Typography & Buttons */
.eyebrow { font-size: 10px; line-height: 1.5; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; }
.line { display: inline-block; width: 25px; height: 2px; background: currentColor; margin-right: 10px; vertical-align: middle; }
h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
h2 em { font-style: normal; color: var(--blue); }

.primary {
  background: var(--accent);
  color: #172f45;
  padding: 17px 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.5;
  text-align: left;
  max-width: 100%;
  flex-wrap: wrap;
  transition: background .15s ease;
}
.primary:hover { background: var(--accent-hover); }
.primary > span[aria-hidden] { font-size: 18px; }
.primary .zh { width: 100%; margin-top: 0; color: #273d50; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid currentColor;
  padding: 7px 0;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.55;
  flex-wrap: wrap;
}
.text-link:hover { color: var(--blue); }
.text-link .zh { width: 100%; }

/* Shared Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 1.6fr auto;
  align-items: start;
  gap: 32px;
}
.footer .brand { font-size: 24px; }
.footer-brand p { font-size: 11px; color: #5f7180; margin-top: 8px; max-width: 320px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.footer-links a:hover { color: var(--blue); }
.footer-note { font-size: 11px; color: #6c7d8b; line-height: 1.7; }
.footer-top { font-size: 11px; white-space: nowrap; font-weight: 600; }
.footer-top:hover { color: var(--blue); }
.footer-top > span[aria-hidden] { margin-left: 12px; }

.show-zh .header nav .zh { font-size: 10px; margin-top: 2px; }
.show-zh .header-cta { flex-wrap: wrap; gap: 2px 18px; }
.show-zh .header-cta .zh { width: 100%; font-size: 10px; margin-top: 0; }

@media (max-width: 1050px) {
  :root { --gap: 36px; }
  .header nav { gap: 22px; margin-right: 16px; font-size: 12px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 720px) {
  :root { --gap: 20px; }
  .review-bar { font-size: 10px; }
  .review-detail { display: none; }
  .header.wrap {
    flex-wrap: wrap;
    min-height: 0;
    gap: 0 10px;
    padding-block: 12px 4px;
  }
  .brand { font-size: 24px; }
  .header-cta { font-size: 12px; gap: 14px; }
  .header nav {
    display: flex;
    order: 2;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 0 20px;
    margin: 8px 0 0;
    padding-top: 2px;
    border-top: 1px solid #cad5da;
  }
  .header nav a {
    display: grid;
    align-content: center;
    min-height: 44px;
    font-size: 12px;
  }
  .footer { grid-template-columns: 1fr; gap: 24px; padding: 30px 0; }
  .show-zh .zh { font-size: 12px; }
}

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