/* 足迹页：封面卡片 + 日期分组 + 横排时间卡片 + 地图面板 */

.fp-page { --fp-thumb-w: 104px; --fp-thumb-h: 62px; }

.fp-h1 {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 封面卡片：直接复用留言页 .gb-hero 的样式 ---------- */
.fp-hero-top {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

/* 唯一的地图入口，做成和 .gb-badge 同款的小胶囊 */
.fp-hero-cta {
  flex: none;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: inherit; font-size: 10px; font-weight: 600; line-height: 1;
  letter-spacing: .08em; color: var(--accent-hover); cursor: pointer;
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--glass-border);
  transition: background .2s, border-color .2s, color .2s;
}
html.dark .fp-hero-cta { background: rgba(255, 255, 255, .06); color: var(--accent); }
.fp-hero-cta i { font-size: 10px; }
.fp-hero-cta:hover { background: var(--accent-soft); border-color: var(--accent-glow); }
.fp-hero-cta:active { background: var(--accent-soft); }
.fp-hero-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 示例数据提示 */
.fp-tip {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 12px 0 0; padding: 9px 12px; border-radius: 10px;
  font-size: 12px; line-height: 1.6; color: var(--accent-strong);
  background: var(--accent-soft);
}
.fp-tip i { font-size: 14px; margin-top: 1px; }

/* ---------- 日期分组：双列时间线 ---------- */
.fp-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 22px;
}
.fp-day { min-width: 0; }
.fp-day + .fp-day { margin-top: 0; }

.fp-day-head {
  display: flex; align-items: center; gap: 8px;
  margin: 2px 0 0; padding: 0 8px;
}
.fp-day-date {
  margin: 0; padding: 0;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--text-secondary); font-variant-numeric: tabular-nums;
}
.fp-day-week { font-size: 11.5px; font-weight: 500; color: var(--text-light); }
.fp-day-year { font-size: 11px; font-weight: 600; color: var(--text-light); }
.fp-day-rule { flex: 1; height: 1px; background: var(--border); opacity: .9; }
.fp-day-count { font-size: 11px; color: var(--text-light); white-space: nowrap; }

/* ---------- 时间卡片 ---------- */
.fp-place {
  display: flex; align-items: center; gap: 13px;
  padding: 9px 8px; border-radius: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, border-color .18s;
  -webkit-tap-highlight-color: transparent;
}
.fp-place + .fp-place { margin-top: 2px; }
.fp-place:hover {
  background: rgba(0, 0, 0, 0.035);
  border-color: rgba(0, 0, 0, 0.045);
}
html.dark .fp-place:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
}
.fp-place:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 缩略图：第一张照片；没有照片就用城市首字 */
.fp-thumb {
  position: relative; flex: none;
  width: var(--fp-thumb-w); height: var(--fp-thumb-h);
  border-radius: 9px; overflow: hidden;
  margin: 0 !important; padding: 0;
  max-width: none !important;
  background: rgba(0, 0, 0, 0.05);
  display: block !important;
}
html.dark .fp-thumb { background: rgba(255, 255, 255, 0.06); }
.fp-thumb .photo-item {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  aspect-ratio: auto !important;
  border-radius: 0; opacity: 1; transform: none;
}
.fp-thumb .photo-item.is-extra { display: none; }
.fp-thumb .photo-item img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; border-radius: 0 !important;
}
.fp-thumb.no-img {
  display: flex !important; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}
.fp-thumb-letter {
  font-size: 19px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}
