/* ============================================================
   TrippoMe Travel — AI Travel Discovery Agent
   Design system: warm paper, ink typography, coral accent
   ============================================================ */

:root {
  --paper: #f8f5f0;
  --paper-2: #fbfaf7;
  --surface: #ffffff;
  --ink: #14161c;
  --ink-soft: #39404c;
  --muted: #767d89;
  --line: #e7e1d7;
  --line-soft: #f0ece4;
  --brand: #f4553d;
  --brand-2: #ff8a5b;
  --violet: #6a56ff;
  --teal: #0e9a8c;
  --gold: #d99526;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 34px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 28, .04), 0 10px 26px -16px rgba(20, 22, 28, .28);
  --shadow-md: 0 2px 6px rgba(20, 22, 28, .04), 0 22px 48px -26px rgba(20, 22, 28, .34);
  --shadow-lg: 0 40px 80px -44px rgba(20, 22, 28, .5);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans", "Noto Sans JP", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.hidden { display: none !important; }
img { max-width: 100%; }
button { font-family: inherit; }
a { color: inherit; }

/* ============================ 导航 ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 245, 240, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(231, 225, 215, .8);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--brand) 0%, #ff9a5b 55%, var(--violet) 130%);
  color: #fff; font-size: 16px;
  box-shadow: 0 6px 16px -8px rgba(244, 85, 61, .9);
  flex: 0 0 auto;
}
.brand-mark.sm { width: 26px; height: 26px; border-radius: 9px; font-size: 13px; }
.brand-text { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.brand-text em { font-style: normal; color: var(--brand); }

.nav-links { display: flex; gap: 24px; margin-left: 6px; }
.nav-links a {
  text-decoration: none; font-size: 14px; color: var(--ink-soft);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--brand); border-radius: 2px; transition: right .22s ease;
}
.nav-links a:hover::after { right: 0; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: #eef7f0; color: #2f7a51;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  border: 1px solid #dcecdf;
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3ea36b;
  box-shadow: 0 0 0 3px rgba(62, 163, 107, .16);
}

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: #eeeae2; border: 1px solid var(--line);
}
.lang-btn {
  border: 0; background: transparent; cursor: pointer;
  padding: 5px 11px; border-radius: 999px;
  font-size: 12.5px; color: #6b7280; transition: all .18s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active {
  background: #fff; color: var(--brand); font-weight: 700;
  box-shadow: 0 1px 3px rgba(20, 22, 28, .12);
}

/* ============================ 全局兜底（错误提示 / 图片兜底） ============================ */
.app-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: none; padding: 10px 16px; font-size: 13px; font-weight: 600;
  text-align: center; color: #fff;
}
.app-banner.show { display: block; }
.app-banner.err  { background: #c0392b; }
.app-banner.warn { background: #b9770e; }
.app-banner.ok   { background: #2e8b57; }

/* 图片加载失败时的优雅占位（暖色渐变 + 旅行 emoji） */
.img-fallback {
  background: linear-gradient(135deg, #ffd9a8 0%, #ff9a5b 45%, #c3b8ff 100%) !important;
  position: relative;
}
.img-fallback::after {
  content: '📷'; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 30px; opacity: .85;
}
/* 已带目的地 emoji 的图框（精选卡 / Hero 拼贴 / 行程头图）：失败时只保留渐变 + emoji，不要相机角标 */
.feat-img.img-fallback::after, .collage.img-fallback::after, .plan-hero.img-fallback::after { content: none; }
.plan-hero .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; opacity: .9; }
.hero-bg-img.img-fallback { opacity: 1; }
.hero {
  position: relative; overflow: hidden; padding: 92px 24px 96px;
  background:
    radial-gradient(90% 120% at 85% -10%, #ffeede 0%, transparent 55%),
    radial-gradient(70% 100% at -10% 110%, #eef0ff 0%, transparent 60%),
    linear-gradient(180deg, #fdf9f2 0%, var(--paper) 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.b1 { width: 540px; height: 540px; top: -200px; right: -60px; background: radial-gradient(circle, #ffd2ae, transparent 68%); }
.b2 { width: 480px; height: 480px; bottom: -240px; left: -140px; background: radial-gradient(circle, #cfc8ff, transparent 66%); }
.b3 { width: 380px; height: 380px; top: 34%; left: 42%; background: radial-gradient(circle, #ffe3c2, transparent 70%); opacity: .4; }
.veil {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(20, 22, 28, .05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 38%, #000 18%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, #000 18%, transparent 76%);
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px 6px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: #5c6270;
  box-shadow: var(--shadow-sm);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 0 rgba(244, 85, 61, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 85, 61, .55); }
  70% { box-shadow: 0 0 0 9px rgba(244, 85, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 85, 61, 0); }
}

.hero-title {
  margin: 18px 0 14px;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 800;
  color: var(--ink);
}
.hero-title .grad {
  background: linear-gradient(100deg, var(--brand) 0%, #ff9a5b 45%, var(--violet) 110%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin: 0 0 26px;
  max-width: 540px;
  font-size: 16.5px;
  line-height: 1.68;
  color: #565d6b;
}
.hero-sub strong { color: var(--ink); font-weight: 650; }

/* 快速提问框 */
.quick {
  display: flex; align-items: center; gap: 8px;
  max-width: 580px;
  padding: 7px 7px 7px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.quick:focus-within {
  border-color: rgba(244, 85, 61, .55);
  box-shadow: 0 0 0 4px rgba(244, 85, 61, .1), var(--shadow-md);
}
.quick input {
  flex: 1; min-width: 0;
  border: 0; outline: none; background: transparent;
  padding: 12px 14px;
  font-size: 15px; color: var(--ink); font-family: inherit;
}
.quick input::placeholder { color: #a3a8b3; }
.btn.go {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 14px; padding: 12px 20px; white-space: nowrap;
}
.btn.go svg { transition: transform .18s ease; }
.btn.go:hover svg { transform: translateX(3px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; max-width: 580px; }
.chip {
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  font-size: 12.5px; color: #5f6673;
  transition: all .16s ease;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip:hover { border-color: rgba(244, 85, 61, .45); color: var(--brand); background: #fff; }

.stats {
  display: flex; gap: 34px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 24px;
  border-top: 1px dashed #ddd4c4;
}
.stat b {
  display: block; font-size: 23px; font-weight: 780;
  letter-spacing: -.02em; line-height: 1.2;
  color: var(--ink);
}
.stat span { font-size: 12px; color: var(--muted); letter-spacing: .01em; }

/* Hero 图片拼贴 */
.hero-art { position: relative; height: 470px; }
.collage {
  position: absolute; margin: 0;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(140deg, #efe9df, #f7f3ec);
  border: 5px solid #fff;
  box-shadow: 0 26px 56px -26px rgba(20, 22, 28, .38);
  display: grid; place-items: center;
}
.collage .ph { font-size: 34px; opacity: .55; }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c1 { top: 2%; left: 0; width: 47%; height: 57%; transform: rotate(-4deg); }
.c2 { top: 14%; right: 0; width: 45%; height: 52%; transform: rotate(4.5deg); }
.c3 { bottom: 0; left: 24%; width: 52%; height: 47%; transform: rotate(1.8deg); }

.float-card {
  position: absolute; left: -6px; bottom: 8%;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px 11px 12px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(231, 225, 215, .9);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  z-index: 3;
}
.fc-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 154, 140, .16);
  flex: 0 0 auto;
}
.fc-text b { display: block; font-size: 12.5px; letter-spacing: -.01em; }
.fc-text span { font-size: 11px; color: var(--muted); }

/* 入场动效 */
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .3, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: .02s; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .14s; }
.hero-copy > *:nth-child(4) { animation-delay: .2s; }
.hero-copy > *:nth-child(5) { animation-delay: .26s; }
.hero-copy > *:nth-child(6) { animation-delay: .32s; }
.hero-art { animation: rise .9s cubic-bezier(.2, .7, .3, 1) .2s both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ============================ 今日精选（单张） ============================ */
#featured-sec {
  background: #fffdfa;
  border-radius: var(--r-xl);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 52px 40px 56px;
  margin-bottom: 20px;
}
.feat-skel {
  height: 360px; border-radius: var(--r-lg);
  background: linear-gradient(100deg, #f1ece4 30%, #f9f6f0 50%, #f1ece4 70%);
  background-size: 220% 100%; animation: shimmer 1.5s infinite linear;
}
.featured-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .22s ease, box-shadow .22s ease;
}
.featured-card:hover { box-shadow: var(--shadow-lg); }
.feat-img {
  position: relative; min-height: 380px;
  background: linear-gradient(140deg, #efe9df, #f8f5ef);
  display: grid; place-items: center; overflow: hidden;
}
.feat-img .ph { font-size: 48px; opacity: .5; }
.feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-img.ph-anim::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .6) 50%, transparent 75%);
  background-size: 220% 100%; animation: shimmer 1.4s infinite linear;
}
.feat-body {
  padding: 36px 38px 34px;
  display: flex; flex-direction: column;
}
.feat-flag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: #fff; background: linear-gradient(135deg, var(--brand), #ff8a5b);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
  box-shadow: 0 8px 18px -10px rgba(244, 85, 61, .9);
}
.feat-name {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.12;
  letter-spacing: -.025em; font-weight: 800;
}
.feat-country { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.feat-tags span {
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  background: #fdf0ec; color: #c2503a;
}
.feat-summary {
  margin: 0 0 18px; font-size: 15px; line-height: 1.72; color: #4b5260;
}
.feat-meta { display: flex; gap: 16px; margin-bottom: 22px; }
.feat-meta span { font-size: 13px; font-weight: 650; color: var(--ink-soft); }
.feat-cta {
  align-self: flex-start; margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; font-size: 15px;
}
.feat-cta svg { transition: transform .18s ease; }
.featured-card:hover .feat-cta svg { transform: translateX(3px); }

/* ============================ 通用区块 ============================ */
.section { max-width: var(--max); margin: 0 auto; padding: 68px 24px; }
.section-head { max-width: 660px; margin-bottom: 36px; }
.kicker {
  display: block; margin-bottom: 12px;
  font-size: 11px; font-weight: 750; letter-spacing: .18em;
  color: var(--brand);
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(25px, 3.1vw, 37px);
  line-height: 1.2; letter-spacing: -.028em; font-weight: 780;
}
.section-head p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.68; }

/* 能力卡 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #ded7cb; }
.f-ico {
  width: 46px; height: 46px; border-radius: 15px;
  display: grid; place-items: center; font-size: 21px;
  margin-bottom: 15px;
  background: #f4f1ea;
}
.f1 { background: linear-gradient(140deg, #ffe9e2, #ffd9cc); }
.f2 { background: linear-gradient(140deg, #e6e9ff, #d8ddff); }
.f3 { background: linear-gradient(140deg, #dff3ff, #cfe9ff); }
.f4 { background: linear-gradient(140deg, #e4f7ee, #d2f0e2); }
.f5 { background: linear-gradient(140deg, #fff2d9, #ffe6bd); }
.f6 { background: linear-gradient(140deg, #f0e9ff, #e2d8ff); }
.feature h3 { margin: 0 0 7px; font-size: 16px; letter-spacing: -.015em; font-weight: 720; }
.feature p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }

/* 灵感墙（已移除：首页只给一个精选） */

/* ============================ 对话区 ============================ */
.chat-card {
  display: flex; flex-direction: column;
  /* 长卡（情绪急救 / 整趟行程板）需要一眼看全；低于 560px 会把卡片底部按钮裁掉 */
  height: clamp(600px, 84vh, 840px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: #fffdfa;
}
.chat-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-id .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(244, 85, 61, .12);
}
.chat-id-text { min-width: 0; }
.chat-id-text b { display: block; font-size: 13.5px; letter-spacing: -.01em; }
.pref-summary {
  display: block; font-size: 11.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw;
}

.messages {
  flex: 1; overflow-y: auto;
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 138, 91, .05), transparent 45%),
    var(--paper-2);
}
.messages::-webkit-scrollbar { width: 8px; }
.messages::-webkit-scrollbar-thumb { background: #e0dacf; border-radius: 8px; }
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.msg.agent { justify-content: flex-start; }
.msg.agent .agent-body { max-width: 90%; }
.msg.agent.welcome-msg { align-items: flex-start; gap: 10px; }
.agent-avatar {
  flex: 0 0 auto; width: 32px; height: 32px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand) 0%, #ff9a5b 55%, var(--violet) 130%);
  color: #fff; font-size: 14px;
  box-shadow: 0 6px 14px -8px rgba(244, 85, 61, .8);
}
.bubble {
  max-width: 84%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.5px; line-height: 1.62;
  white-space: pre-wrap; word-break: break-word;
}
.msg.user .bubble {
  background: linear-gradient(135deg, var(--brand) 0%, #ff7d4f 100%);
  color: #fff; border-bottom-right-radius: 5px;
  box-shadow: 0 8px 20px -12px rgba(244, 85, 61, .8);
}
.msg.agent .bubble {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-soft);
  border-bottom-left-radius: 5px;
  box-shadow: var(--shadow-sm);
}
.card-wrap { margin-top: 8px; }

.suggestions {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px 18px 12px;
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
}
.sug {
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; color: #5f6673;
  transition: all .16s ease;
}
.sug:hover { border-color: rgba(244, 85, 61, .45); color: var(--brand); }

.composer {
  display: flex; gap: 10px; align-items: flex-end;
  padding: 13px 16px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}
.composer textarea {
  flex: 1; resize: none; max-height: 128px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper-2);
  padding: 11px 14px;
  font-size: 14.5px; font-family: inherit; line-height: 1.55;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.composer textarea::placeholder { color: #a3a8b3; }
.composer textarea:focus {
  outline: none; background: #fff; border-color: rgba(244, 85, 61, .55);
  box-shadow: 0 0 0 4px rgba(244, 85, 61, .09);
}

/* ============================ 按钮 ============================ */
.btn {
  border: 0; cursor: pointer; font-weight: 650; font-size: 14px;
  border-radius: 12px; padding: 10px 18px;
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--brand) 0%, #ff7d4f 100%);
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(244, 85, 61, .95);
}
.btn.primary:hover { box-shadow: 0 14px 26px -14px rgba(244, 85, 61, .95); }
.btn.ghost {
  background: #fff; color: #4b5563; border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: #d9d2c6; color: var(--ink); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 10px; }
.btn.send { white-space: nowrap; padding: 11px 20px; }

/* ============================ 目的地卡片（对话内） ============================ */
.dest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dest-card {
  background: #fff; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden;
}
.dest-img {
  height: 124px; background: #f1ece4;
  display: flex; align-items: center; justify-content: center;
  color: #b4bccb; font-size: 12px; overflow: hidden;
}
.dest-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dest-img.ph {
  background: linear-gradient(100deg, #f1ece4 30%, #f9f6f0 50%, #f1ece4 70%);
  background-size: 220% 100%; animation: shimmer 1.4s infinite linear;
}
.dest-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.dest-top { display: flex; align-items: center; gap: 10px; }
.dest-emoji { font-size: 26px; line-height: 1; }
.dest-name { font-size: 15.5px; font-weight: 730; letter-spacing: -.015em; }
.dest-country { font-size: 11.5px; color: var(--muted); }
.dest-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0; }
.tag {
  background: #fdf0ec; color: #c2503a;
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
}
.dest-summary { font-size: 12.5px; margin: 0 0 8px; color: #4b5260; line-height: 1.6; }
.meta { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.reasons { margin: 0 0 8px; padding-left: 16px; font-size: 12px; color: #4b5260; }
.reasons li { margin-bottom: 3px; }
.hl { font-size: 11.5px; color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding: 0 14px 14px; }
.card-actions .btn { flex: 1 1 auto; }

/* ============================ 行程卡 ============================ */
.plan-hero {
  height: 190px; border-radius: 18px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #ffd9a8 0%, #ff9a5b 45%, #c3b8ff 100%);
  margin-bottom: 12px;
}
.plan-hero.ph { animation: none; } /* 不要一直闪烁，失败时保持静态渐变 */
.plan-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.plan-overview {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.plan-overview h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.02em; }
.plan-overview p { margin: 0; font-size: 13px; color: #4b5260; }
.plan-stay { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

.day-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 15px 16px; box-shadow: var(--shadow-sm); margin-bottom: 10px;
}
.day-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-bottom: 1px dashed var(--line); padding-bottom: 9px; margin-bottom: 6px;
}
.day-head h3 { margin: 0; font-size: 14.5px; letter-spacing: -.015em; }
.day-budget { color: var(--teal); font-weight: 650; font-size: 12.5px; white-space: nowrap; }
.slot { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f5f2ec; }
.slot:last-child { border-bottom: none; }
.slot-time { flex: 0 0 44px; font-weight: 700; color: var(--brand); font-size: 12.5px; padding-top: 1px; }
.slot-body { min-width: 0; }
.slot-title { font-weight: 650; font-size: 13.5px; }
.slot-detail { font-size: 12px; color: var(--muted); line-height: 1.6; }
.slot-cost { font-size: 11.5px; color: var(--teal); margin-top: 2px; }

/* 行程节点配图：每天一张真实实景照，加载失败自动隐藏 */
.day-photo { height: 128px; border-radius: 13px; overflow: hidden; margin-bottom: 12px; background: linear-gradient(135deg, #f3ede3, #ece3d5); }
.day-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.info-box {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; box-shadow: var(--shadow-sm);
}
.info-box h4 { margin: 0 0 8px; font-size: 13.5px; letter-spacing: -.01em; }
.info-box ul { margin: 0; padding-left: 16px; font-size: 12px; color: #4b5260; }
.info-box p { margin: 0; font-size: 12px; color: #4b5260; line-height: 1.65; }
.chips-box { display: flex; flex-wrap: wrap; gap: 5px; }
.mini-tag {
  background: #e9f7f2; color: #0d7d72;
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
}
.plan-tools { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ============================ 天气 / 机票 ============================ */
.wx-card {
  background: linear-gradient(120deg, #eaf4ff, #f5faff);
  border: 1px solid #d3e6fb; border-radius: 18px;
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.wx-card h4 { margin: 0 0 8px; font-size: 14.5px; }
.wx-card .wx-sum { font-size: 13px; color: #2c3d52; }
.wx-card .wx-tips { font-size: 12.5px; color: #5c6f86; margin-top: 8px; }
.wx-fallback { background: #fff8ec; border-color: #f5dfb8; }

.fx-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.fx-card h4 { margin: 0 0 6px; font-size: 14.5px; }
.fx-card p { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.fx-dates { font-size: 12px; color: var(--brand); margin-bottom: 6px; }

/* ============================ 图片画廊 ============================ */
.photo-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 12px; box-shadow: var(--shadow-sm);
}
.photo-hero { display: block; position: relative; border-radius: 12px; overflow: hidden; }
.photo-hero img { width: 100%; height: 260px; object-fit: cover; display: block; }
.photo-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 11px; color: #fff; font-size: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .66));
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-end;
}
.photo-cap strong { font-size: 14px; }
.photo-cap span { opacity: .85; font-size: 10.5px; text-align: right; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.photo-cell {
  position: relative; display: block; border-radius: 10px; overflow: hidden;
  aspect-ratio: 4 / 3; background: #f1ece4;
}
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.photo-cell:hover img { transform: scale(1.05); }
.photo-cell .credit {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 9px; color: #fff; padding: 12px 6px 4px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.photo-foot { font-size: 10.5px; color: var(--muted); margin-top: 8px; }
.photo-empty {
  font-size: 12.5px; color: var(--muted); padding: 14px;
  background: #fff; border: 1px dashed var(--line); border-radius: 14px;
}

/* ============================ 酒店卡 ============================ */
.ht-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.ht-card h4 { margin: 0 0 8px; font-size: 14.5px; }
.ht-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.ht-hint {
  font-size: 12px; color: #a8442f; background: #fdf0ec;
  border-radius: 10px; padding: 8px 11px; margin-bottom: 10px;
}
.ht-list { display: flex; flex-direction: column; gap: 8px; }
.ht-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px;
  transition: border-color .16s ease, background .16s ease;
}
.ht-row:hover { border-color: #ddd5c8; background: #fffdfa; }
.ht-name { font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ht-name .mini-tag { font-weight: 400; }
.ht-tips { margin: 10px 0 0; padding-left: 16px; font-size: 12px; color: var(--muted); }
.ht-tips li { margin-bottom: 3px; }
.ht-note { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.55; }

/* 来源小标签 */
.source-chip {
  display: inline-block; font-size: 10.5px; padding: 2px 9px;
  border-radius: 999px; margin-left: 6px; vertical-align: middle;
}
.source-chip.ai { background: #eef0ff; color: #5a4bd6; }
.source-chip.demo { background: #fdf0ec; color: #c2503a; }

/* ============================ 页脚 ============================ */
.foot {
  margin-top: 30px;
  background: #14161c;
  color: rgba(255, 255, 255, .68);
  padding: 46px 24px 40px;
}
.foot-inner { max-width: var(--max); margin: 0 auto; text-align: center; }
.foot-brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 14px;
}
.foot p { margin: 0; font-size: 12.5px; line-height: 1.75; }
.foot-meta { margin-top: 6px !important; font-size: 11.5px !important; color: rgba(255, 255, 255, .42) !important; }

/* ============================ 加载层 ============================ */
.loading {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(248, 245, 240, .72);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #e3ddd2; border-top-color: var(--brand);
  animation: spin .8s linear infinite; margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { margin: 0; font-size: 13px; color: var(--muted); }

/* ============================ 响应式 ============================ */
@media (max-width: 1020px) {
  .hero { padding: 60px 20px 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { height: 380px; max-width: 520px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  #featured-sec { padding: 42px 26px 46px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { gap: 10px; padding: 0 14px; height: 60px; }
  .badge { display: none; }
  .hero { padding: 44px 16px 56px; }
  .hero-art { display: none; }
  .hero-sub { font-size: 15.5px; }
  .stats { gap: 22px; }
  .stat b { font-size: 20px; }
  .section { padding: 44px 16px; }
  #featured-sec { padding: 34px 16px 38px; border-radius: 24px; }
  .featured-card { grid-template-columns: 1fr; }
  .feat-img { min-height: 220px; }
  .feat-body { padding: 24px 20px 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .chat-card { height: 78vh; min-height: 480px; border-radius: 20px; }
  .dest-grid, .info-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-hero img { height: 200px; }
  .bubble { max-width: 90%; }
  .msg.agent .agent-body { max-width: 100%; }
  .quick { border-radius: 16px; }
  .btn.go span { display: none; }
  .btn.go { padding: 12px 15px; }
}

/* ============================ 语音输入按钮 ============================ */
.mic {
  flex: none; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 18px; line-height: 1;
  display: grid; place-items: center; color: #5f6673;
  transition: all .16s ease;
}
.mic:hover { border-color: rgba(244, 85, 61, .5); color: var(--brand); }
.mic.recording {
  background: var(--brand); border-color: var(--brand); color: #fff;
  animation: micpulse 1.1s infinite;
}
.mic:disabled { cursor: not-allowed; }
.composer .mic { align-self: flex-end; }
@keyframes micpulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 85, 61, .5); }
  70% { box-shadow: 0 0 0 10px rgba(244, 85, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 85, 61, 0); }
}

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

/* ============================ 滚动入场 ============================ */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================ 聊天工具条 + 语音播报 + 分享 ============================ */
.chat-head { flex-wrap: wrap; }
.chat-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); font-size: 15px; cursor: pointer;
  display: grid; place-items: center; line-height: 1;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
.icon-btn:hover { border-color: rgba(244, 85, 61, .5); color: var(--brand); transform: translateY(-1px); }
.icon-btn.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.icon-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn[hidden] { display: none !important; }

/* 每条 AI 回复上的“朗读”小按钮 */
.msg.agent .bubble { position: relative; }
.speak-btn {
  position: absolute; top: 7px; right: 7px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .92); font-size: 12px; cursor: pointer;
  display: grid; place-items: center; opacity: .55; transition: opacity .16s ease, border-color .16s ease, background .16s ease;
  z-index: 2;
}
.msg.agent:hover .speak-btn { opacity: 1; }
.speak-btn:hover { border-color: var(--brand); color: var(--brand); background: #fff6f2; }

/* ============================ 上下文快捷回复 ============================ */
.quick-replies {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 4px 2px;
}
.qr-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.qr-row { display: flex; gap: 8px; flex-wrap: wrap; }
.qrep {
  font-size: 12.5px; padding: 7px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-weight: 600;
  transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}
.qrep:hover { border-color: rgba(244, 85, 61, .5); color: var(--brand); background: #fff6f2; transform: translateY(-1px); }

/* ============================ 多城行程卡 ============================ */
.multiplan { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
.mp-head {
  background: linear-gradient(135deg, #fff3ee, #f4edff);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
}
.mp-head h3 { margin: 0 0 3px; font-size: 16px; font-weight: 730; letter-spacing: -.015em; }
.mp-route { margin: 0; font-size: 13px; color: var(--brand); font-weight: 600; }
.mp-city {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--surface); padding: 14px;
}
.mp-city-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mp-idx {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
}
.mp-city-head h4 { margin: 0; font-size: 16px; font-weight: 730; letter-spacing: -.015em; }
.mp-city .plan-hero { height: 150px; }
.mp-city .plan-overview h5 { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.mp-city .plan-overview h4,
.mp-city .info-box h6 { margin: 0 0 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.mp-city .day-head h4 { margin: 0; font-size: 14.5px; font-weight: 700; }

@media (max-width: 760px) {
  .pref-summary { max-width: 42vw; }
  .chat-tools .btn.ghost.sm { padding: 6px 10px; }
  .quick-replies { padding-left: 2px; padding-right: 2px; }
}

/* ============================================================
   无障碍与易用：读屏、键盘、大字、高对比、简易模式
   ============================================================ */

/* 视觉隐藏、但读屏可读 */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* 键盘用户：第一个 Tab 就能直达对话 */
.skip-link {
  position: fixed; left: 12px; top: -72px; z-index: 200;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  transition: top .18s ease;
}
.skip-link:focus { top: 46px; }

/* 统一的焦点可见样式（键盘操作才出现，不干扰鼠标用户） */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }

/* 触控目标放大：老人手抖、孩子手指粗也能点中 */
.icon-btn { width: 40px; height: 40px; }
.qrep, .chip, .sug, .lang-btn { min-height: 38px; }
.speak-btn { min-width: 34px; min-height: 34px; }

/* ---------------- 设置面板 ---------------- */
.nav-right { position: relative; }
.a11y-btn { font-size: 16px; }
.a11y-panel {
  position: absolute; top: calc(100% + 12px); right: 0; width: 324px;
  max-width: calc(100vw - 28px); z-index: 120;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-md); padding: 14px;
}
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a11y-head b { font-size: 15px; }
.a11y-hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 10px; line-height: 1.5; }
.a11y-opt {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
  min-height: 58px; padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid var(--line); background: var(--paper-2); border-radius: 12px;
  cursor: pointer; color: var(--ink); font: inherit;
  transition: border-color .16s ease, background .16s ease;
}
.a11y-opt > span:first-child { font-size: 19px; line-height: 1.2; }
.a11y-opt .ao-text { display: flex; flex-direction: column; gap: 2px; }
.a11y-opt b { font-size: 14px; }
.a11y-opt i { font-size: 12px; color: var(--muted); font-style: normal; line-height: 1.45; }
.a11y-opt:hover { border-color: rgba(244, 85, 61, .5); }
.a11y-opt[aria-pressed="true"] { border-color: var(--brand); background: #fff4f0; box-shadow: inset 0 0 0 1px var(--brand); }
.a11y-opt[aria-pressed="true"] b::after { content: " ✓"; color: var(--brand); }
.a11y-foot { font-size: 11.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
/* 三个一键场景模式 */
.a11y-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 6px; }
.a11y-mode {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 58px; padding: 6px 3px; border: 1px solid var(--line);
  background: var(--paper-2); border-radius: 12px; cursor: pointer; color: var(--ink); font: inherit;
  transition: border-color .16s, background .16s, transform .16s;
}
.a11y-mode > span { font-size: 21px; line-height: 1; }
.a11y-mode b { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.a11y-mode:hover { border-color: var(--brand); transform: translateY(-1px); }
.a11y-mode[aria-pressed="true"] { border-color: var(--brand); background: #fff4f0; box-shadow: inset 0 0 0 1px var(--brand); }
.a11y-subhint { font-size: 11px; color: var(--muted); margin: 0 0 10px; line-height: 1.4; }
/* 聋哑模式：视觉提醒横幅 + 屏幕闪光（不依赖声音） */
.visual-alert {
  position: fixed; left: 50%; top: 16px; transform: translate(-50%, -140%);
  z-index: 9999; max-width: calc(100vw - 32px); width: min(560px, calc(100vw - 32px));
  padding: 16px 20px; border: 3px solid #111; border-radius: 14px;
  background: #fff8d6; color: #111; font-size: 19px; font-weight: 800; line-height: 1.45;
  box-shadow: 0 12px 40px rgba(0,0,0,.3); text-align: center;
  opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2,.9,.3,1.2), opacity .25s;
}
.visual-alert.show { transform: translate(-50%, 0); opacity: 1; }
html.flash-once body::after {
  content: ''; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  border: 8px solid var(--brand); animation: waFlash .9s ease-out forwards;
}
@keyframes waFlash { 0% { opacity: .9; } 100% { opacity: 0; } }
html.a11y-contrast .a11y-mode[aria-pressed="true"] { background: #ffe600; border-color: #111; }
html.a11y-contrast .visual-alert { background: #ffe600; border: 4px solid #111; }

/* ---------------- 大字号 ---------------- */
html.a11y-large body { zoom: 1.18; }
@media (max-width: 760px) { html.a11y-large body { zoom: 1.08; } }

/* ---------------- 高对比 ---------------- */
html.a11y-contrast {
  --paper: #ffffff; --paper-2: #ffffff; --surface: #ffffff;
  --ink: #000000; --ink-soft: #141414; --muted: #3b3b3b;
  --line: #111111; --line-soft: #cfcfcf;
  --brand: #b3261e; --brand-2: #8c1d16;
  --gold: #7a4d00; --teal: #0b6b60; --violet: #3f2fbf;
}
html.a11y-contrast .nav { background: #fff; border-bottom: 2px solid #111; }
html.a11y-contrast .btn,
html.a11y-contrast .chip,
html.a11y-contrast .qrep,
html.a11y-contrast .sug,
html.a11y-contrast .lang-btn,
html.a11y-contrast .icon-btn,
html.a11y-contrast .feature,
html.a11y-contrast .featured-card,
html.a11y-contrast .card,
html.a11y-contrast .dest-card,
html.a11y-contrast .day-card,
html.a11y-contrast .info-box,
html.a11y-contrast .bubble { border: 2px solid #111; }
html.a11y-contrast a { text-decoration: underline; }
html.a11y-contrast .kicker,
html.a11y-contrast .meta,
html.a11y-contrast .slot-detail { color: #222 !important; }

/* ---------------- 简易模式（老人 / 孩子） ---------------- */
html.a11y-simple #features,
html.a11y-simple .hero-art,
html.a11y-simple .stats,
html.a11y-simple .section-head .kicker,
html.a11y-simple .section-head p,
html.a11y-simple .pref-summary,
html.a11y-simple .foot-meta { display: none !important; }
html.a11y-simple .hero-title { font-size: clamp(30px, 4vw, 44px); }
html.a11y-simple .hero-sub { font-size: 17px; }
html.a11y-simple .chip,
html.a11y-simple .qrep,
html.a11y-simple .sug { font-size: 15.5px; padding: 12px 16px; min-height: 48px; }
html.a11y-simple .btn { font-size: 15px; padding: 12px 18px; }
html.a11y-simple .chat-card { border-width: 2px; }
html.a11y-simple .dest-summary,
html.a11y-simple .slot-detail { font-size: 14.5px; line-height: 1.65; }

/* ============================================================
   三段式搜索（Airbnb 式）
   ============================================================ */
.searchbar { position: relative; margin-top: 24px; max-width: 646px; z-index: 40; }

.sb-segs {
  display: flex; align-items: center; gap: 2px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 6px 6px 10px;
  box-shadow: var(--shadow-md);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.searchbar.open .sb-segs { box-shadow: var(--shadow-lg); border-color: rgba(244, 85, 61, .35); }

.sb-seg {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px;
  padding: 8px 14px; border: 0; border-radius: 999px; background: none;
  text-align: left; cursor: pointer; color: inherit;
  transition: background .16s ease;
}
.sb-seg:hover, .sb-seg.active { background: #f7f3ec; }
.sb-lab {
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  color: var(--muted); text-transform: uppercase;
}
.sb-val {
  font-size: 14px; color: #9aa0ab; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-val.filled { color: var(--ink); font-weight: 650; }
.sb-div { width: 1px; height: 30px; background: var(--line); flex: 0 0 auto; }

.sb-mic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid transparent; background: none; cursor: pointer;
  font-size: 17px; line-height: 1; color: var(--ink);
  display: grid; place-items: center; transition: background .16s ease;
}
.sb-mic:hover { background: #f7f3ec; }
.sb-go {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--brand); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px -8px rgba(244, 85, 61, .8);
  transition: transform .16s ease, background .16s ease;
}
.sb-go:hover { background: var(--brand-2); transform: scale(1.05); }

.sb-panels { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60; }
.sb-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 16px;
}
.sb-panel-title {
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); margin: 2px 0 8px;
}
.sb-panel-title ~ .sb-panel-title { margin-top: 14px; }
.sb-hint { margin: 6px 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
#heroInput {
  width: 100%; border: 0; border-bottom: 1px solid var(--line);
  padding: 6px 2px 10px; font-size: 16px; font-family: inherit;
  background: none; color: var(--ink); outline: none;
}
#heroInput:focus { border-bottom-color: var(--brand); }
#heroInput::placeholder { color: #a9aeb8; }

.sb-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-chip {
  min-height: 36px; padding: 7px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper-2);
  font-size: 13.5px; color: var(--ink); cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.sb-chip:hover { border-color: rgba(244, 85, 61, .45); }
.sb-chip.on { border-color: var(--brand); background: #fff2ee; color: var(--brand); font-weight: 650; }
.sb-pop { border-style: dashed; }

/* 兴趣分类栏（Airbnb 体验分类） */
.cat-rail {
  display: flex; gap: 10px; margin-top: 20px; max-width: 646px;
  overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none;
}
.cat-rail::-webkit-scrollbar { display: none; }
.cat-item {
  flex: 0 0 auto; width: 82px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 0; background: none; cursor: pointer; padding: 0; color: var(--ink);
}
.cat-ico {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  font-size: 26px; background: linear-gradient(150deg, #fff6ef, #ffe9df);
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-item:hover .cat-ico {
  transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(244, 85, 61, .4);
}
.cat-lab { font-size: 12.5px; color: var(--ink-soft); font-weight: 550; white-space: nowrap; }

/* ============================================================
   信任条（Booking 式 Why-us）
   ============================================================ */
.trust { padding: 0 24px; }
.trust-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.trust-item { background: var(--paper-2); padding: 22px 24px; display: flex; flex-direction: column; gap: 2px; }
.trust-item b { font-size: 26px; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.trust-item span { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ============================================================
   探索板（Google Flights Explore 式）
   ============================================================ */
.explore-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-sm);
}
.ex-controls { display: flex; flex-wrap: wrap; gap: 18px 34px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.ex-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ex-lab { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ex-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-chip {
  min-height: 34px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper-2);
  font-size: 13px; color: var(--ink); cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.ex-chip:hover { border-color: rgba(244, 85, 61, .45); }
.ex-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

.ex-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.ex-card {
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--surface); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ex-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ex-img {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(150deg, #fff1e8, #e9f2ef); font-size: 34px;
}
.ex-img.has-img { background: #222; }
.ex-img img { width: 100%; height: 100%; object-fit: cover; }
.ex-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ex-top { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ex-top h3 { margin: 0; font-size: 15.5px; letter-spacing: -.01em; }
.ex-country { font-size: 11.5px; color: var(--muted); }
.ex-why { display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; }
.ex-why-chip {
  font-size: 11px; padding: 3px 7px; border-radius: 6px;
  background: #f2f7f4; color: var(--teal); font-weight: 600;
}
.ex-meta { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--muted); }
.ex-go { margin-top: auto; align-self: flex-start; }
.ex-skel {
  border-radius: var(--r-md); aspect-ratio: 4 / 4.6;
  background: linear-gradient(100deg, #f4f0e9 20%, #fbf9f5 38%, #f4f0e9 56%);
  background-size: 300% 100%; animation: shimmer 1.4s infinite linear;
}
.ex-empty { grid-column: 1 / -1; margin: 0; padding: 26px; text-align: center; color: var(--muted); font-size: 14px; }

/* ============================================================
   心愿单（Airbnb 式收藏）
   ============================================================ */
.wish-btn { position: relative; }
.wish-count {
  position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; padding: 0 4px;
}
.wish-btn.has { color: var(--brand); }
.wish-panel {
  position: absolute; top: calc(100% + 12px); right: 0; width: 306px;
  max-width: calc(100vw - 28px); z-index: 120;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-md); padding: 14px;
}
.wish-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.wish-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2);
}
.wish-emoji { font-size: 18px; }
.wish-name { flex: 1; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wish-del { width: 28px !important; height: 28px !important; font-size: 12px; }
.wish-empty { margin: 4px 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

.wish-heart {
  position: absolute; top: 9px; right: 9px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .88); color: #3b4048;
  font-size: 17px; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transition: transform .16s ease, color .16s ease, background .16s ease;
}
.wish-heart:hover { transform: scale(1.1); }
.wish-heart.on { color: var(--brand); background: #fff; }

/* ============================================================
   预算拆解（Booking 式价格透明）
   ============================================================ */
.budget-box {
  margin: 4px 0 16px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-2);
}
.bd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.bd-head b { font-size: 14px; }
.bd-head span { font-size: 12.5px; color: var(--brand); font-weight: 650; }
.bd-row { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 10px; margin-bottom: 7px; }
.bd-k { font-size: 12.5px; color: var(--ink-soft); }
.bd-bar { height: 7px; border-radius: 999px; background: #efe9df; overflow: hidden; }
.bd-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.bd-v { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.bd-note { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.55; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .ex-results { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .searchbar { max-width: 100%; }
  .sb-seg { padding: 7px 9px; }
  .sb-lab { font-size: 10px; }
  .sb-val { font-size: 12.5px; max-width: 92px; }
  .sb-mic { width: 34px; height: 34px; font-size: 15px; }
  .sb-go { width: 42px; height: 42px; }
  .cat-rail { max-width: 100%; }
  .ex-results { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust-item { padding: 16px 18px; }
  .trust-item b { font-size: 22px; }
  .explore-card { padding: 16px; border-radius: var(--r-lg); }
}

/* ---------------- 无障碍：高对比 / 简易 ---------------- */
html.a11y-contrast .sb-segs,
html.a11y-contrast .sb-panel,
html.a11y-contrast .trust-grid,
html.a11y-contrast .trust-item,
html.a11y-contrast .explore-card,
html.a11y-contrast .ex-card,
html.a11y-contrast .budget-box,
html.a11y-contrast .wish-panel,
html.a11y-contrast .wish-row,
html.a11y-contrast .cat-ico { border: 2px solid #111; }
html.a11y-contrast .ex-chip.on { background: #111; color: #fff; }
html.a11y-contrast .sb-chip.on { background: #fff; color: #b3261e; border-width: 2px; }
html.a11y-contrast .ex-why-chip { background: #fff; color: #0b6b60; border: 1px solid #111; }

html.a11y-simple .trust,
html.a11y-simple .cat-rail { display: none !important; }

/* 卡片图片容器需要相对定位，供心形收藏浮层使用 */
.dest-img { position: relative; }

/* 修复：搜索栏的 min-content 会把 hero 网格撑爆（网格子项必须允许收缩） */
.hero-copy { min-width: 0; }

/* ---------------- V1.4 Handy Pack：实用信息卡 / 智能打包 / 地图链接 ---------------- */
.facts-card, .packing-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, rgba(0,0,0,.08));
  border-radius: var(--r-lg, 16px);
  padding: 18px 20px;
}
.facts-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.facts-head h3 { margin: 0; font-size: 17px; }
.facts-tag {
  font-size: 12.5px; font-weight: 700; color: var(--brand, #b3261e);
  background: color-mix(in srgb, var(--brand, #b3261e) 8%, transparent);
  padding: 4px 10px; border-radius: 999px;
}
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.fact {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--line-soft, #f0ece4);
  border: 1px solid var(--line, rgba(0,0,0,.07));
  border-radius: 12px; padding: 12px 14px;
}
.fact-ic { font-size: 20px; line-height: 1.2; }
.fact-k { font-size: 11.5px; color: var(--muted, #777); letter-spacing: .04em; }
.fact-v { font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.fact-sub { font-size: 12.5px; color: var(--muted, #666); margin-top: 4px; }

/* 打包清单（分类 + 可勾选） */
.pk-group {
  display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap;
  padding: 6px 0; border-bottom: 1px dashed var(--line, rgba(0,0,0,.08));
}
.pk-group:last-child { border-bottom: none; }
.pk-gname {
  font-size: 11.5px; font-weight: 700; color: var(--brand, #b3261e);
  background: color-mix(in srgb, var(--brand, #b3261e) 8%, transparent);
  border-radius: 6px; padding: 2px 8px; white-space: nowrap;
}
.pk-items { display: inline-flex; gap: 6px 12px; flex-wrap: wrap; }
.pk-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; cursor: pointer; min-height: 24px;
}
.pk-item input { width: 15px; height: 15px; accent-color: var(--brand, #b3261e); cursor: pointer; }
.pk-item input:checked + span {
  text-decoration: line-through; color: var(--muted, #999);
}

/* 景点地图链接 */
.slot-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }a.slot-map {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; font-size: 13px; text-decoration: none;
  border-radius: 8px; background: color-mix(in srgb, var(--brand, #b3261e) 7%, transparent);
  transition: transform .12s ease, background .12s ease;
}
a.slot-map:hover, a.slot-map:focus-visible { transform: scale(1.12); background: color-mix(in srgb, var(--brand, #b3261e) 15%, transparent); }

/* 行程卡里的打包清单压一点内边距 */
.info-box .pk-group { padding: 4px 0; }

/* 高对比模式适配 */
html.a11y-contrast .facts-card, html.a11y-contrast .packing-card,
html.a11y-contrast .fact { border-width: 2px; border-color: #111; }
html.a11y-contrast .pk-gname, html.a11y-contrast .facts-tag { background: #fff; color: #0b3d91; border: 1px solid #111; }
html.a11y-contrast a.slot-map { background: #fff; border: 1px solid #111; }

/* 手机端 */
@media (max-width: 760px) {
  .facts-card, .packing-card { padding: 14px; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { padding: 10px 12px; }
  .plan-tools { flex-wrap: wrap; }
}
.searchbar { width: 100%; min-width: 0; }

/* ---------------- V1.5 细节包：签证/时差/疫苗/退税行 + 语言急救包 + 倒计时 ---------------- */
.fact-wide { grid-column: 1 / -1; background: color-mix(in srgb, var(--gold, #d99526) 7%, transparent); }
.phrases-box { margin-top: 14px; }
.phrases-box h4 { margin: 0 0 10px; font-size: 14.5px; }
.ph-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; }
.ph-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: var(--line-soft, #f0ece4); border: 1px solid var(--line, #e7e1d7);
  border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit;
  transition: transform .12s ease, border-color .12s ease;
  min-height: 38px;
}
.ph-row:hover { transform: translateY(-1px); border-color: var(--brand, #f4553d); }
.ph-concept {
  font-size: 11.5px; font-weight: 700; color: var(--brand, #f4553d);
  background: color-mix(in srgb, var(--brand, #f4553d) 8%, transparent);
  border-radius: 6px; padding: 2px 8px; white-space: nowrap;
}
.ph-text { font-size: 14.5px; font-weight: 600; flex: 0 1 auto; }
.ph-pron { font-size: 12px; color: var(--muted, #767d89); margin-left: auto; white-space: nowrap; }

/* 出发倒计时 chip */
.cnt-chip {
  display: inline-block; margin-top: 8px;
  font-size: 13px; font-weight: 700; color: var(--brand, #f4553d);
  background: color-mix(in srgb, var(--brand, #f4553d) 9%, transparent);
  border-radius: 999px; padding: 5px 12px;
}
html.a11y-contrast .ph-row { border: 2px solid #111; background: #fff; }
html.a11y-contrast .fact-wide { background: #fff; border: 2px solid #111; }
html.a11y-contrast .ph-concept, html.a11y-contrast .cnt-chip { background: #fff; color: #0b3d91; border: 1px solid #111; }
@media (max-width: 760px) {
  .ph-list { grid-template-columns: 1fr; }
  .ph-pron { white-space: normal; }
}

/* ---------------- V1.6：老人/孩子/宠物分组 + 离家小清单 ---------------- */
.pk-group-home {
  grid-column: 1 / -1;
  background: color-mix(in srgb, var(--gold, #d99526) 8%, transparent);
  border: 1px dashed color-mix(in srgb, var(--gold, #d99526) 45%, transparent);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 4px;
}
.pk-home-hint { margin: 8px 2px 0; font-size: 12px; color: var(--muted, #767d89); }
html.a11y-contrast .pk-group-home { background: #fff; border: 2px solid #111; }

/* ---------------- V1.7：房屋托管卡（短租 / 换房） ---------------- */
.housing-card { display: grid; gap: 12px; }
.hs-section {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e7e1d7);
  border-radius: 14px;
  padding: 14px 16px;
}
.hs-h { margin: 0 0 10px; font-size: 16px; }
.hs-platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.hs-plat {
  display: flex; flex-direction: column; gap: 3px; text-decoration: none;
  background: var(--line-soft, #f0ece4); border: 1px solid var(--line, #e7e1d7);
  border-radius: 12px; padding: 10px 12px; cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
  min-height: 38px;
}
.hs-plat:hover { transform: translateY(-1px); border-color: var(--brand, #f4553d); }
.hs-plat-name { font-weight: 700; font-size: 14px; color: inherit; }
.hs-plat-go { color: var(--brand, #f4553d); font-weight: 700; }
.hs-plat-desc { font-size: 12px; color: var(--muted, #767d89); }
.hs-sub { margin: 12px 0 6px; font-size: 13px; color: var(--brand, #f4553d); }
.hs-steps { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.65; }
.hs-cautions { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.6; color: var(--muted, #767d89); }
.hs-note { margin: 0; font-size: 12.5px; color: var(--muted, #767d89); }
html.a11y-contrast .hs-section { background: #fff; border: 2px solid #111; }
html.a11y-contrast .hs-plat { background: #fff; border: 2px solid #111; }
html.a11y-contrast .hs-plat-go, html.a11y-contrast .hs-sub { color: #0b3d91; }
@media (max-width: 760px) { .hs-platforms { grid-template-columns: 1fr; } }

/* ---------------- V1.8：计价货币选择条（语言自动 + 用户可切换） ---------------- */
.ccy-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 10px 0 4px;
}
.ccy-label { font-size: 12.5px; font-weight: 700; color: var(--muted, #767d89); }
.ccy-select {
  font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ink, #1d2430); background: var(--surface, #fff);
  border: 1px solid var(--line, #e7e1d7); border-radius: 10px;
  padding: 7px 10px; min-height: 38px; cursor: pointer;
}
.ccy-select:hover { border-color: var(--brand, #f4553d); }
.ccy-select:focus-visible { outline: 2px solid var(--brand, #f4553d); outline-offset: 2px; }
.ccy-hint { font-size: 12px; color: var(--muted, #767d89); }
html.a11y-contrast .ccy-select { background: #fff; color: #111; border: 2px solid #111; }
html.a11y-contrast .ccy-label, html.a11y-contrast .ccy-hint { color: #111; }
@media (max-width: 760px) {
  .ccy-bar { gap: 8px; }
  .ccy-hint { flex-basis: 100%; }
}

/* ---------------- V1.9：通讯与网络卡（拨号转换 + 四种上网方案） ---------------- */
.net-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, rgba(0,0,0,.08));
  border-radius: var(--r-lg, 16px);
  padding: 18px 20px;
  display: grid; gap: 14px;
}
.net-sec { border-top: 1px dashed var(--line, rgba(0,0,0,.1)); padding-top: 12px; }
.net-sec:first-of-type { border-top: 0; padding-top: 0; }
.net-h { margin: 0 0 10px; font-size: 14.5px; color: var(--brand, #f4553d); }
.net-sub { margin: -4px 0 10px; font-size: 12.5px; color: var(--muted, #767d89); }
.net-dial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.net-kv {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  background: var(--line-soft, #f0ece4); border: 1px solid var(--line, rgba(0,0,0,.07));
  border-radius: 10px; padding: 8px 12px;
}
.net-kv span { font-size: 11.5px; color: var(--muted, #767d89); }
.net-kv b { font-size: 15px; }
.net-rule { margin: 10px 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft, #39404c); }
.net-label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.net-convert { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(240px, 1.4fr); gap: 10px; align-items: stretch; }
.net-input {
  font: inherit; font-size: 15px; width: 100%; min-height: 44px;
  padding: 9px 12px; color: var(--ink, #1d2430); background: var(--surface, #fff);
  border: 1px solid var(--line, #e7e1d7); border-radius: 10px;
}
.net-input:focus-visible { outline: 2px solid var(--brand, #f4553d); outline-offset: 2px; }
.net-result {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--line-soft, #f0ece4); border: 1px solid var(--line, rgba(0,0,0,.07));
  border-radius: 10px; padding: 7px 10px; min-height: 44px;
}
.net-result-label { font-size: 11px; color: var(--muted, #767d89); flex-basis: 100%; line-height: 1; }
.net-result-num { font-size: 15px; font-variant-numeric: tabular-nums; word-break: break-all; }
.net-result-num.is-invalid { color: var(--brand, #f4553d); font-size: 12px; font-weight: 500; }
.net-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; min-width: 58px; padding: 6px 12px; margin-left: auto;
  font: inherit; font-size: 12.5px; font-weight: 700; text-decoration: none;
  color: var(--brand, #f4553d); background: var(--surface, #fff);
  border: 1px solid var(--brand, #f4553d); border-radius: 9px; cursor: pointer;
}
.net-btn:hover { background: color-mix(in srgb, var(--brand, #f4553d) 10%, #fff); }
.net-btn:focus-visible { outline: 2px solid var(--brand, #f4553d); outline-offset: 2px; }
.net-btn:disabled { opacity: .45; cursor: not-allowed; }
.net-btn.is-disabled { opacity: .45; pointer-events: none; }
.net-call { margin-left: 0; }
.net-examples { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 12px; color: var(--muted, #767d89); }
.net-emg-row { display: flex; flex-wrap: wrap; gap: 8px; }
.net-emg {
  display: flex; flex-direction: column; gap: 2px; min-width: 96px; min-height: 52px;
  padding: 8px 12px; text-decoration: none; border-radius: 10px;
  color: var(--ink, #14161c); background: var(--line-soft, #f0ece4);
  border: 1px solid var(--line, rgba(0,0,0,.07));
}
.net-emg:hover { border-color: var(--brand, #f4553d); }
.net-emg:focus-visible { outline: 2px solid var(--brand, #f4553d); outline-offset: 2px; }
.net-emg-num { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.net-emg-label { font-size: 11px; color: var(--muted, #767d89); }
.net-plans { display: grid; gap: 8px; }
.net-plan {
  border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: 12px;
  background: var(--paper-2, #fbfaf7); overflow: hidden;
}
.net-plan > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; min-height: 44px; cursor: pointer; list-style: none;
}
.net-plan > summary::-webkit-details-marker { display: none; }
.net-plan > summary::before { content: '▸'; color: var(--brand, #f4553d); font-weight: 800; margin-right: 8px; }
.net-plan[open] > summary::before { content: '▾'; }
.net-plan-t { font-size: 14px; font-weight: 700; flex: 1; }
.net-plan-best { font-size: 11.5px; color: var(--muted, #767d89); }
.net-plan-body { padding: 4px 14px 14px 30px; }
.net-plan-body h5 { margin: 10px 0 4px; font-size: 12px; color: var(--brand, #f4553d); }
.net-plan-body ol, .net-plan-body ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; }
.net-cautions { color: var(--muted, #767d89); }
.net-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.net-chip {
  font-size: 12.5px; padding: 5px 10px; border-radius: 999px;
  background: var(--line-soft, #f0ece4); border: 1px solid var(--line, rgba(0,0,0,.07));
}
.net-band { margin: 8px 0; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.net-note { margin: 5px 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft, #39404c); }
.net-tips { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.7; }
.net-tips li { margin-bottom: 4px; }
html.a11y-contrast .net-card,
html.a11y-contrast .net-plan,
html.a11y-contrast .net-kv,
html.a11y-contrast .net-emg,
html.a11y-contrast .net-chip,
html.a11y-contrast .net-result { background: #fff; border: 2px solid #111; }
html.a11y-contrast .net-card,
html.a11y-contrast .net-kv span,
html.a11y-contrast .net-sub,
html.a11y-contrast .net-plan-best,
html.a11y-contrast .net-emg-label,
html.a11y-contrast .net-examples,
html.a11y-contrast .net-cautions,
html.a11y-contrast .net-rule,
html.a11y-contrast .net-note { color: #111; }
html.a11y-contrast .net-h, html.a11y-contrast .net-plan-body h5 { color: #0b3d91; }
html.a11y-contrast .net-btn,
html.a11y-contrast .net-input { background: #fff; color: #111; border: 2px solid #111; }
@media (max-width: 760px) {
  .net-card { padding: 15px 14px; }
  .net-convert { grid-template-columns: 1fr; }
  .net-dial-grid { grid-template-columns: 1fr; }
  .net-btn { min-width: 54px; }
}

/* ============================================================
   V2.0 一人一面 + 出行全包卡
   ============================================================ */
.persona-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; min-width: 0; }
.pr-lab { font-size: 12px; color: var(--muted); margin-right: 2px; }
.pr-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: 13px; cursor: pointer; white-space: nowrap; }
.pr-btn:hover { border-color: var(--brand); color: var(--ink); }
.pr-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pr-btn.pr-omni { margin-left: auto; background: #fff2ec; border-color: #ffd6c6; color: #b9432d; }
.pr-btn.pr-omni:hover { background: #ffe6da; }
html.persona-youth .pr-btn.pr-omni { background: var(--brand); border-color: var(--brand); color: #fff; }
html.persona-elder .trust, html.persona-elder #features, html.persona-elder .hero-art,
html.persona-kids .trust, html.persona-kids #features, html.persona-kids .hero-art,
html.persona-assist .trust, html.persona-assist #features, html.persona-assist .hero-art { display: none; }
html.persona-elder .pr-btn, html.persona-kids .pr-btn { min-height: 44px; font-size: 15px; padding: 9px 16px; }
html.persona-kids .omni-sum { font-size: 16px; }

.omni-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; margin-top: 10px; }
.omni-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line-soft); background: var(--paper-2); }
.omni-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.omni-sub { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-top: 6px; }
.omni-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.omni-sec { border-top: 1px solid var(--line-soft); }
.omni-sec:first-of-type { border-top: 0; }
.omni-sum { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 20px; cursor: pointer; list-style: none; font-size: 14px; color: var(--ink); }
.omni-sum::-webkit-details-marker { display: none; }
.omni-ico { font-size: 17px; width: 24px; text-align: center; }
.omni-sum b { font-weight: 600; flex: 1; }
.omni-chev { color: var(--muted); transition: transform .2s; }
.omni-sec[open] .omni-chev { transform: rotate(180deg); }
.omni-body { padding: 0 20px 16px 54px; }
.omni-list { margin: 0 0 12px; padding-left: 18px; }
.omni-list li { font-size: 13px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 4px; }
.omni-nums { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.omni-num { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid #ffd9d0; border-radius: 12px; background: #fff5f1; text-decoration: none; min-width: 110px; }
.omni-num b { font-size: 15px; color: #b9432d; }
.omni-num span { font-size: 11px; color: var(--muted); }
.omni-contacts { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; background: var(--paper-2); }
.omni-c-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.omni-c-hint { font-size: 11px; color: var(--muted); margin: 3px 0 10px; }
.omni-c-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.omni-c-field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.omni-c-field input { min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--ink); background: var(--surface); }
.omni-c-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.omni-c-msg { font-size: 12px; color: var(--teal); }
.omni-kids { background: #f3f7ff; border: 1px solid #dbe7ff; border-radius: 12px; padding: 12px; margin: 8px 0; }
.omni-kids-h { font-size: 13px; font-weight: 600; color: #24509b; margin-bottom: 8px; }
.omni-kids-row { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.6; margin-bottom: 5px; }
.omni-kids-row b { color: #24509b; min-width: 62px; flex: none; }
.omni-empty, .omni-hint { font-size: 12.5px; color: var(--muted); margin: 8px 0; }
.omni-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.omni-link { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: 12.5px; text-decoration: none; }
.omni-link:hover { border-color: var(--brand); color: var(--brand); }
.omni-share { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 8px; }
.omni-share-text { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); background: var(--paper-2); resize: vertical; }
html.a11y-contrast .omni-card, html.a11y-contrast .omni-num, html.a11y-contrast .omni-kids { border: 2px solid #111; background: #fff; color: #111; }
html.a11y-contrast .omni-list li, html.a11y-contrast .omni-sub, html.a11y-contrast .omni-note { color: #111; }
@media (max-width: 640px) {
  .persona-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .pr-btn.pr-omni { margin-left: 0; }
  .omni-head { padding: 15px 14px; }
  .omni-title { font-size: 15px; }
  .omni-sum { padding: 10px 14px; }
  .omni-body { padding: 0 14px 14px; }
  .omni-c-grid { grid-template-columns: 1fr; }
}

/* ============ V2.2 整趟行程板：卡内总览条 + 对话里的逐日总表 ============ */
.board-strip { margin: 14px 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-2); padding: 14px 16px 16px; }
.bs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bs-head strong { display: block; font-size: 14px; }
.bs-head span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.bs-cells { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.bs-cell { flex: 0 0 120px; min-height: 86px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px 11px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; scroll-snap-align: start; transition: border-color .18s, transform .18s; }
.bs-cell:hover, .bs-cell:focus-visible { border-color: var(--brand); transform: translateY(-2px); }
.bs-n { font-size: 10px; letter-spacing: .16em; color: var(--brand); font-weight: 700; }
.bs-t { font-size: 12px; font-weight: 600; line-height: 1.35; }
.bs-p { font-size: 10.5px; color: var(--muted); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.board-card { margin-top: 8px; }
.bc-head h3 { margin: 0 0 4px; font-size: 16px; }
.bc-head p { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.bc-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.bc-thead, .bc-row { display: grid; grid-template-columns: 46px 60px 88px minmax(0, 1fr) 96px; gap: 8px; align-items: center; padding: 9px 12px; }
.bc-thead { background: var(--paper-2); font-size: 9.5px; letter-spacing: .14em; color: var(--muted); }
.bc-row { width: 100%; border: 0; border-top: 1px solid var(--line-soft); background: var(--surface); text-align: left; cursor: pointer; font: inherit; color: inherit; min-height: 44px; }
.bc-row:hover, .bc-row:focus-visible { background: #fff7f4; }
.bc-day { font-weight: 700; color: var(--brand); font-size: 12px; }
.bc-date, .bc-city, .bc-hotel { font-size: 11.5px; color: var(--muted); }
.bc-places { font-size: 12px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-open { margin-top: 12px; }
html.a11y-contrast .board-strip, html.a11y-contrast .bc-table, html.a11y-contrast .bs-cell, html.a11y-contrast .bc-row { border: 2px solid #111; }
html.a11y-contrast .bs-p, html.a11y-contrast .bc-date, html.a11y-contrast .bc-city, html.a11y-contrast .bc-hotel, html.a11y-contrast .bs-head span { color: #111; }
@media (max-width: 640px) {
  .board-strip { padding: 12px; }
  .bs-head { flex-wrap: wrap; }
  .bc-thead { display: none; }
  .bc-row { grid-template-columns: 42px 58px 1fr; gap: 6px; padding: 10px; }
  .bc-places { grid-column: 1 / -1; white-space: normal; }
  .bc-hotel { grid-column: 1 / -1; }
}

/* ---------- V2.3 聊天概念卡 / 断网提示 ---------- */
.cp-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; margin-top: 8px; box-shadow: var(--shadow-sm); }
.cp-head { padding: 14px 16px 2px; }
.cp-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.cp-sub { margin: 5px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; padding: 12px 14px; }
.cp-item { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.cp-bar { height: 62px; display: flex; align-items: flex-start; justify-content: flex-end; padding: 8px; }
.cp-no { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: rgba(255,255,255,.88); }
.cp-body { padding: 10px 12px 12px; min-width: 0; }
.cp-name { display: block; font-size: 14px; color: var(--ink); line-height: 1.4; }
.cp-line { margin: 5px 0 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.cp-things { margin: 0; padding-left: 16px; font-size: 12px; line-height: 1.7; color: var(--ink-soft); }
.cp-things li { overflow-wrap: anywhere; }
.cp-card .card-actions { padding: 2px 14px 14px; }
.card-unknown { margin-top: 8px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--r-sm); font-size: 13px; color: var(--muted); }
@media (max-width: 480px) { .cp-grid { grid-template-columns: 1fr; } }

/* ---------- V2.4 旅途情绪急救 ---------- */
.md-card { border: 1px solid var(--line); border-radius: var(--r-md); background: linear-gradient(180deg, var(--paper-2), var(--surface)); overflow: hidden; margin-top: 8px; box-shadow: var(--shadow-sm); }
.md-head { padding: 16px 16px 4px; }
.md-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--teal); }
.md-title { margin: 6px 0 0; font-size: 19px; color: var(--ink); }
.md-sub { margin: 6px 0 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.md-steps { padding: 10px 14px 2px; display: grid; gap: 8px; }
.md-step { display: flex; gap: 10px; align-items: flex-start; min-height: 38px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.md-step:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.md-check { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
.md-step-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.md-when { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--teal); }
.md-text { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); overflow-wrap: anywhere; }
.md-step.is-done { opacity: .58; background: var(--line-soft); }
.md-step.is-done .md-text { text-decoration: line-through; }
.md-avoid { margin: 10px 14px 0; padding: 10px 12px; border-left: 3px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: #fff8ec; font-size: 12.5px; line-height: 1.65; color: var(--ink-soft); }
.md-avoid-lab { display: block; margin-bottom: 2px; font-weight: 700; color: #96661a; }
.md-tiny { margin: 10px 14px 0; min-height: 1em; font-size: 13px; line-height: 1.6; color: var(--teal); }
.md-light, .md-help { margin: 10px 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.md-help { border-color: #ecc9c1; background: #fff9f7; }
.md-light p, .md-help p { margin: 5px 0; }
.md-hint { font-size: 12px; color: var(--muted); }
.md-emg { display: inline-flex; gap: 6px; align-items: baseline; margin: 4px 8px 4px 0; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 12.5px; }
.md-emg b { font-size: 14px; color: var(--brand); }
.md-consular { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.md-acts { padding: 12px 14px 4px; }
.md-privacy { margin: 6px 14px 14px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.md-better { margin: 12px 14px 16px; font-size: 14px; color: var(--teal); }
html.a11y-contrast .md-avoid { background: var(--surface); border-color: var(--ink); }
@media (max-width: 480px) { .md-acts .btn { flex: 1 1 45%; } }

/* ---------- V2.5 紧急就医 ---------- */
.nav-right .sos-btn {
  background: #d83a2e; border: 1px solid #c23127; color: #fff;
  font-weight: 700; font-size: 12.5px; padding: 7px 13px; border-radius: 999px;
  white-space: nowrap; box-shadow: 0 6px 16px -10px rgba(216, 58, 46, .9);
}
.nav-right .sos-btn:hover { background: #c23127; color: #fff; border-color: #a92a21; }
.nav-right .sos-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mc-card { border: 1px solid #ecc9c1; border-radius: var(--r-md); background: var(--surface); overflow: hidden; margin-top: 8px; box-shadow: var(--shadow-sm); }
.mc-head { padding: 15px 16px 10px; background: linear-gradient(180deg, #fff5f2, var(--surface)); border-bottom: 1px solid var(--line-soft); }
.mc-kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: #c23127; }
.mc-title { margin: 5px 0 0; font-size: 19px; color: var(--ink); }
.mc-sub { margin: 6px 0 0; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.mc-sec { font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--ink); margin-bottom: 8px; }
.mc-numbers { padding: 12px 14px 10px; }
.mc-num-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.mc-num { display: flex; flex-direction: column; gap: 2px; min-height: 38px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper-2); text-decoration: none; color: var(--ink); }
.mc-num.is-primary { border-color: #d83a2e; background: #fff3f0; }
.mc-num:hover { border-color: #d83a2e; }
.mc-num:focus-visible { outline: 2px solid #d83a2e; outline-offset: 2px; }
.mc-num-lab { font-size: 11px; color: var(--muted); line-height: 1.4; }
.mc-num-val { font-size: 21px; font-weight: 800; letter-spacing: .02em; color: #c23127; }
.mc-num-call { font-size: 11px; font-weight: 700; color: var(--brand); }
.mc-place { margin-top: 10px; }
.mc-select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-soft); font-size: 12.5px; min-height: 38px; }
.mc-block { padding: 12px 14px; border-top: 1px solid var(--line-soft); }
.mc-hint { margin: 0 0 8px; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.mc-pad { margin: 0 14px; }
.mc-steps { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.mc-steps li { margin-bottom: 5px; }
.mc-avoid { margin-top: 10px; padding: 9px 11px; border-left: 3px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: #fff8ec; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
.mc-phrases { display: grid; gap: 6px; margin-bottom: 10px; }
.mc-phrase { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); }
.mc-ph-a { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.mc-ph-b { font-size: 12px; color: var(--muted); }
.mc-checks { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.85; color: var(--ink-soft); }
.mc-acts { padding: 10px 14px 4px; }
.mc-cons { display: inline-flex; align-items: center; text-decoration: none; }
.mc-disclaimer { margin: 10px 14px 0; padding: 9px 11px; border-radius: 10px; background: var(--line-soft); font-size: 11.5px; line-height: 1.6; color: var(--ink-soft); }
.mc-privacy { margin: 8px 14px 14px; font-size: 11.5px; color: var(--muted); }
html.a11y-contrast .mc-avoid { background: var(--surface); border-color: var(--ink); }
@media (max-width: 640px) {
  #modeBadge { display: none; }
  .nav-right .sos-btn { padding: 6px 10px; font-size: 12px; }
  .mc-num-list { grid-template-columns: 1fr 1fr; }
}
/* V2.5 收尾：常驻「紧急」按钮后，390px 下导航栏不再横向溢出。
   只压缩水平留白与字号，触控目标高度仍保持 ≥38px。 */
@media (max-width: 640px) {
  .nav-inner { padding: 0 10px; gap: 8px; }
  .brand { gap: 7px; min-width: 0; }
  .brand-mark { width: 30px; height: 30px; font-size: 14px; }
  .brand-text { font-size: 15px; }
  .nav-right { gap: 6px; min-width: 0; }
  .nav-right .sos-btn { padding: 6px 9px; min-height: 38px; border-radius: 10px; }
  .nav-right .icon-btn { width: 36px; height: 36px; }
  .lang-switch { padding: 2px; gap: 0; }
  .lang-btn { padding: 5px 6px; font-size: 11.5px; }
}
@media (max-width: 420px) {
  .brand-text { font-size: 14px; }
  .nav-right { gap: 5px; }
  .nav-right .sos-btn { padding: 6px 8px; }
  .lang-btn { padding: 5px 5px; font-size: 11px; }
}


/* ============================================================
   V2.7 夜间模式：常驻导航在夜间翻深色（概念层由 inspire.css 接管）
   ============================================================ */
html[data-theme="night"] .nav {
  background: rgba(12, 15, 20, .86);
  border-bottom-color: rgba(255, 255, 255, .1);
  backdrop-filter: saturate(150%) blur(16px);
}
html[data-theme="night"] .nav .brand-text,
html[data-theme="night"] .nav .nav-links a { color: rgba(255, 255, 255, .86); }
html[data-theme="night"] .nav .brand-text em { color: #ff9a5b; }
html[data-theme="night"] .nav .badge { color: rgba(255, 255, 255, .9); }
html[data-theme="night"] .nav .lang-btn { color: rgba(255, 255, 255, .72); }
html[data-theme="night"] .nav .lang-btn:hover { color: #fff; }
html[data-theme="night"] .nav .lang-btn.active { background: #fff; color: #0b0d12; }
html[data-theme="night"] .nav .icon-btn { color: rgba(255, 255, 255, .9); }
html[data-theme="night"] .nav .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .24); }

/* 导航图标按钮的「已开启」状态（主题 / 背景音乐） */
.nav .icon-btn.active {
  background: rgba(11, 138, 104, .16);
  border-color: rgba(11, 138, 104, .45);
  color: #0b8a68;
}
html[data-theme="night"] .nav .icon-btn.active {
  background: rgba(18, 168, 127, .22);
  border-color: rgba(18, 168, 127, .5);
  color: #8ad9b4;
}

/* ============================================================
   V2.11 · 中窄屏导航收紧（修旧账：768/1024 平板宽度导航溢出）
   只压水平 padding / gap / 字号，触控高度保持 ≥38px
   ============================================================ */
@media (max-width: 1100px) {
  .badge { display: none; }
  .nav-inner { gap: 16px; padding: 0 16px; }
  .nav-right { gap: 8px; }
  .lang-btn { padding: 5px 8px; font-size: 12px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }   /* 平板竖屏起收起锚点链接，内容靠滚动到达 */
}
@media (max-width: 520px) {
  .nav-inner { padding: 0 10px; gap: 8px; }
  .nav-right { gap: 5px; }
  .lang-switch { padding: 2px; gap: 1px; }
  .lang-btn { padding: 5px 6px; font-size: 11px; }
  .brand { gap: 7px; }
  /* 手机竖屏放不下 5 个图标：先收起氛围音乐（桌面/平板仍有） */
  .music-btn { display: none !important; }
}
@media (max-width: 400px) {
  .nav-inner { padding: 0 8px; gap: 6px; }
  .nav-right { gap: 3px; }
  .lang-switch { padding: 1px; gap: 1px; }
  .lang-btn { padding: 3px 3px; font-size: 9.5px; }
  .nav-right .sos-btn { padding: 6px 7px; font-size: 12px; }
  .brand { gap: 5px; }
  .brand-text { font-size: 13.5px; }
}

/* ============================================================
   V2.12 · 行前打包规划（件数 / 箱型 / 摆放 / 品牌）
   ============================================================ */
.pk-plan { margin: 2px 0 12px; }
.pk-weather { margin: 0 0 10px; font-size: 12px; color: var(--muted, #6b6b6b); }

.pk-lug {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 12px; margin-bottom: 12px;
  background: color-mix(in srgb, var(--brand, #b3261e) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand, #b3261e) 16%, transparent);
}
.pk-lug-size { display: flex; align-items: baseline; gap: 7px; }
.pk-lug-size b { font-size: 25px; font-weight: 700; letter-spacing: -.02em; color: var(--brand, #b3261e); line-height: 1; }
.pk-lug-size span { font-size: 12px; color: var(--muted, #6b6b6b); }
.pk-lug-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink, #1a1a1a); }
.pk-lug-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pk-lug-tag.carry { background: #e6f4ec; color: #136f4a; }
.pk-lug-tag.checkin { background: #fdf1df; color: #8a5a12; }
.pk-lug-limit { flex: 1 1 100%; margin: 2px 0 0; font-size: 11px; color: var(--muted, #6b6b6b); line-height: 1.5; }

.pk-sec { padding: 11px 0; border-top: 1px dashed var(--line, rgba(0,0,0,.08)); }
.pk-h { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: var(--ink, #1a1a1a); }
.pk-sub { margin: 0 0 8px; font-size: 11.5px; color: var(--muted, #6b6b6b); line-height: 1.6; }

.pkq-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px 14px; }
.pkq-list li { display: flex; align-items: baseline; gap: 7px; font-size: 12.5px; padding: 3px 0; border-bottom: 1px dotted var(--line, rgba(0,0,0,.08)); }
.pkq-name { flex: 1; min-width: 0; }
.pkq-num { font-weight: 700; color: var(--brand, #b3261e); font-variant-numeric: tabular-nums; }
.pkq-note { font-size: 10.5px; color: var(--muted, #6b6b6b); }
.pk-ess-list li::before { content: '•'; color: var(--brand, #b3261e); font-weight: 700; }

.pk-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; min-height: 30px; }
.pk-fold > summary::-webkit-details-marker { display: none; }
.pk-fold > summary::before { content: '▸'; font-size: 11px; color: var(--brand, #b3261e); transition: transform .15s; }
.pk-fold[open] > summary::before { transform: rotate(90deg); }

/* 季节块：淡彩底、与天气行呼应 */
.pk-season { background: linear-gradient(135deg, rgba(94,140,110,.09), rgba(201,160,90,.08)); border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: 12px; padding: 12px 13px; margin: 8px 0; }
.pk-season .pk-h { color: var(--brand, #2f6b4f); }
.pk-hint { font-size: 10.5px; opacity: .75; }
/* 慢病用药块：暖色描边、可勾选 */
.pk-chronic { background: rgba(179,38,30,.035); border: 1px solid rgba(179,38,30,.2); border-radius: 12px; padding: 8px 13px; margin: 8px 0; }
.pk-chronic > summary.pk-h { color: var(--brand, #b3261e); }
.pkc-group { margin: 6px 0 10px; }
.pkc-name { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand, #b3261e); margin: 4px 0; padding: 2px 8px; background: rgba(179,38,30,.08); border-radius: 6px; }
html.a11y-contrast .pk-season, html.a11y-contrast .pk-chronic { background: #fff; border: 2px solid #111; }
html.a11y-contrast .pk-season .pk-h, html.a11y-contrast .pk-chronic > summary.pk-h, html.a11y-contrast .pkc-name { color: #111; }

.pkl-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.pkl-list li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 9px; background: var(--paper-2, #faf8f4); }
.pkl-zone { font-size: 12.5px; font-weight: 700; color: var(--ink, #1a1a1a); }
.pkl-items { font-size: 12px; color: var(--ink, #1a1a1a); opacity: .82; line-height: 1.5; }
.pkl-tip { font-size: 11px; color: var(--muted, #6b6b6b); line-height: 1.5; }

.pkb-row { padding: 9px 0; border-bottom: 1px dashed var(--line, rgba(0,0,0,.08)); }
.pkb-row:last-child { border-bottom: none; }
.pkb-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pkb-head b { font-size: 12.5px; color: var(--ink, #1a1a1a); }
.pkb-head span { font-size: 11px; color: var(--muted, #6b6b6b); line-height: 1.5; }
.pkb-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pkb-pick {
  display: inline-flex; flex-direction: column; gap: 1px; min-width: 0;
  padding: 6px 10px; border-radius: 10px; background: #fff;
  border: 1px solid var(--line, rgba(0,0,0,.1));
}
.pkb-pick b { font-size: 12px; font-weight: 600; color: var(--ink, #1a1a1a); }
.pkb-pick i { font-size: 10px; font-style: normal; font-weight: 700; color: var(--brand, #b3261e); }
.pkb-pick em { font-size: 10.5px; font-style: normal; color: var(--muted, #6b6b6b); }

@media (max-width: 520px) {
  .pk-lug { gap: 10px; padding: 11px 12px; }
  .pk-lug-size b { font-size: 22px; }
  .pkq-list { grid-template-columns: 1fr; }
  .pkb-head { flex-direction: column; gap: 2px; }
}

/* ===== 菜单助手 + 旅行记账（V2.23） ===== */
.mb-dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 4px 0 14px; }
.mb-dish { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); color: var(--ink); cursor: pointer; font: inherit; min-height: 44px; }
.mb-dish b { font-size: 14px; }
.mb-dish span { font-size: 12px; opacity: .72; }
.mb-dish:hover { border-color: var(--mint, #3aa17e); }
.mb-sec-title { font-weight: 700; font-size: 13px; margin: 10px 0 8px; color: var(--ink); }
.mb-diet { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); color: var(--ink); cursor: pointer; font: inherit; min-height: 44px; }
.mb-diet-lab { font-size: 12px; opacity: .7; }
.mb-diet b { font-size: 14px; line-height: 1.45; }
.mb-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 10px; }
.mb-form input, .mb-form select, .mb-budget input { font: inherit; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; min-height: 40px; }
.mb-form input[type=number] { width: 92px; }
.mb-form input[type=text] { width: 74px; }
.mb-summary { margin: 6px 0 10px; }
.mb-total { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; font-size: 15px; }
.mb-total span { font-weight: 700; color: var(--mint, #2f9e77); }
.mb-progress { display: flex; flex-direction: column; gap: 5px; font-size: 12px; opacity: .85; }
.mb-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.mb-bar i { display: block; height: 100%; background: var(--mint, #3aa17e); transition: width .2s ease; }
.mb-list { border-top: 1px dashed var(--line); padding-top: 6px; }
.mb-row { display: flex; align-items: center; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mb-row b { margin-left: auto; font-variant-numeric: tabular-nums; }
.mb-del { border: 0; background: transparent; color: var(--muted, #888); cursor: pointer; font: inherit; font-size: 12px; padding: 6px; min-height: 38px; }
.mb-del:hover { color: #c0392b; }
.mb-budget { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.mb-budget input { flex: 0 0 130px; }
:where(html.a11y-contrast) .mb-dish, :where(html.a11y-contrast) .mb-diet, :where(html.a11y-contrast) .mb-form input, :where(html.a11y-contrast) .mb-form select, :where(html.a11y-contrast) .mb-budget input { border-width: 2px; }
@media (max-width: 420px) { .mb-form input[type=number] { width: 80px; } .mb-budget input { flex-basis: 110px; } }

/* ===== 会员与共创中心 Idea Hub（V2.24） ===== */
.ih-card .omni-tagline { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--mint, #2f9e77); margin-top: 4px; }
.ih-balance { margin-left: auto; margin-right: 8px; font-weight: 700; font-size: 13px; color: var(--mint, #2f9e77); font-variant-numeric: tabular-nums; }
.ih-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 8px; }
.ih-form input, .ih-ideaform input, .ih-ideaform textarea { font: inherit; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; min-height: 40px; flex: 1 1 180px; }
.ih-ideaform textarea { flex: 1 1 100%; resize: vertical; line-height: 1.5; }
.ih-primary { background: var(--mint, #2f9e77) !important; color: #fff !important; border-color: transparent !important; min-height: 40px; }
.ih-found { font-size: 12px; line-height: 1.5; color: var(--mint, #2f9e77); background: var(--paper-2); border: 1px dashed var(--line); border-radius: 9px; padding: 9px 11px; margin-top: 8px; }
.ih-member { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); }
.ih-member-name { font-weight: 700; font-size: 15px; }
.ih-member-since { font-size: 12px; opacity: .7; }
.ih-badge { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(100deg, #c9962f, #e0b64b); border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: middle; }
.ih-details { margin-top: 8px; }
.ih-details summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); min-height: 34px; display: flex; align-items: center; }
.ih-checklist { list-style: none; padding: 0; margin: 4px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 5px 12px; }
.ih-checklist li { font-size: 12.5px; padding-left: 20px; position: relative; }
.ih-checklist li::before { content: '✓'; position: absolute; left: 2px; color: var(--mint, #2f9e77); font-weight: 700; }
.ih-mini-title { font-weight: 700; font-size: 13px; margin: 12px 0 7px; }
.ih-rules { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ih-rule { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 8px 11px; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.ih-rule:last-child { border-bottom: 0; }
.ih-rule b { color: var(--mint, #2f9e77); font-variant-numeric: tabular-nums; }
.ih-rule-tag { font-size: 10px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); opacity: .75; }
.ih-rule-tag.auto { color: var(--mint, #2f9e77); border-color: var(--mint, #2f9e77); opacity: 1; }
.ih-hist { border-top: 1px dashed var(--line); padding-top: 4px; }
.ih-hist-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 2px; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.ih-hist-row b { font-variant-numeric: tabular-nums; }
.ih-hist-row b:first-child { color: var(--muted, #888); }
.ih-prompt { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin: 4px 0 2px; }
.ih-chips, .ih-chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.ih-chip-btn { font: inherit; font-size: 12.5px; min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2); color: var(--ink); cursor: pointer; }
.ih-chip-btn.on { background: var(--mint, #2f9e77); color: #fff; border-color: transparent; }
.ih-ideaform { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 2px; }
.ih-msg { font-size: 12.5px; min-height: 16px; margin: 4px 0; }
.ih-msg.ok { color: var(--mint, #2f9e77); font-weight: 600; }
.ih-chip { font-size: 11px; color: var(--mint, #2f9e77); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.ih-list { display: flex; flex-direction: column; gap: 8px; }
.ih-item { border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); padding: 10px 12px; }
.ih-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ih-status { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--ink-soft); }
.ih-status.done { background: var(--mint, #2f9e77); color: #fff; }
.ih-item-title { font-weight: 700; font-size: 13.5px; margin-top: 6px; line-height: 1.5; }
.ih-item-scene { font-size: 12px; opacity: .72; margin-top: 4px; line-height: 1.5; }
.ih-item-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11.5px; opacity: .8; flex-wrap: wrap; }
.ih-vote { min-height: 36px; padding: 5px 12px; }
.ih-vote.voted { opacity: .65; }
.ih-seed-pts { color: var(--mint, #2f9e77); font-weight: 600; }
.ih-reward { border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); padding: 11px 12px; margin-bottom: 8px; }
.ih-reward-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; }
.ih-reward-pts { font-weight: 800; color: var(--mint, #2f9e77); font-variant-numeric: tabular-nums; }
.ih-reward-desc { font-size: 12px; opacity: .78; line-height: 1.5; margin: 5px 0 9px; }
.ih-need { font-size: 11.5px; color: #b9771f; margin-bottom: 6px; }
.ih-built { margin: 4px 0; padding-left: 20px; }
.ih-built li { font-size: 12.5px; line-height: 1.6; margin-bottom: 5px; }
.ih-principle { font-size: 12.5px; line-height: 1.6; padding: 10px 12px; border-left: 3px solid var(--mint, #2f9e77); background: var(--paper-2); border-radius: 0 9px 9px 0; margin-bottom: 10px; }
.ih-phase { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.ih-phase-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.ih-phase-tag { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: var(--line); color: var(--ink-soft); }
.ih-phase-tag.current { background: var(--mint, #2f9e77); color: #fff; }
.ih-phase-tag.next { background: #c9962f; color: #fff; }
.ih-phase-desc { font-size: 12px; opacity: .78; margin-top: 5px; line-height: 1.5; }
:where(html.a11y-contrast) .ih-form input, :where(html.a11y-contrast) .ih-ideaform input,
:where(html.a11y-contrast) .ih-ideaform textarea, :where(html.a11y-contrast) .ih-chip-btn,
:where(html.a11y-contrast) .ih-item, :where(html.a11y-contrast) .ih-reward,
:where(html.a11y-contrast) .ih-phase { border: 2px solid #111; }
@media (max-width: 420px) { .ih-rule { font-size: 12px; grid-template-columns: 1fr auto; } .ih-rule-tag { display: none; } .ih-prompt { font-size: 16px; } }

/* V2.25 同行关怀包 Care Kit */
.care-hotlines { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.care-hotline { font-size: 12px; font-weight: 700; color: #fff; background: #b4472f; border-radius: 999px; padding: 5px 11px; }
.care-links { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 4px; }
.care-link { font-size: 12px; min-height: 34px; display: inline-flex; align-items: center; padding: 5px 11px; border: 1px solid var(--mint, #2f9e77); color: var(--mint, #2f9e77); border-radius: 999px; text-decoration: none; background: var(--paper-2); }
.care-link:hover { background: var(--mint, #2f9e77); color: #fff; }
.care-list { list-style: none; padding: 0; margin: 4px 0; }
.care-item { font-size: 12.5px; line-height: 1.65; padding: 7px 0 7px 20px; position: relative; border-bottom: 1px solid var(--line); }
.care-item:last-child { border-bottom: 0; }
.care-item::before { content: '•'; position: absolute; left: 4px; color: var(--mint, #2f9e77); font-weight: 800; }
:where(html.a11y-contrast) .care-hotline, :where(html.a11y-contrast) .care-link { border: 2px solid #111; }
@media (max-width: 420px) { .care-item { font-size: 12px; } }
