/* ==========================================================================
   山河行旅 · 设计系统
   宣纸底 · 松绿主色 · 朱砂点缀 · 衬线标题
   ========================================================================== */

:root {
  --paper: #f6f2e9;
  --paper-2: #efe8d9;
  --paper-3: #e6ddcb;
  --card: #fffdf7;
  --ink: #17252a;
  --ink-2: #33484c;
  --muted: #5a6e6b; /* 加深以满足 WCAG AA 4.5:1（原 #6f827f 只有 3.63） */
  --brand: #0f5a55;
  --brand-2: #177a70;
  --brand-soft: #e3efec;
  --accent: #c4553b;
  --accent-soft: #f8e6df;
  --gold: #b98a3c;
  --line: #ded5c3;
  --line-soft: #ebe4d5;
  --ok: #2f7d5a;
  --warn: #a86a15;
  --danger: #ad3529;
  --shadow-sm: 0 1px 2px rgba(23, 37, 42, .06), 0 2px 8px rgba(23, 37, 42, .04);
  --shadow-md: 0 6px 24px rgba(23, 37, 42, .10), 0 2px 6px rgba(23, 37, 42, .05);
  --shadow-lg: 0 24px 60px rgba(23, 37, 42, .16);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --nav-h: 64px;
  --tab-h: 62px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(15, 90, 85, .07), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 85, 59, .06), transparent 55%),
    var(--paper);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 .8em; }
::selection { background: rgba(15, 90, 85, .18); }

:focus-visible { outline: 3px solid rgba(15, 90, 85, .35); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

/* ---------------------------------------------------------------- 顶栏 */

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 242, 233, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(222, 213, 195, .7);
}
.topbar-inner {
  max-width: var(--max); margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 26px; padding: 0 22px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-serif); font-size: 19px; letter-spacing: .04em; }
.brand-text em { font-style: normal; font-size: 10.5px; letter-spacing: .34em; color: var(--muted); padding-left: 2px; }

.nav { display: flex; gap: 4px; margin-left: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px;
  transition: background .18s, color .18s;
}
.nav a:hover { background: rgba(15, 90, 85, .07); color: var(--brand); }
.nav a[data-active="true"] { background: var(--brand); color: #fff; }
.nav a[data-active="true"]:hover { background: var(--brand-2); color: #fff; }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-trigger {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 13.5px; transition: .18s;
}
.search-trigger:hover { border-color: var(--brand); color: var(--brand); }
.search-trigger kbd {
  font-family: var(--font-sans); font-size: 10.5px; border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px; background: var(--paper-2); color: var(--muted);
}
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: transparent; border: 1px solid transparent; color: var(--ink-2); transition: .18s;
}
.icon-btn:hover { background: rgba(15, 90, 85, .08); color: var(--brand); }

.topbar-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width .25s ease, opacity .4s; opacity: 0;
}
.topbar-progress.loading { width: 70%; opacity: 1; }
.topbar-progress.done { width: 100%; opacity: 0; }

/* ---------------------------------------------------------------- 通用 */

.app { min-height: calc(100vh - var(--nav-h)); position: relative; z-index: 1; padding-bottom: 40px; }

.page { animation: rise .38s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.section { margin: 46px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title { font-size: clamp(21px, 2.6vw, 28px); color: var(--ink); }
.section-title .deco { color: var(--accent); }
.section-sub { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.section-more { font-size: 13.5px; white-space: nowrap; color: var(--brand); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 14.5px; font-weight: 600;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--brand); color: var(--brand); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; box-shadow: 0 8px 22px rgba(15, 90, 85, .25); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: #ad4630; border-color: #ad4630; color: #fff; }
.btn--ghost { background: transparent; }
.btn--sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .ico { font-size: 15px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-2); font-size: 13px; transition: .16s; white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip--active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip--active:hover { color: #fff; }
.chip--tag { background: var(--paper-2); border-color: transparent; color: var(--ink-2); height: 26px; font-size: 12px; padding: 0 9px; border-radius: 7px; }
.chip--warn { background: var(--accent-soft); color: var(--danger); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-flex; align-items: center; height: 23px; padding: 0 8px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
}
.tag--plain { background: var(--paper-2); color: var(--muted); font-weight: 500; }
.tag--warn { background: var(--accent-soft); color: var(--danger); }

.stars { position: relative; display: inline-block; color: #d8cebb; letter-spacing: 2px; font-size: 14px; white-space: nowrap; }
.stars::before { content: "★★★★★"; }
.stars > i { position: absolute; inset: 0; overflow: hidden; color: var(--gold); white-space: nowrap; font-style: normal; }
.stars > i::before { content: "★★★★★"; }

.divider { height: 1px; background: var(--line-soft); border: 0; margin: 26px 0; }

.skeleton { border-radius: 10px; background: linear-gradient(100deg, var(--paper-2) 30%, var(--paper-3) 50%, var(--paper-2) 70%); background-size: 220% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -120% 0; } }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .emoji { font-size: 40px; display: block; margin-bottom: 12px; opacity: .8; }
.empty h3 { font-size: 18px; color: var(--ink-2); margin-bottom: 6px; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 首页 */

/* 搜索输入框：隐藏浏览器自带的清除按钮（否则和面板的关闭按钮并排出现两个 ×） */
.search-input-row input::-webkit-search-cancel-button,
#searchInput::-webkit-search-cancel-button,
.home-search-box input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* 打卡点聚合气泡 */
.poi-cluster-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(196, 85, 59, .18); border: 1.5px solid var(--accent);
  color: var(--accent); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}

/* 首页搜索区：搜索框 + 热门城市快捷入口 */
.home-search { padding: 4px 0 18px; }
.home-search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 12px 10px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .04);
}
.home-search-box .hs-ico { font-size: 17px; opacity: .8; }
.home-search-box input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent;
  font: inherit; font-size: 15px; color: var(--ink); outline: none;
}
.home-search-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.home-search-hot .chip { text-decoration: none; }

/* 「你在哪个城市」提示条（首页，可跳过，7 天内不再问） */
.city-ask-wrap { padding: 0 0 6px; }
.city-ask {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: var(--panel); border: 1px dashed var(--line);
  border-radius: 12px; padding: 12px 16px; font-size: 14px;
}
.city-ask b { color: var(--ink); }
.city-ask .muted { font-size: 12.5px; }
.city-ask input {
  flex: 1 1 160px; min-width: 140px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 9px; font: inherit;
  background: var(--bg);
}
.city-ask .btn--sm { padding: 8px 16px; font-size: 13.5px; }
@media (max-width: 640px) {
  .city-ask { gap: 8px; padding: 12px; }
  .city-ask input { flex: 1 1 100%; }
}

.hero { position: relative; overflow: hidden; padding: 62px 0 30px; }
.hero::after {
  content: "山河"; position: absolute; right: -30px; top: -10px; font-family: var(--font-serif);
  font-size: clamp(130px, 22vw, 280px); font-weight: 700; color: rgba(15, 90, 85, .045);
  line-height: 1; pointer-events: none; letter-spacing: -.05em;
}
.hero-title { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.16; max-width: 13em; }
.hero-title .accent { color: var(--accent); }
.hero-sub { margin-top: 16px; max-width: 40em; color: var(--ink-2); font-size: clamp(14.5px, 1.4vw, 16.5px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 38px; }
.hero-stat strong { display: block; font-family: var(--font-serif); font-size: clamp(24px, 3vw, 34px); color: var(--brand); line-height: 1; }
.hero-stat span { font-size: 12px; color: var(--muted); letter-spacing: .1em; }

.home-map { position: relative; height: clamp(320px, 44vh, 460px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--paper-2); }
.home-map .map { position: absolute; inset: 0; }

.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 20px; }
.city-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s; color: var(--ink);
}
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--ink); }
.city-cover {
  position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--brand), #2a8a7a);
  display: flex; align-items: flex-end; padding: 16px; overflow: hidden;
}
.city-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.city-card:hover .city-cover img { transform: scale(1.06); }
.city-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 30, 30, .78), rgba(8, 30, 30, .05) 60%); }
.city-cover-txt { position: relative; z-index: 1; color: #fff; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.city-cover-txt strong { font-family: var(--font-serif); font-size: 23px; letter-spacing: .08em; }
.city-cover-txt em { font-style: normal; font-size: 10.5px; letter-spacing: .18em; opacity: .75; display: block; text-transform: uppercase; }
.city-cover-badge { background: rgba(255,255,255,.92); color: var(--brand); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.city-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.city-body p { margin: 0; color: var(--muted); font-size: 12.8px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.city-meta { display: flex; gap: 12px; margin-top: auto; font-size: 12px; color: var(--ink-2); }
.city-meta b { color: var(--brand); }

.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.spot-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; color: var(--ink);
  transition: transform .2s, box-shadow .2s; position: relative;
}
.spot-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--ink); }
.spot-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--paper-2), var(--paper-3)); display: grid; place-items: center; font-size: 40px; }
.spot-thumb .type-emoji { filter: saturate(.85); }
.spot-thumb .price-badge { position: absolute; right: 10px; top: 10px; background: rgba(255,253,247,.94); border-radius: 999px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; color: var(--brand); }
.spot-thumb .price-badge.free { color: var(--ok); }
.spot-thumb .price-badge.unknown { color: var(--muted); font-weight: 600; }
.spot-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.spot-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.spot-title h3 { font-size: 17px; }
.spot-title .rating { font-size: 12.5px; color: var(--gold); font-weight: 700; white-space: nowrap; }
.spot-desc { font-size: 12.6px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin: 0; }
.spot-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.spot-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); padding-top: 4px; }
.spot-foot .go { color: var(--brand); font-weight: 600; }