.fp-thumb-more {
  position: absolute; right: 5px; bottom: 5px; z-index: 2;
  padding: 1px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 600; line-height: 1.5; color: #fff;
  background: rgba(20, 26, 36, 0.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

.fp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fp-place-name {
  margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.5;
  color: var(--text);
  display: flex; align-items: baseline; gap: 1px; min-width: 0;
}
.fp-place-name i { font-style: normal; font-weight: 400; color: var(--text-light); }
.fp-place-name span {
  font-weight: 500; color: var(--text-secondary); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fp-note {
  margin: 0; font-size: 12.5px; line-height: 1.65;
  color: var(--text-secondary); word-break: break-word;
}
.fp-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-light); }
.fp-tag {
  padding: 1px 6px; border-radius: 5px;
  background: var(--accent-soft); color: var(--accent-strong); font-weight: 600;
}
html.dark .fp-tag { color: var(--accent); }
.fp-meta-n { font-variant-numeric: tabular-nums; }

.fp-arrow {
  flex: none; font-size: 17px; color: var(--text-light);
  opacity: 0; transition: opacity .2s, transform .2s;
}
.fp-place:hover .fp-arrow { opacity: 1; transform: translateX(2px); }

/* ---------- 空状态 ---------- */
.fp-empty { padding: 52px 0 30px; text-align: center; }
.fp-empty-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 25px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 7%, transparent);
}
.fp-empty-title { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--text); }
.fp-empty-sub { margin: 6px 0 0; font-size: 12.5px; color: var(--text-secondary); }

/* ---------- 地图弹窗：与友链申请卡片同款 ---------- */
.fp-backdrop {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(15, 18, 25, 0);
  -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  transition: background .32s ease, backdrop-filter .32s ease, -webkit-backdrop-filter .32s ease;
  will-change: background-color, backdrop-filter;
}
.fp-backdrop.is-open {
  background: rgba(15, 18, 25, .26);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
html.dark .fp-backdrop.is-open { background: rgba(0, 0, 0, .44); }
body.fp-sheet-open { overflow: hidden; }

.fp-sheet {
  position: fixed; top: 50%; left: 50%; z-index: 1201;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(1.04);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) contrast(1.04);
  box-shadow:
    0 24px 60px -18px rgba(0, 0, 0, .32),
    0 6px 18px -8px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 1px rgba(0, 0, 0, .03);
  opacity: 0;
  transform: translate(-50%, -47%) scale(.965);
  transition: transform .42s var(--ease-spring-soft), opacity .24s ease;
  will-change: transform, opacity;
}
html.dark .fp-sheet {
  box-shadow:
    0 24px 60px -18px rgba(0, 0, 0, .7),
    0 6px 18px -8px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 0 0 1px rgba(0, 0, 0, .35);
}
.fp-sheet.is-open { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.fp-sheet-head {
  position: relative; z-index: 1; overflow: hidden;
  padding: 20px 54px 18px 20px;
  border-bottom: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  background:
    radial-gradient(120% 130% at 100% 0%, var(--accent-glow), transparent 58%),
    linear-gradient(120deg, var(--accent-soft), rgba(255, 255, 255, .34) 62%, transparent),
    var(--glass-bg);
}
html.dark .fp-sheet-head {
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(148, 200, 216, .2), transparent 58%),
    linear-gradient(120deg, rgba(148, 200, 216, .12), rgba(255, 255, 255, .04) 62%, transparent),
    var(--glass-bg);
}
.fp-sheet-deco {
  position: absolute; right: 12px; top: -2px;
  font-size: 92px; line-height: 1; color: var(--accent);
  opacity: .13; transform: rotate(-8deg);
  pointer-events: none; user-select: none;
}
html.dark .fp-sheet-deco { opacity: .1; }
.fp-sheet-head-body { position: relative; z-index: 1; min-width: 0; }
.fp-sheet-titlerow {
  display: flex; align-items: center; gap: 9px; min-width: 0;
}
.fp-sheet-title {
  margin: 0; font-size: 21px; font-weight: 700; line-height: 1.3;
  letter-spacing: -.02em; color: var(--text);
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fp-sheet-badge {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--glass-border);
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-hover);
}
html.dark .fp-sheet-badge { background: rgba(255, 255, 255, .06); color: var(--accent); }
.fp-sheet-badge i { font-size: 10px; }
.fp-sheet-sub {
  margin: 6px 0 0; font-size: 13px; line-height: 1.5;
  color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.fp-sheet-body {
  position: relative; z-index: 1;
  padding: 18px 20px 20px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}
.fp-map-title {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 0 0 10px; font-size: 13px; font-weight: 600;
  letter-spacing: .02em; color: var(--text-secondary);
}
.fp-map-title b {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  color: var(--accent-strong);
}
html.dark .fp-map-title b { color: var(--accent); }

.fp-map-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  background: rgba(0, 0, 0, .02);
}
html.dark .fp-map-wrap { background: rgba(255, 255, 255, .03); }
.fp-map {
  position: relative; height: 320px; overflow: hidden;
  background:
    radial-gradient(120% 100% at 18% 8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 62%),
    linear-gradient(180deg, #f3f6fa, #e7edf5);
  isolation: isolate;
}
html.dark .fp-map {
  background:
    radial-gradient(120% 100% at 18% 8%, rgba(148, 200, 216, .1), transparent 62%),
    linear-gradient(180deg, #1d2531, #151b24);
}
.fp-map::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, rgba(90, 110, 140, .22) 1px, transparent 1.4px);
  background-size: 18px 18px;
  opacity: .55; pointer-events: none;
}
.fp-map { cursor: default; touch-action: manipulation; }
.fp-map.is-loading::before {
  content: '地图加载中…'; position: absolute; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-secondary);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
