@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Folio Song";
  src: url("../assets/fonts/noto-serif-sc.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}

:root {
  --ivory: #faf8f3;
  --surface: #ffffff;
  --stone: #efece4;
  --charcoal: #1e1e1b;
  --ink-muted: #626059;
  --olive: #3f4e3c;
  --olive-soft: #ebf0e9;
  --brass: #9c7a3c;
  --brass-soft: #f6f0e4;
  --amber: #8f4f24;
  --amber-bg: #f9f2ec;
  --amber-border: #e5c4ae;
  --hairline: rgba(30, 30, 27, 0.11);

  --font-serif-en: "Cormorant Garamond", "Iowan Old Style", Georgia, "Songti SC", serif;
  --font-serif-zh: "Folio Song", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", Georgia, serif;
  --font-sans: "Inter", -apple-system, "PingFang SC", "Noto Sans CJK SC", "Hiragino Sans GB", -apple-system, sans-serif;

  --page-width: 1120px;
  --page-gutter: clamp(20px, 4vw, 64px);
  --section-gap: clamp(36px, 5vw, 72px);
  --text-display: clamp(42px, 6vw, 88px);
  --text-heading: clamp(28px, 3.6vw, 52px);
  --text-body: 15px;
  --text-meta: 13px;
  --motion-fast: 160ms;
  --overlay-shadow: 0 12px 36px rgba(30,30,27,.12);
  --radius-sharp: 2px;
  --radius-ctrl: 6px;
  --radius-tag: 4px;
  --radius-modal: 12px;
  --bottom-nav-h: 62px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: var(--olive);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86em;
  background: var(--stone);
  padding: 2px 6px;
  border-radius: var(--radius-tag);
}

.app-shell {
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 12px) + 20px);
}

/* ===========================
   顶部杂志感导航栏
   =========================== */
