:root {
  --bg: #FFF8F2;
  --surface: #FFFFFF;
  --pink: #E0728E;
  --pink-strong: #B8325A; /* 11-28 对比度：#C93A62 在浅粉底上只有 4.05，改深到 ≥4.5 */
  --pink-soft: #FBE3EA;
  --text: #2B2230;
  --muted: #554A58;
  --line: #EADCDF;
  --s-not_yet: #8E8794;
  --s-soon: #E99AB0;
  --s-peak: #C93A62;
  --s-past: #9A7457;
  --s-unknown: #B9B1BD;
  --tabbar-h: 60px;
  --radius: 14px;
  --content-w: 640px;
  --side-w: 220px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { display: flex; flex-direction: column; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.pages { flex: 1; min-height: 0; display: flex; }
.page { flex: 1; min-height: 0; min-width: 0; }
.placeholder { padding: 24px; }
.placeholder p { color: var(--muted); }

/* ---------- 地图页 ---------- */
.map-page { display: flex; flex-direction: column; }
.map-header { padding: calc(10px + env(safe-area-inset-top)) 14px 6px; background: var(--bg); border-bottom: 1px solid var(--line); }
.search-row { display: flex; gap: 8px; }
#search { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
#search:focus { outline: 2px solid var(--pink); outline-offset: 1px; }

.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 0 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--pink-strong); color: #fff; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--pink-soft); border-color: var(--pink); color: var(--pink-strong); font-weight: 600; }
.chip:disabled { opacity: .45; cursor: not-allowed; }
select.chip { max-width: 180px; }

.date-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font-size: 14px; }
.date-label span { color: var(--muted); }
.link-btn { border: 0; background: none; color: var(--pink-strong); cursor: pointer; padding: 4px 0; }
.link-btn:disabled { color: var(--muted); opacity: .5; cursor: default; }
#date-slider { width: 100%; accent-color: var(--pink); margin: 4px 0 0; }
.note { margin: 4px 0 0; font-size: 13px; color: var(--pink-strong); }
.count { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.map-wrap { position: relative; flex: 1; min-height: 0; }
#map { position: absolute; inset: 0; }
.fab { position: absolute; right: 10px; top: 86px; width: 30px; height: 30px; border-radius: 4px; border: 0; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.1); cursor: pointer; font-size: 17px; line-height: 1; }
.legend { position: absolute; left: 8px; top: 8px; right: 52px; display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 6px 10px; background: rgba(255,255,255,.92); border-radius: 10px; font-size: 12px; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 4px; }
.legend-sep { margin-left: 4px; }
.map-error { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 3; background: var(--surface); padding: 12px 14px; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,.12); font-size: 14px; }
.map-error p { margin: 0 0 10px; }
.map-error .card-actions { margin: 0; }
.loading { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); background: #fff; padding: 10px 16px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.12); font-size: 14px; }

.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--c, var(--s-unknown)); flex: none; }
.dot.solid { background: var(--c, var(--s-unknown)); }
.dot.hollow { background: #fff; }
.s-not_yet { --c: var(--s-not_yet); }
.s-soon { --c: var(--s-soon); }
.s-peak { --c: var(--s-peak); }
.s-past { --c: var(--s-past); }
.s-opening { --c: var(--s-soon); }
.s-falling { --c: var(--s-past); }
.s-unknown { --c: var(--s-unknown); }

.user-dot { width: 16px; height: 16px; border-radius: 50%; background: #3B82F6; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(59,130,246,.35); }

/* 底部卡片 */
.card { position: absolute; left: 10px; right: 10px; bottom: 10px; max-width: 520px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 6px 24px rgba(43,34,48,.18); }
.card-close { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.card-title { margin: 0 28px 4px 0; font-size: 17px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-addr { margin: 0 0 8px; font-size: 13px; line-height: 1.5; }
.source { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.src-inferred { color: var(--muted); }
.forecast { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 14px; text-decoration: none; cursor: pointer; }
a.btn { color: var(--text); }
.btn.primary { background: var(--pink-strong); border-color: var(--pink-strong); color: #fff; font-weight: 600; } /* 白字在 --pink 上只有 3.0 */
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* 列表 */
.list-wrap { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 14px 16px; }
.list { list-style: none; margin: 0; padding: 0; }
.list-item { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 12px 2px; cursor: pointer; }
.li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.li-title { font-weight: 600; }
.li-sub { font-size: 13px; color: var(--muted); }
.li-dist { font-size: 13px; color: var(--muted); white-space: nowrap; }
.empty { padding: 24px 0; text-align: center; color: var(--muted); }

.updated { margin: 0; padding: 4px 14px; font-size: 11px; color: var(--muted); background: var(--bg); border-top: 1px solid var(--line); }

/* 底部导航 */
.tabbar { display: flex; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); }
.tabbar button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--muted); cursor: pointer; }
.tabbar .ti { font-size: 19px; line-height: 1; }
.tabbar button[aria-current="true"] { color: var(--pink-strong); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px); transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 10; max-width: 90vw; }

/* ======================= 通用页面 ======================= */
.page-view { overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg); }
.page-body { padding: 12px 14px 96px; max-width: var(--content-w); margin: 0 auto; }
.page-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 4px; padding: calc(10px + env(safe-area-inset-top)) 10px 10px; background: var(--bg); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; font-size: 18px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }
.back { border: 0; background: none; font-size: 30px; line-height: 1; padding: 0 8px 4px; color: var(--text); cursor: pointer; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 12px; box-shadow: 0 1px 0 var(--line); }
.panel h2 { margin: 0 0 8px; font-size: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sub { font-size: 14px; margin: 14px 0 6px; color: var(--muted); }
.btn.block { display: block; width: 100%; text-align: center; margin-top: 10px; }
.btn.on { background: var(--pink-soft); border-color: var(--pink); color: var(--pink-strong); }
.link-btn { text-decoration: none; font-size: 14px; }
.link-btn.danger { color: #A3324F; margin-top: 8px; }
.footnote { font-size: 12px; color: var(--muted); text-align: center; margin: 16px 0 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--pink-soft); color: var(--text); }
.tag-plain { background: #F3EEF0; color: var(--muted); }
.tag-warn { background: #FFF1D6; color: #7A5200; }
.s-unsure { --c: #8E8794; }
.empty { padding: 24px 0; text-align: center; color: var(--muted); list-style: none; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: 76px 1fr; gap: 6px 10px; margin: 0 0 8px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.note-panel { background: var(--pink-soft); }
.seg.wide { margin-bottom: 10px; }
.seg.wide button { flex: 1; padding: 8px 0; }

/* ======================= 首页 ======================= */
.home-hero { padding: calc(18px + env(safe-area-inset-top)) 16px 6px; max-width: var(--content-w); margin: 0 auto; }
.home-hero h1 { margin: 0; font-size: 24px; color: var(--pink-strong); }
.home-hero p { margin: 4px 0 0; }
.brief-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 10px; }
.brief-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--bg); border-radius: 10px; padding: 8px 4px; }
.brief-num { font-size: 22px; font-weight: 700; }
.brief-label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.brief-line { margin: 0 0 6px; line-height: 1.6; }
.basis { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.pick-list { list-style: none; margin: 4px 0 0; padding: 0; }
.pick { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; text-decoration: none; color: var(--text); cursor: pointer; }
.pick-list li:last-child .pick { border-bottom: 0; }
.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; background: var(--surface); border-radius: var(--radius); text-decoration: none; color: var(--text); font-size: 13px; box-shadow: 0 1px 0 var(--line); }
.sc-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--pink-soft); color: var(--pink-strong); display: grid; place-items: center; font-size: 19px; }
.event-mini { list-style: none; margin: 0; padding: 0; }
.event-mini a { display: flex; flex-direction: column; padding: 8px 0; color: var(--text); text-decoration: none; }
.remind { border: 1px solid var(--pink); }
.remind ul { margin: 0; padding-left: 18px; line-height: 1.7; }