html.dark .fp-map.is-loading::before { background: rgba(20, 26, 36, .72); color: #cbd5e1; }

/* 高德地图上的数字气泡：颜色跟随主题 --accent */
.fp-amap-pin {
  background: none !important; border: 0 !important;
}
.fp-amap-pin > span {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px -3px rgba(10, 20, 35, .6);
  transition: transform .18s, box-shadow .18s;
}
.fp-amap-pin:hover > span,
.fp-amap-pin.is-active > span {
  transform: scale(1.12);
  background: var(--accent-strong);
  box-shadow: 0 6px 18px -3px var(--accent-glow), 0 0 0 4px var(--accent-soft);
}
.fp-map .leaflet-popup.fp-amap-popup .leaflet-popup-content-wrapper {
  padding: 0; border-radius: 14px; overflow: hidden;
  background: var(--glass-bg-strong); color: var(--text);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 40px -18px rgba(10, 20, 35, .6), inset 0 1px 0 rgba(255, 255, 255, .7);
}
html.dark .fp-map .leaflet-popup.fp-amap-popup .leaflet-popup-content-wrapper {
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.fp-map .leaflet-popup.fp-amap-popup .leaflet-popup-content { margin: 0; width: 220px !important; }
.fp-map .leaflet-popup.fp-amap-popup .leaflet-popup-tip {
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
}
.fp-map .leaflet-popup.fp-amap-popup .leaflet-popup-close-button {
  top: 6px; right: 7px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0;
  border-radius: 50%; font-size: 16px; line-height: 1;
  color: var(--text-secondary); background: rgba(255, 255, 255, .82);
}
html.dark .fp-map .leaflet-popup.fp-amap-popup .leaflet-popup-close-button {
  color: #cbd5e1; background: rgba(20, 26, 36, .82);
}
.fp-map .leaflet-popup.fp-amap-popup .leaflet-popup-close-button:hover { color: var(--accent); }
.fp-pop-card { animation: fpPopCardIn .28s cubic-bezier(.16, 1, .3, 1) both; }
.fp-pop-media { height: 108px; overflow: hidden; background: var(--accent-soft); }
.fp-pop-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fp-pop-body { padding: 11px 12px 12px; }
.fp-pop-title {
  padding-right: 20px; font-size: 14px; font-weight: 700; line-height: 1.35;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fp-pop-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; margin-top: 7px; }
.fp-pop-date {
  flex: none; padding: 2px 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums;
}
html.dark .fp-pop-date { color: var(--accent); }
.fp-pop-note {
  flex: 1 1 110px; font-size: 11.5px; line-height: 1.45; color: var(--text-light);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fp-map .fp-pop-link, .fp-map .fp-pop-link:visited {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 10px; padding: 8px 10px;
  border: 1px solid rgba(131, 154, 201, .28); border-radius: 10px;
  font-size: 11.5px; font-weight: 600; text-decoration: none;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 14px -10px var(--accent-glow);
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.fp-pop-link:hover {
  color: #fff; border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 8px 18px -8px var(--accent-glow);
  transform: translateY(-1px);
}
html.dark .fp-pop-link, html.dark .fp-pop-link:visited {
  color: var(--accent); border-color: rgba(148, 200, 216, .22);
  background: rgba(255, 255, 255, .06); box-shadow: none;
}
html.dark .fp-pop-link:hover {
  color: #fff; border-color: var(--accent); background: var(--accent);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5);
}
.fp-pop-link i { font-size: 13px; }
@keyframes fpPopCardIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.fp-map .leaflet-tile { filter: grayscale(1) contrast(1.12); }
html.dark .fp-map .leaflet-tile { filter: grayscale(1) brightness(.76) contrast(1.16); }
.fp-map-empty {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-light);
}

.fp-map-tools {
  position: absolute; top: 10px; right: 10px; z-index: 6;
  display: flex; gap: 6px;
}
.fp-map-tools button {
  padding: 5px 10px; border-radius: 8px;
  font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1.4;
  color: var(--text-secondary); cursor: pointer;
  background: rgba(255, 255, 255, .86); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .18s, color .18s, border-color .18s;
}
html.dark .fp-map-tools button { background: rgba(24, 30, 40, .86); color: #cbd5e1; }
.fp-map-tools button:hover { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-glow); }
.fp-map-tools button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.fp-map-pop {
  position: absolute; z-index: 8; width: 190px;
  padding: 7px; border-radius: 12px;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  box-shadow: 0 12px 28px -12px rgba(10, 20, 35, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translate(-50%, -100%);
}
.fp-map-pop[hidden] { display: none; }
.fp-map-pop img {
  display: block; width: 100%; height: 90px; object-fit: cover;
  border-radius: 8px; background: var(--accent-soft);
}
.fp-map-pop b {
  display: block; margin: 7px 2px 0; font-size: 12px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fp-map-pop span { display: block; margin: 2px 2px 1px; font-size: 11px; color: var(--text-light); }

.fp-map-list {
  display: flex; flex-wrap: wrap; gap: 5px 14px;
  max-height: 88px; overflow-y: auto;
  margin-top: 10px; padding: 2px 2px 0;
}
.fp-map-item {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 2px 0; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 12px; color: var(--text-secondary);
  text-align: left;
}
.fp-map-item i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
html.dark .fp-map-item i { color: var(--accent); }
.fp-map-item em { font-style: normal; font-size: 11px; color: var(--text-light); font-variant-numeric: tabular-nums; }
.fp-map-item:hover span { color: var(--accent-strong); text-decoration: underline; }

/* 关闭键：与友链弹窗同款的小圆角按钮 */
.fp-sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 30px; height: 30px; padding: 0;
  border: none; cursor: pointer;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text);
  background: rgba(0, 0, 0, .05);
  transition: background .2s, color .2s;
}
.fp-sheet-close:hover { background: rgba(0, 0, 0, .1); color: var(--accent); }
html.dark .fp-sheet-close { background: rgba(255, 255, 255, .1); color: var(--text); }
html.dark .fp-sheet-close:hover { background: rgba(255, 255, 255, .18); }
.fp-sheet-close:focus-visible, .fp-sheet-done:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.fp-sheet-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.fp-sheet-note {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  font-size: 12px; line-height: 1.5; color: var(--text-light);
}
.fp-sheet-note > i { flex: none; font-size: 14px; color: var(--accent); }
.fp-sheet-done {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px; font-family: inherit;
  font-size: 13px; font-weight: 600; color: #fff;
  border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  box-shadow: 0 6px 18px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .18s var(--ease-spring-soft), box-shadow .2s, filter .2s;
}
.fp-sheet-done i { font-size: 15px; }
.fp-sheet-done:hover {
  transform: translateY(-1px); filter: brightness(1.05);
  box-shadow: 0 9px 22px var(--accent-glow);
}
.fp-sheet-done:active { transform: none; }

/* 头部、地图、操作条依次浮现 */
.fp-sheet.is-open .fp-sheet-head { animation: fpLayerIn .4s cubic-bezier(.16, 1, .3, 1) .05s both; }
.fp-sheet.is-open .fp-map-wrap { animation: fpLayerIn .42s cubic-bezier(.16, 1, .3, 1) .1s both; }
.fp-sheet.is-open .fp-sheet-bar { animation: fpLayerIn .4s cubic-bezier(.16, 1, .3, 1) .16s both; }
.fp-sheet.is-open .fp-map { animation: fpMapIn .5s ease .16s both; }
.fp-sheet.is-open .fp-amap-pin > span { animation: fpPinIn .38s cubic-bezier(.16, 1, .3, 1) backwards; }
.fp-sheet.is-closing .fp-sheet-head { animation: fpLayerOut .18s ease both; }
.fp-sheet.is-closing .fp-map-wrap { animation: fpLayerOut .16s ease both; }
.fp-sheet.is-closing .fp-sheet-bar { animation: fpLayerOut .14s ease both; }
@keyframes fpLayerIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fpLayerOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-6px); }
}
@keyframes fpMapIn {
  from { opacity: .35; }
  to   { opacity: 1; }
}
@keyframes fpPinIn {
  from { opacity: 0; transform: scale(.55); }
  to   { opacity: 1; transform: scale(1); }
}

