/* 城市足迹：手账式地图与旅行记录 */
.travel-stats { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:17px; margin:24px 0 31px; }
.travel-stats > div { display:flex; align-items:center; justify-content:center; gap:9px; padding:15px 10px; border:2px solid #f0d2df; border-radius:20px 17px 21px 18px; background:#fffafcf5; box-shadow:2px 4px 0 #fce9f0; }
.travel-stats .icon { width:19px; height:19px; color:#cf94ab; }
.travel-stats strong { font-family:'Comic Sans MS',cursive; color:#d894ae; font-size:27px; font-weight:400; line-height:1.3; }
.travel-stats span { font-size:13px; color:#af8398; }
.map-sheet { padding:25px 27px 21px; }
.map-heading { display:flex; justify-content:space-between; align-items:center; gap:17px; margin-bottom:20px; }
.map-heading h2 { display:flex; align-items:center; gap:9px; font-size:22px; }
.map-heading h2 .icon { width:21px; height:21px; color:#cc92ab; }
.map-legend { display:flex; gap:16px; flex-wrap:wrap; font-size:12px; color:#b38b9f; }
.map-legend > span { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.map-legend i { width:12px; height:12px; display:block; background:#fff8fb; border:1px solid #e4bdce; border-radius:4px; }
.map-legend i.visited { background:#e5a2bc; border-color:#c584a1; }
.map-legend i.wished { border:1px dashed #b697b2; background:#faf6fc; }
.map-search { display:flex; align-items:center; gap:12px; position:relative; margin-bottom:16px; }
.map-search > label { color:#b1849a; font-size:14px; white-space:nowrap; }
.map-search > input { border:2px solid #f0d4e1; border-radius:14px; background:#fffafd; font:14px var(--hand); color:#9c7089; padding:11px 14px; width:100%; outline:none; min-width:0; }
.map-search > input:focus { border-color:#d99cb8; }
.map-search-results { position:absolute; right:0; left:90px; top:48px; z-index:5; border-radius:13px; background:#fffdfefc; box-shadow:0 8px 25px #b885a42b; overflow:hidden; max-height:280px; overflow-y:auto; }
.map-search-results:empty { display:none; }
.map-search-results button { display:block; width:100%; text-align:left; padding:11px 15px; color:#a37390; border:0; background:transparent; border-bottom:1px solid #f8e8f0; font:14px var(--hand); }
.map-search-results button:hover,.map-search-results button:focus { background:#fff0f8; }
.map-board { height:min(61vw,570px); min-height:350px; border:1px dashed #efd4e4; background:radial-gradient(ellipse at center,#fffafd 0%,#fff8fc 70%,#fff2f9 100%); border-radius:22px; position:relative; overflow:hidden; }
#city-map { display:block; width:100%; height:100%; touch-action:none; user-select:none; }
.map-land { fill:#fff5fb; stroke:#dfbbcf; stroke-width:.6; pointer-events:none; }
.map-region { fill:#fff9fc; stroke:#ead3e0; stroke-width:.45; vector-effect:non-scaling-stroke; cursor:pointer; transition:fill .12s; }
.map-region:hover { fill:#f5e6f2; stroke:#bc8caa; stroke-width:1.3; }
.map-region.wished:not(.visited) { fill:#faf6fc; stroke:#bfa1ba; stroke-dasharray:2 1; stroke-width:1.2; }
.map-region.visited { fill:#ecc0d2; stroke:#ca91ad; stroke-width:.8; }
.map-region.revisited { fill:#dd9ab7; }
.map-region.selected { stroke:#a86692; stroke-width:2; }
.map-region.selected:not(.visited) { fill:#f2e8f8; }
.map-region:focus { outline:none; stroke:#8d547f; stroke-width:2.3; }
.map-province-line { fill:none; stroke:#cda8c0; stroke-width:.65; vector-effect:non-scaling-stroke; pointer-events:none; }
.map-city-dot { fill:#b86d97; stroke:white; stroke-width:1; pointer-events:none; }
.map-city-label { fill:#a76e91; font-size:12px; font-family:var(--hand); paint-order:stroke; stroke:#fffafd; stroke-width:3px; stroke-linejoin:round; pointer-events:none; }
.map-controls { display:flex; position:absolute; top:13px; right:13px; z-index:2; border:1px solid #e4bed4; border-radius:12px; overflow:hidden; background:#fffcfef5; box-shadow:2px 3px 0 #f7e5ef; }
.map-controls button { background:transparent; color:#b17c9b; padding:7px 12px; min-height:38px; min-width:39px; border:0; border-right:1px solid #f0dbe7; font:16px var(--hand); }
.map-controls button:last-child { font-size:12px; border:0; }
.map-controls button:hover { background:#fff1f9; }
.map-controls button:disabled { cursor:default; opacity:.35; }
#map-loading { position:absolute; inset:45% 25px auto; text-align:center; color:#be97ad; background:#fffafdca; padding:16px; border-radius:18px; font-size:14px; pointer-events:none; }
.selected-city { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 17px; margin-top:17px; background:#fff3f9; border:1px solid #f0d4e3; border-radius:16px; }
.selected-city[hidden] { display:none; }
.selected-city strong { color:#a57591; font-size:16px; font-weight:400; }
.selected-city p { font-size:12px; color:#b590a5; line-height:1.8; margin-top:4px; }
.selected-city-actions { display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; justify-content:flex-end; min-width:210px; }
.selected-city-actions .text-button,.selected-city-actions .subtle-link { font-size:12px; white-space:nowrap; }
.selected-city-actions a[hidden] { display:none; }
.map-footnote { display:flex; justify-content:space-between; gap:25px; color:#ba9aad; font-size:11px; line-height:1.8; margin-top:14px; }
.map-footnote a { flex-shrink:0; color:#ac829e; text-decoration:underline; text-decoration-style:dotted; }
.travel-columns { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:28px; align-items:start; margin-top:30px; }
.travel-city-grid { display:grid; gap:12px; }
.travel-city { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; border:1px solid #f2d8e6; border-radius:18px 15px 19px 14px; background:#fff8fc; }
.travel-city h3 { font-size:18px; font-weight:400; color:#aa7a96; }
.travel-city p { color:#bf9bb0; font-size:11px; margin-top:4px; }
.travel-city > span { font-size:11px; color:#bb90a9; white-space:nowrap; }
.travel-city b { color:#d69ab6; font-family:'Comic Sans MS',cursive; font-size:24px; font-weight:400; }
.travel-city:hover { background:#fff0f8; }
.travel-wish { display:block; padding:14px 1px; border-bottom:1px dashed #f0d6e5; }
.travel-wish:last-child { border:0; }
.travel-wish h3 { font-size:18px; font-weight:400; color:#b0809b; }
.travel-wish h3 span { color:#c29fb4; font-size:11px; margin-left:9px; }
.travel-wish p { font-size:13px; color:#b890a8; line-height:1.9; margin-top:8px; white-space:pre-wrap; }
.travel-timeline-item { display:flex; align-items:center; gap:24px; border-bottom:1px dashed #f0d6e5; padding:18px 0; }
.travel-timeline-item:last-child { border-bottom:0; }
.travel-timeline-item > time { font-size:12px; color:#c293af; min-width:108px; max-width:210px; }
.travel-timeline-item > div { flex:1; min-width:0; }
.travel-timeline-item h3 { font-size:18px; color:#a87996; font-weight:400; }
.travel-timeline-item p { color:#bb95ad; font-size:12px; margin-top:5px; overflow-wrap:anywhere; }
.travel-timeline-item > .icon { color:#d4a9c0; width:17px; height:17px; }
.manual-city-fields[hidden] { display:none; }
.manual-city-fields { border:1px dashed #edcddd; padding:13px; border-radius:14px; background:#fff7fb; }
.travel-back { margin:0 0 20px; }
.travel-memory > p { font-size:18px; line-height:2; color:#a47691; white-space:pre-wrap; }
.travel-memory > small { display:block; font-size:11px; color:#bf9db1; margin-top:16px; }
.travel-memory .section-spaced { margin-top:15px; }
.travel-memory + .section-spaced { margin-top:28px; }
.page-footprints .scrap-note + .scrap-note { margin-top:13px; }
.footprint-home-link { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:9px; font-size:13px; color:#b4829e; background:#fff9fcdd; border:1px dashed #ecc7dc; border-radius:20px; padding:12px 19px; margin:-9px auto 31px; max-width:720px; }
.footprint-home-link > .icon { height:17px; width:17px; color:#cd9bb7; }
.footprint-home-link > span { font-size:11px; color:#c29eb4; margin-left:7px; }
.header-settings { display:none; }
@media(max-width:900px) {
  .map-heading { flex-wrap:wrap; gap:12px; }
  .map-legend { font-size:11px; gap:14px; }
  .selected-city { flex-wrap:wrap; }
  .selected-city-actions { justify-content:flex-start; }
  .travel-stats > div { flex-wrap:wrap; gap:6px; }
  .travel-stats span { font-size:12px; }
  .map-sheet { padding:23px; }
  .travel-timeline-item { gap:18px; }
  .travel-timeline-item > time { max-width:160px; }
}
@media(max-width:680px) {
  .travel-stats { gap:10px; margin:22px 0 27px; }
  .travel-stats > div { display:flex; flex-direction:column; gap:6px; padding:12px 7px; min-height:101px; border-width:1.5px; border-radius:18px 16px 19px 15px; }
  .travel-stats .icon { height:17px; width:17px; }
  .travel-stats strong { font-size:27px; }
  .travel-stats span { font-size:11px; text-align:center; line-height:1.5; }
  .map-sheet { padding:21px 14px 18px; }
  .map-heading { margin-bottom:16px; gap:11px; }
  .map-heading h2 { font-size:21px; gap:7px; }
  .map-heading h2 .icon { width:19px; height:19px; }
  .map-legend { gap:13px; font-size:10px; }
  .map-legend i { height:10px; width:10px; }
  .map-search { gap:8px; margin-bottom:12px; }
  .map-search > label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  .map-search > input { font-size:13px; padding:10px 11px; }
  .map-search-results { left:0; top:44px; }
  .map-search-results button { font-size:13px; }
  .map-board { min-height:315px; height:94vw; max-height:410px; border-radius:16px; }
  .map-controls { top:9px; right:9px; border-radius:10px; }
  .map-controls button { font-size:17px; min-width:35px; min-height:34px; padding:5px 10px; }
  .map-controls button:last-child { font-size:11px; }
  .map-footnote { flex-direction:column; gap:8px; font-size:10px; margin-top:12px; }
  .selected-city { padding:13px; gap:10px; margin-top:13px; }
  .selected-city strong { font-size:16px; }
  .selected-city p { font-size:11px; }
  .selected-city-actions { min-width:0; gap:9px 14px; }
  .selected-city-actions .text-button,.selected-city-actions .subtle-link { font-size:12px; }
  .travel-columns { grid-template-columns:1fr; margin-top:27px; gap:27px; }
  .travel-city { padding:13px 12px; }
  .travel-city h3 { font-size:19px; }
  .travel-city > span { font-size:11px; }
  .travel-timeline-item { display:grid; grid-template-columns:minmax(0,1fr) 18px; gap:7px 11px; padding:16px 0; }
  .travel-timeline-item > time { grid-column:1/-1; min-width:0; max-width:none; font-size:11px; }
  .travel-timeline-item h3 { font-size:18px; }
  .travel-timeline-item p { font-size:12px; }
  .travel-memory > p { font-size:17px; }
  .footprint-home-link { margin:-7px 0 27px; gap:6px; padding:11px 12px; font-size:12px; }
  .footprint-home-link > span { width:100%; text-align:center; margin:0; font-size:10px; }
  .header-settings { display:inline-flex; width:25px; height:30px; align-items:center; justify-content:center; color:#c49ab2; }
  .header-settings > .icon { height:17px; width:17px; }
  .scrap-header-right { gap:8px; }
}

.wish-content { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.9; }
.city-picker-results { display:grid; gap:7px; max-height:230px; overflow:auto; }
.city-picker-results[hidden] { display:none; }
.city-picker-original[hidden] { display:none !important; }
.city-picker-option { text-align:left; padding:11px 13px; border:1px solid #efcfdf; border-radius:12px; background:#fff8fc; color:#a87090; min-height:44px; }
.city-picker-option:hover,.city-picker-option:focus-visible { background:#fce5ef; }
.assistant-tools { margin-bottom:24px; }
.assistant-tools summary { cursor:pointer; color:#a87090; font-size:18px; }
.assistant-tools-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-top:18px; }
.assistant-tools-grid form { align-content:start; min-width:0; }
.reply-save { display:block; margin:9px 0 0; font-size:12px; }
@media(max-width:680px) { .assistant-tools-grid { grid-template-columns:1fr; gap:24px; } }

#memory-video[hidden],#video-retry[hidden] { display:none; }

/* 竖屏视频使用确定的播放区域，避免原生视频层压住固定导航。 */
.media-viewer.media-viewer--video {
  width:100%; min-width:0; min-height:0; height:56vh; height:56svh;
  max-height:560px; background:#181416; position:relative; z-index:0;
  isolation:isolate; clip-path:inset(0); overflow:hidden;
}
.media-viewer.media-viewer--video > video {
  width:100%; height:100%; max-width:100%; max-height:100%;
  object-fit:contain; position:relative; z-index:0;
}
.media-viewer.media-viewer--video > video:fullscreen {
  width:100vw; height:100vh; max-width:none; max-height:none; clip-path:none !important;
}
@media(max-width:680px) {
  .mobile-nav {
    z-index:100; background:#fffbfd; backdrop-filter:none;
    -webkit-backdrop-filter:none; transform:translateZ(0); isolation:isolate;
  }
}

.travel-summary p { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:3px 15px; min-width:0; }
.travel-summary p > span { white-space:nowrap; }
.travel-summary-total::before { content:"·"; margin-right:15px; }
@media(max-width:680px) {
  .travel-summary p { flex-direction:column; gap:2px; }
  .travel-summary-total::before { content:none; }
  .travel-summary p strong { font-size:24px; }
}

.memory-details .section-heading { gap:12px; margin-bottom:18px; }
.memory-details .form-title { margin:0; }
.memory-caption { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.9; color:#a5748f; font-size:16px; margin-bottom:22px; }
.memory-facts { display:grid; grid-template-columns:76px minmax(0,1fr); gap:15px 12px; margin:0 0 22px; }
.memory-facts dt { color:#bd92a7; font-size:13px; }
.memory-facts dd { margin:0; overflow-wrap:anywhere; color:#a5748f; font-size:14px; }
.memory-facts .subtle-link { font-size:14px; display:inline; }
.page-back-row { margin:0 0 20px; }
.page-back { display:inline-flex; align-items:center; gap:8px; min-height:42px; padding:8px 15px; border:1.5px solid #edcbdc; border-radius:14px; background:#fffafc; color:#ac7894; font-size:14px; }
.page-back > .icon { width:17px; height:17px; transform:rotate(180deg); }
.page-back:hover { background:#fce7f1; }
