/* ===========================================================
   小宝的迪士尼三日游 · H5
   情侣风 · 移动端优先
   =========================================================== */

:root {
  --pink: #ff6f91;
  --pink-deep: #e94f79;
  --pink-soft: #ffe3ec;
  --pink-mist: #fff4f8;
  --peach: #ffb4a2;
  --gold: #ffc857;
  --mint: #7bd0c1;
  --ink: #3d2c35;
  --ink-2: #6b5763;
  --muted: #9c8a93;
  --line: #f2e2e9;
  --card: #ffffff;
  --bg: #fff8fb;
  --radius: 20px;
  --shadow: 0 6px 20px rgba(233, 79, 121, 0.10);
  --shadow-lg: 0 10px 30px rgba(233, 79, 121, 0.18);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: #f7eef3;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body { overscroll-behavior-y: none; }

/* 桌面预览时居中成手机宽度 */
.app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 40px rgba(200, 140, 165, 0.18);
  overflow-x: hidden;
  padding-bottom: calc(78px + var(--safe-b));
}

/* ---------------- 顶部主视觉 ---------------- */
.hero {
  position: relative;
  padding: 26px 20px 22px;
  background:
    radial-gradient(120% 90% at 15% 0%, #ffd9e4 0%, rgba(255, 217, 228, 0) 58%),
    radial-gradient(100% 80% at 92% 10%, #ffe9c9 0%, rgba(255, 233, 201, 0) 55%),
    linear-gradient(160deg, #ff8fab 0%, #ff7a9c 42%, #ff9f8f 100%);
  color: #fff;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -30% -62% -30%;
  height: 150px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.92;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  font-weight: 600;
}

.hero-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

/* 小狐狸头像：圆形 + 白描边，尺寸与原先的 SVG 小狐狸一致（84px） */
.mascot {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px rgba(150, 40, 80, 0.30), 0 0 0 1px rgba(233, 79, 121, 0.18);
  animation: bob 3.4s ease-in-out infinite;
}

.mascot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1.5deg); }
}

.hero-title { flex: 1 1 auto; min-width: 0; }

.hero-title h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(150, 40, 80, 0.22);
}

.hero-title h1 em {
  font-style: normal;
  color: #fff3b8;
}

.hero-title p {
  margin: 6px 0 0;
  font-size: 12.5px;
  opacity: 0.95;
  line-height: 1.5;
}

.hero-bubble {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pink-deep);
  border-radius: 16px 16px 16px 6px;
  padding: 9px 13px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 6px 16px rgba(150, 40, 80, 0.16);
  display: inline-block;
  max-width: 100%;
}

