/* 一条龙签证服务 · 官网样式（首页、方案工具、入境申报表、隐私政策、404 共用）
   视觉照设计稿：青色 #0D6A5B、红色 #C8322E、墨色 #0E1F1C、纸色 #F3F6F4、浅青底 #8cc5b8 */
:root {
  --teal: #0D6A5B;
  --teal-dark: #0A4F44;
  --teal-soft: #DDEFEA;
  --teal-band: #8cc5b8;
  --sticker: #EAF5F0;
  --sticker-line: #B5D6CA;
  --mrz: #2A4C44;
  --red: #C8322E;
  --red-dark: #9E2420;
  --red-soft: #FDE9E7;
  --ink: #0E1F1C;
  --ink-2: #24332F;
  --ink-3: #3D4F49;
  --muted: #55665F;
  --paper: #F3F6F4;
  --surface: #FFFFFF;
  --line: #D5E1DD;
  --line-2: #C9D7D2;
  --line-3: #DCE6E2;
  --foot-muted: #9FB3AC;
  --foot-line: #2B3D39;
  --warn: #9A520A;
  --warn-soft: #FBEEDC;
  --shadow: 0 30px 60px -36px rgba(13, 60, 52, .45);
  --font-body: Figtree, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 32px;
  color-scheme: light;
}
html[lang="zh-TW"] { --font-body: Figtree, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; --font-display: "Noto Sans TC", "PingFang TC", sans-serif; }
html[lang="ja"] { --font-body: Figtree, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; --font-display: "Noto Sans JP", "Hiragino Sans", sans-serif; }
html[lang="ko"] { --font-body: Figtree, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; --font-display: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; }
html:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"], [lang="id"]) { --font-display: "Bricolage Grotesque", Figtree, system-ui, sans-serif; }
html[lang="ru"] { --font-body: "Noto Sans", system-ui, sans-serif; --font-display: "Noto Sans", system-ui, sans-serif; }
/* 韩文按词换行（不在词中间断开）；超长的词仍可断开，避免撑破窄屏 */
html[lang="ko"] { word-break: keep-all; overflow-wrap: anywhere; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.has-sheet { overflow: hidden; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
/* 长词（德语 Datenschutzerklärung、俄语 конфиденциальности）在窄屏放不下时强制换行，德语俄语加连字符，不让标题被裁掉 */
.display { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: break-word; }
html:is([lang="de"], [lang="ru"]) .display { -webkit-hyphens: auto; hyphens: auto; }
html:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"], [lang="id"]) .display { font-weight: 800; letter-spacing: -0.015em; }
.h2 { margin: 0; font-size: 38px; line-height: 1.25; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border-radius: 14px; border: 1.5px solid transparent; font-weight: 700; font-size: 17px; text-decoration: none; line-height: 1.2; text-align: center; }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: #B12A27; color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { color: #fff; background: #1E302C; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: rgba(14, 31, 28, .06); color: var(--ink); }
.btn-white { background: #fff; color: var(--teal-dark); }
.btn-white:hover { color: var(--teal-dark); background: #F6FBF9; }
.btn-line { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 999px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 顶部 ---------- */
.site-header { position: relative; z-index: 10; }
.site-header .wrap { padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.seal { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 2px solid var(--teal); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .04em; color: var(--teal); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 20px; }
.brand-sub { font-size: 13px; color: var(--muted); }
.main-nav { display: flex; gap: 24px; flex-wrap: wrap; flex: 1 1 auto; font-weight: 500; font-size: 15px; }
.main-nav a { color: var(--ink); text-decoration: none; }
.main-nav a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.header-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; }

.langmenu { position: relative; }
.langmenu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-size: 14px; cursor: pointer; user-select: none; white-space: nowrap; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.langmenu[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.langmenu ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -20px rgba(13, 60, 52, .45); min-width: 200px; z-index: 30; }
.langmenu li a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 15px; }
.langmenu li a:hover { background: var(--paper); }
.langmenu li a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; }

/* ---------- 首屏 ---------- */
.hero { background: var(--teal-band); }
.hero .wrap { padding-top: 40px; padding-bottom: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-size: 14px; font-weight: 700; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero h1 { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.15; }
html:is([lang="en"], [lang="fr"], [lang="de"], [lang="es"], [lang="id"], [lang="ru"]) .hero h1 { font-size: clamp(36px, 4.2vw, 52px); line-height: 1.1; }
.hero-lead { margin: 0; font-size: 19px; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; color: var(--ink-2); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { flex: none; }

/* ---------- 方案卡（签证贴纸） ---------- */
.plancard { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; scroll-margin-top: 16px; }
.pc-head { padding: 22px 26px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pc-head strong { font-family: var(--font-display); font-weight: 900; font-size: 22px; }
.pc-no { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.pc-fields { padding: 18px 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 12px; }
.pc-fields .field label { font-size: 13px; color: var(--muted); font-weight: 700; }
.pc-fields select { min-height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); font-size: 15px; width: 100%; min-width: 0; }
.pc-fields select:disabled { opacity: .5; }
.sticker { margin: 0 26px; padding: 20px 20px 12px; border-radius: 18px; background-color: var(--sticker); background-image: repeating-radial-gradient(circle at 105% -10%, transparent 0 11px, rgba(13, 106, 91, .10) 11px 12px); border: 1px solid var(--sticker-line); }
.st-head { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono), var(--font-display); font-size: 11px; letter-spacing: .12em; color: var(--mrz); text-transform: uppercase; }
.st-main { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.st-code { flex: none; font-family: var(--font-mono); font-weight: 700; font-size: 38px; color: var(--teal); border: 2px solid var(--teal); border-radius: 12px; padding: 8px 14px; background: var(--surface); line-height: 1; min-width: 76px; text-align: center; }
.st-title { display: flex; flex-direction: column; min-width: 0; }
.st-title strong { font-family: var(--font-display); font-weight: 900; font-size: 21px; line-height: 1.3; }
.st-title span { font-size: 15px; color: var(--ink-3); }
.mrz { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--mrz); opacity: .7; margin-top: 10px; white-space: nowrap; overflow: hidden; }

.tl { margin-top: 20px; position: relative; padding-top: 24px; }
.tl-mark { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--red); white-space: nowrap; }
.tl-mark::after { content: ""; position: absolute; left: 50%; top: 18px; width: 2px; height: 26px; background: var(--red); transform: translateX(-1px); }
.tl-mark.is-start { transform: none; }
.tl-mark.is-start::after { left: 0; }
.tl-mark.is-end { transform: translateX(-100%); }
.tl-mark.is-end::after { left: auto; right: 0; transform: translateX(1px); }
.tl-bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; border: 1px solid var(--sticker-line); background: var(--surface); }
.tl-seg { display: block; height: 100%; }
.tl-seg + .tl-seg { border-left: 2px solid var(--surface); }
.tl-seg.base { background: var(--teal); }
.tl-seg.ext { background: repeating-linear-gradient(135deg, var(--teal) 0 5px, #8CC5B8 5px 10px); }
.tl-seg.gap { background: repeating-linear-gradient(135deg, var(--red) 0 4px, transparent 4px 8px); }
.tl-ticks { position: relative; height: 18px; margin-top: 6px; font-family: var(--font-mono), var(--font-display); font-size: 11px; color: var(--muted); }
.tl-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.tl-ticks span.is-start { transform: none; }
.tl-ticks span.is-end { transform: translateX(-100%); }

.pc-facts { margin: 0; padding: 18px 26px 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 14px; }
.pc-facts dt { font-size: 13px; color: var(--muted); }
.pc-facts dd { margin: 0; font-weight: 700; }
.pc-foot { margin: 14px 26px 26px; padding-top: 18px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pc-price { display: flex; flex-direction: column; }
.pc-price span { font-size: 13px; color: var(--muted); }
.pc-price strong { font-family: var(--font-display); font-weight: 900; font-size: 26px; border-bottom: 2px dashed var(--red); align-self: flex-start; line-height: 1.35; }
.pc-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pc-actions .btn { min-height: 52px; padding: 0 24px; font-size: 16px; }
.pc-full { font-size: 14px; font-weight: 700; }

/* ---------- 通用版块 ---------- */
.section { padding-top: 80px; padding-bottom: 80px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-head p { margin: 0; font-size: 15px; color: var(--muted); }
.band-white { background: var(--surface); border-block: 1px solid var(--line-3); }
.how .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 36px; }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.steps3 li { display: flex; flex-direction: column; gap: 10px; }
.step-no { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--teal); }
.steps3 strong { font-size: 21px; line-height: 1.35; }
.steps3 span:last-child { color: var(--ink-3); }

.visas { display: flex; flex-direction: column; gap: 32px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.vcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.code-tag { align-self: flex-start; font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--teal); background: var(--sticker); border: 1px solid var(--sticker-line); border-radius: 8px; padding: 4px 10px; }
.vcard strong { font-size: 20px; line-height: 1.35; }
.vcard p { margin: 0; color: var(--ink-3); }
.vcard-price { margin-top: auto; padding-top: 12px; font-weight: 700; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.vcard-price .amount { border-bottom: 2px dashed var(--red); }

.extend { background: var(--teal-band); color: var(--ink); }
.extend .wrap { padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px; align-items: center; }
.extend-copy { display: flex; flex-direction: column; gap: 14px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--teal-dark); }
.extend h2 { margin: 0; font-size: 36px; line-height: 1.3; }
.extend p { margin: 0; color: #1E302C; font-size: 18px; }
.extend-cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.extend-fine { font-size: 15px; color: var(--teal-dark); font-weight: 700; }

.arrival-sec { padding-top: 80px; }
.arrival-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 40px; align-items: center; }
.arrival-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pill-red { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); font-size: 14px; font-weight: 700; }
.arrival-copy h2 { margin: 0; font-size: 38px; line-height: 1.3; }
.arrival-copy > p { margin: 0; font-size: 18px; color: var(--ink-3); max-width: 32em; }
.steps-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps-list li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.steps-list .step-no { font-size: inherit; }
.steps-list small { display: block; color: var(--ink-3); font-size: 15.5px; }
.arrival-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.arrival-free { font-weight: 700; color: var(--red-dark); }
.fineprint { font-size: 14px; color: var(--muted); }
.qr-card { justify-self: center; width: min(320px, 100%); border-radius: 24px; background: var(--ink); color: #fff; padding: 26px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 60px -36px rgba(13, 60, 52, .6); }
.qr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.qr-top span, .qr-bottom span { color: var(--foot-muted); }
.qr { aspect-ratio: 1; border-radius: 14px; background-color: #fff; background-image: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%); background-size: 22px 22px; position: relative; border: 14px solid #fff; }
.qr i { position: absolute; width: 26%; aspect-ratio: 1; border: 9px solid var(--ink); background: #fff; }
.qr i:nth-child(1) { left: 0; top: 0; }
.qr i:nth-child(2) { right: 0; top: 0; }
.qr i:nth-child(3) { left: 0; bottom: 0; }
.qr-bottom { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }

.before { padding-top: 80px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 28px; }
.before ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); border-top: 1px solid var(--line-2); }
.before li { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.before li span { color: var(--ink-3); font-size: 16px; }

.faq { padding-top: 40px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 20px 56px; align-items: start; }
.faq h2 { grid-column: 1 / -1; }
.faq details { border-bottom: 1px solid var(--line-2); padding: 14px 0; }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; min-height: 32px; }
.faq details p { margin: 10px 0 0; color: var(--ink-3); }

/* ---------- 表单 ---------- */
.lead-sec { padding-bottom: 80px; }
.lead-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 40px; }
.lead-intro { display: flex; flex-direction: column; gap: 14px; }
.lead-intro h2 { margin: 0; font-size: 34px; line-height: 1.3; }
.lead-intro p { margin: 0; color: var(--ink-3); }
.form { display: grid; gap: 14px; min-width: 0; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.req { color: var(--red); margin-left: 2px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); background: #fff; }
[aria-invalid="true"] { border-color: var(--red) !important; background: var(--red-soft) !important; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; color: var(--ink-3); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.form-status { margin: 0; font-size: 15px; font-weight: 700; color: var(--teal-dark); }
.form-status.is-error { color: var(--red-dark); }
.js-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.form-done { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 18px; background: var(--sticker); border: 1px solid var(--sticker-line); }
.form-done:focus { outline: none; }
.form-done p { margin: 0; font-size: 17px; font-weight: 700; }
.turnstile:empty { display: none; }

/* ---------- 联系顾问：WhatsApp 大按钮在前，表单收在「没有 WhatsApp？」里 ---------- */
.contact-panel { display: grid; gap: 12px; min-width: 0; align-content: start; }
.lead-card .contact-panel { align-self: center; }
.btn-wa { min-height: 60px; padding: 10px 20px; border-radius: 16px; font-size: 18px; box-shadow: 0 14px 28px -18px rgba(200, 50, 46, .8); }
.btn-wa svg { flex: none; width: 22px; height: 22px; }
.btn-wa span { min-width: 0; overflow-wrap: anywhere; text-wrap: balance; }
.contact-hint { margin: 0; font-size: 15px; font-weight: 700; color: var(--teal-dark); }
.contact-hint:empty { display: none; }
.contact-fallback { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); min-width: 0; }
.contact-fallback > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 13px; cursor: pointer; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ink-3); }
.contact-fallback > summary::-webkit-details-marker { display: none; }
.contact-fallback > summary::after { content: "+"; flex: none; font-family: var(--font-mono); font-weight: 500; color: var(--muted); }
.contact-fallback > summary:hover { color: var(--ink); }
.contact-fallback[open] > summary { border-bottom: 1px solid var(--line); border-radius: 13px 13px 0 0; }
.contact-fallback[open] > summary::after { content: "−"; }
.contact-fallback > .lead-box { padding: 16px 14px 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: var(--line-2); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; font-size: 15px; }
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-col strong { color: #fff; }
.site-footer a { color: #fff; }
.foot-legal { margin: 0; grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--foot-line); font-size: 13px; color: var(--foot-muted); display: flex; flex-direction: column; gap: 4px; }
.placeholder { color: #F0C27B; }
.mobile-bar { display: none; }

/* ---------- 子页面通用 ---------- */
.page-head { padding-top: 32px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; }
.page-head p { margin: 0; color: var(--ink-3); max-width: 46em; font-size: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--sticker); border: 1px solid var(--sticker-line); font-size: 15px; color: var(--ink-2); }
.note.warn { background: var(--warn-soft); border-color: transparent; color: #5E3A0B; }

/* ---------- 方案工具 ---------- */
.planner-grid { padding-top: 24px; padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-rows: auto 1fr; grid-template-areas: "intro app" "extra app"; gap: 20px 40px; align-items: start; }
.planner-intro { grid-area: intro; display: flex; flex-direction: column; gap: 20px; }
.planner-extra { grid-area: extra; display: flex; flex-direction: column; gap: 20px; }
.planner-grid .app { grid-area: app; }
.planner-intro h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; }
.planner-intro > p { margin: 0; color: var(--ink-3); font-size: 18px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.contact-card strong { font-size: 17px; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.contact-card dt { color: var(--muted); }
.contact-card dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.app { display: flex; flex-direction: column; height: min(820px, calc(100vh - 32px)); min-height: 560px; background: #F7FAF9; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.app-bar .seal { width: 34px; height: 34px; font-size: 10px; border-width: 1.5px; }
.ai-badge { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ai-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }
.ai-badge[data-state="off"] i { background: var(--muted); }
.ai-badge[data-state="busy"] i { background: var(--warn); }
.link-btn { border: 0; background: none; padding: 6px 0; color: var(--teal); font-size: 13px; font-weight: 700; white-space: nowrap; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.log { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.msg { display: flex; flex-direction: column; gap: 8px; max-width: 100%; min-width: 0; }
.msg.user { align-items: flex-end; }
.bubble { max-width: 88%; padding: 10px 13px; border-radius: 4px 16px 16px 16px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; min-width: 0; font-size: 15.5px; line-height: 1.6; }
.bubble p { margin: 0; }
.bubble p + p, .bubble p + ul, .bubble ul + p { margin-top: 6px; }
.bubble ul { margin: 4px 0 0; padding-left: 18px; }
.msg.user .bubble { background: #D3EEE4; border-color: #BFE3D6; border-radius: 16px 4px 16px 16px; }
.typing { display: inline-flex; gap: 4px; align-items: center; min-height: 24px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .5; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: .9; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.chip { display: inline-flex; align-items: center; min-height: 40px; border: 1.5px solid var(--teal); background: var(--surface); color: var(--teal); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.chip:hover:not(:disabled) { background: var(--teal-soft); color: var(--teal-dark); }
.chip:disabled { opacity: .45; cursor: default; }
.chip.picked { opacity: 1; background: var(--teal); color: #fff; }
.chip.ghost { border-style: dashed; }
.chip.red { border-color: var(--red); color: var(--red); }
.chip.red:hover { background: var(--red-soft); color: var(--red-dark); }
.chip.quiet { border-color: var(--line-2); color: var(--ink-3); font-weight: 500; }
.chip.quiet:hover:not(:disabled) { background: var(--paper); color: var(--ink); }
.handoff { margin: 0; font-size: 14px; color: var(--ink-3); }
.plan-foot { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
.ai-notice { color: var(--warn); }

.plan { width: 100%; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.plan .sticker { margin: 0; border: 0; border-bottom: 1px dashed var(--sticker-line); border-radius: 0; padding: 14px 14px 0; }
.plan .st-head { font-size: 10px; }
.plan .st-main { margin-top: 10px; gap: 12px; }
.plan .st-code { font-size: 30px; padding: 8px 10px; min-width: 70px; }
.plan .st-title b { font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 1.3; }
.plan .st-title span { font-size: 13px; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 14px 0 12px; }
.facts dt { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.facts dd { margin: 0; font-size: 14px; font-weight: 600; }
.plan .mrz { font-size: 10.5px; padding: 8px 0 10px; margin: 0; line-height: 1.5; opacity: .75; }
.tl-plan { margin: 4px 0 14px; padding-top: 0; }
.tl-cap { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; }
.tl-track { position: relative; padding-top: 22px; }
.tl-plan .tl-mark::after { top: 17px; height: 22px; }
.tl-plan .tl-ticks { font-size: 10px; height: 16px; margin-top: 4px; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.lg-base { background: var(--teal); }
.lg-ext { background: repeating-linear-gradient(135deg, var(--teal) 0 3px, var(--teal-soft) 3px 6px); }
.lg-gap { background: var(--red); }
.plan-body { padding: 4px 14px 14px; }
.plan-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.plan-price strong { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--ink); border-bottom: 2px dashed var(--red); }
.plan-body details { border-bottom: 1px solid var(--line); }
.plan-body summary { list-style: none; cursor: pointer; padding: 11px 0; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14.5px; }
.plan-body summary::-webkit-details-marker { display: none; }
.plan-body summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); font-weight: 500; }
.plan-body details[open] summary::after { content: "−"; }
.plan-body summary small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.checklist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.checklist label { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; font-size: 14px; cursor: pointer; }
.checklist input { margin: 3px 0 0; accent-color: var(--teal); width: 16px; height: 16px; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.steps { margin: 0 0 12px; padding-left: 20px; font-size: 14px; display: grid; gap: 4px; }
.notes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.notes li { padding: 7px 10px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }
.notes li.hot { background: var(--warn-soft); border-color: transparent; }
.notes li b { color: var(--warn); }
.alts { display: grid; gap: 8px; margin: 0 0 12px; }
.alt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; }
.alt:hover { border-color: var(--teal); }
.code-pill { font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--teal); background: var(--teal-soft); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.plan-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.plan-actions .btn { min-height: 46px; font-size: 15px; padding: 0 16px; border-radius: 12px; }

/* 列宽固定为容器宽：textarea 的默认宽度（20 列）+ 较长的「发送」按钮（俄语）会把列撑宽，按钮被 .app 裁掉 */
.composer { flex: none; background: var(--surface); border-top: 1px solid var(--line); padding: 8px 14px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.suggest { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
.suggest::-webkit-scrollbar { display: none; }
.suggest button { flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.composer .row { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--line-2); background: var(--paper); border-radius: 14px; padding: 10px 12px; max-height: 110px; line-height: 1.45; font-size: 16px; }
.composer textarea:focus { outline: none; border-color: var(--teal); }
.send { border: 0; background: var(--teal); color: #fff; border-radius: 12px; min-height: 44px; padding: 0 18px; font-weight: 700; flex: none; }
.send:disabled { opacity: .5; }
.app:not(.is-ready) .composer { opacity: .6; }

.lib { padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; }
.lib h2 { margin: 0; font-size: 30px; }
.lib-sub { margin: -6px 0 0; color: var(--muted); font-size: 15px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 14px; min-height: 40px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 10px; }
.vitem { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 12px; }
.vitem:hover { border-color: var(--teal); }
.vcode { font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--teal); background: var(--sticker); border: 1px solid var(--sticker-line); border-radius: 8px; text-align: center; padding: 9px 0; }
.vitem b { display: block; font-size: 15.5px; line-height: 1.35; }
.vitem small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.scrim { position: fixed; inset: 0; background: rgba(5, 20, 17, .45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 520px; max-height: 88%; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 18px 20px calc(22px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; align-content: start; }
@media (min-width: 760px) { .scrim { align-items: center; } .sheet { border-radius: 22px; max-height: 86%; } }
.sheet-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sheet-h h2 { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.35; }
.sheet-lead { margin: 0; font-size: 15px; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.box { border: 1px dashed var(--sticker-line); background: var(--sticker); border-radius: 10px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dtable { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 14px; margin: 0; }
.dtable dt { color: var(--muted); }
.dtable dd { margin: 0; min-width: 0; }
.sec-h { font-size: 14px; font-weight: 700; margin: 4px 0 -4px; }
.plain { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
.csearch { border: 1px solid var(--line-2); background: var(--paper); border-radius: 10px; padding: 10px 12px; font-size: 16px; width: 100%; }
.clist { display: grid; gap: 2px; max-height: 52vh; overflow-y: auto; margin: 0 -4px; }
.citem { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; border: 0; background: none; text-align: left; padding: 9px 6px; border-radius: 8px; font-size: 15px; }
.citem:hover { background: var(--paper); }
.cflag { font-size: 18px; line-height: 1; }
.cgroup { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 14px; z-index: 50; pointer-events: none; max-width: calc(100% - 32px); }

/* ---------- 入境申报表 ---------- */
.arrival-page { padding-bottom: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px; align-items: start; }
.arrival-aside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.arrival-form { display: grid; gap: 26px; }
.arrival-form fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 14px; min-width: 0; }
.arrival-form legend { padding: 0; margin-bottom: 4px; font-family: var(--font-display); font-weight: 900; font-size: 22px; }
.traveller { padding: 20px !important; border: 1px solid var(--line) !important; border-radius: 18px; background: #FAFCFB; }
.traveller legend { font-size: 18px; float: left; width: 100%; }
.traveller-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.travellers { display: grid; gap: 14px; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 14px; }
.btn-remove { border: 0; background: none; color: var(--red-dark); font-size: 14px; font-weight: 700; padding: 6px 0; }

/* ---------- 隐私政策 ---------- */
.legal { padding-bottom: 72px; }
.legal .panel { max-width: 860px; display: flex; flex-direction: column; gap: 8px; }
.draft-banner { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-weight: 700; font-size: 14px; }
.legal h1 { margin: 6px 0 0; font-size: 40px; }
.legal h2 { margin: 26px 0 4px; font-size: 22px; font-family: var(--font-display); font-weight: 900; }
.legal p { margin: 6px 0; color: var(--ink-2); }
.legal ul { margin: 6px 0; padding-left: 22px; color: var(--ink-2); display: grid; gap: 6px; }

/* ---------- 404 ---------- */
.nf { padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.nf h1 { margin: 0; font-size: 44px; }
.nf p { margin: 0; color: var(--ink-3); }
.nf-langs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nf-langs a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--ink); }

/* ---------- 窄屏 ---------- */
@media (max-width: 1020px) {
  .planner-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "intro" "app" "extra"; }
  .arrival-page { grid-template-columns: 1fr; }
  .arrival-aside { position: static; order: -1; }
  .arrival-aside .qr-card { display: none; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  body.has-mobile-bar { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; gap: 10px; flex-wrap: nowrap; }
  .seal { width: 38px; height: 38px; font-size: 10px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 11.5px; }
  .header-tools .btn-consult { display: none; }
  .langmenu summary { padding: 0 10px; }
  .hero .wrap { padding-top: 28px; padding-bottom: 32px; gap: 28px; }
  .hero h1 { font-size: 36px; line-height: 1.2; }
  .hero-lead { font-size: 16.5px; color: var(--ink-3); }
  .cta-row .btn { flex: 1 1 auto; }
  .pc-head, .pc-fields { padding-left: 18px; padding-right: 18px; }
  .sticker { margin: 0 18px; padding: 16px; }
  .st-code { font-size: 30px; padding: 6px 10px; min-width: 64px; }
  .st-title strong { font-size: 17px; }
  .st-title span { font-size: 14px; }
  .pc-facts { padding: 16px 18px 4px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .pc-facts dd { font-size: 14px; }
  .pc-foot { margin: 12px 18px 18px; }
  .pc-actions { width: 100%; align-items: stretch; }
  .h2 { font-size: 26px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .how .wrap { padding-top: 40px; padding-bottom: 40px; gap: 18px; }
  .steps3 strong { font-size: 18px; }
  .extend .wrap { padding-top: 32px; padding-bottom: 32px; }
  .extend h2 { font-size: 24px; }
  .extend p { font-size: 16px; }
  .arrival-sec { padding-top: 32px; }
  .arrival-card, .lead-card { padding: 22px 18px; border-radius: 22px; gap: 24px; }
  .arrival-copy h2, .lead-intro h2 { font-size: 24px; }
  .arrival-copy > p { font-size: 15.5px; }
  .qr-card { width: min(260px, 100%); }
  .before { padding-top: 32px; }
  .faq { padding-top: 16px; padding-bottom: 40px; }
  .faq summary { font-size: 16.5px; }
  .lead-sec { padding-bottom: 40px; }
  .panel { padding: 22px 18px; border-radius: 20px; }
  .app { height: calc(100vh - 150px); height: calc(100dvh - 150px); min-height: 480px; border-radius: 22px; }
  .legal h1 { font-size: 30px; }
  .planner-grid { padding-top: 16px; }
  .planner-intro { gap: 12px; }
  .planner-intro > p { font-size: 16px; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
  .mobile-bar .btn { flex: 1; min-height: 52px; }
  body.has-sheet .mobile-bar { display: none; }
}
@media (max-width: 380px) {
  .brand-sub { display: none; }
  .btn-wa { padding: 10px 14px; font-size: 17px; }
  .pc-facts { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
