:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-warm: #f7f7f7;
  --fg: #222222;
  --fg-2: #3f3f3f;
  --muted: #6a6a6a;
  --meta: #929292;
  --border: #dddddd;
  --border-soft: #ebebeb;
  --accent: #ff385c;
  --accent-on: #ffffff;
  --accent-hover: #e31c5f;
  --accent-active: #e00b41;
  --success: #008a05;
  --warn: #c47700;
  --danger: #c13515;
  --font-display:
    "Airbnb Cereal VF", "Airbnb Cereal App", Circular,
    -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --font-body:
    "Airbnb Cereal VF", "Airbnb Cereal App", Circular,
    -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  --font-mono:
    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco,
    Consolas, monospace;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 44px;
  --text-4xl: 56px;
  --leading-body: 1.6;
  --leading-tight: 1.2;
  --tracking-display: -0.02em;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --section-y-desktop: 80px;
  --section-y-tablet: 56px;
  --section-y-phone: 40px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --elev-flat: none;
  --elev-ring: 0 0 0 1px var(--border);
  --elev-raised:
    rgba(0, 0, 0, 0.02) 0 0 0 1px,
    rgba(0, 0, 0, 0.04) 0 2px 6px 0,
    rgba(0, 0, 0, 0.1) 0 4px 8px 0;
  --focus-ring: 0 0 0 2px var(--fg);
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --container-max: 1280px;
  --container-gutter-desktop: 40px;
  --container-gutter-tablet: 24px;
  --container-gutter-phone: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 全站悬浮咨询入口：仅点击展开二维码，不使用悬停展开。 */
.site-wechat-float {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 95;
}
.site-wechat-toggle {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--accent-on);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: var(--elev-raised);
  transition: transform var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard);
}
.site-wechat-toggle:hover { background: var(--accent-hover); }
.site-wechat-toggle:active { transform: scale(.92); }
.site-wechat-toggle:focus-visible,
.site-wechat-copy:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.site-wechat-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 220px;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-raised);
  text-align: center;
}
.site-wechat-panel[hidden] { display: none; }
.site-wechat-panel img { width: 120px; height: 120px; margin: 0 auto var(--space-2); border-radius: var(--radius-sm); }
.site-wechat-panel p { margin: 0 0 var(--space-2); color: var(--fg); font-size: var(--text-sm); font-weight: 600; }
.site-wechat-copy {
  width: 100%;
  min-height: 40px;
  padding: 0 var(--space-3);
  color: var(--accent-on);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
}
.site-wechat-copy:active { transform: scale(.98); }
.site-wechat-hint { margin: var(--space-2) 0 0 !important; color: var(--meta) !important; font-size: var(--text-xs) !important; font-weight: 500 !important; }

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}

h1 {
  font-size: clamp(36px, 5vw, 56px);
}

h2 {
  font-size: clamp(28px, 3.5vw, 40px);
}

h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter-desktop);
}

@media (max-width: 1023px) {
  .container {
    padding: 0 var(--container-gutter-tablet);
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 var(--container-gutter-phone);
  }

  .faq-section .faq-item { padding: 0; }
  .faq-section .faq-item > summary {
    position: relative;
    padding: var(--space-4) var(--space-6) var(--space-4) 0;
    font-size: var(--text-base);
    line-height: 1.45;
  }
  .faq-section .faq-item > summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 0;
    color: var(--accent);
    font-size: var(--text-xl);
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
  }
  .faq-section .faq-item[open] > summary { margin-bottom: var(--space-2); }
  .faq-section .faq-item[open] > summary::after { content: "−"; }
  .faq-section .faq-item p { padding: 0 var(--space-6) var(--space-4) 0; font-size: var(--text-sm); }
  .site-wechat-float { right: var(--space-4); bottom: var(--space-4); }
  .site-wechat-panel { width: 200px; }
  .site-wechat-panel img { width: 104px; height: 104px; }

  /* Keep two-action CTA bands on one row without changing larger breakpoints. */
  .cta-band .btn-group:has(> .btn:nth-child(2)):not(:has(> .btn:nth-child(3))) {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
    width: min(100%, 336px);
  }

  .cta-band .btn-group:has(> .btn:nth-child(2)):not(:has(> .btn:nth-child(3))) .btn {
    width: auto;
    height: 44px;
    padding: 0 var(--space-3);
    font-size: var(--text-sm);
    white-space: nowrap;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 101;
  padding: var(--space-2) var(--space-4);
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--motion-fast) var(--ease-standard);
}

.skip-link:focus {
  top: var(--space-4);
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: inline-block;
  flex-shrink: 0;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg);
  position: relative;
  padding: var(--space-2) 0;
}

.site-nav a:hover {
  color: var(--muted);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--fg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
  transition: transform var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  transform: scale(0.96);
  background: var(--accent-active);
}

.btn-secondary {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--fg);
}

.btn-secondary:active {
  transform: scale(0.96);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

.btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* FAQ details: expanded on larger screens, accordion controls on phones. */
.faq-section .faq-item > summary {
  cursor: pointer;
  list-style: none;
  font-size: var(--text-lg);
  font-weight: 600;
}

.faq-section .faq-item > summary::-webkit-details-marker { display: none; }
.faq-section .faq-item[open] > summary { margin-bottom: var(--space-3); }
.faq-section .faq-item > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }

@media (min-width: 768px) {
  .faq-section .faq-item:not([open]) > :not(summary) { display: block; }
}