/* 倒计时 */
.countdown {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.cd-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 14px;
  padding: 8px 4px 7px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.cd-num {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.cd-lab { font-size: 10.5px; opacity: 0.9; margin-top: 2px; }

/* 飘心动画 */
.hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.heart {
  position: absolute;
  bottom: -24px;
  font-size: 13px;
  opacity: 0;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  12% { opacity: 0.85; }
  100% { transform: translateY(-260px) scale(1.15); opacity: 0; }
}

/* ---------------- 内联 SVG 图标 ---------------- */
.ic {
  width: 1em; height: 1em;
  display: inline-block;
  vertical-align: -0.13em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic.solid { fill: currentColor; stroke: none; }

.stars { display: inline-flex; gap: 1.5px; vertical-align: -0.14em; }
.stars .ic { width: 12px; height: 12px; stroke-width: 2; }
.stars .on { fill: #ffc857; stroke: #ffc857; }
.stars .off { stroke: #e6cdd6; }

.sec-title .ic { width: 17px; height: 17px; color: var(--pink-deep); }
.card h4 .ic { width: 16px; height: 16px; color: var(--pink-deep); }
.hint .ic { width: 14px; height: 14px; vertical-align: -0.16em; }
.foot .ic { width: 13px; height: 13px; }
.hero-badge .ic { width: 13px; height: 13px; vertical-align: -0.18em; }
.di { display: inline-flex; align-items: center; color: var(--pink-deep); }
.di .ic { width: 25px; height: 25px; stroke-width: 1.7; }
.tl-what .ic, .st-do .ic { width: 14px; height: 14px; }
.st-place .ic { color: var(--pink-deep); }

/* 语义色（用于把原来的 emoji 语义保留下来） */
.ic.pink { color: var(--pink-deep); }
.mk { display: inline-flex; align-items: center; vertical-align: -0.2em; }
.mk .ic { width: 14px; height: 14px; stroke-width: 2; }
.mk.ok .ic { color: #2fae8f; }
.mk.no .ic { color: #e05577; }
.mk.gold .ic { color: #e0a52c; }
.mk.warn .ic { color: #d98b1f; }

/* 勾选圆点 / 圆形勾 */
.check .ic, .pdot .ic { width: 12px; height: 12px; stroke-width: 3; }
.hotel-sel .ic { width: 12px; height: 12px; stroke-width: 3; vertical-align: -0.15em; }
.picked-banner .ic { width: 12px; height: 12px; color: var(--pink-deep); }
.mk.pink .ic { color: var(--pink-deep); }

/* 酒店评分星星 */
.hotel-rank .stars { vertical-align: -0.1em; }
.hotel-rank .stars .ic { width: 10px; height: 10px; }

/* 列表小图标（距迪士尼 / 驾车 / 地铁…） */
.ico { color: var(--pink-deep); }
.ico .ic { width: 15px; height: 15px; }

/* 飘心：改成 SVG 后按 1em 渲染，颜色按序号错开 */
.heart .ic { width: 1em; height: 1em; display: block; fill: currentColor; stroke: none; }
.heart:nth-child(3n + 1) { color: #ff9db8; }
.heart:nth-child(3n + 2) { color: #ffc857; }
.heart:nth-child(3n) { color: #ff6f91; }

/* ---------------- 城堡装饰线 ---------------- */
.deco {
  padding: 8px 26px 0;
  background: linear-gradient(180deg, rgba(255, 240, 245, 0) 0%, var(--bg) 88%);
}

.deco svg { display: block; width: 100%; height: 62px; }

/* ---------------- 主体 ---------------- */
main { padding: 16px 14px 8px; }

.view { display: none; animation: fadeIn 0.28s ease; }
.view.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 2px 10px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
}

.sec-title:first-child { margin-top: 4px; }

.sec-title .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--peach));
  flex: 0 0 8px;
}

.sec-title .cnt {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pink-deep);
  background: var(--pink-soft);
  padding: 2px 9px;
  border-radius: 999px;
}

.hint {
  background: #fffdf2;
  border: 1px dashed #f0d9a0;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #8a6d2f;
  line-height: 1.6;
  margin: 0 0 12px;
}

/* ---------------- 分段切换（Day / 路线） ---------------- */
.seg {
  display: flex;
  gap: 6px;
  background: #fdeef4;
  padding: 5px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.seg button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 4px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.seg button small { display: block; font-size: 10px; font-weight: 600; opacity: 0.7; }

.seg button.on {
  background: #fff;
  color: var(--pink-deep);
  box-shadow: 0 3px 10px rgba(233, 79, 121, 0.16);
}

/* ---------------- 行程卡片 ---------------- */
.day-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(120deg, #ffe7ef, #fff2f6);
  border: 1px solid #ffdbe6;
  border-radius: 16px;
  padding: 11px 13px;
  margin-bottom: 12px;
}

.day-head .di { font-size: 20px; }

.day-head b { display: block; font-size: 14px; }
.day-head span { font-size: 11.5px; color: var(--muted); }

.day-progress {
  margin-left: auto;
  text-align: right;
  font-size: 11.5px;
  color: var(--pink-deep);
  font-weight: 700;
}

.bar {
  width: 74px; height: 6px; border-radius: 99px;
  background: #ffe0ea; margin-top: 4px; overflow: hidden;
}

.bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--pink), var(--peach));
  border-radius: 99px; transition: width 0.35s ease;
}

.step {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 13px 14px 13px 15px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  transition: all 0.22s ease;
  cursor: pointer;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--pink), var(--peach));
  opacity: 0.85;
}

.step:active { transform: scale(0.985); }

.step.done {
  background: #fbf7f9;
  border-color: #ffd9e4;
  box-shadow: none;
}

.step.done .st-title { text-decoration: line-through; color: var(--muted); }

.step.star {
  background: linear-gradient(180deg, #fff6fa 0%, #fff 55%);
  border-color: #ffd3e2;
}

.st-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.time {
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #ff8fae);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.st-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #b4701f;
  background: #fff4dc;
  border: 1px solid #ffe0a8;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.check {
  margin-left: auto;
  width: 22px; height: 22px; flex: 0 0 22px;
  border-radius: 50%;
  border: 2px solid #ffc9da;
  display: grid; place-items: center;
  font-size: 13px; color: transparent;
  transition: all 0.2s ease;
}

.step.done .check {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.st-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 4px;
}

.st-place {
  font-size: 12px;
  color: var(--pink-deep);
  font-weight: 600;
  margin-bottom: 5px;
}

.st-place { display: flex; align-items: center; gap: 5px; }
.st-place .ic { width: 13px; height: 13px; stroke-width: 2; }

.st-do {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.62;
}

.st-note {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.6;
  color: #8a6d2f;
  background: #fffaf0;
  border-left: 3px solid #ffd98a;
  padding: 6px 9px;
  border-radius: 0 10px 10px 0;
}

/* ---------------- 酒店卡片 ---------------- */
.hotel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  overflow: hidden;
  margin-bottom: 13px;
  transition: all 0.24s ease;
}

.hotel.picked {
  border-color: var(--pink);
  box-shadow: var(--shadow-lg);
}

.picked-banner {
  display: none;
  align-items: center;
  gap: 6px;
  background: linear-gradient(120deg, #ffe7ef, #fff2f6);
  border-bottom: 1px solid #ffdbe6;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pink-deep);
}

.hotel.picked .picked-banner { display: flex; }

.hotel-imgs {
  position: relative;
  background: #fdf1f6;
}

.hotel-img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.hotel-rank {
  position: absolute;
  left: 10px; top: 10px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--pink-deep);
  box-shadow: 0 3px 10px rgba(150, 40, 80, 0.14);
}

.hotel-sel {
  position: absolute;
  right: 10px; top: 10px;
  background: rgba(61, 44, 53, 0.62);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.hotel.picked .hotel-sel { background: var(--pink); }

.hotel-body { padding: 12px 14px 13px; }

.hotel-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 6px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.price {
  font-size: 24px;
  font-weight: 900;
  color: var(--pink-deep);
  font-variant-numeric: tabular-nums;
}

.price small { font-size: 12px; font-weight: 700; }

.price-orig {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

.roomtype {
  font-size: 11.5px;
  font-weight: 700;
  color: #6b4a1f;
  background: #fff4dc;
  border: 1px solid #ffe0a8;
  padding: 2px 8px;
  border-radius: 999px;
}

.facts { display: grid; gap: 5px; margin-bottom: 8px; }

.fact {
  display: flex;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.fact b { font-weight: 700; color: var(--ink); }

.ico { flex: 0 0 16px; text-align: center; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fdeef4;
  color: var(--pink-deep);
}

.tag.ok { background: #e8f8f3; color: #178a70; }

.hotel-note {
  margin-top: 9px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
  background: var(--pink-mist);
  border-radius: 12px;
  padding: 8px 10px;
}

/* ---------------- 通用列表 / 卡 ---------------- */
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 13px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.card h4 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 800;
}

.card p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.65; }

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.kv:last-child { border-bottom: 0; }
.kv span { color: var(--ink-2); }
.kv b { font-weight: 800; font-variant-numeric: tabular-nums; }

.num-list { margin: 0; padding-left: 0; list-style: none; }

.num-list li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
  border-bottom: 1px dashed var(--line);
}

.num-list li:last-child { border-bottom: 0; }

.num-list li::before {
  content: counter(li);
  counter-increment: li;
  position: absolute;
  left: 0; top: 9px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 11px;
  font-weight: 800;
  display: grid; place-items: center;
}

.num-list { counter-reset: li; }

/* 时间轴（贝儿攻略） */
.tl { position: relative; padding-left: 26px; }

.tl::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--pink), var(--peach), #ffe3ec);
  border-radius: 2px;
}

.tl-item { position: relative; margin-bottom: 11px; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -22px; top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--pink);
}

.tl-item.key::before { background: var(--pink); box-shadow: 0 0 0 4px #ffe3ec; }

.tl-card {
  background: var(--card);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}

.tl-top { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; flex-wrap: wrap; }

.tl-num {
  font-size: 10.5px; font-weight: 800; color: #fff;
  background: var(--pink); border-radius: 6px; padding: 1px 6px;
}

.tl-time { font-size: 12px; font-weight: 800; color: var(--pink-deep); }

.tl-what { font-size: 13.5px; font-weight: 700; line-height: 1.5; }

.tl-tip { margin-top: 5px; font-size: 12px; color: #8a6d2f; line-height: 1.55; }

/* 可选项（路线选择） */
.pick {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 12px 13px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pick.on { border-color: var(--pink); box-shadow: var(--shadow-lg); }

.pick .pdot {
  width: 20px; height: 20px; flex: 0 0 20px;
  border-radius: 50%; border: 2px solid #ffc9da;
  display: grid; place-items: center;
  font-size: 12px; color: transparent;
}

.pick.on .pdot { background: var(--pink); border-color: var(--pink); color: #fff; }

.pick .ptxt { flex: 1; }
.pick .ptxt b { display: block; font-size: 14px; font-weight: 800; }
.pick .ptxt span { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* 预算输入 */
.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.field {
  background: var(--card);
  border-radius: 14px;
  padding: 9px 11px;
  box-shadow: var(--shadow);
}

.field label { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }

.field input {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  padding: 2px 0 0;
  outline: none;
  font-variant-numeric: tabular-nums;
}

.field input:focus { color: var(--pink-deep); }

.total-card {
  background: linear-gradient(135deg, var(--pink) 0%, #ff9a8b 100%);
  color: #fff;
  border-radius: 18px;
  padding: 15px 16px;
  box-shadow: var(--shadow-lg);
  margin: 12px 0;
}

.total-card .row { display: flex; align-items: baseline; justify-content: space-between; }

.total-card .big {
  font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums;
}

.total-card .sub { font-size: 12px; opacity: 0.94; margin-top: 3px; }

/* 高铁班次 */
.train {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: 14px;
  padding: 11px 13px; margin-bottom: 9px; box-shadow: var(--shadow);
}

.train .code { font-size: 14px; font-weight: 900; color: var(--pink-deep); flex: 0 0 58px; }
.train .rt { flex: 1; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.train .meta { font-size: 11px; color: var(--muted); text-align: right; line-height: 1.45; }
.train .pick-tag { font-size: 10px; font-weight: 800; background: var(--pink-soft); color: var(--pink-deep); padding: 2px 6px; border-radius: 99px; }

/* 底部说明 */
.foot {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  padding: 18px 20px 8px;
  line-height: 1.7;
}

.foot .love { color: var(--pink); font-weight: 800; }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid #f6e4ec;
  padding: 6px 4px calc(6px + var(--safe-b));
  z-index: 50;
}

.tabbar button {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: inherit;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 0 3px;
  cursor: pointer;
  border-radius: 12px;
  transition: color 0.2s ease;
  line-height: 1.3;
}

.tabbar button i {
  display: block;
  font-style: normal;
  line-height: 0;
  margin-bottom: 4px;
  transition: transform 0.22s ease;
}

.tabbar button i .ic { width: 23px; height: 23px; stroke-width: 1.75; }

.tabbar button.on { color: var(--pink-deep); }
.tabbar button.on i { transform: translateY(-2px) scale(1.12); }

/* 回到顶部 */
.totop {
  position: fixed;
  right: calc(50% - 240px + 14px);
  bottom: calc(76px + var(--safe-b));
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--pink-deep);
  font-size: 17px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: none;
  z-index: 40;
}

.totop.show { display: block; }

@media (max-width: 520px) {
  .totop { right: 14px; }
}

/* 小屏微调 */
@media (max-width: 360px) {
  .hero-title h1 { font-size: 20px; }
  .price { font-size: 21px; }
  .tabbar button { font-size: 9.5px; }
  .tabbar button i .ic { width: 21px; height: 21px; }
}