.folio-header {
  position: sticky;
  top: 0;
  z-index: 45;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.folio-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.cloud-account { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; margin-left: auto; color: var(--ink-muted); font-size: 11px; line-height: 1.25; }
.cloud-account button { border: 0; border-bottom: 1px solid var(--hairline); padding: 3px 4px; background: transparent; color: var(--olive); cursor: pointer; font-size: 11px; }
#cloud-save-status[data-state="error"], #cloud-save-status[data-state="expired"], #cloud-save-status[data-state="conflict"], #cloud-save-status[data-state="logout-error"] { color: var(--amber); }
.form-error { padding: 8px 10px; color: var(--amber); background: var(--amber-bg); border: 1px solid var(--amber-border); }

.brand-en {
  font-family: var(--font-serif-en);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

.brand-zh {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

.nav-tab {
  border: none;
  background: transparent;
  padding: 8px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.18s ease;
}

.nav-tab:hover {
  color: var(--charcoal);
}

.nav-tab.active {
  color: var(--charcoal);
  font-weight: 600;
}

.nav-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--olive);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-text-btn {
  border: 1px solid var(--hairline);
  background: transparent;
  border-radius: var(--radius-ctrl);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.header-text-btn:hover {
  color: var(--charcoal);
  border-color: rgba(30, 30, 27, 0.28);
}

.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
}

/* 全局克制提醒条 */
.global-alert-strip {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.strip-alert-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-ctrl);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.strip-go {
  flex-shrink: 0;
  font-weight: 600;
  text-decoration: underline;
}

.main-content {
  width: 100%;
}

/* ===========================
   A. Editorial Overview 首页
   =========================== */
.editorial-home {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.hero-spread {
  position: relative;
  min-height: 54vh;
  max-height: 660px;
  overflow: hidden;
  border-radius: var(--radius-sharp);
  display: flex;
  align-items: flex-end;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(22, 22, 19, 0.82) 0%,
    rgba(22, 22, 19, 0.34) 52%,
    rgba(22, 22, 19, 0.06) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 28px 20px;
  max-width: 680px;
  color: #faf8f3;
}

.hero-meta-line {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(250, 248, 243, 0.86);
  margin-bottom: 6px;
}

.hero-en-title {
  margin: 0;
  font-family: var(--font-serif-en);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-zh-title {
  margin: 6px 0 0;
  font-family: var(--font-serif-zh);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 500;
  color: rgba(250, 248, 243, 0.94);
}

.hero-route-line {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: rgba(250, 248, 243, 0.82);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn-editorial-primary {
  background: var(--ivory);
  color: var(--charcoal);
  border: 1px solid var(--ivory);
  border-radius: var(--radius-ctrl);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-editorial-ghost {
  background: rgba(250, 248, 243, 0.12);
  color: #faf8f3;
  border: 1px solid rgba(250, 248, 243, 0.48);
  border-radius: var(--radius-ctrl);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.hero-credit {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 11px;
  color: rgba(250, 248, 243, 0.72);
  display: none;
}

/* 概览四格数字带 */
.folio-summary-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-top: 24px;
}

.folio-stat {
  padding: 16px 12px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.folio-stat:nth-child(2n) {
  border-right: none;
}

.folio-stat:nth-last-child(-n + 2) {
  border-bottom: none;
}

.folio-stat-k {
  font-size: 12px;
  color: var(--ink-muted);
}

.folio-stat-v {
  font-family: var(--font-serif-zh);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--charcoal);
}

.folio-stat-sub {
  font-size: 12px;
  color: var(--ink-muted);
}

/* 目的地杂志章节 */
.folio-section {
  margin-top: 40px;
}

.folio-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.folio-section-title,
.serif-page-title {
  margin: 0;
  font-family: var(--font-serif-zh);
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--charcoal);
}

.folio-section-lead,
.page-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 64ch;
}

.chapters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 22px;
}

.chapter-card {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 22px;
}

.chapter-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sharp);
  background: var(--stone);
}

.chapter-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chapter-body {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.chapter-days {
  font-size: 12px;
  color: var(--brass);
  font-weight: 600;
}

.chapter-title {
  margin: 4px 0 8px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.chapter-en {
  font-family: var(--font-serif-en);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
}

.chapter-zh {
  font-family: var(--font-serif-zh);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-muted);
}

.chapter-desc {
  margin: 0;
  font-size: 14.5px;
  color: #363530;
  max-width: 62ch;
}

.chapter-footer {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chapter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-micro-credit {
  font-size: 11px;
  color: var(--ink-muted);
}

/* 首页实用工具索引 */
.folio-index-list {
  margin-top: 12px;
  border-top: 1px solid var(--hairline);
}

.folio-index-row {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  padding: 16px 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  cursor: pointer;
}

.folio-index-row:hover {
  background: rgba(239, 236, 228, 0.45);
}

.fir-title {
  font-family: var(--font-serif-zh);
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
}

.fir-desc {
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* ===========================
   B. Daily Itinerary 极简时间轴
   =========================== */
.linear-shell {
  max-width: 840px;
  margin: 0 auto;
  padding: 20px 16px;
}

.linear-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.day-strip-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 14px 0 8px;
  scrollbar-width: none;
}

.day-strip-bar::-webkit-scrollbar {
  display: none;
}

.day-index-pill {
  flex-shrink: 0;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--radius-ctrl);
  padding: 6px 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
}

.day-index-pill.active {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

.day-index-pill.has-warn::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.day-index-pill.active.has-warn::after {
  background: #f5d08a;
}

.dip-day {
  font-family: var(--font-serif-en);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
}

.dip-date {
  font-size: 11.5px;
  opacity: 0.85;
}

.minimal-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 6px;
}

.minimal-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--radius-ctrl);
  padding: 5px 10px;
  font-size: 12.5px;
}

.minimal-select span {
  color: var(--ink-muted);
}

.minimal-select select {
  border: none;
  background: transparent;
  font-weight: 500;
  outline: none;
}

.linear-feed {
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.linear-day-block {
  border-top: 1px solid var(--charcoal);
  padding-top: 18px;
}

.ldh-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.ldh-number {
  font-family: var(--font-serif-en);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--olive);
}