/* ---------------------------------------------------------------- 地图 */

.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--paper-2); }
.map-wrap .map { width: 100%; height: clamp(300px, 52vh, 520px); }
.map-wrap--sm .map { height: 260px; }
/* Leaflet 的控件层是 z-index:1000，提示层必须更高，否则缩放按钮/署名会压在上面（BUG-21） */
.map-overlay { position: absolute; left: 12px; top: 12px; z-index: 1200; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 24px); }
.map-overlay .pill {
  background: rgba(255, 253, 247, .95); border: 1px solid var(--line); border-radius: 999px;
  font-size: 11.5px; padding: 5px 11px; color: var(--ink-2); box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 6px; backdrop-filter: blur(6px);
}
.map-overlay .pill b { color: var(--brand); }
.map-hint { position: absolute; right: 12px; bottom: 12px; z-index: 1200; background: rgba(23,37,42,.78); color: #fff; font-size: 11px; padding: 4px 9px; border-radius: 6px; }
.map-fallback { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 20px; background: var(--paper-2); z-index: 400; color: var(--muted); font-size: 13px; }

.leaflet-container { font-family: var(--font-sans); background: var(--paper-2); }
.leaflet-control-attribution { font-size: 9.5px !important; background: rgba(255,255,255,.72) !important; }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow-md); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; line-height: 1.5; }
.leaflet-popup-content h4 { font-size: 15px; margin-bottom: 3px; }
.leaflet-popup-content p { color: var(--muted); margin: 0 0 8px; font-size: 12px; }
.leaflet-popup-content .pop-link { font-weight: 700; font-size: 12.5px; }

.pin {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 6px;
  transform: rotate(-45deg); background: var(--brand); color: #fff; border: 2.5px solid #fff;
  box-shadow: 0 4px 12px rgba(15, 90, 85, .38); font-size: 15px;
}
.pin > span { transform: rotate(45deg); }
.pin--accent { background: var(--accent); box-shadow: 0 4px 14px rgba(196, 85, 59, .45); }
.pin--day2 { background: #2b6c8f; }
.pin--day3 { background: #7a5aa6; }
.pin--day4 { background: #a06a2c; }
.pin-num {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff; border: 2px solid #fff; font-size: 12px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(15,90,85,.35);
}

/* ---------------------------------------------------------------- 城市页 */

.city-hero { position: relative; padding: 38px 0 10px; }
.city-hero-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 30px; align-items: start; }
.city-hero h1 { font-size: clamp(32px, 4.4vw, 52px); }
.city-hero h1 em { font-style: normal; font-size: .36em; letter-spacing: .18em; color: var(--muted); margin-left: 12px; vertical-align: middle; }
.city-intro { color: var(--ink-2); margin-top: 14px; font-size: 15px; max-width: 44em; }
.city-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 13px; font-size: 12.5px; color: var(--ink-2); }
.fact b { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .1em; margin-bottom: 2px; }

.city-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.city-side h4 { font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; }
.city-side ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.city-side li { margin-bottom: 6px; }
.food-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.food-chips span { background: var(--paper-2); border-radius: 7px; padding: 4px 9px; font-size: 12.5px; color: var(--ink-2); }

.filterbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 22px; }
.filterbar .spacer { margin-left: auto; }
.filterbar .result-count { font-size: 12.5px; color: var(--muted); }