/* 中等宽度回到单列，避免两张卡片过窄 */
@media (max-width: 900px) {
  .fp-timeline { grid-template-columns: 1fr; gap: 0; }
  .fp-day + .fp-day { margin-top: 6px; }
  .fp-day-head { margin: 16px 0 6px; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .fp-page { --fp-thumb-w: 88px; --fp-thumb-h: 54px; }
  .fp-timeline { margin-top: 16px; }
  .fp-day-head { margin: 16px 0 4px; padding: 0 6px; }
  .fp-place { gap: 11px; padding: 8px 6px; }
  .fp-place-name { font-size: 13px; }
  .fp-note { font-size: 12px; }
  .fp-arrow { display: none; }
  .fp-thumb { border-radius: 8px; }

  .fp-sheet { width: calc(100% - 20px); max-height: calc(100vh - 20px); border-radius: 16px; }
  .fp-sheet-head { padding: 16px 44px 16px 16px; border-radius: 16px 16px 0 0; }
  .fp-sheet-deco { font-size: 70px; right: 4px; top: 0; }
  .fp-sheet-title { font-size: 18px; }
  .fp-sheet-badge { font-size: 9px; padding: 2px 8px; }
  .fp-sheet-sub { font-size: 12px; margin-top: 4px; }
  .fp-sheet-body { padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); max-height: calc(100vh - 150px); }
  .fp-map-wrap { border-radius: 12px; }
  .fp-map { height: 280px; }
  .fp-sheet-close { top: 12px; right: 12px; width: 28px; height: 28px; }
  .fp-sheet-bar { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 12px; padding-top: 10px; }
  .fp-sheet-note { justify-content: center; text-align: center; font-size: 11px; }
  .fp-sheet-done { justify-content: center; width: 100%; padding: 10px 20px; }
  .fp-empty { padding: 40px 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-place, .fp-hero-cta, .fp-arrow, .fp-sheet, .fp-backdrop,
  .fp-sheet-close, .fp-sheet-done { transition: none; }
  .fp-sheet.is-open .fp-sheet-head, .fp-sheet.is-open .fp-map-wrap,
  .fp-sheet.is-open .fp-sheet-bar, .fp-sheet.is-open .fp-map,
  .fp-sheet.is-open .fp-amap-pin > span,
  .fp-sheet.is-closing .fp-sheet-head, .fp-sheet.is-closing .fp-map-wrap,
  .fp-sheet.is-closing .fp-sheet-bar, .fp-pop-card { animation: none; }
}