.ldh-date {
  font-size: 14px;
  font-weight: 600;
}

.ldh-city {
  font-size: 13px;
  color: var(--brass);
  font-weight: 600;
}

.ldh-title {
  margin: 6px 0 4px;
  font-family: var(--font-serif-zh);
  font-size: 20px;
  font-weight: 600;
}

.ldh-summary {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
  max-width: 66ch;
}

.ldh-weather {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--olive);
}

.day-stay-banner {
  margin-top: 12px;
  width: 100%;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--radius-ctrl);
  padding: 9px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  text-align: left;
  cursor: pointer;
}

.day-stay-banner.warn {
  background: var(--amber-bg);
  border-color: var(--amber-border);
}

.day-stay-banner.neutral {
  background: var(--stone);
  cursor: default;
}

.dsb-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--olive);
}

.day-stay-banner.warn .dsb-label {
  color: var(--amber);
}

.dsb-name {
  font-size: 14px;
  font-weight: 600;
}

.dsb-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-left: auto;
}

.linear-timeline {
  margin-top: 16px;
  border-top: 1px solid var(--hairline);
}

.linear-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.linear-entry.is-warning {
  background: rgba(249, 242, 236, 0.55);
  padding-left: 10px;
  padding-right: 10px;
}

.le-time-col {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.le-slot {
  font-size: 12px;
  font-weight: 600;
  color: var(--olive);
}

.le-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}

.le-cat {
  font-size: 11.5px;
  color: var(--ink-muted);
  background: var(--stone);
  padding: 1px 6px;
  border-radius: var(--radius-tag);
}

.le-body-col {
  min-width: 0;
}

.le-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.le-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.le-local-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.linear-slot-pill {
  display: inline-block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--olive);
  background: var(--olive-soft);
  padding: 2px 8px;
  border-radius: var(--radius-tag);
}

.le-desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: #363530;
  max-width: 64ch;
}

.le-note {
  margin-top: 6px;
  padding: 6px 10px;
  border-left: 2px solid var(--olive);
  background: var(--stone);
  font-size: 13px;
}

.le-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.le-thumb-btn {
  border: none;
  padding: 0;
  background: var(--stone);
  border-radius: var(--radius-sharp);
  overflow: hidden;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.le-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.linear-day-footer {
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.linear-notice {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-ctrl);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.linear-notice.info {
  background: var(--olive-soft);
  color: #273225;
}

.linear-notice.ok {
  background: var(--olive-soft);
  color: #273225;
}

.linear-notice.warn {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber);
}

.inline-action-link {
  border: none;
  background: none;
  padding: 0;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ===========================
   C. Map & POI Explorer
   =========================== */
.map-explorer-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: 14px 16px 24px;
}

.map-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.map-select-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.map-select-label select {
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--radius-ctrl);
  padding: 6px 10px;
  font-size: 13px;
  max-width: 280px;
}

.map-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.map-cat-pill {
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--radius-ctrl);
  padding: 5px 10px;
  font-size: 12.5px;
  cursor: pointer;
}

.map-cat-pill.active {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

.map-split-layout {
  display: flex;
  flex-direction: column-reverse;
  gap: 14px;
  margin-top: 14px;
}

.map-canvas-wrap {
  position: relative;
  height: 44vh;
  min-height: 300px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sharp);
  overflow: hidden;
  background: #eae7de;
}

.map-canvas {
  width: 100%;
  height: 100%;
}

.svg-map-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.svg-geo-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.svg-pins-layer {
  position: absolute;
  inset: 0;
}

.svg-popup-slot {
  position: absolute;
  right: 12px;
  top: 12px;
  max-width: 260px;
  z-index: 6;
}

.svg-popup-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-ctrl);
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(30, 30, 27, 0.14);
}

.map-basemap-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 5;
  background: rgba(250, 248, 243, 0.92);
  border: 1px solid var(--hairline);
  padding: 3px 8px;
  font-size: 11px;
  color: var(--ink-muted);
  border-radius: var(--radius-tag);
}

