/* =========================================================================
   China Travel Assistant — design system + site styles
   Tokens first, then layout, then components, then page-specific blocks.
   ========================================================================= */

:root {
  /* colour */
  --navy: #0b3d91;
  --navy-deep: #072a66;
  --navy-ink: #06255c;
  --blue: #1e88e5;
  --blue-ink: #1565c0;
  --blue-soft: #e3f0fc;
  --blue-mist: #f2f8fe;
  --ink: #101828;
  --body: #475467;
  --muted: #667085;
  --line: #e4e7ec;
  --line-soft: #eef1f6;
  --surface: #f7f9fc;
  --white: #ffffff;
  --green: #0f9d58;
  --green-soft: #e8f6ee;
  --amber: #b45309;
  --amber-soft: #fef6e7;
  --red: #c02626;
  --red-soft: #fdeeee;

  /* type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-cn: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", var(--font);

  /* space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.1);
  --wrap: 1120px;
  --prose: 720px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin: 0 0 var(--s3);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.05rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 var(--s4); }
a { color: var(--blue-ink); text-decoration-color: rgba(30, 136, 229, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.15em; }
li { margin-bottom: var(--s2); }
strong { color: var(--ink); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s7) 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.ic { width: 24px; height: 24px; flex: none; }
.ic--sm { width: 18px; height: 18px; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 13px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 14px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 1px 2px rgba(11, 61, 145, 0.25); }
.btn--primary:hover { background: var(--navy-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11, 61, 145, 0.24); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: #c7d2e4; background: var(--blue-mist); color: var(--navy); }
.btn--light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn--light:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.btn--danger { background: var(--red); color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--navy);
  white-space: nowrap;
}
.link-arrow:hover { color: var(--blue-ink); gap: 9px; }
.link-arrow .ic { transition: transform 140ms ease; }

:focus-visible { outline: 3px solid rgba(30, 136, 229, 0.55); outline-offset: 2px; border-radius: 4px; }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}
.site-header.is-stuck { box-shadow: 0 4px 18px rgba(16, 24, 40, 0.07); border-color: transparent; }
.header__inner { display: flex; align-items: center; gap: var(--s5); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand__mark { width: 30px; height: 30px; color: var(--navy); display: block; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-size: 0.98rem; letter-spacing: -0.01em; color: var(--ink); }
.brand__text span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; margin: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  font: inherit; font-size: 0.9rem; font-weight: 550; color: var(--body);
  background: none; border: 0; padding: 9px 12px; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.nav__link:hover, .nav__link:focus-visible { background: var(--surface); color: var(--ink); }
.nav__link.is-active { color: var(--navy); background: var(--blue-mist); }
.nav__mobile-cta { display: none; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: -8px; width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: var(--s2);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}
.nav__item--has-menu:hover .dropdown,
.nav__item--has-menu:focus-within .dropdown,
.dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__list { list-style: none; margin: 0; padding: 0; }
.dropdown__link {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm); text-decoration: none;
}
.dropdown__link:hover { background: var(--surface); }
.dropdown__label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.dropdown__note { display: block; font-size: 0.8rem; color: var(--muted); }
.dropdown__all {
  display: flex; align-items: center; justify-content: space-between;
  margin: 6px 4px 2px; padding: 10px 12px; border-top: 1px solid var(--line-soft);
  font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--navy);
}

.header__actions { display: flex; align-items: center; gap: var(--s2); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.nav-scrim { position: fixed; inset: var(--header-h) 0 0; background: rgba(6, 37, 92, 0.35); z-index: 50; backdrop-filter: blur(2px); }
.nav-scrim[hidden] { display: none; }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 15% 0%, #124a9e 0%, #0b3d91 45%, #06255c 100%);
  color: #fff;
  padding: clamp(48px, 6vw, 84px) 0 clamp(88px, 9vw, 120px);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(90% 80% at 75% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s8); align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78); margin-bottom: var(--s4);
}
.hero__eyebrow::before { content: ""; width: 26px; height: 1px; background: rgba(255, 255, 255, 0.5); }
.hero h1 { color: #fff; margin-bottom: var(--s4); max-width: 15ch; }
.hero__lede { font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.18rem); color: rgba(255, 255, 255, 0.82); max-width: 46ch; margin-bottom: var(--s6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--s5); font-size: 0.83rem; color: rgba(255, 255, 255, 0.7); }
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust .ic { width: 16px; height: 16px; color: rgba(255, 255, 255, 0.9); }

.hero__panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px; padding: var(--s5);
  backdrop-filter: blur(6px);
}
.hero__panel-title { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); margin-bottom: var(--s3); }
.hero__list { list-style: none; margin: 0; padding: 0; }
.hero__list li {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s3) 0; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 0;
}
.hero__list li:first-child { border-top: 0; padding-top: 0; }
.hero__list li > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hero__list .ic { color: #9ecbff; margin-top: 2px; }
.hero__list strong { color: #fff; font-size: 0.95rem; display: block; }
.hero__list span { font-size: 0.83rem; color: rgba(255, 255, 255, 0.7); }

/* ------------------------------------------------------------ hero tiles */
.tiles-band { position: relative; margin-top: -64px; z-index: 2; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.tile {
  display: flex; align-items: flex-start; gap: var(--s3);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4); text-decoration: none; color: var(--body);
  box-shadow: var(--shadow-sm); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfdcf0; color: var(--body); }
.tile__icon {
  width: 38px; height: 38px; flex: none; border-radius: 10px;
  display: grid; place-items: center; background: var(--blue-soft); color: var(--navy);
}
.tile__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tile__title { font-weight: 680; color: var(--ink); font-size: 0.98rem; }
.tile__text { font-size: 0.83rem; color: var(--muted); line-height: 1.5; }
.tile__arrow { margin-left: auto; color: #b6c2d4; align-self: center; }
.tile:hover .tile__arrow { color: var(--blue); }

/* -------------------------------------------------------------- sections */
.section { padding: clamp(48px, 6vw, 80px) 0; }
.section--surface { background: var(--surface); }
.section--tight { padding-top: clamp(32px, 4vw, 52px); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5);
  margin-bottom: var(--s6);
}
.section-head h2 { margin-bottom: 6px; }
.section-head__lede { margin: 0; max-width: 56ch; color: var(--muted); }
.eyebrow {
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-ink); font-weight: 700; margin-bottom: 10px;
}

