/* =========================================================
   葡萄牙家庭行 · v2  —  Mobile only (iPhone 16 Pro, 402 × 874 pt)
   规范：最小字号 13px (0.8125rem) · 点击区域 ≥ 44px · 安全区适配 · 户外高对比
   ========================================================= */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --line: #E7DED2;
  --ink: #1F1A16;
  --ink-2: #5E554C;
  --ink-3: #6E655C;            /* >= 5.3:1 户外可读对比度 */

  --ok: #2E7D32;
  --ok-soft: #E9F4EA;
  --warn: #945600;
  --warn-soft: #FFF4E0;
  --must: #B42318;
  --must-soft: #FDE8E8;

  /* 当前城市语义色：由 app.js 按 data.js 里的城市配色写入 body */
  --accent: #B84723;
  --accent-soft: #FBEDE6;
  --sea: #117180;
  --sea-soft: #E3F2F4;

  --r-card: 16px;
  --r-btn: 12px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;

  --fs-title: 1.5rem;          /* 24px */
  --fs-name: 1.0625rem;        /* 17px */
  --fs-body: 0.9375rem;        /* 15px */
  --fs-sub: 0.8125rem;         /* 13px 最小字号底线 */

  --head-h: 44px;
  --tab-h: 49px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + var(--safe-top) + 20px);
  scroll-padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 20px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.48;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + var(--s-4));
}

img, video { max-inline-size: 100%; block-size: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:where(a, code) { overflow-wrap: anywhere; }
:where(a, button, summary):focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; }
p, li, .note, .dt-body { text-wrap: pretty; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------------- 顶栏 ---------------- */
.head {
  position: sticky; top: 0; z-index: 50;
  padding-top: var(--safe-top);
  background: rgba(250, 247, 242, .92);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: .5px solid var(--line);
}
.topbar {
  height: var(--head-h);
  padding: 0 var(--s-4);
  display: flex; align-items: center; justify-content: space-between;
}
.top-main { font-size: var(--fs-name); font-weight: 700; letter-spacing: -.01em; }
.top-main b { color: var(--accent); }
.clock { font-size: var(--fs-sub); font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.clock::after { content: " ●"; color: var(--ok); font-size: 10px; }
body[data-mode="before"] .clock::after,
body[data-mode="after"] .clock::after { color: var(--ink-3); }
/* 旅途中保留灵动岛/状态栏安全区磨砂底托，避免滚动内容穿入系统时间/信号栏 */
body[data-mode="live"] { --head-h: 0px; }
body[data-mode="live"] .head { border-bottom: 0; }
body[data-mode="live"] .topbar { display: none; }

/* ---------------- 面板通用 ---------------- */
.panel {
  padding: var(--s-4);
  padding-inline: max(var(--s-4), env(safe-area-inset-left, 0px)) max(var(--s-4), env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: var(--s-3);
}

.banner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  background: var(--accent-soft); color: var(--ink);
  padding: var(--s-2) var(--s-4); border-radius: var(--r-btn);
  font-size: var(--fs-sub); font-weight: 600; min-height: 44px;
}
.banner button {
  min-height: 44px; padding: 0 var(--s-3); font-weight: 700; color: var(--accent);
  font-size: var(--fs-sub);
}

.hero {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #000));
  color: #fff; border-radius: var(--r-card); padding: var(--s-3) var(--s-4);
  display: flex; flex-direction: column; gap: 6px;
}
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: var(--fs-sub); font-weight: 500; opacity: .92; }
.day-title {
  font-size: 1.125rem; font-weight: 500; line-height: 1.3; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-wrap: nowrap;
}
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hero-chips span { font-size: var(--fs-sub); font-weight: 500; background: rgba(255, 255, 255, .18); padding: 2px 10px; border-radius: 999px; }
.hero-home {
  position: relative; margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-sub); font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .24); padding: 2px 10px; border-radius: 999px;
  border: .5px solid rgba(255, 255, 255, .35); white-space: nowrap;
}
.hero-home::after { content: ""; position: absolute; inset: -11px -8px; }
.hero-home:active { opacity: .75; }