.map-sidebar {
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--radius-sharp);
  display: flex;
  flex-direction: column;
  max-height: 58vh;
}

.map-sidebar-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.map-poi-list {
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poi-card {
  display: flex;
  gap: 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-ctrl);
  padding: 10px;
  background: var(--ivory);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.poi-card.is-active {
  border-color: var(--olive);
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(30, 30, 27, 0.08);
}

.poi-thumb {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  border-radius: var(--radius-sharp);
  overflow: hidden;
  background: var(--stone);
}

.poi-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poi-card-body {
  min-width: 0;
  flex: 1;
}

.poi-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.poi-cat-dot {
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-tag);
}

.poi-cat-dot.cat-sight { background: var(--olive-soft); color: var(--olive); }
.poi-cat-dot.cat-stay { background: var(--brass-soft); color: #745822; }
.poi-cat-dot.cat-transport { background: var(--stone); color: var(--charcoal); }
.poi-cat-dot.cat-food { background: var(--amber-bg); color: var(--amber); }
.poi-cat-dot.cat-match { background: var(--brass-soft); color: var(--amber); }

.poi-title {
  margin: 3px 0 1px;
  font-size: 14.5px;
  font-weight: 600;
}

.poi-local {
  font-size: 12px;
  color: var(--ink-muted);
}

.poi-summary {
  margin: 4px 0 8px;
  font-size: 12.5px;
  color: #3d3c36;
}

.poi-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* 自定义 MapLibre 标记与 Popup */
.map-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid #faf8f3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  padding: 0;
}

.map-pin.pin-sight { background: var(--olive); }
.map-pin.pin-stay { background: var(--brass); }
.map-pin.pin-transport { background: var(--charcoal); }
.map-pin.pin-food { background: #a86434; }
.map-pin.pin-match { background: #8f4f24; }

.map-pin.is-selected {
  width: 24px;
  height: 24px;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px var(--brass);
}

.map-popup-inner {
  font-family: var(--font-sans);
  color: var(--charcoal);
}

.map-popup-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius-sharp);
  margin-bottom: 6px;
}

.map-popup-cat {
  font-size: 11px;
  color: var(--brass);
  font-weight: 600;
}

.map-popup-title {
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
}

.map-popup-local {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.map-popup-desc {
  margin: 5px 0 7px;
  font-size: 12px;
  line-height: 1.45;
}

.map-popup-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--olive);
  text-decoration: underline;
}

/* ===========================
   D. Luxury Hospitality Showcase
   =========================== */
.hospitality-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.hospitality-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

.hh-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.nights-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.night-cell {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-ctrl);
  padding: 7px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.night-cell.night-ok { background: var(--olive-soft); color: var(--olive); }
.night-cell.night-choice { background: var(--brass-soft); color: #745822; }
.night-cell.night-warn { background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber); }
.night-cell.night-gap { background: #fcecec; color: #9b1c1c; }
.night-cell.is-current-date { outline: 2px solid var(--olive); outline-offset: -2px; }

.night-date { font-size: 12.5px; font-weight: 600; }
.night-city { font-size: 11px; }

.nights-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.legend-dot.ok { background: var(--olive); }
.legend-dot.choice { background: var(--brass); }
.legend-dot.warn { background: var(--amber); }

.hotel-spreads-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 26px;
}

.hotel-spread {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}

.hotel-spread.is-warning {
  background: rgba(249, 242, 236, 0.5);
  padding: 16px;
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-ctrl);
}

.hotel-figure {
  margin: 0;
}

.hotel-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sharp);
  display: block;
}