.city-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 26px; align-items: start; }
.city-layout .map-wrap { position: sticky; top: calc(var(--nav-h) + 16px); }
.spot-rows { display: flex; flex-direction: column; gap: 12px; }
.spot-row {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 13px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 13px; color: var(--ink); transition: .18s; cursor: pointer;
}
.spot-row:hover, .spot-row[data-active="true"] { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.spot-row .thumb { width: 58px; height: 58px; border-radius: 10px; display: grid; place-items: center; font-size: 25px; background: linear-gradient(135deg, var(--brand-soft), var(--paper-2)); }
.spot-row h3 { font-size: 15.5px; margin-bottom: 3px; }
.spot-row .meta { font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.spot-row .right { text-align: right; font-size: 12px; color: var(--muted); }
.spot-row .right b { display: block; color: var(--gold); font-size: 14px; }

/* ---------------------------------------------------------------- 详情页 */

.detail-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(120deg, #0d4a46, #17685f 55%, #2c7a68); color: #fff; padding: 42px 38px 34px; box-shadow: var(--shadow-md); }
.detail-hero::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 0 0 40px rgba(255,255,255,.04), 0 0 0 90px rgba(255,255,255,.03); }
.detail-hero .crumbs { font-size: 12px; color: rgba(255,255,255,.72); margin-bottom: 12px; }
.detail-hero .crumbs a { color: rgba(255,255,255,.9); }
.detail-hero h1 { font-size: clamp(28px, 4vw, 44px); }
.detail-hero .alias { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; letter-spacing: .12em; }
.detail-hero .lead { margin-top: 12px; max-width: 44em; color: rgba(255,255,255,.86); font-size: 14px; }
.detail-hero .hero-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.detail-hero .hero-tags .tag { background: rgba(255,255,255,.16); color: #fff; }
.detail-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; position: relative; z-index: 1; }
.detail-hero .btn { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(4px); }
.detail-hero .btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.detail-hero .btn--primary { background: #fff; color: var(--brand); border-color: #fff; }
.detail-hero .btn--primary:hover { background: #f2ece0; color: var(--brand); }

.detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -1px; }
.detail-stats .cell { background: var(--card); padding: 14px 16px; }
.detail-stats .cell b { display: block; font-family: var(--font-serif); font-size: 19px; color: var(--ink); }
.detail-stats .cell span { font-size: 11px; color: var(--muted); letter-spacing: .08em; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-top: 28px; }
.detail-main { min-width: 0; }
.detail-aside { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 16px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 20px; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.panel h2 .num { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: .16em; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 2px 7px; font-weight: 700; }
.prose { font-size: 14.8px; color: var(--ink-2); line-height: 1.9; }
.prose p { margin: 0 0 .9em; }
.prose p:last-child { margin-bottom: 0; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.info-item { background: var(--paper-2); border-radius: 10px; padding: 12px 14px; }
.info-item b { display: block; font-size: 11px; color: var(--muted); letter-spacing: .1em; font-weight: 600; margin-bottom: 3px; }
.info-item span { font-size: 13.5px; color: var(--ink); }

.caution-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.caution-list li { display: flex; gap: 10px; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 10px 13px; font-size: 13.5px; color: #7a3324; }
.caution-list li::before { content: "⚠"; flex-shrink: 0; }

.radar { display: flex; flex-direction: column; gap: 8px; }
.radar-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.radar-row .lab { width: 74px; flex-shrink: 0; color: var(--ink-2); }
.radar-row .bar { flex: 1; height: 7px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.radar-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #d98a63); border-radius: 999px; }
.radar-row .val { width: 26px; text-align: right; color: var(--muted); font-size: 11.5px; }

.rating-summary { display: grid; grid-template-columns: 100px 1fr; gap: 18px; align-items: center; }
.rating-big { text-align: center; }
.rating-big strong { font-family: var(--font-serif); font-size: 44px; line-height: 1; color: var(--ink); display: block; }
.rating-big .stars { font-size: 12px; margin-top: 4px; }
.rating-big span { font-size: 11px; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 4px; }
.bar-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.bar-row .bar { flex: 1; height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.bar-row .n { width: 22px; text-align: right; }

.review-list { display: flex; flex-direction: column; gap: 14px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.review-head .who { min-width: 0; }
.review-head .who b { font-size: 13.5px; display: block; }
.review-head .who span { font-size: 11px; color: var(--muted); }
.review-head .badge { margin-left: auto; flex-shrink: 0; }
.review-body { font-size: 13.8px; color: var(--ink-2); line-height: 1.75; }
.review-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.review-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line-soft); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.link-btn:hover { color: var(--brand); }
.link-btn.liked { color: var(--accent); }

.source-badge { font-size: 10px; border-radius: 5px; padding: 1px 6px; font-weight: 600; letter-spacing: .03em; }
.source-badge.seed { background: #f7e9c8; color: #8a5a00; border: 1px solid #e6cc8e; }
.source-badge.user { background: var(--brand-soft); color: var(--brand); }

/* 全站页脚 */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 96px; }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.site-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer-links a { color: var(--muted); text-decoration: none; }
.site-footer-links a:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 720px) {
  .site-footer { padding-bottom: 110px; }
  .site-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* 城市/景点故事 */
.story-list { display: grid; gap: 14px; margin-top: 14px; }
.story-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow-soft);
}
.story-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.story-head h3 { font-size: 17px; margin: 0; }
.story-body { margin: 10px 0 8px; line-height: 1.85; font-size: 14.5px; color: var(--text); }
.story-src { margin: 0; font-size: 12.5px; color: var(--muted); }
.story-src a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* 我的山河：待点评列表 */
.pending-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 2px; border-bottom: 1px solid var(--line);
}
.pending-row > .mono { flex: 1 1 160px; min-width: 0; }
.pending-row .btn { flex: 0 0 auto; }

/* 点评提醒条（来过多次/收藏久了才出现，可关闭） */
.review-nudge {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--accent-soft); border: 1px dashed var(--accent); font-size: 14px;
}
.review-nudge .nudge-text { flex: 1 1 220px; min-width: 0; }
.review-nudge .nudge-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .review-nudge .nudge-actions { width: 100%; }
}

/* 点评行动卡：空状态/列表下方的引导 */
.review-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 14px; padding: 16px 18px;
  background: var(--brand-soft); border: 1px dashed var(--brand);
  border-radius: 12px;
}
.review-cta b { font-size: 15px; }
.review-cta .btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .review-cta { flex-direction: column; align-items: flex-start; }
  .review-cta .btn { width: 100%; }
}

.review-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); background: var(--paper);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink); transition: .18s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand); background: var(--card); box-shadow: 0 0 0 3px rgba(15,90,85,.1); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.65; }
.star-input { display: flex; gap: 4px; }
.star-input button { background: none; border: 0; font-size: 26px; line-height: 1; color: #d8cebb; padding: 0; transition: transform .12s; }
.star-input button.on { color: var(--gold); }
.star-input button:hover { transform: scale(1.15); }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.check-line input { width: 17px; height: 17px; accent-color: var(--accent); }

/* ---------------------------------------------------------------- 规划器 */

.planner-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 22px; }
.planner-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--nav-h) + 14px); }
.planner-form h2 { font-size: 19px; margin-bottom: 4px; }
.planner-form .form-row { margin-top: 15px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1; min-width: 62px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); font-size: 12.5px; color: var(--ink-2); transition: .16s; }
.seg button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.seg--stack { display: grid; grid-template-columns: 1fr 1fr; }
/* 旅行方式：6 个选项允许换行 */
.seg--wrap { flex-wrap: wrap; }
.seg--wrap button { flex: 1 1 auto; min-width: 92px; }
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.interest-grid button { height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font-size: 12.5px; color: var(--ink-2); }
.interest-grid button.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.form-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

.plan-results { min-width: 0; }
.plan-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.plan-tabs::-webkit-scrollbar { display: none; }
.plan-tab {
  flex: 0 0 auto; text-align: left; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 15px; min-width: 150px; color: var(--ink); transition: .18s;
}
.plan-tab.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(15,90,85,.12); background: var(--brand-soft); }
.plan-tab .emoji { font-size: 17px; }
.plan-tab b { display: block; font-size: 14px; margin-top: 2px; }
.plan-tab span { font-size: 11px; color: var(--muted); }

.plan-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
.plan-summary .cell { background: var(--card); padding: 12px 14px; }
.plan-summary .cell b { display: block; font-family: var(--font-serif); font-size: 20px; color: var(--ink); line-height: 1.2; }
.plan-summary .cell span { font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }

.plan-highlights { display: flex; flex-direction: column; gap: 7px; margin: 14px 0 20px; }
.plan-highlights div { font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; }
.plan-highlights div::before { content: "—"; color: var(--accent); flex-shrink: 0; }

.day-block { margin-bottom: 26px; }
.day-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.day-head h3 { font-size: 19px; white-space: normal; overflow-wrap: anywhere; }
.day-head .line { flex: 1; height: 1px; background: var(--line); }
.day-head .sum { font-size: 12px; color: var(--muted); white-space: nowrap; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--paper-3)); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 16px 4px; }
.tl-item::before {
  content: ""; position: absolute; left: -24px; top: 7px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--brand); border: 2px solid var(--card); box-shadow: 0 0 0 2px var(--brand-soft);
}
.tl-item.meal::before { background: var(--gold); box-shadow: 0 0 0 2px #f3e6c9; }
.tl-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px; transition: .16s; }
.tl-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.tl-card .tl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tl-card h4 { font-size: 16px; }
.tl-card .time { font-size: 12px; color: var(--brand); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.tl-travel { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin: 0 0 6px 4px; padding-left: 4px; }
.tl-travel::before { content: "↳"; color: var(--muted); }
.tl-note { margin-top: 7px; font-size: 12px; color: var(--warn); background: #fdf6e7; border-radius: 7px; padding: 6px 9px; }

.tip-list { display: flex; flex-direction: column; gap: 8px; }
.tip { display: flex; gap: 10px; background: var(--paper-2); border-radius: 9px; padding: 10px 13px; font-size: 12.8px; color: var(--ink-2); line-height: 1.6; }
.tip .tip-ico { flex-shrink: 0; }
.tip--booking { background: var(--brand-soft); }
.tip--caution { background: var(--accent-soft); }

.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------------------------------------------------------------- 社区 */

.community-head { padding: 38px 0 6px; }
.community-head h1 { font-size: clamp(30px, 4vw, 46px); }
.community-head p { color: var(--ink-2); max-width: 46em; margin-top: 12px; }
.community-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr); gap: 26px; align-items: start; margin-top: 26px; }
.feed { display: flex; flex-direction: column; gap: 12px; }
.feed-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; }
.feed-item .top { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.feed-item .top .spot { font-size: 13px; font-weight: 700; color: var(--brand); }
.feed-item .top .city { font-size: 11.5px; color: var(--muted); }
.feed-item .top .when { margin-left: auto; font-size: 11px; color: var(--muted); }
.feed-item p { margin: 0; font-size: 13.6px; color: var(--ink-2); line-height: 1.7; }
.feed-item .tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tagcloud button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 11px; font-size: 12px; color: var(--ink-2); }
.tagcloud button:hover { border-color: var(--accent); color: var(--accent); }
.tagcloud .n { color: var(--muted); font-size: 10.5px; margin-left: 3px; }
.avoid-item { border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 10px 10px 0; padding: 10px 13px; font-size: 12.8px; color: var(--ink-2); }
.avoid-item + .avoid-item { margin-top: 9px; }
.avoid-item b { color: var(--accent); font-size: 12.5px; }
.hot-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13px; }
.hot-row:last-child { border-bottom: 0; }
.hot-row .rank { font-family: var(--font-serif); font-size: 15px; color: var(--accent); width: 20px; }
.hot-row .nm { flex: 1; }
.hot-row .num { font-size: 11.5px; color: var(--muted); }