.site-nav .btn {
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.site-nav .btn:hover,
.site-nav .btn:active {
  color: var(--accent-on);
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  white-space: nowrap;
  transition: border-color var(--motion-fast) var(--ease-standard),
              background-color var(--motion-fast) var(--ease-standard);
}

.lang-switch:hover {
  border-color: var(--fg);
  background: var(--surface-warm);
}

.lang-switch .current {
  color: var(--muted);
}

.lang-switch .target {
  color: var(--fg);
}

@media (max-width: 767px) {
  .lang-switch {
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
  }
  .site-nav { gap: var(--space-4); }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 81px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4) var(--container-gutter-phone);
    gap: var(--space-3);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .site-nav .btn {
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

/* Section common */
.section-eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.section-header {
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.section-header h2 { margin-bottom: var(--space-4); }
.section-header p {
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* Service detail contact entry — matches visa detail booking layout */
.service-contact-section {
  padding: var(--section-y-desktop) 0;
  background: var(--bg);
}

.service-contact-section .container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-12);
  align-items: start;
}

.service-contact-intro h2 { margin-bottom: var(--space-4); }
.service-contact-intro > p:last-child {
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 52ch;
}

.service-contact-grid { display: grid; gap: var(--space-3); }
.service-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--elev-raised);
}
.service-contact-card.is-primary { background: color-mix(in oklch, var(--accent) 6%, var(--surface)); border-color: color-mix(in oklch, var(--accent) 35%, var(--border)); }
.service-contact-card .entry-eyebrow { color: var(--accent); font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-1); }
.service-contact-card h3 { font-size: var(--text-lg); line-height: 1.25; margin-bottom: var(--space-2); }
.service-contact-card .contact-value { display: block; font-size: var(--text-sm); font-weight: 600; overflow-wrap: anywhere; }
.service-contact-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: var(--space-3); padding: 0 var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--fg); font-size: var(--text-sm); font-weight: 600; letter-spacing: .02em; text-decoration: none; background: var(--surface); cursor: pointer; }
.service-contact-action.is-primary { color: var(--accent-on); background: var(--accent); border-color: var(--accent); }
.service-contact-qr { margin: 0; padding: var(--space-1); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.service-contact-qr img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius-sm); }

@media (max-width: 1023px) {
  .service-contact-section .container { grid-template-columns: 1fr; }
  .service-contact-grid { max-width: 560px; }
}

@media (max-width: 767px) {
  .service-contact-section { padding: var(--section-y-phone) 0; }
  .service-contact-card { grid-template-columns: minmax(0, 1fr) 112px; }
}

/* Footer */
.site-footer {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--text-sm);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.footer-brand { font-weight: 700; color: var(--fg); }

/* Footer — official contacts three-column layout */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.footer-top .footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-top .footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}

.footer-top .footer-brand span {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--fg);
}

.footer-top .footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  max-width: 280px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.footer-col h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col li {
  line-height: 1.55;
  color: var(--muted);
}

.footer-col a {
  color: var(--fg);
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-standard);
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-number {
  font-weight: 600;
  color: var(--accent) !important;
}

.footer-number:hover {
  color: var(--accent-hover) !important;
}

/* Footer — site nav band */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  padding: var(--space-5) 0 var(--space-6);
  border-top: 1px solid var(--border);
}

.footer-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--motion-fast) var(--ease-standard);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.6;
}

.footer-bottom p {
  margin: 0 0 var(--space-2) 0;
}

.footer-bottom .footer-disclaimer {
  max-width: 36em;
  margin: 0 auto var(--space-2);
  text-align: center;
  color: var(--meta);
}

@media (max-width: 767px) {
  .footer-top {
    flex-direction: column;
    gap: var(--space-4);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .footer-nav { gap: var(--space-3) var(--space-5); }
  .footer-bottom {
    text-align: left;
  }
  .footer-bottom > p:first-child {
    text-align: center;
    font-size: 0;
  }
  .footer-bottom .footer-disclaimer { text-align: center; }
  .footer-bottom > p:first-child::before {
    content: "© 2026 越南生活通 · 胡志明生活服务";
    font-size: var(--text-xs);
  }
  .footer-bottom .footer-disclaimer {
    max-width: none;
    font-size: 0;
  }
  .footer-bottom .footer-disclaimer::before {
    content: "以上信息整理自公开渠道，可能随时更新\A紧急事务请优先直接拨打官方电话。\A本站不是政府机构，仅作信息参考。";
    white-space: pre-line;
    font-size: var(--text-xs);
  }
}

/* Compact navigation: direct page links remain available on phones. */
@media (max-width: 767px) {
  .header-inner { height: 64px; gap: var(--space-1); }
  .brand { flex-shrink: 0; gap: 0; font-size: var(--text-sm); transform: translateX(-4px); }
  .brand-mark { width: 50px; height: 50px; border-radius: 8px; transform: translateX(-6px); }
  .brand > span { transform: translateX(-6px); }
  .site-nav { display: flex; position: static; flex: 1; min-width: 0; flex-direction: row; align-items: center; justify-content: flex-end; gap: var(--space-2); padding: 0; overflow: visible; background: transparent; border: 0; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex-shrink: 0; padding: var(--space-1) 0; font-size: var(--text-xs); transform: translateX(4px); }
  .site-nav a[aria-current="page"]::after { display: block; bottom: 4px; }
  .site-nav .btn { display: inline-flex; flex-shrink: 0; width: auto; height: 32px; padding: 0 var(--space-2); font-size: var(--text-xs); transform: translateX(6px); }
  .menu-toggle { display: none; }
}

@media (max-width: 389px) {
  .header-inner { gap: var(--space-2); }
  .brand { font-size: var(--text-sm); }
  .brand-mark { width: 50px; height: 50px; border-radius: 8px; }
  .site-nav { gap: var(--space-2); }
  .site-nav a { font-size: var(--text-xs); padding: var(--space-2) 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