/* ---------------- 顶部每日手绘插画卡（方案 B+） ---------------- */
.hero.hero-illus {
  position: relative;
  height: 170px;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  border: .5px solid var(--line);
  justify-content: flex-end;
  gap: 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(31, 26, 22, .05);
  transition: height .45s cubic-bezier(.25, 1, .5, 1);
}
.hero-illus .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-inline-size: none;
  object-fit: cover;
  object-position: var(--hero-pos, center 60%);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  transition: object-position .45s cubic-bezier(.25, 1, .5, 1);
}
.hero-illus.is-open .hero-img {
  object-position: center center;
}
.hero-illus .hero-mist {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(250, 247, 242, 0) 0%,
    rgba(250, 247, 242, .42) 45%,
    rgba(250, 247, 242, .80) 100%
  );
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, .48) 46%,
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, .48) 46%,
    rgba(0, 0, 0, 1) 100%
  );
  transition: opacity .35s ease;
}
.hero-illus.is-open .hero-mist {
  opacity: 0;
}
.hero-illus .hero-expand {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.hero-illus .hero-expand:focus-visible {
  outline-offset: -3px;
  border-radius: var(--r-card);
}
.hero-illus .hero-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -.005em;
  text-shadow: 0 1px 6px rgba(250, 247, 242, .92);
  transition: opacity .35s ease;
}
.hero-illus.is-open .hero-date {
  opacity: 0;
}
.hero-illus .hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 10px;
  pointer-events: none;
}
.hero-home-ic {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: -5px;
  border-radius: 50%;
}
.hero-home-ic span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent-soft) 94%, #fff);
  color: var(--accent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(31, 26, 22, .12);
  border: .5px solid rgba(255, 255, 255, .75);
  transition: transform .12s ease, opacity .12s ease;
}
.hero-home-ic:active span {
  transform: scale(.93);
  opacity: .85;
}

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--surface); border: .5px solid var(--line);
  border-radius: var(--r-card); padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.card .name { font-size: var(--fs-name); font-weight: 600; line-height: 1.3; }
.card .note { font-size: var(--fs-body); color: var(--ink-2); }

.actions { display: flex; gap: var(--s-2); margin-top: var(--s-1); flex-wrap: wrap; }
.btn {
  flex: 1 1 0; min-height: 48px; padding: 0 var(--s-3);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-btn); font-size: var(--fs-body); font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  text-align: center; white-space: nowrap;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { opacity: .7; }

/* ---------------- 时间线 ---------------- */
.sec-h { font-size: var(--fs-sub); font-weight: 700; color: var(--ink-2); letter-spacing: .04em; margin: var(--s-2) 0 calc(var(--s-1) * -1); }