/* ---------------------------------------------------------------- 行程 */

.trips-head { padding: 38px 0 8px; }
.trip-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 24px; }
.trip-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); }
.trip-card h3 { font-size: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trip-card .meta { font-size: 12px; color: var(--muted); }
.trip-card .acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.trip-card .code { font-family: ui-monospace, monospace; background: var(--paper-2); padding: 2px 7px; border-radius: 5px; font-size: 11.5px; letter-spacing: .1em; }

.share-box { display: flex; gap: 8px; align-items: center; background: var(--paper-2); border-radius: 9px; padding: 10px 12px; margin-top: 10px; }
.share-box input { flex: 1; border: 0; background: transparent; font-size: 12px; color: var(--ink-2); min-width: 0; }

/* ---------------------------------------------------------------- 关于 */

.about-hero { padding: 44px 0 10px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 22px; }
.about-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.about-card h3 { font-size: 17px; margin-bottom: 8px; }
.about-card p { font-size: 13.4px; color: var(--ink-2); margin: 0; }
.about-card .k { font-family: var(--font-serif); font-size: 26px; color: var(--brand); }

/* ---------------------------------------------------------------- 底栏 / 移动导航 */

.tabbar { display: none; }
.footer { border-top: 1px solid var(--line-soft); margin-top: 60px; padding: 26px 0 96px; color: var(--muted); font-size: 12px; }
.footer .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }

/* ---------------------------------------------------------------- toast / modal / sheet */

.toast-stack { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 420px); }
.toast {
  background: rgba(23, 37, 42, .94); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 13px; box-shadow: var(--shadow-lg); animation: toastIn .28s cubic-bezier(.2,.8,.3,1);
  max-width: 100%; text-align: center;
}
.toast.err { background: rgba(173, 53, 41, .96); }
.toast.ok { background: rgba(15, 90, 85, .96); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }

.modal-root { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 18px; }
.modal-root[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 32, 34, .48); backdrop-filter: blur(3px); }
.modal {
  position: relative; width: min(560px, 100%); max-height: min(82vh, 720px); overflow: auto;
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 24px; animation: modalIn .26s cubic-bezier(.2,.8,.3,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal h2 { font-size: 21px; margin-bottom: 6px; }
.modal .modal-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 16px; }
.modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* 搜索面板 */
.search-panel { position: fixed; inset: 0; z-index: 250; display: grid; place-items: start center; padding: 12vh 18px 18px; }
.search-panel[hidden] { display: none; }
.search-panel-backdrop { position: absolute; inset: 0; background: rgba(20, 32, 34, .45); backdrop-filter: blur(2px); }
.search-panel-box { position: relative; width: min(640px, 100%); background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 14px; animation: modalIn .22s; }
.search-input-row { display: flex; align-items: center; gap: 10px; padding: 4px 6px 8px; border-bottom: 1px solid var(--line-soft); }
.search-input-row svg { color: var(--muted); flex-shrink: 0; }
.search-input-row input { flex: 1; border: 0; outline: none; background: transparent; font-size: 16px; padding: 8px 0; min-width: 0; }
.search-hints { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 2px 2px; }
.search-hints .hint-title { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.search-hints button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--ink-2); }
.search-results { max-height: 52vh; overflow: auto; padding-top: 8px; }
.sr-group { font-size: 10.5px; letter-spacing: .14em; color: var(--muted); padding: 8px 4px 4px; text-transform: uppercase; }
.sr-item { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 9px; color: var(--ink); }
.sr-item:hover { background: var(--paper-2); color: var(--ink); }
.sr-item .emoji { width: 32px; height: 32px; border-radius: 8px; background: var(--brand-soft); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.sr-item b { font-size: 13.5px; font-weight: 600; }
.sr-item span { font-size: 11.5px; color: var(--muted); display: block; }
.sr-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 0; }

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 980px) {
  .city-layout { grid-template-columns: 1fr; }
  /* 注意：这里必须是 relative 不能是 static —— .map-overlay/.map-hint/.map-fallback
     都是 absolute，靠 .map-wrap 当定位父级；改成 static 会让它们飘到页面上方挡住筛选标签 */
  /* 注意 2：只改 position 不够 —— 上面那条规则的 top: calc(--nav-h + 16px) 在 relative 下仍然生效，
     会把地图整体往下推 74px 盖住第一张景点卡，所以 top 必须重置成 auto */
  .city-layout .map-wrap { position: relative; top: auto; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .planner-layout { grid-template-columns: 1fr; }
  .planner-form { position: static; }
  .community-grid { grid-template-columns: 1fr; }
  .city-hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --nav-h: 58px; }
  .nav { display: none; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  .tabbar {
    /* 底栏有 5 个入口，必须 5 列；曾经写成 4 列，「关于」换行到第二行、底栏 62→125px，反馈浮标正好压住「行程」 */
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(255, 253, 247, .94); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 10.5px; color: var(--muted); height: var(--tab-h); }
  .tabbar a[data-active="true"] { color: var(--brand); font-weight: 700; }
  .tab-ico { font-size: 19px; line-height: 1.15; }
  .app { padding-bottom: calc(var(--tab-h) + 20px); }
  .footer { margin-bottom: 10px; }
  .container { padding: 0 16px; }
  .hero { padding-top: 38px; }
  .detail-hero { padding: 30px 22px 24px; border-radius: var(--radius); }
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .plan-summary { grid-template-columns: repeat(3, 1fr); }
  .city-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .city-cover { aspect-ratio: 4 / 3; }
  .city-cover-txt strong { font-size: 19px; }
  .city-body p { display: none; }
  .spot-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .spot-thumb { aspect-ratio: 4 / 3; }
  .spot-desc { display: none; }
  .info-grid { grid-template-columns: 1fr; }
  .modal { padding: 20px; }
  .rating-summary { grid-template-columns: 84px 1fr; gap: 12px; }
  .hero-stats { gap: 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 31px; }
  .section { margin: 34px 0; }
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 17px; }
  .plan-summary { grid-template-columns: repeat(2, 1fr); }
  .tl-card .tl-top { flex-direction: column; gap: 2px; }
  .review { padding: 14px; }
  .search-panel { padding-top: 8vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .topbar, .tabbar, .footer, .plan-actions, .btn { display: none !important; }
  body { background: #fff; }
  .panel, .tl-card, .review { break-inside: avoid; box-shadow: none; }
  .planner-layout { display: block; }
}

/* ==========================================================================
   深色模式
   ========================================================================== */
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101818;
  --paper-2: #182322;
  --paper-3: #21302e;
  --card: #14201f;
  --ink: #e9efea;
  --ink-2: #c3cec7;
  --muted: #8b9c95;
  --brand: #55b9aa;
  --brand-2: #74cfc0;
  --brand-soft: #1b3531;
  --accent: #e08a6f;
  --accent-soft: #3a241f;
  --gold: #d9b06a;
  --line: #2b3a37;
  --line-soft: #23312f;
  --ok: #6cc9a0;
  --warn: #e0b062;
  --danger: #e07a6a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
}
/* 深色主题下 --brand / --accent 是浅色，白字对比度不足（2.4–2.6），改用深色字 */
[data-theme="dark"] .btn--primary,
[data-theme="dark"] .btn--accent,
[data-theme="dark"] .chip--active,
[data-theme="dark"] .nav a[data-active="true"],
[data-theme="dark"] .nav a[data-active="true"]:hover,
[data-theme="dark"] .seg button.on,
[data-theme="dark"] .skip-link,
[data-theme="dark"] .fb-fab { color: #0b1a18; }

[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(85, 185, 170, .10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(224, 138, 111, .08), transparent 55%),
    var(--paper);
}
[data-theme="dark"] .topbar { background: rgba(16, 24, 24, .84); border-bottom-color: rgba(43, 58, 55, .8); }
[data-theme="dark"] .tabbar { background: rgba(20, 32, 31, .95); border-top-color: var(--line); }
[data-theme="dark"] .search-panel-box,
[data-theme="dark"] .modal { background: var(--card); }
[data-theme="dark"] .leaflet-container { background: #1a2524; }
[data-theme="dark"] .leaflet-control-attribution { background: rgba(20, 32, 31, .8) !important; color: var(--muted); }
[data-theme="dark"] .scale-block { opacity: .9; }
[data-theme="dark"] .city-cover::after { background: linear-gradient(to top, rgba(4, 12, 12, .85), rgba(4, 12, 12, .1) 60%); }
[data-theme="dark"] .hero::after { color: rgba(85, 185, 170, .05); }
[data-theme="dark"] .detail-hero { background: linear-gradient(120deg, #08201e 0%, #14544d 100%) !important; }
[data-theme="dark"] .toast { background: rgba(10, 18, 18, .96); }
[data-theme="dark"] .map-fallback { background: var(--paper-2); }
[data-theme="dark"] .skeleton { background: linear-gradient(100deg, #182322 30%, #21302e 50%, #182322 70%); background-size: 220% 100%; }
[data-theme="dark"] .print-cover { border-bottom-color: var(--brand); }


.insight-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 16px 0; }
.insight-card { background: var(--paper-2); border-radius: 11px; padding: 12px 14px; border: 1px solid transparent; }
.insight-card b { display: block; font-size: 13px; margin-bottom: 4px; color: var(--ink); }
.insight-card span { font-size: 11.8px; color: var(--ink-2); line-height: 1.6; display: block; }
.insight-card--warn { background: var(--accent-soft); border-color: rgba(196, 85, 59, .18); }
.insight-card--ok { background: var(--brand-soft); border-color: rgba(15, 90, 85, .14); }

.weather-chip { background: var(--brand-soft) !important; color: var(--brand) !important; border-radius: 999px; padding: 3px 9px !important; }
.crowd-tag { color: var(--accent); font-weight: 600; }

/* 城市页天气条 */
.weather-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.weather-day {
  flex: 1 0 86px; min-width: 86px; text-align: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; transition: .18s;
}
.weather-day:hover { border-color: var(--brand); transform: translateY(-2px); }
.weather-day.is-today { border-color: var(--brand); background: var(--brand-soft); }
.weather-day .d { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.weather-day .ico { font-size: 21px; line-height: 1.5; }
.weather-day .t { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.weather-day .p { font-size: 10px; color: var(--muted); margin-top: 2px; }
.weather-day .t small { font-weight: 400; color: var(--muted); }

.season-card { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(120deg, var(--brand-soft), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.season-ring { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--v) * 1%), var(--paper-3) 0); position: relative; }
.season-ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--card); }
.season-ring b { position: relative; z-index: 1; font-family: var(--font-serif); font-size: 18px; color: var(--brand); }
.season-body { min-width: 0; }
.season-body h4 { font-size: 15px; margin-bottom: 4px; }
.season-body p { margin: 0; font-size: 12.6px; color: var(--ink-2); line-height: 1.65; }
.season-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }

/* 打卡清单 */
.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.check-item {
  display: flex; align-items: flex-start; gap: 9px; background: var(--paper-2);
  border-radius: 9px; padding: 10px 12px; border: 1px solid transparent; cursor: pointer;
  font-size: 13px; color: var(--ink-2); line-height: 1.55; transition: .16s; text-align: left; width: 100%;
}
.check-item:hover { border-color: var(--brand); }
.check-item .box { flex-shrink: 0; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line); display: grid; place-items: center; background: var(--card); font-size: 11px; color: transparent; margin-top: 1px; }
.check-item.done { background: var(--brand-soft); color: var(--muted); text-decoration: line-through; }
.check-item.done .box { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 权重与口味 */
.weight-grid { display: flex; flex-direction: column; gap: 7px; }
.weight-row { display: flex; align-items: center; gap: 8px; }
.weight-row .lab { width: 68px; flex-shrink: 0; font-size: 12px; color: var(--ink-2); }
.weight-row .dots { display: flex; gap: 4px; flex: 1; }
.weight-row .dots button { flex: 1; height: 22px; border-radius: 5px; border: 1px solid var(--line); background: var(--paper); padding: 0; font-size: 10px; color: var(--muted); }
.weight-row .dots button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.weight-row .hint { width: 26px; text-align: right; font-size: 10px; color: var(--muted); }
.taste-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.taste-grid button { height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font-size: 12px; color: var(--ink-2); }
.taste-grid button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }

.factor-note { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.legend-row { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--muted); margin-top: 8px; }
.legend-row i { font-style: normal; }

/* 小时刻度甘特条 */
.day-scale { position: relative; margin: 2px 0 6px 30px; }
.scale-track { position: relative; height: 18px; background: var(--paper-2); border-radius: 5px; overflow: hidden; }
.scale-block {
  position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg, var(--brand-2), var(--brand));
  opacity: .82; border-right: 1px solid rgba(255, 255, 255, .55);
}
.scale-block.meal { background: linear-gradient(180deg, #d9a95c, var(--gold)); }
.scale-ticks { position: relative; height: 13px; margin-top: 2px; }
.scale-tick { position: absolute; transform: translateX(-50%); font-size: 9px; color: var(--muted); white-space: nowrap; }
.day-breakdown { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px 30px; font-size: 11.5px; color: var(--muted); }
.day-breakdown .strong { color: var(--ink-2); font-weight: 600; }
.tl-card .time em { font-style: normal; color: var(--muted); font-weight: 500; margin-left: 4px; font-size: 11px; }
@media (max-width: 820px) {
  .day-scale, .day-breakdown { margin-left: 0; }
  .day-breakdown { gap: 8px; font-size: 10.5px; }
}

/* 反事实替换建议 */.alt-list { display: flex; flex-direction: column; gap: 8px; }
.alt-item {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: var(--paper-2); border-radius: 10px; padding: 10px 12px;
}
.alt-item b { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.alt-item .btn { flex-shrink: 0; height: 30px; font-size: 12px; padding: 0 11px; }

/* 住宿推荐卡 */
.lodging-card {
  background: linear-gradient(120deg, var(--brand-soft), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px;
}
.lodging-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lodging-head b { font-size: 16px; }
.lodging-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 5px; }
.tl-item.return .tl-card { background: var(--paper-2); border-style: dashed; }
.tl-item.return .tl-card h4 { color: var(--muted); font-size: 14.5px; }

/* 拖拽排序 */
.order-day { margin-bottom: 14px; }
.order-day h4 { font-size: 14px; display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.order-list { display: flex; flex-direction: column; gap: 6px; }
.order-item {
  display: flex; align-items: center; gap: 10px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; cursor: grab;
}
.order-item:active { cursor: grabbing; }
.order-item.dragging { opacity: .45; border-color: var(--brand); }
.order-item .drag-handle { color: var(--muted); letter-spacing: -2px; }
.order-item b { font-size: 13px; }
.order-item .small { margin-left: auto; }
.order-day .day-start {
  border: 1px solid var(--line); border-radius: 6px; background: var(--card);
  font-size: 11px; padding: 1px 4px; color: var(--ink-2);
}

/* 版本对比 / 预算提示 */
.diff-bar {
  font-size: 12px; color: var(--ink-2); background: var(--paper-2);
  border-radius: 8px; padding: 7px 11px; margin-bottom: 10px;
}
.diff-bar.over { background: var(--accent-soft); color: var(--danger); }
.diff-bar.ok { background: var(--brand-soft); color: var(--brand); }

/* 主题线路模板 */
.template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.template-card {
  text-align: left; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 10px; cursor: pointer; transition: border-color .15s, background .15s;
}
.template-card:hover { border-color: var(--brand); background: var(--brand-soft); }
.template-card b { display: block; font-size: 12.5px; color: var(--ink); }
.template-card span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* 地图 POI 列表 */
.poi-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px;
}
.poi-item {
  display: flex; flex-direction: column; gap: 1px; padding: 6px 9px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 7px;
  font-size: 12px; color: var(--ink); text-decoration: none;
}
.poi-item:hover { border-color: var(--brand); }
.poi-item small { color: var(--muted); font-size: 10.5px; }

.day-notice {
  font-size: 12px; color: var(--brand); background: var(--brand-soft);
  border-radius: 7px; padding: 5px 10px; margin: 2px 0 6px;
}

.day-cost {
  display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2);
  padding: 7px 2px 0; border-top: 1px dashed var(--line-soft); margin-top: 6px;
}
.day-cost .strong { color: var(--ink); font-weight: 600; margin-left: auto; }

.summary-reconcile {
  display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2);
  background: var(--paper-2); border-radius: 8px; padding: 7px 11px; margin: 8px 0 12px;
}
.summary-reconcile .muted { color: var(--muted); margin-left: auto; }

.cost-bars { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; }
.cost-bar { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); }
.cost-bar span { width: 26px; flex: none; }
.cost-bar i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--brand), var(--accent)); min-width: 6px; }
.cost-bar b { margin-left: auto; font-weight: 600; color: var(--ink); }