.hotel-figcap {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.hd-top-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hd-brand {
  font-size: 12px;
  font-weight: 600;
  color: var(--brass);
}

.hd-name {
  margin: 4px 0 2px;
  font-family: var(--font-serif-en);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.2;
}

.hd-district {
  font-size: 13px;
  color: var(--ink-muted);
}

.hd-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 14px 0;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.hd-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hd-spec-k {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.hd-spec-v {
  font-size: 13.5px;
  font-weight: 600;
}

.hd-spec-v small {
  font-weight: 400;
  color: var(--ink-muted);
}

.text-warn {
  color: var(--amber);
}

.hd-note-block {
  padding: 9px 12px;
  background: var(--stone);
  border-radius: var(--radius-ctrl);
  font-size: 13.5px;
}

.hd-note-block.warn {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber);
}

.hd-arrival {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.hotel-privileges-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--olive-soft);
  border-radius: var(--radius-ctrl);
}

.hp-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--olive);
}

.hp-reminder {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--amber);
  font-weight: 500;
}

.hd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hospitality-cancelled {
  margin-top: 20px;
}

/* ===========================
   E. 行前清单（交通 / 待办 / 观赛预案）统一风格
   =========================== */
.planner-subtabs {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-ctrl);
  background: var(--surface);
  overflow: hidden;
}

.planner-subtab {
  border: none;
  background: transparent;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
}

.planner-subtab.active {
  background: var(--olive);
  color: #fff;
  font-weight: 600;
}

.planner-body {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.overview-card,
.entity-card,
.empty-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-ctrl);
  padding: 16px;
}

.entity-card.card-warning {
  border-color: var(--amber-border);
  background: #fcf7f2;
}

.entity-card.card-done {
  background: #faf9f5;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--brass);
}

.overview-heading {
  margin: 2px 0 0;
  font-family: var(--font-serif-zh);
  font-size: 18px;
  font-weight: 600;
}

.overview-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.tz-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.tz-box {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-ctrl);
  padding: 10px 12px;
}

.tz-title { font-size: 12px; color: var(--ink-muted); }
.tz-val { font-size: 14.5px; font-weight: 600; color: var(--olive); margin-top: 2px; }
.tz-sub { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

.date-filter-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.date-pill {
  flex-shrink: 0;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--radius-ctrl);
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.date-pill.active {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.card-top-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.date-tag {
  font-size: 11.5px;
  font-weight: 600;
  background: var(--olive);
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--radius-tag);
}

.mode-tag,
.cat-tag {
  font-size: 11.5px;
  background: var(--stone);
  color: var(--ink-muted);
  padding: 2px 7px;
  border-radius: var(--radius-tag);
}

.code-tag {
  font-size: 12px;
  font-weight: 600;
  background: var(--olive-soft);
  color: var(--olive);
  padding: 2px 7px;
  border-radius: var(--radius-tag);
}

.entity-title {
  margin: 4px 0;
  font-size: 16px;
  font-weight: 600;
}

.operator-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.route-leg-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-ctrl);
  padding: 12px;
}

.leg-time-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.leg-time {
  font-family: var(--font-serif-en);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--charcoal);
}

.leg-tz {
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--hairline);
  background: var(--surface);
  padding: 1px 6px;
  border-radius: var(--radius-tag);
}

.approx-tag {
  font-size: 11px;
  background: var(--brass-soft);
  color: #745822;
  padding: 1px 6px;
  border-radius: var(--radius-tag);
}

.cross-day-badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--amber);
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--radius-tag);
}

.leg-date,
.leg-local {
  font-size: 12px;
  color: var(--ink-muted);
}

.leg-station {
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
}

.leg-local {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.leg-middle {
  border-top: 1px dashed var(--hairline);
  border-bottom: 1px dashed var(--hairline);
  padding: 6px 0;
  text-align: center;
}

.leg-duration { font-size: 13px; font-weight: 600; color: var(--olive); }
.leg-hint { font-size: 12px; color: var(--ink-muted); }

.transfer-note-box,
.fare-table-box {
  margin-top: 8px;
  padding: 9px 11px;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-ctrl);
  font-size: 13px;
}

.fare-title { font-size: 12px; color: var(--ink-muted); margin-bottom: 6px; }
.fare-grid { display: flex; flex-direction: column; gap: 4px; }
.fare-row { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--hairline); }
.fare-row:last-child { border-bottom: none; }