/* ----------------------------------------------------------- dest cards */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.dest-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: #fff; padding: var(--s4);
  box-shadow: var(--shadow-sm); transition: transform 200ms ease, box-shadow 200ms ease;
}
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: #fff; }
.dest-card__art { position: absolute; inset: 0; z-index: 0; }
.dest-card__art svg { width: 100%; height: 100%; display: block; }
.dest-card__shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6, 20, 45, 0) 28%, rgba(6, 20, 45, 0.42) 58%, rgba(6, 20, 45, 0.88) 100%);
}
.dest-card__body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 2px; }
.dest-card__kicker { display: block; font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); margin-bottom: 4px; }
.dest-card__name { display: block; font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0; letter-spacing: -0.02em; }
.dest-card__zh { font-family: var(--font-cn); font-weight: 400; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); margin-left: 6px; }
.dest-card__meta { display: flex; gap: var(--s3); font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); margin-top: 6px; }
.dest-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.dest-card__meta .ic { width: 14px; height: 14px; }

/* --------------------------------------------------------- guide cards */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.guide-card {
  display: flex; flex-direction: column; gap: var(--s2);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s5); text-decoration: none; color: var(--body);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.guide-card:hover { border-color: #cfdcf0; box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--body); }
.guide-card__top { display: flex; align-items: center; gap: var(--s2); margin-bottom: 2px; }
.guide-card__badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); background: var(--blue-soft); border-radius: var(--radius-pill); padding: 3px 9px;
}
.guide-card__time { font-size: 0.78rem; color: var(--muted); margin-left: auto; }
.guide-card h3 { margin: 0; font-size: 1.12rem; }
.guide-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.guide-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s2) 0 0; padding: 0; list-style: none; }
.guide-card__tags li {
  list-style: none; font-size: 0.75rem; color: var(--body);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-pill); padding: 2px 9px; margin: 0;
}
.guide-card__more { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 650; color: var(--navy); margin-top: var(--s2); }