/* 单张白卡 + 一条贯穿的轨道线；列宽：时间 44 / 轨道 16 / 内容 / 导航 44 */
.tl {
  --c-t: 44px; --c-r: 16px; --gap: var(--s-2); --pad: var(--s-3);
  list-style: none; display: flex; flex-direction: column;
  padding: var(--s-2) var(--pad); border-radius: var(--r-card);
  background:
    linear-gradient(var(--line), var(--line)) no-repeat calc(var(--pad) + var(--c-t) + var(--gap) + var(--c-r) / 2 - 1px) 28px / 2px calc(100% - 56px),
    var(--surface);
  border: .5px solid var(--line);
}
.stop {
  display: grid; grid-template-columns: var(--c-t) var(--c-r) 1fr 44px; column-gap: var(--gap);
  align-items: start; min-height: 48px; padding: var(--s-2) 0;
}
.stop .t { font-size: var(--fs-sub); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; padding-top: 1px; }
.stop .t small { display: block; font-size: var(--fs-sub); font-weight: 400; color: var(--ink-3); }
.stop .dot { width: 16px; height: 16px; border-radius: 50%; margin-top: 2px; border: 2.5px solid var(--accent); background: var(--surface); }
.stop .b { min-width: 0; }
.stop .b .name { font-size: var(--fs-name); font-weight: 600; line-height: 1.3; }
.stop .b .note { font-size: var(--fs-sub); color: var(--ink-2); padding-top: 2px; min-height: 0; overflow: hidden; }
.stop .go { width: 44px; height: 44px; display: grid; place-items: center; margin: -6px 0; }
.stop .go span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 16px; transition: transform .12s ease; }
.stop .go-confetti { cursor: pointer; }
.stop .go-confetti:active span { transform: scale(.86); }
.stop.past { opacity: .62; min-height: 40px; padding: 6px 0; cursor: pointer; transition: opacity .22s ease, padding .26s cubic-bezier(.25, 1, .5, 1), min-height .26s cubic-bezier(.25, 1, .5, 1); }
.stop.later { cursor: pointer; }
.stop.past .note-wrap,
.stop.later .note-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .26s cubic-bezier(.25, 1, .5, 1), opacity .22s ease; }
.stop.past.is-open { opacity: 1; padding: var(--s-2) 0; min-height: 48px; }
.stop.past.is-open .note-wrap,
.stop.later.is-open .note-wrap { grid-template-rows: 1fr; opacity: 1; }
.stop.cur .dot {
  background: color-mix(in srgb, var(--accent) 62%, #fff);
  border-color: color-mix(in srgb, var(--accent) 68%, #fff);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.leg {
  margin-left: calc(var(--c-t) + var(--c-r) + var(--gap) * 2);
  font-size: var(--fs-sub); font-weight: 500; color: var(--ink-2);
  min-height: 28px; display: flex; align-items: center;
}
.leg-in { display: flex; align-items: center; min-height: 0; overflow: hidden; }
.leg.past {
  display: grid; grid-template-rows: 0fr; min-height: 0; opacity: 0; overflow: hidden;
  transition: grid-template-rows .26s cubic-bezier(.25, 1, .5, 1), opacity .22s ease, min-height .26s cubic-bezier(.25, 1, .5, 1);
}
.leg.past.is-open { grid-template-rows: 1fr; min-height: 28px; opacity: .62; }

/* 当日锦囊：结构化白卡 + 语义色顶栏 + 统一规范图标槽 + 紧凑行间距 */
.day-tips {
  background: var(--surface); border: .5px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .02);
}
.dt-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: var(--s-3) var(--s-4); text-align: left; cursor: pointer;
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 70%, #fff));
  border-bottom: .5px solid color-mix(in srgb, var(--accent) 15%, var(--line));
}
.dt-head:active { opacity: .82; }
.dt-badge { font-size: var(--fs-sub); font-weight: 800; color: var(--accent); letter-spacing: .02em; }

.dt-list { list-style: none; display: flex; flex-direction: column; }
.dt-item {
  display: grid; grid-template-columns: 36px 1fr; column-gap: var(--s-3);
  padding: var(--s-3) var(--s-4); align-items: start;
  transition: opacity .22s ease, padding .26s cubic-bezier(.25, 1, .5, 1);
}
.dt-item .dt-icon, .dt-item .dt-title, .dt-item.is-done { cursor: pointer; }
.dt-item + .dt-item { border-top: .5px solid var(--line); }

.dt-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft); display: grid; place-items: center;
  font-size: 18px; line-height: 1; flex-shrink: 0;
  transition: width .26s cubic-bezier(.25, 1, .5, 1), height .26s cubic-bezier(.25, 1, .5, 1), font-size .26s ease;
}
.dt-content { min-width: 0; }
.dt-title {
  font-size: var(--fs-body); font-weight: 700; color: var(--ink); line-height: 1.38;
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
}
.dt-tag {
  display: inline-block; font-size: var(--fs-sub); font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 1px 8px; border-radius: 6px;
  border: .5px solid color-mix(in srgb, var(--accent) 25%, transparent);
  letter-spacing: .01em;
}
.dt-t-txt { color: var(--ink); }