.task-row-layout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.task-checkbox-wrap { padding-top: 2px; cursor: pointer; }
.task-check { width: 18px; height: 18px; accent-color: var(--olive); cursor: pointer; }
.task-body { flex: 1; min-width: 0; }
.task-dep-text { font-size: 12.5px; color: var(--ink-muted); margin-top: 4px; }
.line-through-soft { text-decoration: line-through; color: var(--ink-muted); }

.constraint-banner {
  margin-top: 10px;
  background: var(--olive);
  color: #faf8f3;
  border-radius: var(--radius-ctrl);
  padding: 12px 14px;
}

.constraint-title { font-size: 12px; opacity: 0.85; }
.constraint-body { font-size: 14px; margin-top: 2px; }

.scenario-active { border: 1.5px solid var(--olive); }

.active-plan-pill {
  font-size: 11.5px;
  font-weight: 600;
  background: var(--olive);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-tag);
}

.impact-table {
  margin-top: 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-ctrl);
  overflow: hidden;
}

.impact-table-title {
  background: var(--stone);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 600;
}

.impact-row {
  display: flex;
  gap: 10px;
  padding: 8px 11px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
}

.impact-date { width: 68px; flex-shrink: 0; font-weight: 600; color: var(--olive); }
.impact-content p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-muted); }

.sun-verify-box {
  margin-top: 12px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-ctrl);
  padding: 12px;
}

.sun-verify-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sun-fields-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.sun-field-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-ctrl);
  padding: 8px 10px;
}

.sun-field-item.verified {
  border-color: var(--olive);
}

.sun-field-label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; }
.sun-input { padding: 7px 9px; border: 1px solid var(--hairline); border-radius: var(--radius-ctrl); }
.sun-check-label { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--olive); cursor: pointer; }

/* ===========================
   通用小组件（按钮、徽章、链接、弹窗）
   =========================== */
.status-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-tag);
}

.badge-confirmed { background: var(--olive-soft); color: var(--olive); }
.badge-pending { background: var(--brass-soft); color: #745822; }
.badge-warning { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.badge-reference { background: var(--stone); color: var(--ink-muted); }

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-outline-quiet {
  border-radius: var(--radius-ctrl);
  font-weight: 500;
  cursor: pointer;
  padding: 8px 14px;
  font-size: 13px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--olive);
  color: #fff;
}

.btn-secondary,
.btn-outline-quiet {
  background: var(--surface);
  color: var(--charcoal);
  border-color: var(--hairline);
}

.btn-outline-quiet.active {
  background: var(--olive-soft);
  border-color: var(--olive);
  color: var(--olive);
}

.btn-danger {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: var(--amber-border);
}

.btn-primary.small,
.btn-secondary.small,
.btn-danger.small,
.btn-outline-quiet.small {
  padding: 6px 11px;
  font-size: 12.5px;
}

.inline-editorial-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--olive);
  background: var(--olive);
  color: #fff;
  border-radius: var(--radius-ctrl);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.inline-editorial-btn.muted {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--hairline);
}

.inline-editorial-btn.danger {
  background: transparent;
  color: var(--amber);
  border-color: var(--amber-border);
}

.text-action-btn {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--olive);
  text-decoration: underline;
  cursor: pointer;
}

.micro-copy-btn,
.micro-map-link {
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--radius-tag);
  padding: 1px 6px;
  font-size: 11px;
  color: var(--ink-muted);
  cursor: pointer;
}

.link-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ext-link-pill {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: var(--radius-ctrl);
  background: var(--stone);
  color: var(--charcoal);
}

.card-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.source-footnote {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hairline);
  background: var(--ivory);
  border-radius: var(--radius-ctrl);
  padding: 5px 9px;
  font-size: 12.5px;
}
.filter-select-wrap select { border: none; background: transparent; outline: none; }

.inline-callout {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-ctrl);
  font-size: 13px;
}
.inline-callout.info { background: var(--olive-soft); color: #273225; }
.inline-callout.warning { background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber); }