/* 首页公告（管理后台发布，src/announce.js） */
.announce { position: relative; padding-right: 44px; border-left: 4px solid var(--pink); }
.announce-warn { border-left-color: #D9822B; background: #FFF4E5; }
.announce h2 { font-size: 16px; margin: 0 0 4px; }
.announce h2 a { color: inherit; }
.announce p { margin: 0; white-space: pre-line; }
.announce-close { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 18px; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.announce-close:hover { background: var(--pink-soft); }

/* ======================= 详情页 ======================= */
.photos { margin: 0 0 12px; }
.photo-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.photo-strip figure { margin: 0; flex: 0 0 85%; scroll-snap-align: start; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--pink-soft); display: block; }
.photo-strip figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.photo-empty { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 12px 16px; }
.photo-empty p { margin: 0; }
.progress { margin: 10px 0 6px; }
.progress-track { height: 10px; background: #F3EEF0; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--c); border-radius: 999px; }
.progress-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; gap: 6px; }
.cv-list { list-style: none; margin: 0; padding: 0; }
.cv-row { display: flex; gap: 10px; align-items: flex-start; }
.cv-row p { margin: 4px 0 0; }
.cv-row .tag { margin-left: 4px; }
.report-list { list-style: none; margin: 0; padding: 0; }
.report-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.report-list p { margin: 4px 0 0; font-size: 14px; }
.action-bar { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 10px 14px; background: rgba(255,248,242,.96); border-top: 1px solid var(--line); max-width: var(--content-w); margin: -84px auto 0; }
.action-bar .btn { flex: 1; text-align: center; }

/* ======================= 上报页 ======================= */
.step h2 { display: flex; align-items: center; gap: 8px; }
.step-no { width: 22px; height: 22px; border-radius: 50%; background: var(--pink-strong); color: #fff; font-size: 13px; display: grid; place-items: center; flex: none; }
.step.disabled { opacity: .5; pointer-events: none; }
.req { font-size: 12px; color: #fff; background: var(--pink-strong); border-radius: 4px; padding: 1px 6px; font-weight: 600; }
.tree-confirm { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tree-confirm p { margin: 4px 0 0; }
.tree-confirm .link-btn { white-space: nowrap; }
#tree-search { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.photo-pick { display: grid; place-items: center; min-height: 120px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); cursor: pointer; overflow: hidden; background: var(--bg); }
.photo-pick img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.status-options { display: grid; grid-template-columns: 1fr; gap: 8px; }
.status-opt { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; border: 2px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.status-opt svg { grid-row: 1 / 3; }
.so-label { font-weight: 700; font-size: 15px; }
.so-hint { font-size: 12px; color: var(--muted); }
.status-opt.selected { border-color: var(--pink-strong); background: var(--pink-soft); }
textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); resize: vertical; }
#submit:disabled { background: #D9CFD4; border-color: #D9CFD4; color: #fff; opacity: 1; }

/* ======================= 图鉴 ======================= */
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid; margin-right: 4px; vertical-align: -1px; }
.calendar { padding-top: 10px; }
.cal-axis { position: relative; height: 18px; margin-left: 88px; font-size: 12px; color: var(--muted); }
.cal-axis span { position: absolute; transform: translateX(-2px); }
.cal-rows { list-style: none; margin: 0; padding: 0; }
.cal-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; text-decoration: none; color: var(--text); }
.cal-name { width: 80px; flex: none; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-track { position: relative; flex: 1; height: 14px; }
.cal-grid { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--line); }
.cal-today { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--pink-strong); z-index: 1; }
.cal-today-key { display: inline-block; width: 2px; height: 10px; background: var(--pink-strong); margin-right: 4px; }
.cal-bar { position: absolute; top: 1px; bottom: 1px; border: 1.5px solid; border-radius: 999px; }
.cv-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cv-card { display: flex; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 12px 14px; box-shadow: 0 1px 0 var(--line); transition: box-shadow .3s; }
.cv-card.flash { box-shadow: 0 0 0 3px var(--pink); }
.cv-art { width: 64px; height: 64px; flex: none; background: var(--bg); border-radius: 12px; display: grid; place-items: center; }
.cv-body h3 { margin: 0 0 2px; font-size: 16px; }
.cv-body p { margin: 2px 0; }
.cv-meta { font-size: 13px; color: var(--pink-strong); }