.dt-body-wrap {
  display: grid; grid-template-rows: 1fr; opacity: 1;
  transition: grid-template-rows .26s cubic-bezier(.25, 1, .5, 1), opacity .22s ease;
}
.dt-body {
  padding-top: 6px; font-size: 0.875rem; color: var(--ink-2); line-height: 1.65;
  word-break: break-word; min-height: 0; overflow: hidden;
}
.dt-body ul { list-style: none; display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; }
.dt-body li { position: relative; padding-left: 12px; }
.dt-body li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 4px; height: 4px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 55%, var(--ink-3));
}
.dt-item.is-done { opacity: .55; padding: var(--s-2) var(--s-4); align-items: center; }
.dt-item.is-done .dt-icon { width: 28px; height: 28px; font-size: 15px; border-radius: 8px; }
.dt-item.is-done .dt-body-wrap { grid-template-rows: 0fr; opacity: 0; }
.dt-body b { color: var(--ink); font-weight: 600; }
.dt-body i { font-style: italic; color: var(--ink-2); }
.dt-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(0, 0, 0, .05); padding: 1px 6px; border-radius: 4px; font-size: var(--fs-sub);
  color: var(--ink);
}

/* 锦囊内所有链接均具备明确可点击视觉反馈：站内链接清晰下划线着色，电话/外链胶囊化 */
.dt-body a {
  color: var(--accent); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.dt-body a[href^="tel:"],
.dt-body a[href$=".html"],
.dt-body a[href*=".html#"] {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 10px; margin: 2px 0;
  border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-weight: 700; font-size: var(--fs-sub);
  text-decoration: none; white-space: nowrap; vertical-align: middle;
  border: .5px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.dt-body a[href^="tel:"]::before { content: "📞"; font-size: 12px; }
.dt-body a[href^="tel:"]:active,
.dt-body a[href$=".html"]:active,
.dt-body a[href*=".html#"]:active { opacity: .7; }

.dt-body a[href^="http"] {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 9px; margin: 2px 0;
  border-radius: 999px; background: rgba(0, 0, 0, .05);
  color: var(--accent); font-weight: 600; font-size: var(--fs-sub);
  text-decoration: none; white-space: nowrap; vertical-align: middle;
}
.dt-body a[href^="http"]::after { content: " ↗"; font-size: 12px; opacity: .75; }
.pb a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pb b { color: var(--ink); }

/* ---------------- 全程 ---------------- */
.trip-sum { font-size: var(--fs-sub); font-weight: 500; color: var(--ink-2); }

.grp-h {
  position: sticky; top: calc(var(--head-h) + var(--safe-top)); z-index: 5;
  margin: var(--s-2) calc(var(--s-4) * -1) 0; padding: var(--s-2) var(--s-4);
  background: var(--bg); font-size: var(--fs-sub); font-weight: 700; color: var(--c);
  border-bottom: .5px solid var(--line);
}

.row {
  width: 100%; min-height: 64px; padding: var(--s-2) var(--s-3) var(--s-2) var(--s-2);
  display: grid; grid-template-columns: 44px 1fr auto; column-gap: var(--s-3); align-items: center;
  text-align: left; background: var(--surface); border: .5px solid var(--line); border-radius: var(--r-card);
}
.row:active { opacity: .75; }
.row .n {
  height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--c-soft); color: var(--c); font-weight: 800; font-size: var(--fs-body); font-variant-numeric: tabular-nums;
}
.row .m { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .m .d { font-size: var(--fs-sub); color: var(--ink-2); }
.row .m .ti { font-size: var(--fs-name); font-weight: 600; line-height: 1.3; }
.row .row-r { display: flex; align-items: center; gap: 6px; }
.row .dr { font-size: var(--fs-sub); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.row .chev { color: var(--ink-3); font-size: 18px; line-height: 1; }
.badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--c); color: #fff; font-size: var(--fs-sub); font-weight: 700; }

/* ---------------- 随身 ---------------- */
.flash-card { border-color: var(--accent); background: var(--accent-soft); }
.flash-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.flash-info-btn {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.45);
  border: 1px solid color-mix(in srgb, var(--ink-3) 32%, transparent);
  color: var(--ink-2); font-family: Georgia, serif; font-style: italic;
  font-size: 13px; font-weight: 600; line-height: 1; opacity: .78;
  transition: background .15s, opacity .15s;
}
.flash-info-btn:active { background: rgba(255,255,255,.85); opacity: 1; }
.flash.flash-info-dlg { text-align: left; }
.flash-info-dlg .flash-badge { text-align: center; }
.flash-info-list {
  margin: 0; padding: 0; list-style: none; overflow-y: auto;
  display: flex; flex-direction: column;
  font-size: 0.85rem; line-height: 1.55; color: var(--ink-2);
  text-align: left;
}
.flash-info-list li {
  padding: 9px 0;
  border-bottom: .5px solid rgba(31, 26, 22, .08);
}
.flash-info-list li:first-child { padding-top: 2px; }
.flash-info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.flash-info-list b { color: var(--ink); font-weight: 700; }
.flash-card .btn { flex: none; width: 100%; min-height: 48px; font-size: var(--fs-name); }
.flash-pills {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin: 10px 0 2px;
}
.flash-pill {
  display: flex; align-items: center; justify-content: center;
  padding: 9px 6px; border-radius: 12px; text-align: center; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink);
  transition: border-color .15s, background .15s;
}
.flash-pill .fp-t { font-size: 0.84rem; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.flash-pill.is-on { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 1px var(--accent) inset; }
.flash-pill.is-on .fp-t { color: var(--accent); }
.todo-entry {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: var(--s-3); min-height: 56px;
}
.todo-entry:active { opacity: .75; }
.todo-entry-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.todo-entry .chev { font-size: 22px; color: var(--ink-3); flex: none; }

.poc { background: var(--surface); border: .5px solid var(--line); border-radius: var(--r-card); }
.poc summary {
  list-style: none; min-height: 56px; padding: var(--s-3) var(--s-4);
  display: flex; align-items: center; gap: var(--s-3); cursor: pointer;
}
.poc summary::-webkit-details-marker { display: none; }
.poc summary::after { content: "›"; margin-left: auto; font-size: 22px; color: var(--ink-3); transition: transform .15s; }
.poc[open] summary::after { transform: rotate(90deg); }
.poc .ic { font-size: 24px; }
.poc .ttl { display: flex; flex-direction: column; min-width: 0; }
.poc .ttl b { font-size: var(--fs-name); font-weight: 600; }
.poc .ttl i { font-style: normal; font-size: var(--fs-sub); color: var(--ink-2); }
.pb { padding: 0 var(--s-4) var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); color: var(--ink-2); }
.pb ul { padding-left: 1.1em; display: flex; flex-direction: column; gap: var(--s-2); }