.stay-expand,
.details-box {
  margin-top: 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-ctrl);
  padding: 8px 12px;
  background: var(--ivory);
}

.stay-expand summary,
.details-box summary {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--olive);
  cursor: pointer;
}

.stay-expand-body,
.cancelled-list {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.cancelled-item { padding: 8px 0; border-top: 1px dashed var(--hairline); }
.cancelled-item:first-child { border-top: none; }
.cancelled-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cancelled-dates { font-size: 12px; font-weight: 600; margin-top: 2px; }
.cancelled-reason { margin: 3px 0 0; }

/* 手机底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 45;
}

.bottom-tab {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 500;
  position: relative;
  cursor: pointer;
}

.bottom-tab.active {
  color: var(--olive);
  font-weight: 600;
}

.tab-badge {
  position: absolute;
  top: 5px;
  right: 16%;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 弹窗 Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 27, 0.54);
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop[hidden] { display: none; }

.modal-sheet {
  background: var(--ivory);
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  border-radius: var(--radius-modal) var(--radius-modal) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(30, 30, 27, 0.16);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
}

.modal-title {
  margin: 0;
  font-family: var(--font-serif-zh);
  font-size: 17px;
  font-weight: 600;
}

.icon-close-btn {
  border: 1px solid var(--hairline);
  background: var(--surface);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
}

.detail-stack,
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spot-figure {
  margin: 0;
  border-radius: var(--radius-sharp);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.spot-figure img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.spot-caption {
  padding: 6px 10px;
  font-size: 11.5px;
  color: var(--ink-muted);
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.meta-kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 10px 12px;
  border-radius: var(--radius-ctrl);
  font-size: 12.5px;
}

.kv-k { color: var(--ink-muted); margin-right: 6px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-ctrl);
  background: var(--surface);
  font-weight: 400;
}
.modal-btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.preview-diff-card {
  background: var(--olive-soft);
  border: 1px solid rgba(63, 78, 60, 0.25);
  border-radius: var(--radius-ctrl);
  padding: 10px 12px;
  margin-top: 8px;
}

.preview-title { font-size: 13px; font-weight: 600; color: var(--olive); }
.compact-list { margin: 4px 0; padding-left: 18px; font-size: 12.5px; }
.sub-heading { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.muted-note { margin: 4px 0; font-size: 12.5px; color: var(--ink-muted); }
.divider { border: none; border-top: 1px solid var(--hairline); margin: 4px 0; }
.credits-list { display: flex; flex-direction: column; gap: 8px; }
.credit-item { padding-bottom: 7px; border-bottom: 1px dashed var(--hairline); }
.credit-title { font-size: 13px; font-weight: 600; }
.credit-meta { font-size: 12px; color: var(--ink-muted); }
.empty-inline { padding: 18px; text-align: center; color: var(--ink-muted); font-size: 13.5px; }

/* Toast */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 420px;
  pointer-events: none;
}

.toast-item {
  background: rgba(30, 30, 27, 0.94);
  color: #faf8f3;
  padding: 9px 14px;
  border-radius: var(--radius-ctrl);
  font-size: 13px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transition: opacity 0.25s ease;
}

.toast-item.fade-out { opacity: 0; }

/* ===========================
   平板与桌面端响应式规则
   =========================== */