.city-groups { display: flex; flex-direction: column; gap: 22px; }
.city-group-title {
  font-size: 15px; margin: 0 0 10px; color: var(--ink-2); font-weight: 600;
  display: flex; align-items: baseline; gap: 8px;
}
.city-group-title small { font-size: 11px; color: var(--muted); font-weight: 400; }

.interest-grid button { position: relative; }
.note-mark { display: inline-block; margin-left: 5px; font-size: 11px; color: var(--muted); cursor: pointer; padding: 0 2px; border-radius: 4px; }
.note-mark:hover { color: var(--accent); background: var(--paper-2); }

/* 我的山河：徽章 / DNA / 人格 */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.badge { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; opacity: .55; }
.badge--got { border-style: solid; border-color: var(--brand); opacity: 1; background: var(--card); }
.badge-emoji { font-size: 22px; }
.badge b { font-size: 13px; }
.badge small { font-size: 11px; color: var(--muted); }
.dna-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-width: 520px; }
.dna-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.dna-row span { width: 56px; flex: none; }
.dna-row i { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--accent)); min-width: 4px; }
.dna-row b { margin-left: auto; color: var(--ink); }
.persona-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.persona-emoji { font-size: 40px; line-height: 1; }

/* 旅行手账 */
.journal-day { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.journal-day:last-child { border-bottom: 0; }
.journal-date { width: 92px; flex: none; font-size: 12px; color: var(--muted); padding-top: 2px; }
.journal-items { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.journal-item b { font-size: 14px; }
.journal-item p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* 费用明细表 */
.budget-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.budget-table th, .budget-table td {
  text-align: left; padding: 7px 8px; border-bottom: 1px dashed var(--line-soft);
}
.budget-table th { font-size: 11px; color: var(--muted); letter-spacing: .08em; font-weight: 600; }
.budget-table td:nth-child(2), .budget-table td:nth-child(3),
.budget-table th:nth-child(2), .budget-table th:nth-child(3) {
  text-align: right; font-variant-numeric: tabular-nums;
}
.budget-table .budget-total td { font-weight: 700; border-top: 1px solid var(--line); border-bottom: 0; }
label.check-item { cursor: pointer; }
label.check-item input { accent-color: var(--brand); flex-shrink: 0; }
label.check-item span b { display: block; }

/* 打印封面 */
.print-cover { display: none; }
@media print {
  .print-cover {
    display: block; padding-bottom: 14px; margin-bottom: 20px;
    border-bottom: 2px solid var(--brand);
  }
  .print-cover .pc-brand { font-size: 11px; letter-spacing: .2em; color: var(--brand); }
  .print-cover h1 { font-size: 26px; margin: 6px 0 4px; }
  .print-cover .pc-meta { font-size: 12.5px; color: var(--ink-2); }
  .print-cover .pc-note { font-size: 11px; color: var(--muted); margin-top: 6px; }
  .map-wrap, .map-overlay, .plan-tabs, .day-scale { display: none !important; }
  .day-block { break-inside: avoid; }
  .budget-table { font-size: 12px; }
}

/* 运营台 */
.admin-list { display: flex; flex-direction: column; gap: 8px; }
.admin-row {
  display: grid; grid-template-columns: minmax(160px, 1.2fr) 110px minmax(180px, 2fr) auto;
  gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px;
}
.admin-row .who { min-width: 0; }
.admin-row .who b { display: block; font-size: 13.5px; }
.admin-row .who span { display: block; }
@media (max-width: 820px) {
  .admin-row { grid-template-columns: 1fr 1fr; }
  .admin-row .input { grid-column: 1 / -1; }
  .admin-row .btn { grid-column: 1 / -1; }
}

/* 许愿池 */
.wish-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}
.wish-row:last-child{border-bottom:none}
.wish-check{background:none;border:1px solid var(--line);border-radius:50%;width:24px;height:24px;cursor:pointer;color:var(--ink);flex:none}
.wish-done .wish-text{text-decoration:line-through;color:var(--muted)}
.wish-text{flex:1;font-size:14px}
.wish-date{font-size:12px;flex:none}
.wish-del{background:none;border:none;color:var(--muted);cursor:pointer;font-size:18px;flex:none}

/* 旅行账本 */
.exp-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--line);font-size:14px}
.exp-row:last-child{border-bottom:none}
.exp-cat{flex:none;font-size:12px;color:var(--muted);background:var(--paper-2);border-radius:4px;padding:1px 6px}
.exp-label{flex:1}
.exp-amount{flex:none;font-weight:600}

/* 本地人怎么说 */
.local-tip{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:10px 12px;background:var(--paper-2);border-left:3px solid var(--cinnabar);border-radius:4px;font-size:14px;line-height:1.6}
.local-tip-badge{flex:none;font-size:11px;font-weight:600;color:var(--cinnabar);border:1px solid var(--cinnabar);border-radius:10px;padding:1px 7px;margin-top:1px}

/* 旅行信 */
.letter-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.letter-row:last-child{border-bottom:none}
.letter-seal{font-size:20px;flex:none}
.letter-info{flex:1;display:flex;flex-direction:column;gap:2px}
.letter-info b{font-size:14px;font-weight:600}

/* 照片墙 */
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin-top:8px}
.photo-cell{position:relative;border-radius:8px;overflow:hidden;aspect-ratio:1}
.photo-cell img{width:100%;height:100%;object-fit:cover;display:block}
.photo-del{position:absolute;top:4px;right:4px;width:22px;height:22px;border:none;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;cursor:pointer;font-size:14px;line-height:1}

/* 打卡心情 */
.mood-picker{display:inline-flex;gap:2px}
.mood-btn{background:none;border:1px solid transparent;border-radius:6px;cursor:pointer;font-size:16px;line-height:1;padding:2px 4px;opacity:.55}
.mood-btn:hover{opacity:1;background:var(--paper-2)}
.mood-btn.on{opacity:1;border-color:var(--cinnabar);background:var(--paper-2)}
.mood-tag{font-size:15px;margin-left:4px}

/* 出发前清单 */
.check-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--line);font-size:14px}
.check-row:last-child{border-bottom:none}
.check-row label{flex:1;display:flex;align-items:center;gap:8px;cursor:pointer}
.check-row.done span{text-decoration:line-through;color:var(--muted)}

/* 旅行总结 */
.travel-summary{display:flex;flex-direction:column;gap:8px;padding:6px 0}
.summary-line{font-size:15px;line-height:1.75;margin:0}
.summary-line b{color:var(--cinnabar);font-size:17px}