/* ---------------- 底栏（悬浮 Liquid Glass 胶囊） ---------------- */
.tabbar {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 10px); z-index: 60;
  transform: translateX(-50%) translateY(0) scale(1);
  width: min(296px, calc(100vw - 44px)); height: 54px; padding: 4px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, .74);
  box-shadow:
    0 10px 28px -8px rgba(31, 26, 22, .18),
    0 2px 8px -2px rgba(31, 26, 22, .08),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  transition: opacity .45s cubic-bezier(.22, 1, .36, 1), transform .5s cubic-bezier(.22, 1, .36, 1);
}
.tabbar.is-hidden {
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(18px) scale(.94);
}
.tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; color: var(--ink-2); min-height: 44px;
  transition: background .2s ease, color .2s ease, transform .12s ease;
}
.tab:active { transform: scale(.94); }
.tab .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-current="page"] {
  color: var(--accent); font-weight: 700;
  background: color-mix(in srgb, var(--accent-soft) 72%, rgba(255, 255, 255, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 1px 4px rgba(31, 26, 22, .06);
}
.tab[aria-current="page"] .ic { fill: var(--accent-soft); }

/* ---------------- 全屏点餐卡（Liquid Glass） ---------------- */
@keyframes dlgIn {
  from { opacity: 0; transform: scale(.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.flash {
  position: relative; outline: none;
  margin: auto; width: min(100vw - 40px, 360px); max-height: calc(100dvh - 80px);
  border-radius: 24px; padding: 20px 20px 22px;
  background: rgba(255, 255, 255, .80);
  -webkit-backdrop-filter: blur(28px) saturate(185%);
  backdrop-filter: blur(28px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, .88);
  box-shadow: 0 24px 48px -12px rgba(20, 16, 12, .26), inset 0 1px 0 rgba(255, 255, 255, .95);
  color: var(--ink); text-align: center;
  flex-direction: column; gap: var(--s-3);
}
.flash[open] { display: flex; animation: dlgIn .22s cubic-bezier(.22, 1, .36, 1) both; }
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(20, 16, 12, .36);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.flash-badge { font-size: var(--fs-sub); font-weight: 700; color: var(--accent); }
.flash-pt { font-size: 1.55rem; font-weight: 800; line-height: 1.3; overflow-y: auto; }
.flash-zh { font-size: var(--fs-name); color: #333; }
.flash-close { width: 100%; min-height: 56px; flex: none; background: var(--accent); border-color: var(--accent); color: #fff; font-size: var(--fs-name); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-bottom) + 12px); z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: rgba(30, 24, 20, .94); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: var(--fs-sub); font-weight: 600; white-space: nowrap; max-width: calc(100vw - 32px);
  overflow: hidden; text-overflow: ellipsis;
  transition: opacity .15s, transform .15s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 翻页手势 & 过渡动效 ---------------- */
@keyframes dayInNext {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes dayInPrev {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
.slide-in-next { animation: dayInNext .26s cubic-bezier(0.22, 1, 0.36, 1) both; }
.slide-in-prev { animation: dayInPrev .26s cubic-bezier(0.22, 1, 0.36, 1) both; }

.flip-indicator {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-bottom) + 16px);
  transform: translate(-50%, 0); z-index: 95;
  background: rgba(31, 26, 22, .92); color: #fff;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 8px 18px; border-radius: 999px;
  font-size: var(--fs-sub); font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  pointer-events: none; transition: background .15s, transform .15s;
  white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden;
}
.flip-indicator > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.flip-indicator .fi-arrow { font-size: 14px; transition: transform .18s ease; display: inline-block; flex-shrink: 0; }
.flip-indicator.ready {
  background: var(--accent);
  transform: translate(-50%, 0) scale(1.05);
}
.flip-indicator.ready .fi-arrow { transform: scale(1.15); }

/* 底部下一天卡片引导与快捷翻页 */
.day-pager {
  margin-top: var(--s-4); padding-top: var(--s-2);
  display: flex; flex-direction: column; align-items: stretch; gap: var(--s-2);
}
.dp-card {
  width: 100%;
  background: linear-gradient(135deg, var(--surface) 55%, color-mix(in srgb, var(--accent-soft) 45%, #fff));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: var(--r-card); padding: var(--s-3) var(--s-4);
  cursor: pointer; text-align: left; transition: transform .1s, border-color .15s;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .06);
}
.dp-card:active { transform: scale(.98); }
.dp-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2px;
}
.dp-sub {
  font-size: var(--fs-sub); font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .04em;
}
.dp-action-pill {
  font-size: var(--fs-sub); font-weight: 600; color: var(--ink-2);
  background: rgba(0, 0, 0, .05); padding: 1px 8px; border-radius: 999px;
}
.dp-title {
  font-size: var(--fs-name); font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.dp-chev {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.dp-end { text-align: center; }
.dp-end .dp-top { justify-content: center; gap: 8px; }
.dp-end .dp-title { justify-content: center; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  .slide-in-next, .slide-in-prev { animation: none; }
  .hero-illus, .hero-illus .hero-img, .hero-illus .hero-mist, .hero-illus .hero-date, .hero-home-ic span, .stop.past, .stop.past .note-wrap, .stop.later .note-wrap, .leg.past, .dt-item, .dt-icon, .dt-body-wrap, .tabbar, .tab { transition: none !important; }
}

@media (forced-colors: active) {
  .hero, .card, .tl, .day-tips, .dp-card, .row, .poc, .btn, .hero-home-ic span {
    border: 1px solid ButtonBorder;
  }
  .tab[aria-current="page"]::before {
    background: Highlight;
  }
}