/* ======================= 路线 ======================= */
.route-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.route-card { background: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); overflow: hidden; }
.route-head { width: 100%; text-align: left; border: 0; background: none; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.route-title { font-weight: 700; font-size: 16px; }
.route-meta { font-size: 13px; color: var(--muted); }
.route-card.open .route-head { border-bottom: 1px solid var(--line); }
.route-body { padding: 12px 14px 14px; }
.route-diagram { margin: 0 0 10px; }
.diagram-svg { width: 100%; height: auto; display: block; }
.stop-list { list-style: none; margin: 0 0 10px; padding: 0; counter-reset: stop; }
.stop-list li a { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.stop-list li a::before { counter-increment: stop; content: counter(stop); width: 20px; height: 20px; border-radius: 50%; background: var(--pink-soft); color: var(--pink-strong); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }

/* ======================= 活动 ======================= */
.date-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
.ds-day { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 6px 10px; display: flex; flex-direction: column; align-items: center; font-size: 12px; cursor: pointer; }
.ds-day[aria-pressed="true"] { background: var(--pink-strong); color: #fff; border-color: var(--pink-strong); }
.event-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.event-card { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; box-shadow: 0 1px 0 var(--line); }
.event-card h3 { margin: 8px 0 4px; font-size: 16px; }
.event-card p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.ev-top { display: flex; gap: 6px; flex-wrap: wrap; }

/* ======================= 我的 ======================= */
.pp-count { font-size: 14px; color: var(--muted); }
.pp-count strong { font-size: 22px; color: var(--pink-strong); }
.milestones { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.milestones li { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 12px; background: var(--bg); font-size: 13px; }
.milestones li > span:last-child { display: flex; flex-direction: column; }
.ms-badge { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; flex: none; color: var(--muted); font-weight: 700; }
.milestones li.done .ms-badge { border: 0; background: var(--pink-strong); color: #fff; }
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stamp { aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6px; }
.stamp.got { border: 2px solid var(--pink-strong); background: var(--pink-soft); transform: rotate(-6deg); }
.stamp-mark { font-size: 20px; color: var(--pink-strong); height: 22px; }
.stamp-name { font-size: 11px; font-weight: 600; line-height: 1.25; }
.stamp-date { font-size: 10px; color: var(--muted); }
.row-toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row-toggle > span { display: flex; flex-direction: column; gap: 2px; }
.row-toggle input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--pink-strong); flex: none; }
.row-toggle select { border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; background: var(--surface); }

/* 演示模式横幅 */
.demo-bar { flex: none; background: #3B2E3F; color: #fff; font-size: 12px; line-height: 1.4; padding: 6px 12px; padding-top: calc(6px + env(safe-area-inset-top)); }
.demo-bar a { color: #FBD3DF; margin-left: 6px; font-weight: 600; }

/* ---------- 多语言、v4 新增 ---------- */
:root:lang(ja) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif; }
:root:lang(en) { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif; }

/* 语言切换 */
.lang-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.lang-switch button { border: 1px solid rgba(255,255,255,.45); background: transparent; color: inherit; border-radius: 999px; padding: 2px 10px; font-size: 12px; cursor: pointer; min-height: 28px; }
.lang-switch button[aria-pressed="true"] { background: #fff; color: #3B2E3F; font-weight: 700; }
.lang-switch.big button { border-color: var(--line); padding: 6px 12px; font-size: 14px; min-height: 36px; }
.lang-switch.big button[aria-pressed="true"] { background: var(--pink-soft); border-color: var(--pink); color: var(--pink-strong); }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.lang-row { flex-wrap: wrap; }

/* 头部：首页右上角搜索 + 头像；二级页右侧头像 */
.home-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero-actions { display: flex; gap: 8px; flex: none; }
.me-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink-strong); text-decoration: none; flex: none; }
.me-btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.page-head .me-btn { margin-left: auto; width: 38px; height: 38px; }

/* 地图三种模式 */
.mode-seg { margin: 8px 0 0; }
.mode-seg button { padding: 6px 0; }
.line-key { display: inline-block; width: 20px; height: 5px; border-radius: 3px; flex: none; background: var(--c, var(--s-unknown)); }
.line-key.dashed { background: repeating-linear-gradient(90deg, var(--c, var(--s-unknown)) 0 6px, #fff 6px 9px); box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.area-key { display: inline-block; width: 16px; height: 14px; border-radius: 3px; flex: none; border: 2px solid #B8325E; }
.legend-title { width: 100%; font-weight: 600; color: var(--text); }
.list-item .line-key, .list-item .area-key { margin-top: 4px; }
.source .line-key, .source .area-key { margin-right: 6px; vertical-align: middle; }
#hood-chip { background: var(--pink-soft); border-color: var(--pink); color: var(--pink-strong); }

/* 我的 */
.stamps.latin .stamp-name { font-size: 9.5px; word-break: break-word; hyphens: auto; }
.extra-stamps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.extra-stamps li { display: flex; align-items: center; gap: 10px; }
.extra-stamps li > span:last-child { display: flex; flex-direction: column; }
.extra-stamps .stamp-mark { width: 40px; height: 40px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; flex: none; }
.extra-stamps li.got .stamp-mark { border: 2px solid var(--pink-strong); background: var(--pink-soft); transform: rotate(-6deg); }
.me-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.me-counts div { display: flex; flex-direction: column; gap: 2px; padding: 8px 4px; border-radius: 12px; background: var(--bg); }
.me-counts strong { font-size: 22px; color: var(--pink-strong); }

/* 樱花知识 */
.kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--pink-strong); margin: 0 0 4px; }
.feature-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; margin: 12px 0; border-radius: var(--radius); background: var(--pink-soft); color: var(--text); text-decoration: none; }
.feature-card strong { font-size: 18px; }
.feature-art { display: flex; gap: 6px; }
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.topic-grid a { display: flex; flex-direction: column; gap: 2px; padding: 12px; min-height: 64px; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 0 var(--line); color: var(--text); text-decoration: none; }
.stages dt { display: flex; align-items: center; gap: 6px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--pink-soft); display: grid; gap: 10px; }
.timeline li { display: flex; flex-direction: column; gap: 2px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.tl-year { font-weight: 700; color: var(--pink-strong); }
.numbered { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.quiz { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.quiz p { margin: 0 0 6px; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.right, .quick-opt.right { border: 2px solid #2F6B4F; background: #E3F0E8; color: #1F4D37; opacity: 1; }
.chip.wrong, .quick-opt.wrong { border: 2px solid var(--pink-strong); background: var(--pink-soft); color: #8F2445; opacity: 1; }
.ok { color: #1F4D37; }
.bad { color: #8F2445; }
.quiz-score { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; }
.article-title { margin: 0 0 8px; font-size: 22px; }
.checks { list-style: none; margin: 12px 0; padding: 0; }
.checks h3 { margin: 0 0 8px; font-size: 16px; display: flex; align-items: center; }
.compare { display: flex; gap: 12px; }
.compare figure { margin: 0; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 12px; background: var(--bg); font-size: 13px; }
.quick-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.quick-opt { min-height: 96px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }

/* 逐站导览 */
.go-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.go-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface); }
.go-steps .li-sub { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.go-no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 2px solid var(--pink); color: var(--pink-strong); flex: none; }
.go-done { opacity: .65; }
.go-done .go-no { background: var(--pink-strong); color: #fff; }
.go-cur { box-shadow: 0 0 0 2px var(--text); }
.go-st { margin-left: auto; font-size: 12px; color: var(--muted); flex: none; }
.go-leg h2 { font-size: 16px; }
.action-bar { gap: 6px; padding: 10px 10px; }
.action-bar .btn { padding: 8px 4px; font-size: 13px; white-space: nowrap; }
:root:lang(ja) .cal-name, :root:lang(en) .cal-name { width: 104px; font-size: 12px; }


/* ======================= 自适应：手机 / 平板 / 电脑 ======================= */
/* 手机（<600px）就是上面的默认样式。下面只在更宽的屏幕上覆盖。 */
.nav-brand, .tab-wide { display: none !important; }

/* 平板与小窗口（≥600px）：保留底部导航，内容变宽，卡片两列 */
@media (min-width: 600px) {
  :root { --content-w: 760px; }
  .page-body { padding-left: 20px; padding-right: 20px; }
  .home-hero { padding-left: 20px; padding-right: 20px; }
  .tabbar button { flex-direction: row; gap: 6px; font-size: 14px; }
  .route-list, .event-list, .cv-cards { grid-template-columns: 1fr 1fr; align-items: start; }
  .status-options { grid-template-columns: 1fr 1fr; }
  .photo-strip figure { flex-basis: 48%; }
  .stamps { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
  .milestones { grid-template-columns: repeat(4, 1fr); }
  .topic-grid { grid-template-columns: repeat(4, 1fr); }
  .facts { grid-template-columns: 110px 1fr; }
  .cal-name, :root:lang(ja) .cal-name, :root:lang(en) .cal-name { width: 140px; font-size: 13px; }
  .cal-axis { margin-left: 148px; }
  .toast { max-width: 520px; }
}

/* 电脑（≥1024px）：11-28 起不再用左侧栏（底部只留地图 / 知识 / 更多），内容页加宽；地图页仍是全屏地图 */
@media (min-width: 1024px) {
  :root { --content-w: 880px; }
  .page-head { padding: 14px 24px; }
  .page-body { padding: 16px 24px 96px; }
  .home-hero { padding: 28px 24px 8px; }
  .home-hero h1 { font-size: 30px; }
  .route-list, .event-list, .cv-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .quick-opts { grid-template-columns: repeat(4, 1fr); }
}

/* 大屏（≥1440px）：地图侧栏和内容再放宽一点 */
@media (min-width: 1440px) {
  :root { --content-w: 960px; }
}

/* 鼠标设备：悬停反馈（触屏不加，避免点完一直高亮） */
@media (hover: hover) and (pointer: fine) {
  .tabbar button:hover, .list-item:hover, .pick:hover { background: var(--pink-soft); }
  .btn:hover:not(:disabled) { border-color: var(--pink); }
  .btn.primary:hover:not(:disabled) { background: #A92B52; border-color: #A92B52; }
  .chip:hover:not(:disabled), .ds-day:hover { border-color: var(--pink); }
  .shortcuts a:hover, .topic-grid a:hover, .route-card:hover, .event-card:hover, .cv-card:hover { box-shadow: 0 0 0 1px var(--pink), 0 4px 14px rgba(43,34,48,.08); }
  .link-btn:hover { text-decoration: underline; }
}

/* 横屏手机（矮屏）：底部栏压缩 */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 1023px) {
  :root { --tabbar-h: 44px; }
  .tabbar .ti { font-size: 16px; }
}

/* ---------- 账号与提醒（邮箱登录、关注、花况提醒） ---------- */
.follow-slot { display: contents; }
.follow-btn { white-space: nowrap; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.account-actions .link-btn { margin-left: auto; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.consent-row input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--pink-strong); }
.follow-list { list-style: none; margin: 0; padding: 0; }
.follow-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.follow-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.follow-notify { display: flex; align-items: center; gap: 4px; }
.follow-notify input { width: 18px; height: 18px; accent-color: var(--pink-strong); }
.radius-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; }
.addr-form label, .sheet label { display: block; font-weight: 600; margin-top: 10px; }
.addr-form input, .sheet input { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 0 12px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.addr-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.addr-pick { text-align: left; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); line-height: 1.4; cursor: pointer; }
.addr-pick:hover { border-color: var(--pink); }
.sheet-wrap { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: rgba(43, 34, 48, .4); }
.sheet { width: 100%; max-width: 480px; background: var(--surface); border-radius: 18px 18px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto; }
.sheet h2 { margin: 0 0 6px; font-size: 18px; }
.sheet .code-input { letter-spacing: .4em; font-size: 22px; text-align: center; }
.sheet-err { color: var(--pink-strong); font-size: 14px; min-height: 1.2em; margin: 8px 0 0; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 14px; }
@media (min-width: 600px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 18px; } }

/* 隐私说明与使用条款（#/privacy） */
.legal h3 { font-size: 15px; margin: 18px 0 6px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 20px; margin: 6px 0 10px; }
.report-terms a { color: inherit; text-decoration: underline; }
/* Cloudflare Turnstile：只在需要用户操作时出现，浮在页面中间 */
.turnstile-box { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1000; }

/* ======================= 11-28 全屏地图（修改清单第 2、3、11–18 条） ======================= */
:root { --tabbar-h: 54px; --map-ink: #2B2230; --tier-early: #F6A9C1; --tier-mid: #E0517F; --tier-late: #9C1446; }
body.on-map .tabbar { display: none; }
.tabbar { height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
.tabbar button { flex-direction: row; gap: 6px; font-size: 13px; }
.map-page { position: relative; }
.map-wrap { position: absolute; inset: 0; }
.mbtn { position: relative; height: 44px; min-width: 44px; padding: 0 10px; border: 0; border-radius: 22px; background: #fff; color: var(--map-ink);
  box-shadow: 0 1px 6px rgba(43,34,48,.18); display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; flex: none; }
.mbtn[aria-expanded="true"] { background: var(--pink-soft); color: var(--pink-strong); }
.mbtn-code { font-size: 12px; font-weight: 700; }
.mbtn-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink-strong); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.map-top { position: absolute; z-index: 4; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.search-pill { flex: 1; min-width: 0; max-width: 420px; height: 44px; border: 0; border-radius: 22px; background: #fff; box-shadow: 0 1px 6px rgba(43,34,48,.18);
  display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--muted); font-size: 14px; text-align: left; cursor: pointer; }
.search-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#btn-lang { margin-left: auto; }
.locate { position: absolute; z-index: 3; right: 10px; top: calc(62px + env(safe-area-inset-top)); width: 44px; padding: 0; }
.pop { position: absolute; z-index: 6; background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(43,34,48,.2); padding: 6px; }
.lang-pop { top: calc(60px + env(safe-area-inset-top)); right: 10px; display: flex; flex-direction: column; min-width: 150px; }
.lang-pop button { border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 15px; cursor: pointer; }
.lang-pop button[aria-pressed="true"] { background: var(--pink-soft); color: var(--pink-strong); font-weight: 700; }
/* 筛选标签和公告排在同一列里，标签换行时公告自动往下让，不会叠在一起 */
.map-chips { display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.map-chip { pointer-events: auto; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; background: var(--map-ink); color: #fff; padding: 5px 10px; font-size: 13px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.map-chip span[aria-hidden] { opacity: .7; }
.map-stack { position: absolute; z-index: 3; top: calc(62px + env(safe-area-inset-top)); left: 10px; right: 64px; max-width: 420px; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.map-chips:empty { display: none; }
.map-stack > * { pointer-events: auto; }
.map-stack > .map-chips { pointer-events: none; }
.map-announce:empty { display: none; }
.map-announce .panel { margin: 0; padding: 8px 40px 8px 12px; font-size: 13px; box-shadow: 0 1px 6px rgba(43,34,48,.18); }
.map-announce .panel h2 { font-size: 14px; margin: 0; }
.map-announce .panel p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-announce .announce-close { width: 30px; height: 30px; top: 3px; right: 3px; }

/* 抽屉：筛选 / 列表（默认收起） */
.drawer { position: absolute; z-index: 5; top: 0; left: 0; bottom: 0; width: min(380px, 88vw); background: var(--surface); box-shadow: 4px 0 24px rgba(43,34,48,.18);
  display: flex; flex-direction: column; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom)); overflow: hidden; animation: drawer-in .18s ease-out; }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }
.drawer-head { display: flex; gap: 8px; align-items: center; }
.drawer-head #search { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 15px; }
.drawer-close { border: 0; background: none; font-size: 28px; line-height: 1; padding: 0 6px; color: var(--muted); cursor: pointer; }
.drawer .seg.wide { margin: 0; }
.drawer .seg.wide button { padding: 7px 0; display: inline-flex; gap: 4px; align-items: center; justify-content: center; }
.mode-ic { display: inline-flex; flex: none; }
.mode-ic svg { display: block; }
.drawer-pane { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -12px; padding: 0 12px; }
.drawer .count { margin: 0; }
.drawer .updated { padding: 0; border: 0; background: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; padding: 4px 0; }
.cv-filter { padding-top: 6px; }
/* 列表上方的筛选按钮：一行，横向滑动；“品种 ▾”展开的品种限高，列表仍看得到 */
.filter-bar { flex: none; display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 2px 12px; }
.filter-bar::-webkit-scrollbar { display: none; }
.fb-chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 5px 11px; font-size: 13.5px; }
.fb-chip .tier-dot { width: 10px; height: 10px; }
.fb-caret { font-size: 11px; transition: transform .15s; }
.fb-cv[aria-expanded="true"] .fb-caret { transform: rotate(180deg); }
.fb-clear { flex: none; white-space: nowrap; font-size: 13.5px; padding: 4px 2px; }
.drawer .cv-filter { flex: none; max-height: 38vh; overflow-y: auto; padding-top: 0; border-bottom: 1px solid var(--line); }
.drawer .cv-filter .tier-group:first-child { border-top: 0; }
.cv-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.cv-head .link-btn { margin-left: auto; }
.tier-group { padding: 6px 0; border-top: 1px solid var(--line); }
.tier-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 14px; cursor: pointer; }
.tier-btn[aria-pressed="true"] { border-color: var(--map-ink); background: var(--map-ink); color: #fff; }
.tier-btn.static { cursor: default; color: var(--muted); }
.cv-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 6px; font-size: 13px; }
.cv-chip svg { flex: none; }
.tier-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.tier-dot.conf { border-color: var(--map-ink); border-width: 2.5px; }
.list-item .tier-dot { width: 14px; height: 14px; }

/* 底部：日期 + 早 / 中 / 晚色带 */
.timebar { position: absolute; z-index: 3; left: 10px; right: 64px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 460px; background: rgba(255,255,255,.96);
  border-radius: 16px; padding: 8px 12px 8px; box-shadow: 0 2px 12px rgba(43,34,48,.16); }
.timebar .date-row { margin: 0; align-items: center; }
.today-btn { border: 1px solid var(--pink); background: var(--pink-soft); color: var(--pink-strong); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.today-btn:disabled { opacity: .45; cursor: default; }
.timebar #date-slider { margin: 2px 0 4px; }
.timebar .legend { position: static; display: block; padding: 0; background: none; border-radius: 0; }
.band { height: 10px; border-radius: 5px; }
.area-band { background: linear-gradient(90deg, rgba(224,81,127,.18), rgba(224,81,127,.5)); border: 2px solid #B8325E; box-sizing: content-box; }
.band-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 2px; }
.phase-key { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 4px; }
.phase-key > span { display: inline-flex; align-items: center; gap: 4px; }
.timebar .note { margin: 4px 0 0; }
.fab-more { position: absolute; z-index: 3; right: 10px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 48px; height: 48px; border-radius: 24px; border: 0;
  background: var(--pink-soft); color: var(--pink-strong); box-shadow: 0 2px 8px rgba(43,34,48,.16); display: grid; place-items: center; cursor: pointer; }
.fab-more .mbtn-badge { background: var(--map-ink); }
/* 地图版权说明（右下角 i）放在功能按钮上方，不被挡住 */
.maplibregl-ctrl-bottom-right { bottom: calc(66px + env(safe-area-inset-bottom)); }
.map-wrap:has(.card:not([hidden])) .maplibregl-ctrl-bottom-right { bottom: 210px; }

/* 卡片：精简 */
.card { z-index: 4; left: 10px; right: 10px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 440px; margin: 0; padding: 12px 14px; }
@media (min-width: 600px) { .card { right: auto; width: 400px; } .timebar { width: 420px; } }
.card-head { display: flex; gap: 10px; align-items: center; margin-right: 26px; }
.card-head .card-title { margin: 0; font-size: 16px; }
.card-head .card-addr { margin: 2px 0 0; color: var(--muted); }
.cv-petals { display: inline-flex; flex: none; }
.cv-petal { width: 34px; height: 34px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; margin-right: -6px; box-shadow: 0 0 0 2px #fff; }
.status-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
.phase-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; padding: 3px 10px 3px 6px; border-radius: 999px; background: var(--pink-soft); }
.phase-pill.ph-off { background: #F3EEF0; color: var(--muted); }
.src-badge { font-size: 12px; color: var(--muted); }
.src-badge.conf { color: var(--map-ink); font-weight: 600; }
.pct-bar { height: 8px; border-radius: 4px; background: #F3EEF0; overflow: hidden; margin-top: 10px; }
.pct-bar span { display: block; height: 100%; background: var(--tier-mid); }
.card-actions.icons { gap: 6px; }
.ibtn { flex: 1 1 0; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); text-decoration: none; font-size: 12px; cursor: pointer; }
.ibtn.primary { background: var(--pink-strong); border-color: var(--pink-strong); color: #fff; font-weight: 600; }
.card-actions.icons .follow-btn { flex: 1 1 0; border-radius: 12px; font-size: 12px; padding: 7px 4px; }
.kicker { margin: 0 0 2px; }
.route-strip { list-style: none; display: flex; gap: 6px; overflow-x: auto; margin: 8px 0 10px; padding: 2px; }
.route-strip a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--text); }
.route-strip li.cur .route-no { background: var(--map-ink); color: #fff; }
.route-no { width: 24px; height: 24px; border-radius: 12px; border: 2px solid var(--map-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #fff; }
.route-pin { width: 26px; height: 26px; border-radius: 13px; border: 2px solid #fff; background: var(--map-ink); color: #fff; font: 700 12px/1 sans-serif; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: pointer; padding: 0; }
.map-link { margin: 0 0 12px; }

/* 功能菜单 */
.more-sheet { padding-top: 16px; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.more-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; background: var(--bg); color: var(--text); text-decoration: none; text-align: center; font-size: 13px; }
.more-item.big { grid-column: span 4; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 14px 16px; background: var(--pink-soft); text-align: left; }
.more-item.big .more-label { font-size: 16px; font-weight: 700; }
.more-ic { color: var(--pink-strong); }
.more-sub { margin-left: auto; font-size: 13px; color: var(--pink-strong); font-weight: 700; }

/* 护照（#/passport） */
.passport-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); background: var(--pink-soft); }
.passport-link > span:nth-child(2) { display: flex; flex-direction: column; }
.pp-link-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--pink-strong); color: #fff; display: grid; place-items: center; font-size: 20px; }
.pp-link-go { margin-left: auto; font-size: 26px; color: var(--pink-strong); }
.pp-wrap { max-width: 860px; margin: 0 auto; padding: 12px 12px 24px; }
.pp-book { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; background: #F4E7DA; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), 0 8px 28px rgba(43,34,48,.18); outline: none; }
.pp-book::-webkit-scrollbar { display: none; }
.pp-page { flex: 0 0 100%; scroll-snap-align: start; min-height: min(560px, calc(100vh - 170px)); padding: 22px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,.05), transparent 18px), #FFFBF6; border-right: 1px solid #EBDCCD; }
.pp-cover { background: radial-gradient(circle at 50% 30%, #B83A63, #6E1838); color: #FFE9EF; justify-content: center; }
.pp-cover h2 { margin: 8px 0 0; font-size: 26px; letter-spacing: .04em; }
.pp-cover-sub { margin: 0; opacity: .85; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.pp-cover-count { margin: 10px 0 0; font-size: 15px; } .pp-cover-count strong { font-size: 34px; }
.pp-cover-art { background: rgba(255,255,255,.12); border-radius: 50%; padding: 14px; }
.pp-cover .btn.primary { background: #fff; color: #8E1F47; border-color: #fff; margin-top: 14px; }
.pp-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 220px; }
.pp-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); }
.pp-dots span.on { background: #fff; }
.pp-no { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.pp-title { margin: 0; font-size: 22px; }
.pp-stamp-box { width: 170px; height: 170px; display: grid; place-items: center; margin: 12px 0 4px; }
.pp-stamp-empty { width: 150px; height: 150px; border-radius: 50%; border: 3px dashed #DCCBBB; }
.pp-stamp { color: #B3264F; transform: rotate(-12deg); animation: stamp-in .35s ease-out; }
.pp-stamp .stamp-svg { width: 160px; height: 160px; }
@keyframes stamp-in { from { transform: rotate(-12deg) scale(1.5); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pp-stamp { animation: none; } }
.pp-state { margin: 0; font-weight: 700; }
.pp-page .btn.block { margin-top: auto; max-width: 320px; }
.pp-extra, .pp-milestones { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; width: 100%; max-width: 380px; text-align: left; }
.pp-extra li, .pp-milestones li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #fff; }
.pp-extra li > span:nth-child(2), .pp-milestones li > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.pp-mini { width: 40px; height: 40px; border-radius: 50%; border: 2px dashed #DCCBBB; display: grid; place-items: center; color: #B3264F; flex: none; }
.pp-extra li.got .pp-mini { border: 2px solid #B3264F; transform: rotate(-8deg); }
.pp-milestones li.done .ms-badge { border: 0; background: var(--pink-strong); color: #fff; }
.pp-photo-note { margin-top: auto; }
.pp-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.pp-arrow { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); font-size: 24px; cursor: pointer; }
@media (min-width: 760px) { .pp-page { flex-basis: 50%; } .pp-book { scroll-snap-type: x mandatory; } }

/* 手机：少留白（修改清单第 3 条） */
@media (max-width: 599px) {
  .page-body { padding: 8px 10px 80px; }
  .panel { padding: 12px 12px; margin-bottom: 8px; }
  .page-head { padding: calc(6px + env(safe-area-inset-top)) 6px 6px; }
  .home-hero { padding: calc(10px + env(safe-area-inset-top)) 12px 4px; }
}
/* 品种发音 */
.say-btn { border: 0; background: var(--pink-soft); border-radius: 999px; width: 30px; height: 30px; font-size: 15px; cursor: pointer; vertical-align: middle; margin-left: 4px; }
.say-guide { margin: 0 0 2px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
/* 品种筛选第一层：早 / 中 / 晚三个大按钮 */
.tier-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 8px; }
.tier-btn.big { flex-direction: column; justify-content: center; gap: 2px; padding: 10px 4px; border-radius: 12px; font-size: 15px; }
.tier-btn.big .tier-dot { width: 18px; height: 18px; }
.tier-btn.big[aria-pressed="true"] .muted { color: #fff; opacity: .8; }
.tier-sub { display: flex; align-items: center; gap: 6px; margin: 2px 0 4px; font-size: 13px; font-weight: 600; }

/* 点赞（11-28） */
.like-slot { display: contents; }
.like-btn.on, .mini-like.on { color: var(--pink-strong); }
.ibtn.like-btn.on { border-color: var(--pink); background: var(--pink-soft); }
.btn.like-btn { display: inline-flex; align-items: center; gap: 4px; }
.btn.like-btn.on { background: var(--pink-soft); border-color: var(--pink); }
.like-btn svg, .mini-like svg { transition: transform .15s ease-out; }
.like-btn.pop svg, .mini-like.pop svg { animation: like-pop .35s ease-out; }
@keyframes like-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .like-btn.pop svg, .mini-like.pop svg { animation: none; } }
.mini-like { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 4px 10px; min-height: 32px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; cursor: pointer; vertical-align: middle; }
.mini-like.on { border-color: var(--pink); background: var(--pink-soft); }
.me-helped:empty { display: none; }
.me-helped { margin-top: 10px; }
.helped { display: flex; gap: 10px; align-items: center; margin: 0; }
.helped > span:last-child { display: flex; flex-direction: column; }
.helped-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--pink-soft); color: var(--pink-strong); display: grid; place-items: center; flex: none; }

/* 添加到主屏幕（11-28） */
.install-nudge { position: relative; margin: 0; display: flex; align-items: center; gap: 10px; padding: 8px 40px 8px 10px; font-size: 13px; box-shadow: 0 1px 6px rgba(43,34,48,.18); }
.install-nudge img { border-radius: 8px; flex: none; }
.install-nudge p { margin: 0; flex: 1; min-width: 0; }
.install-nudge .btn.small { padding: 6px 12px; min-height: 32px; font-size: 13px; flex: none; }
.install-nudge .announce-close { width: 30px; height: 30px; top: 50%; right: 4px; transform: translateY(-50%); }
.install-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.install-head img { border-radius: 12px; }
.install-head h2 { margin: 0; }
.install-steps { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.install-steps li { display: flex; gap: 10px; align-items: center; }
.share-ic { vertical-align: -3px; color: #0A7AFF; }
.install-arrow { position: fixed; left: 50%; bottom: calc(8px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1001; color: #fff; font-size: 34px; font-weight: 700; text-align: center; line-height: 1; animation: install-bob 1.2s ease-in-out infinite; pointer-events: none; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.install-arrow span { display: block; font-size: 13px; margin-bottom: 2px; }
@keyframes install-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .install-arrow { animation: none; } }
.install-wrap .sheet { margin-bottom: 70px; border-radius: 18px; }

/* ---------- 街道标签和列表花瓣（街道图例改版） ----------
   地图上每条樱花街道的中点放一个标签：品种花瓣 + 开花中 / 快开了 / 没在开。
   底部图例直接用同样的标签当例子，不再用抽象的线段。列表左边换成品种花瓣。 */
.street-tag { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px 0 4px; border-radius: 14px;
  border: 1.5px solid #fff; background: #fff; color: var(--map-ink); font: 600 12px/1 system-ui, sans-serif; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.28); cursor: pointer; }
.street-tag[hidden] { display: none; }
.street-tag { width: max-content; min-width: max-content; }
.street-tag .st-petals { display: inline-flex; flex: none; }
.street-tag .st-petals svg, .street-tag .st-word { flex: none; }
.street-tag .st-petals svg + svg { margin-left: -8px; }
.street-tag.ph-now { background: #E0517F; color: #fff; }
.street-tag.ph-soon { background: #FBE3EB; color: #9C1446; }
.street-tag.ph-off { background: #F1EEF0; color: #7A7078; }
.street-tag.ph-off .st-petals { opacity: .45; }
.street-tag.conf { border-color: var(--map-ink); border-width: 2.5px; }
.street-tag.sel { outline: 3px solid var(--map-ink); outline-offset: 1px; z-index: 2; }
.street-tag.far { padding: 0 3px; width: 28px; min-width: 28px; justify-content: center; }
.street-tag.far .st-word { display: none; }
.street-tag.far .st-petals svg + svg { display: none; }
.street-tag.sample { cursor: default; box-shadow: none; border-color: transparent; }
.street-tag.sample.conf { border-color: var(--map-ink); background: #fff; color: var(--map-ink); padding-left: 9px; }
.street-key { display: flex; flex-wrap: wrap; gap: 6px; }

.row-petals { position: relative; flex: none; display: inline-flex; align-items: center; width: 40px; opacity: var(--op, 1); }
.row-petal { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; flex: none; }
.row-petals.n2 .row-petal { width: 26px; height: 26px; }
.row-petals.n2 .row-petal + .row-petal { margin-left: -14px; margin-top: 12px; }
.row-petals.n3 .row-petal { width: 22px; height: 22px; }
.row-petals.n3 .row-petal svg { width: 20px; height: 20px; }
.row-petals.n3 .row-petal:nth-child(2) { margin-left: -6px; margin-top: 16px; }
.row-petals.n3 .row-petal:nth-child(3) { margin-left: -10px; margin-top: -12px; }
.row-petals.conf .row-petal:last-of-type { box-shadow: 0 0 0 2.5px var(--map-ink); }
.row-more { position: absolute; right: -4px; bottom: -4px; font-size: 10px; font-weight: 700; color: var(--muted); background: #fff; border-radius: 6px; padding: 0 3px; }

/* ---------- 体验修改第二轮（R2–R4） ---------- */
/* R3 日期：今天 / 本周末 / 选日期 + 地图上方的日期条 */
.date-quick { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 2px; }
.date-quick .today-btn { background: var(--surface); border-color: var(--line); color: var(--text); font-weight: 600; }
.date-quick .today-btn[aria-pressed="true"] { background: var(--map-ink); border-color: var(--map-ink); color: #fff; }
.date-pick-wrap { position: relative; display: inline-flex; }
.date-pick { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; border: 0; padding: 0; }
/* 日期条：定位按钮下面，右对齐；展开是白色胶囊，收起成和定位按钮同宽的小日历按钮 */
.date-banner { position: absolute; z-index: 4; right: 10px; top: calc(114px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,.97); color: var(--map-ink); border-radius: 22px; box-shadow: 0 1px 6px rgba(43,34,48,.18); max-width: calc(100% - 20px); }
.date-banner[hidden] { display: none; }
.db-toggle { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; cursor: pointer; min-height: 44px; padding: 4px 4px 4px 13px; text-align: left; font: inherit; }
.db-toggle svg { flex: none; color: var(--pink-strong); }
.db-text { display: flex; flex-direction: column; line-height: 1.2; }
.db-text strong { font-size: 14px; }
.db-text small { font-size: 12px; color: var(--muted); }
.db-close { flex: none; border: 0; background: #F3EEF0; color: var(--map-ink); width: 30px; height: 30px; border-radius: 15px; margin-right: 7px; font-size: 18px; line-height: 1; cursor: pointer; }
.date-banner:not(.open) { width: 44px; border-radius: 14px; }
.date-banner:not(.open) .db-toggle { flex-direction: column; gap: 1px; width: 44px; padding: 6px 0 5px; justify-content: center; }
.db-short { font-size: 10.5px; font-weight: 700; line-height: 1.1; text-align: center; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .date-banner.open { animation: db-in .16s ease-out; transform-origin: top right; } }
@keyframes db-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
/* R2 列表：两行，第一行“名称 · 状态” */
.li-phase { font-weight: 700; color: var(--pink-strong); }
.li-phase.ph-soon { color: var(--pink); }
.li-phase.ph-off { color: var(--muted); font-weight: 600; }
/* R4 列表里和地图选中的那一条对应 */
.list-item.sel { background: var(--pink-soft); box-shadow: inset 4px 0 0 var(--map-ink); border-radius: 8px; }
/* R4 图例：默认只留核心状态，说明点开再看 */
.phase-key.core { align-items: center; margin-top: 2px; }
.legend-more { margin-left: auto; border: 0; background: none; padding: 2px 0; color: var(--pink-strong); font-size: 12px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.street-key .legend-more { align-self: center; }
.lg-detail { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.lg-line { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
/* R1 首页：值得去哪里 */
.worth-list, .clue-list, .route-preview, .fav-wait { list-style: none; margin: 4px 0 10px; padding: 0; }
.worth-item, .route-preview a, .fav-wait a { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.worth-list li:last-child .worth-item, .route-preview li:last-child a, .fav-wait li:last-child a { border-bottom: 0; }
.worth-status { font-weight: 700; color: var(--muted); font-size: 14px; }
.worth-status.conf { color: var(--pink-strong); }
.route-preview a, .fav-wait a { flex-direction: column; align-items: flex-start; gap: 2px; }
.fav-days { font-size: 13px; color: var(--pink-strong); font-weight: 600; }
.clue-list li { padding: 4px 0; }
details.brief > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
details.brief > summary::-webkit-details-marker { display: none; }
details.brief > summary::after { content: '＋'; color: var(--muted); font-weight: 700; }
details.brief[open] > summary::after { content: '－'; }
details.brief > summary h2 { margin: 0; font-size: 15px; }
details.brief[open] > summary { margin-bottom: 8px; }
.fav-follow-note { margin: 4px 2px 0; line-height: 1.6; }
/* R5 我的：护照摘要 */
.passport-sum .pp-count { margin: 0 0 6px; }
.pp-bar { height: 10px; border-radius: 5px; background: #F3EEF0; overflow: hidden; }
.pp-bar span { display: block; height: 100%; background: var(--pink-strong); border-radius: 5px; }
.stamp-row { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.stamp-row li { display: flex; align-items: center; gap: 8px; background: var(--pink-soft); border-radius: 12px; padding: 6px 10px 6px 6px; }
.stamp-row li > span:last-child { display: flex; flex-direction: column; font-size: 13px; }
.stamp-mini { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--pink-strong); color: var(--pink-strong); display: grid; place-items: center; transform: rotate(-8deg); background: #fff; }
/* 树点详情底栏：六个按钮在窄屏英文下会挤出屏幕，缩小内边距，还放不下时可以横向滑动 */
@media (max-width: 440px) {
  .action-bar { overflow-x: auto; scrollbar-width: none; }
  .action-bar .btn { flex: 1 0 auto; padding-left: 9px; padding-right: 9px; font-size: 13.5px; white-space: nowrap; }
  .action-bar .btn.primary { order: -1; } /* 导航放最前，放不下时被挤出去的是“分享” */
}
/* 区域中心的名字标签（地图上区域太淡看不出在哪） */
.area-tag { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 180px; padding: 4px 10px; border-radius: 12px; border: 2px solid #B8325E;
  background: #fff; color: #7A1E40; font-size: 12px; font-weight: 700; box-shadow: 0 1px 4px rgba(43,34,48,.2); cursor: pointer; }
.area-tag[hidden] { display: none; }
.area-tag .at-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.area-tag .at-pct { background: #B8325E; color: #fff; border-radius: 8px; padding: 0 6px; }
.area-tag.sel { outline: 3px solid var(--map-ink); outline-offset: 1px; z-index: 2; }

/* 有新版本提示（src/update.js） */
.update-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; background: var(--text); color: #fff; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); font-size: 14px; max-width: calc(100vw - 24px); }
.update-banner .btn { padding: 6px 14px; }

/* ---------- 品种按钮底部的花况彩条（跟着所选日期变） ---------- */
.cv-chip, .map-chip { position: relative; overflow: hidden; }
.cv-chip { padding-bottom: 8px; }
.cv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; display: flex; pointer-events: none; }
.cv-bar i { display: block; flex-basis: 0; min-width: 3px; }
.cv-bar .mix-now { background: #E0517F; }
.cv-bar .mix-soon { background: #F6A9C1; }
.cv-bar .mix-later { background: #D9D2D6; }
.cv-bar .mix-past { background: #9C7F8C; }
.map-chip { padding-bottom: 7px; }
.map-chip .cv-bar { height: 3px; }