/* 旅行日历 */
.cal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:6px;margin-top:4px}
.cal-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 0;border-radius:8px;background:var(--paper-2);border:1px solid var(--line);font-size:13px;gap:2px}
.cal-cell small{font-size:11px;color:var(--muted)}
.cal-l1{background:#e8efe9}
.cal-l2{background:#cfe0d4}
.cal-l3{background:#a8c9b1}
.cal-l4{background:#7aab8a;color:#fff}
.cal-l4 small{color:rgba(255,255,255,.85)}

/* ---------------- 用户反馈 ---------------- */
.fb-root { position: fixed; right: 18px; bottom: calc(var(--tab-h) + 16px); z-index: 90; }
.fb-fab { display: flex; align-items: center; gap: 6px; background: var(--brand, #0f5a55); color: #fff; border: none; border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 700; letter-spacing: .04em; box-shadow: 0 8px 26px rgba(15, 90, 85, .32); cursor: pointer; transition: transform .18s, box-shadow .18s; font-family: inherit; }
.fb-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 90, 85, .4); }
.fb-fab-ico { font-size: 15px; }
@media (max-width: 640px) {
  .fb-root { right: 12px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px); }
  .fb-fab { padding: 9px 13px; font-size: 12px; }
  /* 手机上给列表留出底部空间，FAB 不再压住最后一条的按钮 */
  .feed, .review-list, .spot-rows { padding-bottom: 66px; }
}
.fb-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fb-modal[hidden] { display: none !important; }
.fb-backdrop { position: absolute; inset: 0; background: rgba(10, 24, 22, .48); backdrop-filter: blur(3px); }
.fb-box { position: relative; width: min(500px, 100%); max-height: 88vh; overflow: auto; background: var(--paper, #fdfbf6); border-radius: 16px; padding: 18px 18px 16px; box-shadow: 0 26px 70px rgba(0, 0, 0, .28); }
.fb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15.5px; color: var(--ink, #20302d); }
.fb-head b { font-family: var(--font-serif, serif); font-weight: 700; }
.fb-x { border: none; background: none; font-size: 16px; cursor: pointer; color: var(--muted, #6b7c78); padding: 4px 6px; border-radius: 8px; }
.fb-x:hover { background: rgba(15, 90, 85, .08); }
.fb-sub { margin: 6px 0 12px; font-size: 12.5px; color: var(--muted, #6b7c78); }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fb-kind { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line, rgba(15, 90, 85, .16)); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink, #20302d); }
.fb-kind input { accent-color: var(--brand, #0f5a55); }
.fb-kind:has(input:checked) { border-color: var(--brand, #0f5a55); background: rgba(15, 90, 85, .07); font-weight: 700; }
.fb-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 12.5px; color: var(--ink, #20302d); }
.fb-field input, .fb-field textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line, rgba(15, 90, 85, .18)); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; font-family: inherit; background: #fff; color: var(--ink, #20302d); resize: vertical; }
.fb-field input:focus, .fb-field textarea:focus { outline: 2px solid rgba(15, 90, 85, .28); border-color: var(--brand, #0f5a55); }
.fb-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.fb-hint { font-size: 11.5px; color: var(--muted, #8a9a96); }
body[data-theme="dark"] .fb-box { background: #1a2422; }
body[data-theme="dark"] .fb-head, body[data-theme="dark"] .fb-kind, body[data-theme="dark"] .fb-field { color: #e8efec; }
body[data-theme="dark"] .fb-field input, body[data-theme="dark"] .fb-field textarea { background: #0f1816; color: #e8efec; border-color: rgba(255,255,255,.14); }

/* 反馈截图附件 */
.fb-attach-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-attach-pick { display: inline-block; border: 1px dashed var(--line, rgba(15, 90, 85, .3)); border-radius: 999px; padding: 7px 16px; font-size: 12.5px; color: var(--brand, #0f5a55); cursor: pointer; background: #fff; }
.fb-attach-pick:hover { background: rgba(15, 90, 85, .06); border-color: var(--brand, #0f5a55); }
.fb-attach-hint { font-size: 11.5px; color: var(--muted, #8a9a96); }
.fb-shots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.fb-shots[hidden] { display: none !important; }
.fb-shot { position: relative; display: flex; flex-direction: column; gap: 3px; max-width: 150px; }
.fb-shot img { max-width: 150px; max-height: 100px; border: 1px solid var(--line, rgba(15, 90, 85, .2)); border-radius: 8px; object-fit: contain; background: #fff; }
.fb-shot-x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line, rgba(15, 90, 85, .25)); background: #fff; color: #b0392f; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }
.fb-shot-x:hover { background: #b0392f; color: #fff; border-color: #b0392f; }
.fb-shot-meta { font-size: 10.5px; color: var(--muted, #8a9a96); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-box.fb-drag { outline: 2px dashed var(--brand, #0f5a55); outline-offset: -6px; }
body[data-theme="dark"] .fb-attach-pick { background: #0f1816; }
body[data-theme="dark"] .fb-shot-x { background: #0f1816; }

/* 性能：屏幕外的城市卡不参与渲染（减少首屏 485 张卡的布局/绘制开销） */
.city-card { content-visibility: auto; contain-intrinsic-size: 280px 260px; }
.city-more { display: block; margin: 14px auto 4px; background: none; border: 1px dashed var(--line, rgba(15, 90, 85, .25)); border-radius: 999px; padding: 8px 22px; color: var(--brand, #0f5a55); font-size: 13px; cursor: pointer; font-family: inherit; letter-spacing: .04em; }
.city-more:hover { background: rgba(15, 90, 85, .06); border-color: var(--brand, #0f5a55); }

/* 页脚反馈入口 */
.footer-fb { background: none; border: none; color: var(--brand, #0f5a55); font-size: inherit; cursor: pointer; padding: 0 2px; text-decoration: underline; text-underline-offset: 2px; font-family: inherit; }
.footer-fb:hover { opacity: .72; }

/* 反馈弹窗里的内测群二维码 */
.fb-group { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line, rgba(15, 90, 85, .2)); text-align: center; }
.fb-group-head { font-size: 12.5px; color: var(--ink, #20302d); font-weight: 600; margin-bottom: 8px; }
.fb-group-qr { width: 180px; max-width: 60%; height: auto; border-radius: 8px; border: 1px solid var(--line, rgba(15, 90, 85, .15)); background: #fff; }
.fb-group-note { margin-top: 6px; font-size: 11px; color: var(--muted, #8a9a96); }

/* 长文案兜底：城市/景点/时间轴里的长名字、长句子不横向溢出、不被截成半个字 */
.city-body p, .spot-desc, .tl-card h4, .tl-card p, .day-head h3, .panel p, .item p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 顶栏登录按钮：未登录显示「登录」，登录后显示昵称 */
.auth-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 10px;
  min-width: 52px;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--brand);
}
.auth-btn.icon-btn--on {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

/* 通用评分区块（城市 / 路线） */
[data-rating-block] { margin-top: 16px; }
[data-rating-block] .panel-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.stars-inline { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.rating-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.rating-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--card);
}
.rating-item b { margin-left: 8px; font-size: 13.5px; }
.rating-item p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

/* 城市封面（程序生成 SVG 底图） */
.city-cover {
  position: relative;
  height: 180px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  margin: 4px 0 14px;
  overflow: hidden;
}
.city-cover-text {
  position: absolute;
  left: 18px; bottom: 14px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.city-cover-text b { display: block; font-size: 28px; letter-spacing: 2px; }
.city-cover-text span { font-size: 13px; opacity: .9; }

/* 城市口碑三榜 */
.rv-triple { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 14px; margin-top: 10px; }
@media (max-width: 820px) { .rv-triple { grid-template-columns: 1fr; } }
.rv-col h3 { font-size: 14px; margin: 0 0 8px; }
.rv-avg { font-size: 44px; font-weight: 700; color: var(--brand); line-height: 1; }
.rv-dist { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.dist-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.dist-row i { display: block; height: 6px; background: var(--brand); border-radius: 3px; min-width: 2px; }
.dist-row em { font-style: normal; min-width: 18px; text-align: right; }
.rv-mini { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; background: var(--card); }
.rv-mini--worst { border-color: #f0d0c8; }
.rv-mini-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-mini-head b { font-size: 13px; }
.rv-mini p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }

/* 数据来源卡 */
.source-card { display: flex; flex-direction: column; gap: 4px; }
.source-card b { font-size: 13.5px; }
.source-card span { font-size: 13px; color: var(--ink-2); }

/* 覆盖 .icon-btn 的 40px 圆形：登录按钮是文字按钮，需要更宽 */
.icon-btn.auth-btn { width: auto; height: 34px; padding: 0 12px; border-radius: 999px; }
@media (max-width: 420px) {
  .icon-btn.auth-btn { padding: 0 9px; font-size: 12.5px; }
}

/* 首屏骨架（数据回来前的占位，避免白屏） */
.skeleton { background: linear-gradient(90deg, #ece7dc 25%, #f5f2ea 37%, #ece7dc 63%); background-size: 400% 100%; animation: sk 1.2s ease-in-out infinite; border-radius: 8px; }
.skeleton-title { height: 34px; width: 46%; margin-bottom: 14px; }
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-card { height: 120px; margin-top: 14px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 交通入口卡片 */
.transit-links { display: flex; flex-wrap: wrap; gap: 8px; }
.transit-link {
  display: inline-flex; align-items: center;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 13px; color: var(--ink); text-decoration: none;
}
.transit-link:hover { border-color: var(--brand); color: var(--brand); }

/* 成就徽章：分级 + 进度 */
.badge-summary { font-size: 13px; color: var(--muted); margin: 2px 0 12px; }
.badge-desc { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.badge-bar { display: block; height: 5px; background: #ece7dc; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.badge-bar > i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.badge-lv { font-size: 11px; padding: 1px 6px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.badge-lv--1 { background: #e8d9c3; color: #7a5a33; }
.badge-lv--2 { background: #e2e6ea; color: #55606b; }
.badge-lv--3 { background: #f6e2b3; color: #8a5f00; }

/* 头像 */
.auth-avatar { width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; }
.auth-name { margin-left: 6px; }
.avatar-current { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar-current img { width: 56px; height: 56px; border-radius: 50%; }
.avatar-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; max-height: 260px; overflow: auto; padding-right: 4px; }
@media (max-width: 480px) { .avatar-grid { grid-template-columns: repeat(6, 1fr); } }
.avatar-item { padding: 0; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; line-height: 0; }
.avatar-item img { width: 100%; height: auto; border-radius: 50%; display: block; }
.avatar-item.chip--on { border-color: var(--brand); }
.icon-btn.auth-btn { width: auto; }

/* 实拍封面：压一层暗色保证文字可读，右下角显示图库署名 */
.city-cover--photo { background-size: cover; background-position: center; }
.city-cover--photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,16,.05), rgba(8,16,16,.55));
}
.city-cover-credit {
  position: absolute; right: 10px; bottom: 8px; z-index: 2;
  font-size: 11px; color: rgba(255,255,255,.85);
  background: rgba(8,16,16,.35); padding: 2px 6px; border-radius: 999px;
}

/* 可搜索城市下拉（替代原生 datalist，手机端也能搜） */
.combo { position: relative; }
.combo-input { width: 100%; }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 80;
  background: var(--paper, #fff); border: 1px solid var(--line, #e2ded2);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(20, 40, 34, .14);
  max-height: 264px; overflow: auto; padding: 6px;
}
.combo-item {
  display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left;
  padding: 9px 10px; border: 0; background: none; border-radius: 8px;
  cursor: pointer; font: inherit; color: inherit;
}
.combo-item b { font-weight: 600; }
.combo-item span { font-size: 12px; color: var(--ink-3, #8a8a80); }
.combo-item:hover, .combo-item--on { background: rgba(31, 92, 77, .08); }
.combo-empty { padding: 12px 10px; font-size: 13px; color: var(--ink-3, #8a8a80); }

/* 每天一色：路线图例 */
.day-legend {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  margin: 0 0 10px; padding: 0 4px; font-size: 12.5px; color: var(--ink-2, #4a4a42);
}
.day-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.day-legend-item i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.day-legend-line { display: inline-block; width: 20px; height: 0; border-top: 3px solid currentColor; opacity: .9; }

/* 餐费的人均参考范围（避免把预算档位价当成这道菜的实价） */
.price-note { font-style: normal; font-size: 11px; color: var(--ink-3, #8a8a80); margin-left: 6px; }

/* 调整行程顺序：开始/结束时间输入 */
.order-item .pin-time, .order-item .stay-end {
  width: 84px; padding: 2px 4px; border: 1px solid var(--line, #e2ded2);
  border-radius: 6px; font-size: 12px; background: #fff;
}
.order-item .stay-end { border-color: rgba(31,92,77,.35); }
.order-item .io-time { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.order-item .io-label { font-weight: 500; font-size: 11px; }
@media (max-width: 480px) {
  /* 手机窄屏：藏掉「开始/结束」文字，只留时间框（有 title/placeholder 提示） */
  .order-item .io-label { display: none; }
  .order-item .pin-time, .order-item .stay-end { width: 74px; padding: 2px 2px; font-size: 11.5px; }
  .order-item { gap: 4px; }
}

/* 风格选择：双色预览 + 名称 + 说明 */
.style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .style-grid { grid-template-columns: 1fr; } }
.style-card {
  display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  padding: 10px; border: 1px solid var(--line, #e2ded2); border-radius: 14px; background: var(--paper, #fff);
  font: inherit; color: inherit;
}
.style-card:hover { border-color: var(--brand, #1f5c4d); box-shadow: 0 4px 14px rgba(31,92,77,.12); }
.style-swatch {
  width: 56px; height: 40px; border-radius: 10px; flex: none; position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.style-swatch i { position: absolute; right: 8px; bottom: 8px; width: 12px; height: 12px; border-radius: 50%; display: block; }
.style-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.style-text b { font-size: 14px; }
.style-text em { font-style: normal; font-size: 12px; color: var(--ink-3, #8a8a80); }

/* 旅行手账 */
.journal-form .row { display: flex; gap: 8px; flex-wrap: wrap; }
.journal-row { border-top: 1px dashed var(--line, #e2ded2); padding: 10px 0; }
.journal-row:first-child { border-top: 0; }
.journal-head { display: flex; align-items: baseline; gap: 8px; }
.journal-head .wish-del { margin-left: auto; }
.journal-text { margin: 6px 0 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
/* 许愿池分类徽章 */
.wish-cat {
  font-size: 11px; padding: 1px 6px; border-radius: 999px;
  background: rgba(31,92,77,.10); color: var(--brand, #1f5c4d); flex: none;
}

/* 打卡弹层：照片 + 定位 */
.ci-photo-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.ci-photo-pick { cursor: pointer; }
.ci-photo-box {
  width: 132px; height: 100px; border: 1.5px dashed var(--line, #d8d2c2); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-3, #8a8a80); text-align: center; line-height: 1.5;
  background: var(--paper-2, #faf7ef); overflow: hidden;
}
.ci-photo-box i { font-style: normal; font-size: 11px; opacity: .7; }
.ci-photo-box--filled { padding: 0; border-style: solid; }
.ci-photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-tip { flex: 1; min-width: 160px; line-height: 1.6; }

/* 打卡照片与定位徽章 */
.journal-photo {
  width: 100%; max-width: 260px; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px; margin: 6px 0 4px; display: block;
}
.ci-badge {
  font-size: 11px; padding: 1px 6px; border-radius: 999px; margin-left: 6px;
  background: rgba(31,92,77,.10); color: var(--brand, #1f5c4d);
}

/* 景点封面：用户自选照片（压暗保证文字可读） */
.detail-hero--photo { background-size: cover !important; background-position: center !important; position: relative; }
.detail-hero--photo::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(6,26,24,.55), rgba(6,26,24,.78));
}
.detail-hero--photo > * { position: relative; z-index: 1; }
/* 选封面的缩略图网格 */
.cover-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.cover-thumb { padding: 0; border: 1px solid var(--line, #e2ded2); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.cover-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.cover-thumb span { display: block; font-size: 11px; padding: 4px; color: var(--ink-3, #8a8a80); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 足迹地图：点位/涂色切换与图例 */
.map-mode { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.map-mode .chips { margin: 0; }
#paintLegend { display: inline-flex; align-items: center; gap: 4px; }
.paint-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }

/* 足迹照片图钉 */
.footprint-pin { background: none; border: 0; }
.footprint-bubble {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.28);
  background: #1f5c4d; display: flex; align-items: center; justify-content: center;
}
.footprint-bubble img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footprint-dot { color: #fff; font-size: 18px; font-weight: 600; }

/* 旅行人格：四项占比条 */
.persona-bars { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.persona-bar { display: grid; grid-template-columns: 132px 1fr 40px; align-items: center; gap: 8px; font-size: 12.5px; }
.persona-bar-name { color: var(--ink-2, #4a4a42); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.persona-bar i { display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #2f7a63, #7fc0a6); min-width: 2px; }
.persona-bar b { text-align: right; font-weight: 600; color: var(--brand, #1f5c4d); }
.persona-also {
  font-size: 12px; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  background: rgba(31,92,77,.10); color: var(--brand, #1f5c4d);
  display: inline-block; white-space: nowrap; vertical-align: middle;
}
/* 人格卡：主类型名 + 副标签同一行，长文自动换行不挤 */
.persona-card > div { min-width: 0; }
.persona-card b { display: inline; }

/* 截图/取证模式（?clean=1）：隐藏浮动按钮与角标，页面本身逻辑不变 */
body.clean-mode .fb-fab, body.clean-mode .feedback-fab, body.clean-mode #feedbackBtn,
body.clean-mode .map-hint, body.clean-mode .leaflet-control-attribution { display: none !important; }