/* --------------------------------------------------------- tool teasers */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.tool-card {
  display: flex; flex-direction: column; gap: var(--s2);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5);
  text-decoration: none; color: var(--body); transition: transform 160ms ease, box-shadow 160ms ease;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--body); }
.tool-card__icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--navy); color: #fff; margin-bottom: var(--s2); }
.tool-card h3 { margin: 0; font-size: 1.02rem; }
.tool-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.tool-card__meta { margin-top: auto; font-size: 0.78rem; color: var(--blue-ink); font-weight: 600; padding-top: var(--s3); }

/* --------------------------------------------------------- page header */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line-soft); padding: var(--s6) 0 var(--s7); }
.page-head__inner { display: block; }
.page-head__text { max-width: 780px; }
.page-head h1 { margin-bottom: var(--s3); }
.lede { font-size: 1.06rem; color: var(--body); max-width: 68ch; margin-bottom: var(--s4); }
.meta-row { display: flex; flex-wrap: wrap; gap: var(--s4); list-style: none; padding: 0; margin: 0; font-size: 0.83rem; color: var(--muted); }
.meta-row li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.meta-row .ic { width: 15px; height: 15px; color: var(--blue-ink); }

.breadcrumb { margin-bottom: var(--s4); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 0.8rem; color: var(--muted); }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: #c3ccdb; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

/* ------------------------------------------------------------- prose */
.layout-guide { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: var(--s8); align-items: start; padding: var(--s7) 0 var(--s8); }
.prose { max-width: var(--prose); }
.prose > h2 { margin-top: var(--s7); scroll-margin-top: calc(var(--header-h) + 20px); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s5); font-size: 1.05rem; }
.prose p, .prose li { font-size: 1rem; }
.prose ul li::marker { color: #9db4d6; }
.prose a { font-weight: 550; }

.qa {
  background: var(--blue-mist); border: 1px solid #d5e6fa; border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0; padding: var(--s5); margin-bottom: var(--s6);
}
.qa p { margin-bottom: var(--s3); }
.qa p:last-child { margin-bottom: 0; }
.qa__label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--blue-ink); }
.qa__list { margin: var(--s3) 0 0; padding-left: 1.1em; }
.qa__list li { font-size: 0.94rem; margin-bottom: 6px; }