@media (min-width: 768px) {
  .app-shell {
    padding-bottom: 40px;
  }

  .desktop-nav {
    display: flex;
  }

  .bottom-nav {
    display: none;
  }

  .hero-spread {
    min-height: 64vh;
  }

  .hero-content {
    padding: 40px 44px;
  }

  .hero-credit {
    display: block;
  }

  .folio-summary-band {
    grid-template-columns: repeat(4, 1fr);
  }

  .folio-stat {
    border-bottom: none;
  }

  .folio-stat:nth-child(2n) {
    border-right: 1px solid var(--hairline);
  }

  .folio-stat:last-child {
    border-right: none;
  }

  .chapters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 28px;
  }

  .chapter-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
    align-items: center;
  }

  .chapter-wide .chapter-body {
    padding-top: 0;
  }

  .linear-entry {
    grid-template-columns: 120px 1fr 124px;
    gap: 18px;
    align-items: start;
  }

  .le-time-col {
    flex-direction: column;
    gap: 3px;
  }

  .le-thumb-btn {
    max-width: 124px;
  }

  .map-split-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 16px;
    align-items: stretch;
  }

  .map-sidebar {
    max-height: calc(100vh - 200px);
    min-height: 540px;
  }

  .map-canvas-wrap {
    height: calc(100vh - 200px);
    min-height: 540px;
  }

  .nights-grid {
    grid-template-columns: repeat(10, 1fr);
  }

  .hotel-spread {
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: start;
  }

  .tz-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .route-leg-box {
    grid-template-columns: 1.2fr 0.7fr 1.2fr;
    align-items: center;
  }

  .leg-middle {
    border-top: none;
    border-bottom: none;
    border-left: 1px dashed var(--hairline);
    border-right: 1px dashed var(--hairline);
    padding: 0 12px;
  }

  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }

  .modal-sheet {
    border-radius: var(--radius-modal);
  }

  .toast-container {
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Shared folio navigation and reading controls. */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.folio-header { background: var(--ivory); backdrop-filter: none; }
.folio-header-inner { max-width: 1440px; padding: 0 var(--page-gutter); min-height: 70px; }
.brand-lockup { flex-direction: row; align-items: center; gap: 11px; min-height: 44px; }
.brand-mark { flex-shrink: 0; width: 32px; height: 34px; color: var(--olive); }
.brand-en { font-size: clamp(22px, 2vw, 29px); font-weight: 500; letter-spacing: -.045em; white-space: nowrap; }
.cloud-account { max-width: 270px; }
.folio-tools { position: relative; }
.folio-tools summary { cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; list-style: none; min-height: 44px; min-width: 44px; }
.folio-tools summary::-webkit-details-marker { display: none; }
.folio-tools summary svg { width: 18px; }
.folio-tools[open] summary { color: var(--olive); }
.folio-tools .header-actions { position: absolute; top: 100%; right: 0; width: 156px; display: grid; gap: 0; padding: 6px; border: 1px solid var(--hairline); background: var(--surface); box-shadow: var(--overlay-shadow); z-index: 1; }
.folio-tools .header-text-btn { display: flex; min-height: 44px; border: 0; text-align: left; justify-content: flex-start; }
.folio-tools .header-text-btn:hover { background: var(--stone); }
[data-personal] { display: none !important; }
html.personal [data-personal] { display: revert !important; }
.public-journal .global-alert-strip { display: none; }
.public-journal .bottom-nav { grid-template-columns: repeat(4, 1fr); }
.nav-tab { min-height: 44px; }
.nav-tab.active::after { bottom: 3px; }
.modal-sheet { box-shadow: var(--overlay-shadow); }
#main-content { scroll-margin-top: 76px; outline: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; background: var(--surface); z-index: 100; padding: 8px 14px; }
.skip-link:focus { top: 8px; }
.boot-message { margin: 12vh auto; width: fit-content; }
@media (max-width: 699px) {
  .folio-header-inner { min-height: 55px; padding-inline: 20px; }
  .brand-mark { width: 26px; height: 30px; }
  .brand-en { font-size: clamp(16px, 5vw, 23px); }
  .folio-header-inner { flex-wrap: wrap; gap: 2px 10px; }
  .cloud-account { order: 3; flex-basis: calc(100% - 36px); width: auto; max-width: none; margin: -3px 0 6px 36px; justify-content: flex-start; }
  .bottom-tab { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.icon-close-btn { min-width: 44px; min-height: 44px; background: transparent; border: 0; font-size: 19px; }
html.personal .bottom-tab[data-personal] { display: flex !important; }
html.personal [data-personal][hidden] { display: none !important; }