.callout { border-radius: var(--radius); padding: var(--s5); margin: var(--s5) 0; border: 1px solid; }
.callout p { margin-bottom: var(--s2); font-size: 0.95rem; }
.callout p:last-child { margin-bottom: 0; }
.callout__title { font-weight: 700; color: var(--ink); margin-bottom: 6px !important; }
.callout--info { background: var(--blue-mist); border-color: #d5e6fa; }
.callout--warn { background: var(--amber-soft); border-color: #f6e0b5; }
.callout--warn .callout__title { color: var(--amber); }
.callout--danger { background: var(--red-soft); border-color: #f7d4d4; }
.callout--danger .callout__title { color: var(--red); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--s5) 0; }
.steps li {
  counter-increment: step; position: relative; padding-left: 44px; margin-bottom: var(--s4);
  font-size: 0.97rem;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-soft); color: var(--navy);
  font-size: 0.82rem; font-weight: 700; display: grid; place-items: center;
}
.steps--tight li { margin-bottom: var(--s3); }

.table-wrap { overflow-x: auto; margin: var(--s5) 0; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 540px; }
.table-wrap caption {
  caption-side: top; text-align: left; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); padding: 12px 16px 0; font-weight: 600;
}
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.table-wrap thead th { background: var(--surface); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:hover { background: #fafcff; }
.table-wrap td strong { color: var(--ink); }

/* verdict cells: three-state comparison tables */
.table-wrap td.cell-yes { background: var(--green-soft); color: #0a7343; font-weight: 600; }
.table-wrap td.cell-no { background: var(--red-soft); color: #98211f; font-weight: 600; }
.table-wrap td.cell-mid { background: var(--amber-soft); color: var(--amber); font-weight: 600; }

.check-list { list-style: none; padding: 0; margin: var(--s5) 0; }
.check-list li {
  position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 0.95rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px;
  border-radius: 5px; border: 1.5px solid #b9c6d8; background: #fff;
}
.fineprint { font-size: 0.82rem; color: var(--muted); }
.next-read {
  margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line);
  font-size: 0.9rem; color: var(--muted);
}
.affiliate-note {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4) var(--s5); margin: var(--s5) 0; font-size: 0.93rem;
}
.affiliate-note p { margin: 0; }

/* --------------------------------------------------------------- aside */
.guide-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.toc { border-left: 2px solid var(--line); padding-left: var(--s4); margin-bottom: var(--s5); }
.toc__title { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: var(--s3); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a {
  display: block; font-size: 0.86rem; color: var(--body); text-decoration: none;
  padding: 5px 0; border-left: 2px solid transparent; margin-left: -18px; padding-left: 16px;
}
.toc a:hover { color: var(--navy); }
.toc a.is-active { color: var(--navy); font-weight: 650; border-left-color: var(--blue); }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); margin-bottom: var(--s4); }
.aside-card h3 { font-size: 0.92rem; margin-bottom: 6px; }
.aside-card p { font-size: 0.84rem; color: var(--muted); margin-bottom: var(--s3); }
.aside-card .btn { width: 100%; }
.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list li { padding: var(--s3) 0; border-top: 1px solid var(--line); margin: 0; }
.aside-list li:first-child { border-top: 0; padding-top: 0; }
.aside-list a { font-size: 0.84rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.aside-list span { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* -------------------------------------------------------------- affiliate */
.affiliate {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s4); align-items: center;
  background: linear-gradient(180deg, #fff, #fbfdff);
  border: 1px solid #d9e6f7; border-radius: var(--radius); padding: var(--s4) var(--s5);
  margin: var(--s6) 0; position: relative;
}
.affiliate__badge {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 3px 8px; background: #fff; align-self: start;
}
.affiliate__title { font-weight: 650; color: var(--ink); margin: 0 0 4px; font-size: 0.95rem; }
.affiliate__text { font-size: 0.86rem; color: var(--muted); margin: 0; }
.affiliate__chips { display: flex; gap: 6px; list-style: none; padding: 0; margin: 8px 0 0; }
.affiliate__chips li { font-size: 0.72rem; background: var(--blue-mist); color: var(--blue-ink); border-radius: var(--radius-pill); padding: 2px 8px; margin: 0; }
.affiliate__disclosure { font-size: 0.72rem; color: var(--muted); margin: 8px 0 0; }

/* ------------------------------------------------------------------ faq */
.faq { margin-top: var(--s7); }
.faq > h2 { margin-bottom: var(--s2); }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; margin-bottom: 8px; padding: 0 var(--s4);
}
.faq-item[open] { border-color: #d3e2f5; box-shadow: var(--shadow-md); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: flex-start;
  padding: var(--s3) 0; font-weight: 600; font-size: 0.95rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+"; color: var(--blue); font-weight: 700; flex: 0 0 auto; width: 12px;
}
.faq-item[open] summary::before { content: "–"; }
.faq-item__body { padding: 0 0 var(--s4) 22px; }
.faq-item__body p { font-size: 0.9rem; color: var(--body); margin: 0 0 10px; }
.faq-item__body .faq-item__pitfall {
  background: #fff8ec; border-left: 3px solid #dfa53c; border-radius: 6px;
  padding: 10px 12px; font-size: 0.85rem; color: #6b4a12; margin: 0;
}
.faq-jump { list-style: none; padding: 0; margin: 0; }
.faq-jump a { display: block; font-size: 0.88rem; padding: 5px 0; }
.cn-sub { font-size: 0.78em; color: var(--muted); font-weight: 400; margin-left: 4px; }

/* ---------------------------------------------------------------- offers */
.booking-block { margin-bottom: var(--s8); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: var(--s4); align-items: stretch; }

.offer {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid #d9e6f7; border-radius: var(--radius);
  padding: var(--s5); transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.offer:hover { box-shadow: var(--shadow-md); border-color: #c3dbf5; }
.offer__head { display: flex; align-items: center; gap: 8px; }
.offer__badge {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: var(--radius-pill); padding: 3px 9px; border: 1px solid transparent;
}
.offer__badge--ad { background: #eef6ff; color: var(--blue-ink); border-color: #cfe3fb; }
.offer__badge--plain { background: var(--surface); color: var(--muted); border-color: var(--line); }
.offer__badge--pending { background: #fff7ea; color: #8a5a00; border-color: #f2dfbe; }
.offer__partner { font-size: 0.74rem; font-weight: 650; color: var(--muted); }
.offer__title { font-size: 1.03rem; margin: 0; letter-spacing: -0.01em; }
.offer__text { font-size: 0.88rem; color: var(--muted); margin: 0; }
.offer__chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.offer__chips li { font-size: 0.7rem; background: var(--blue-mist); color: var(--blue-ink); border-radius: var(--radius-pill); padding: 3px 8px; margin: 0; }
.offer__best { font-size: 0.82rem; margin: 0; color: var(--body); }
.offer__best span { display: block; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.offer__note { font-size: 0.78rem; color: var(--muted); margin: 0; }
.offer__cta { margin-top: auto; align-self: flex-start; }
.offer--pending { background: #fcfcfd; border-style: dashed; border-color: #d5dbe5; }
.offer__fallback { margin-top: auto; font-size: 0.84rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* --------------------------------------------------------------- reviewed */
.reviewed { margin-top: var(--s6); border-top: 1px solid var(--line); padding-top: var(--s4); }
.reviewed__line { font-size: 0.85rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.reviewed__line .ic { color: var(--blue-ink); margin-top: 2px; }
.reviewed__sources { margin-top: var(--s3); font-size: 0.85rem; }
.reviewed__sources summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.reviewed__sources ul { margin: var(--s3) 0 0; padding-left: 1.1em; }
.reviewed__sources a { display: inline-flex; align-items: center; gap: 5px; }

/* --------------------------------------------------------------- feedback */
.feedback {
  margin: var(--s6) 0 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s4) var(--s5);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3);
}
.feedback p { margin: 0; font-size: 0.9rem; }
.feedback p span { color: var(--muted); font-size: 0.85rem; }
.feedback__actions { display: flex; gap: var(--s2); }
.feedback__done { flex-basis: 100%; font-size: 0.85rem; color: var(--green); }

/* ------------------------------------------------------------------- sos */
.sos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); margin: var(--s5) 0 var(--s3); }
.sos-card {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: var(--s4) var(--s3); border-radius: var(--radius); text-decoration: none;
  background: var(--red-soft); border: 1px solid #f3c9c9; color: var(--red);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.sos-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--red); }
.sos-card--medical { background: #fff4f0; border-color: #f7d3c4; color: #b3401c; }
.sos-card--fire { background: #fff7e8; border-color: #f5e0b8; color: #a1610a; }
.sos-card--traffic { background: #eef4ff; border-color: #d3e0f8; color: #1f4fa8; }
.sos-card__num { font-size: 1.9rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.sos-card__label { font-size: 0.82rem; font-weight: 650; }
.sos-card__note { font-size: 0.7rem; opacity: 0.75; }

/* --------------------------------------------------------- phrase block */
.phrase-block { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: var(--s5) 0; }
.phrase-block__row { padding: var(--s4); border-top: 1px solid var(--line-soft); }
.phrase-block__row:first-child { border-top: 0; }
.phrase-block__zh { font-family: var(--font-cn); font-size: 1.4rem; color: var(--ink); font-weight: 600; margin: 0 0 2px; line-height: 1.35; }
.phrase-block__py { font-size: 0.86rem; color: var(--blue-ink); margin: 0 0 2px; }
.phrase-block__en { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------ tools */
.tool-shell { padding: var(--s6) 0 var(--s8); }
.tool-bar {
  display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center;
  margin-bottom: var(--s5); padding-bottom: var(--s4); border-bottom: 1px solid var(--line);
}
.search-field { position: relative; flex: 1 1 260px; }
.search-field input {
  width: 100%; font: inherit; font-size: 0.95rem; padding: 12px 14px 12px 40px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.search-field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15); }
.search-field .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: inherit; font-size: 0.83rem; font-weight: 550; cursor: pointer;
  padding: 7px 13px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: #fff; color: var(--body); transition: all 140ms ease;
}
.chip:hover { border-color: #c7d2e4; background: var(--surface); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.phrase-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.phrase-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4); display: flex; flex-direction: column; gap: 4px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.phrase-card:hover { border-color: #cfdcf0; box-shadow: var(--shadow-sm); }
.phrase-card__zh { font-family: var(--font-cn); font-size: 1.55rem; font-weight: 600; color: var(--ink); line-height: 1.35; margin: 0; }
.phrase-card__py { font-size: 0.84rem; color: var(--blue-ink); margin: 0; }
.phrase-card__en { font-size: 0.92rem; color: var(--body); margin: 2px 0 0; }
.phrase-card__note { font-size: 0.79rem; color: var(--muted); margin: 4px 0 0; }
.phrase-card__actions { display: flex; gap: 6px; margin-top: var(--s3); }
.icon-btn {
  display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 0.78rem;
  padding: 6px 10px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: #fff; color: var(--body); cursor: pointer;
}
.icon-btn:hover { border-color: #c7d2e4; background: var(--surface); color: var(--navy); }
.icon-btn.is-done { background: var(--green-soft); border-color: #bfe6d0; color: #0b7a45; }
.icon-btn.is-fav { background: #fff2f4; border-color: #f8cdd6; color: #b3244a; }
.empty-state { text-align: center; padding: var(--s8) var(--s4); color: var(--muted); }
.empty-state h3 { margin-bottom: var(--s2); }

/* checklist */
.check-wrap { max-width: 780px; }
.check-progress { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.progress { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--navy)); transition: width 240ms ease; }
.progress__label { font-size: 0.85rem; font-weight: 650; color: var(--ink); white-space: nowrap; }
.check-list-tool { list-style: none; padding: 0; margin: 0 0 var(--s5); }
.check-item {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: var(--s2); background: #fff; cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
.check-item:hover { border-color: #cfdcf0; }
.check-item input { margin: 3px 0 0; width: 20px; height: 20px; accent-color: var(--navy); flex: none; cursor: pointer; }
.check-item__label { font-weight: 550; color: var(--ink); font-size: 0.95rem; display: block; }
.check-item__note { font-size: 0.83rem; color: var(--muted); display: block; margin-top: 2px; }
.check-item.is-done { background: var(--surface); }
.check-item.is-done .check-item__label { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.check-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---------------------------------------------------------------- CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #0d4aa8 60%, #1256bd 100%);
  color: #fff; border-radius: 16px; padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5); align-items: center;
  margin: var(--s7) 0 0;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.78); margin: 0; max-width: 52ch; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #061a3b; color: rgba(255, 255, 255, 0.68); padding: var(--s8) 0 var(--s5); margin-top: var(--s8); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s6); padding-bottom: var(--s6); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.brand--footer { color: #fff; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text span { color: rgba(255, 255, 255, 0.55); }
.brand--footer .brand__mark { color: #8fc0ff; }
.footer__tagline { margin: var(--s4) 0 var(--s2); font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); }
.footer__note { font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); margin: 0; max-width: 34ch; }
.footer__col h3 { color: #fff; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--s3); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 9px; }
.footer__col a { color: rgba(255, 255, 255, 0.68); text-decoration: none; font-size: 0.88rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; padding-top: var(--s4); }
.footer__bottom p { margin: 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); max-width: 66ch; }
.footer__legal { display: flex; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.footer__legal li { margin: 0; }
.footer__legal a { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); text-decoration: none; }
.footer__legal a:hover { color: #fff; }

/* ---------------------------------------------------------------- 404 */
.notfound { text-align: center; padding: var(--s9) 0; max-width: 560px; margin: 0 auto; }
.notfound__code { font-size: 4rem; font-weight: 800; color: var(--blue-soft); letter-spacing: -0.04em; line-height: 1; }

/* ---------------------------------------------------------------- utils */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.stack-sm > * + * { margin-top: var(--s3); }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1023px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s6); }
  .hero__panel { max-width: 520px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .layout-guide { grid-template-columns: 1fr; gap: var(--s5); }
  .guide-aside { position: static; order: -1; }
  .toc { display: none; }
  .aside-card { display: none; }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 55;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: var(--s4) 20px var(--s5); max-height: calc(100dvh - var(--header-h));
    overflow-y: auto; display: none;
    box-shadow: 0 16px 32px rgba(16, 24, 40, 0.12);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line-soft); }
  .nav__item:last-child { border-bottom: 0; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 2px; font-size: 1rem; border-radius: 0; }
  .nav__link:hover { background: transparent; }
  .nav__link.is-active { background: transparent; color: var(--navy); }
  .dropdown {
    position: static; width: auto; box-shadow: none; border: 0; border-radius: 0;
    padding: 0 0 var(--s3) 0; opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .dropdown.is-open { display: block; }
  .nav__item--has-menu:hover .dropdown { display: none; }
  .nav__item--has-menu:hover .dropdown.is-open { display: block; }
  .dropdown__link { padding: 10px 10px; background: var(--surface); margin-bottom: 4px; }
  .dropdown__all { border-top: 0; padding: 6px 2px 0; }
  .nav__mobile-cta { display: block; margin-top: var(--s4); }
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .nav__trigger .ic--chev { transition: transform 160ms ease; }
  .nav__trigger[aria-expanded="true"] .ic--chev { transform: rotate(180deg); }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .tiles { grid-template-columns: 1fr; gap: var(--s2); }
  .tiles-band { margin-top: -40px; }
  .dest-grid { grid-template-columns: 1fr; }
  .dest-card { min-height: 220px; }
  .guide-grid, .tool-grid, .grid-2, .grid-3, .phrase-list { grid-template-columns: 1fr; }
  .sos-grid { grid-template-columns: repeat(2, 1fr); }
  .affiliate { grid-template-columns: 1fr; }
  .affiliate__badge { justify-self: start; }
  .affiliate__cta { justify-self: start; }
  .footer__top { grid-template-columns: 1fr; gap: var(--s5); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .page-head { padding: var(--s5) 0 var(--s6); }
  .layout-guide { padding: var(--s5) 0 var(--s6); }
  .check-item { padding: var(--s3); }
  .feedback { flex-direction: column; align-items: flex-start; }
  .prose > h2 { margin-top: var(--s6); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .feedback, .affiliate, .guide-aside, .nav-scrim { display: none !important; }
  body { color: #000; }
  .prose { max-width: none; }
  a { color: #000; }
}
