/* ============================================
   周末探索 · 城市周末指南
   日落珊瑚 × 奶油纸感 · 暖编辑风 · 移动端优先
   参考：小红书暖底单强调色 / DICE 单色克制度 / Airbnb 珊瑚橘
   ============================================ */

:root {
  --p: #F6493C;
  --p-deep: #E8432A;
  --p-soft: #FF8A66;
  --p-grad: linear-gradient(135deg, #FF8A4C, #F6493C);
  --ink: #2A2320;
  --ink2: #8D8378;
  --ink3: #BCB1A2;
  --line: rgba(216, 138, 90, 0.14);
  --card: #ffffff;
  --bg: #FAF6EF;
  --chip-bg: #F3EDE2;
  --chip-text: #7A6F60;
  --gold: #FFB020;
  --shadow: 0 8px 24px rgba(214, 118, 66, 0.08);
  --radius: 18px;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: linear-gradient(180deg, #FBF8F1, #F4EEE2);
  -webkit-font-smoothing: antialiased;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 3vh, 30px) clamp(10px, 3vw, 26px);
}

button { font-family: inherit; border: none; background: none; padding: 0; cursor: pointer; color: inherit; }
input, textarea { font-family: inherit; }

/* ---------- iPhone 设备外框 ---------- */

.device {
  position: relative;
  width: min(100%, 454px);
  height: min(100%, 932px);
  padding: 13px;
  border-radius: 60px;
  background: linear-gradient(150deg, #5b5b64 0%, #2c2c33 22%, #1e1e24 55%, #3a3a42 80%, #55555e 100%);
  box-shadow: 0 24px 70px rgba(70, 40, 20, 0.32), inset 0 0 2px rgba(255, 255, 255, 0.25), inset 0 0 14px rgba(0, 0, 0, 0.5);
}

.device-screen {
  position: relative;
  height: 100%;
  border-radius: 47px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.55);
}

/* 侧边实体按键 */
.dev-btn { position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(180deg, #4a4a52, #232329); z-index: 1; }
.btn-action { left: -3px; top: 16.5%; height: 32px; }
.btn-vol-up { left: -3px; top: 24%; height: 58px; }
.btn-vol-down { left: -3px; top: 31.5%; height: 58px; }
.btn-power { right: -3px; top: 24.5%; height: 94px; }

/* 灵动岛 */
.island {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 124px; height: 35px;
  background: #000;
  border-radius: 20px;
  z-index: 100;
}
.island::after {
  content: '';
  position: absolute;
  right: 24px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2c3444 0%, #0a0d14 65%);
}

/* 状态栏 */
.statusbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 0 38px;
  z-index: 45;
  pointer-events: none;
  color: var(--ink);
}
.sb-time { font-size: 15.5px; font-weight: 700; letter-spacing: -0.2px; }
.sb-icons { display: flex; align-items: center; gap: 7px; }

/* Home 指示条 */
.home-indicator {
  position: absolute;
  bottom: 9px; left: 50%;
  transform: translateX(-50%);
  width: 134px; height: 5px;
  border-radius: 999px;
  background: rgba(50, 38, 28, 0.85);
  z-index: 100;
}

.app {
  position: relative;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
}

.view {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 68px 20px 118px;
  scrollbar-width: none;
}
.view::-webkit-scrollbar { display: none; }

/* ---------- 底部标签栏 ---------- */

.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  padding: 8px 10px calc(20px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
  z-index: 20;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #B3A898;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.tab-item svg { width: 23px; height: 23px; }
.tab-item.active { color: var(--p); }

/* ---------- 通用卡片 / 区块 ---------- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-head { margin: 4px 0 16px; }
.page-head h1 { font-size: 27px; font-weight: 800; letter-spacing: -0.6px; margin: 0; }
.page-sub { font-size: 13px; color: var(--ink2); margin: 6px 0 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 24px 0 12px;
}
.sec-head h2 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.3px; margin: 0; }
.sec-sub { font-size: 12px; color: var(--ink2); }

.link-btn { font-size: 13px; font-weight: 600; color: var(--p); }

/* ---------- 渐变插画封面 ---------- */

.cover { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.cover::before {
  content: '';
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  top: -42px; right: -34px;
}
.cover::after {
  content: '';
  position: absolute;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  bottom: -30px; left: -22px;
}
.cover-emoji { position: relative; filter: drop-shadow(0 6px 10px rgba(60, 25, 10, 0.18)); }
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-lg { width: 100%; height: 150px; border-radius: var(--radius) var(--radius) 0 0; }
.cover-lg .cover-emoji { font-size: 52px; }

.cover-sm { width: 92px; height: 92px; border-radius: 14px; }
.cover-sm .cover-emoji { font-size: 36px; }

.cover-xs { width: 56px; height: 56px; border-radius: 14px; }
.cover-xs .cover-emoji { font-size: 24px; }

.cover-hero { width: 100%; height: 228px; }
.cover-hero .cover-emoji { font-size: 64px; }
.cover-hero .match-pill { top: 64px; }

.match-pill {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--p);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(70, 30, 10, 0.12);
}

.cat-pill {
  position: absolute;
  left: 10px; bottom: 10px;
  z-index: 2;
  background: rgba(50, 22, 8, 0.32);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.wx-corner {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 首页 ---------- */

.home-head { margin: 2px 0 18px; }
.eyebrow { font-size: 12px; color: var(--ink2); font-weight: 600; letter-spacing: 0.4px; margin: 0 0 6px; }
.home-head h1 { font-size: 27px; font-weight: 800; letter-spacing: -0.6px; margin: 0; }

.weather-card {
  background: linear-gradient(135deg, #FFB25A 0%, #FF7E48 50%, #F6493C 100%);
  border-radius: 22px;
  padding: 16px 16px 12px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(246, 90, 55, 0.28);
}
.wc-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.wc-city { font-size: 12.5px; font-weight: 600; opacity: 0.95; }
.wc-sim {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 4px 11px;
  border-radius: 999px;
  transition: background 0.2s;
}
.wc-sim:active { background: rgba(255, 255, 255, 0.3); }
.wc-days { display: flex; gap: 10px; margin-top: 12px; position: relative; z-index: 1; }
.wc-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 10px 0 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
}
.wc-label { font-size: 11px; opacity: 0.92; font-weight: 600; }
.wc-emoji { font-size: 30px; margin: 3px 0; }
.wc-temp { font-size: 13.5px; font-weight: 700; }
.wc-text { font-size: 11px; opacity: 0.85; }
.wc-hint {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  text-align: center;
}

/* 偏好卡 */
.pref-card { padding: 15px 16px 16px; }
.pref-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pref-head h2 { font-size: 15.5px; font-weight: 700; margin: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s;
}
.chip.on {
  background: var(--p-grad);
  color: #fff;
  box-shadow: 0 4px 12px rgba(246, 90, 55, 0.28);
}
.pref-budget { font-size: 12.5px; color: var(--ink2); margin-top: 13px; }
.pref-budget b { color: var(--p); font-weight: 700; }

/* 推荐卡 - 大卡 */
.rec-lg { overflow: hidden; margin-bottom: 14px; transition: transform 0.15s; }
.rec-lg:active { transform: scale(0.985); }
.rec-body { padding: 13px 15px 14px; }
.rec-body h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; margin: 0 0 5px; }
.meta { font-size: 12.5px; color: var(--ink2); margin: 0; line-height: 1.5; }
.rec-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.price { font-size: 14px; font-weight: 800; color: var(--p); margin-right: 2px; }
.reason {
  font-size: 11px;
  font-weight: 600;
  color: var(--chip-text);
  background: var(--chip-bg);
  padding: 3px 8px;
  border-radius: 999px;
}

/* 推荐卡 - 横排 */
.rec-sm, .act-row {
  display: flex;
  gap: 13px;
  padding: 12px;
  margin-bottom: 12px;
  align-items: center;
  transition: transform 0.15s;
}
.rec-sm:active, .act-row:active { transform: scale(0.985); }
.rec-sm .act-info, .act-row .act-info { flex: 1; min-width: 0; }
.act-info h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.act-foot { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.act-foot .price { font-size: 13.5px; }
.act-foot .meta-time { font-size: 11.5px; color: var(--ink3); }

/* 首页组队预览 */
.team-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.team-mini .cover-xs { border-radius: 12px; }
.team-mini .tm-info { flex: 1; min-width: 0; }
.team-mini h3 { font-size: 14px; font-weight: 700; margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-mini .meta { font-size: 12px; }
.team-mini .tm-count { font-size: 12px; color: var(--p); font-weight: 700; white-space: nowrap; }

/* ---------- 探索 ---------- */

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 14px;
  box-shadow: var(--shadow);
}
.search-box svg { width: 16px; height: 16px; color: var(--ink3); flex-shrink: 0; }
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14.5px;
  color: var(--ink);
  background: transparent;
}
.search-box input::placeholder { color: var(--ink3); }

.seg {
  display: flex;
  background: var(--chip-bg);
  border-radius: 13px;
  padding: 3px;
  margin: 14px 0;
}
.seg button {
  flex: 1;
  padding: 8px 0;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #7A7060;
  transition: all 0.2s;
}
.seg button.on {
  background: #fff;
  color: var(--p);
  box-shadow: 0 2px 10px rgba(214, 118, 66, 0.16);
}

.cats-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.cats-row::-webkit-scrollbar { display: none; }
.cats-row .chip { flex-shrink: 0; }

/* 攻略卡 */
.guide-card { padding: 15px 16px; margin-bottom: 12px; }
.g-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.g-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.g-author { flex: 1; line-height: 1.3; }
.g-author b { font-size: 13.5px; font-weight: 700; display: block; }
.g-author span { font-size: 11px; color: var(--ink3); }
.g-mine {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--p-grad);
  padding: 3px 8px;
  border-radius: 999px;
}
.guide-card h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.2px; margin: 0 0 6px; }
.g-excerpt {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.g-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; gap: 8px; }
.g-act-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--p);
  background: rgba(246, 90, 55, 0.09);
  padding: 4px 10px;
  border-radius: 999px;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.like-btn {
  font-size: 12.5px;
  color: var(--ink3);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.like-btn .h { font-size: 15px; }
.like-btn.on { color: var(--p); }
.like-btn.on .h { animation: pop 0.3s ease; }

@keyframes pop { 50% { transform: scale(1.35); } }

/* ---------- 组队 ---------- */

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--p-grad);
  border-radius: 20px;
  padding: 18px 20px;
  color: #fff;
  box-shadow: 0 12px 28px rgba(246, 90, 55, 0.3);
  margin-bottom: 6px;
  width: 100%;
  text-align: left;
  transition: transform 0.15s;
}
.cta-card:active { transform: scale(0.98); }
.cta-card h2 { font-size: 17px; font-weight: 800; margin: 0 0 3px; letter-spacing: -0.2px; }
.cta-card p { font-size: 12.5px; margin: 0; opacity: 0.85; }
.cta-arrow { font-size: 22px; opacity: 0.9; }

.team-card { display: flex; gap: 13px; padding: 14px; margin-bottom: 12px; }
.tc-body { flex: 1; min-width: 0; }
.tc-body h3 { font-size: 15px; font-weight: 700; margin: 1px 0 4px; letter-spacing: -0.2px; }
.tc-note {
  font-size: 12px;
  color: var(--ink2);
  margin: 7px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.av-stack { display: flex; align-items: center; }
.av {
  width: 25px; height: 25px;
  border-radius: 50%;
  background: #F3ECDF;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-left: -6px;
}
.av:first-child { margin-left: 0; }
.av-me { background: var(--p-grad); }
.av-count { font-size: 11.5px; color: var(--ink2); margin-left: 8px; font-weight: 600; }
.btn-mini {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--p-grad);
  padding: 6px 15px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(246, 90, 55, 0.26);
  transition: transform 0.15s;
}
.btn-mini:active { transform: scale(0.94); }
.btn-mini.ghost {
  background: none;
  color: var(--ink3);
  box-shadow: none;
}
.btn-mini.done { background: #F3ECDF; color: var(--p); box-shadow: none; }
.owner-badge { font-size: 10.5px; font-weight: 700; color: var(--p); background: rgba(246, 90, 55, 0.1); padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }

/* ---------- 我的 ---------- */

.me-head { display: flex; align-items: center; gap: 15px; margin: 6px 0 16px; }
.me-avatar {
  width: 58px; height: 58px;
  border-radius: 22px;
  background: var(--p-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  box-shadow: 0 8px 20px rgba(246, 90, 55, 0.3);
  position: relative;
  overflow: hidden;
}
.me-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.me-head h1 { font-size: 21px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.3px; }
.me-head p { font-size: 12.5px; color: var(--ink2); margin: 0; }

.stat-row { display: flex; gap: 10px; }
.stat {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 13px 0 11px;
  text-align: center;
}
.stat b { font-size: 21px; font-weight: 800; color: var(--p); display: block; letter-spacing: -0.5px; }
.stat span { font-size: 11.5px; color: var(--ink2); }

.tl-card { display: flex; gap: 12px; padding: 13px; margin-bottom: 11px; align-items: flex-start; }
.tl-body { flex: 1; min-width: 0; }
.tl-body h3 { font-size: 14.5px; font-weight: 700; margin: 1px 0 4px; }
.tl-note { font-size: 12.5px; color: var(--ink2); margin: 7px 0 0; line-height: 1.6; }
.tl-stars { color: var(--gold); letter-spacing: 2px; font-size: 12px; }
.tl-stars .off { color: #EBE2D2; }

/* ---------- 详情页 ---------- */

.page-root { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.page {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(60px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.24s;
  box-shadow: -16px 0 50px rgba(60, 30, 12, 0.25);
}
.page-root.show { pointer-events: auto; }
.page-root.show .page { transform: translateX(0); opacity: 1; }

.page-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.page-scroll::-webkit-scrollbar { display: none; }

.page-hero { position: relative; }
.page-back {
  position: absolute;
  top: 64px; left: 18px;
  z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 12px rgba(60, 30, 12, 0.16);
  font-size: 17px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.page-body {
  background: var(--bg);
  border-radius: 22px 22px 0 0;
  margin-top: -22px;
  position: relative;
  padding: 18px 20px 26px;
  min-height: calc(100% - 200px);
}
.page-tags { display: flex; gap: 6px; margin-bottom: 9px; }
.tag { font-size: 11.5px; font-weight: 700; color: var(--p); background: rgba(246, 90, 55, 0.1); padding: 4px 10px; border-radius: 999px; }
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; margin: 0 0 14px; }

.meta-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.meta-list div { font-size: 13.5px; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.meta-list .mi { flex-shrink: 0; }

.reason-box {
  background: rgba(246, 90, 55, 0.06);
  border: 1px dashed rgba(246, 90, 55, 0.35);
  border-radius: 13px;
  padding: 11px 14px;
  font-size: 12.5px;
  color: #A8543A;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.6;
}

.page-desc { font-size: 14.5px; line-height: 1.75; color: #574C42; margin: 0 0 14px; }
.page-tip {
  background: #FFF8E9;
  border: 1px solid rgba(255, 176, 32, 0.3);
  border-radius: 13px;
  padding: 11px 14px;
  font-size: 12.5px;
  color: #97742A;
  line-height: 1.65;
}

.page-actions {
  display: flex;
  gap: 10px;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
.page-actions button { flex: 1; }

.empty-team-cta {
  width: 100%;
  border: 1.5px dashed rgba(246, 90, 55, 0.35);
  border-radius: 14px;
  padding: 15px;
  color: var(--p);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* ---------- 按钮 ---------- */

.btn-primary {
  height: 48px;
  border-radius: 15px;
  background: var(--p-grad);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 20px rgba(246, 90, 55, 0.3);
  transition: transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-primary:active { transform: scale(0.97); }
.btn-ghost {
  height: 48px;
  border-radius: 15px;
  background: #fff;
  border: 1.5px solid rgba(246, 90, 55, 0.3);
  color: var(--p);
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.15s;
}
.btn-ghost:active { transform: scale(0.97); }
.w100 { width: 100%; }

/* ---------- 弹层 ---------- */

.sheet-root { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
.sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 35, 32, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
}
.sheet {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 10px 22px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 86%;
  overflow-y: auto;
  scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet-root.show .sheet-overlay { opacity: 1; pointer-events: auto; }
.sheet-root.show .sheet { transform: translateY(0); pointer-events: auto; }

.sh-handle { width: 38px; height: 4.5px; border-radius: 999px; background: #EDE3D3; margin: 4px auto 14px; }
.sh-title { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 4px; text-align: center; }
.sh-sub { font-size: 12.5px; color: var(--ink2); margin: 0 0 6px; text-align: center; }

.f { margin-top: 17px; }
.f-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 9px; }
.f-label span { color: var(--ink3); font-weight: 500; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-grid .chip { padding: 8px 14px; font-size: 13px; }

.input {
  width: 100%;
  border: 1.5px solid #EDE3D2;
  background: #FAF5EB;
  border-radius: 13px;
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.input:focus { border-color: var(--p-soft); }
.input::placeholder { color: var(--ink3); }
textarea.input { resize: none; line-height: 1.6; }

.time-cap-row { display: flex; gap: 10px; }
.time-cap-row > div { flex: 1; }

.stepper { display: flex; align-items: center; gap: 16px; }
.stepper button {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--chip-bg);
  font-size: 19px;
  font-weight: 700;
  color: var(--p);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stepper button:active { background: #EADFCB; }
.stepper b { font-size: 16px; min-width: 20px; text-align: center; }

.moods { display: flex; justify-content: space-between; }
.moods button {
  width: 47px; height: 47px;
  border-radius: 50%;
  background: #F5EFE4;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.moods button.on { background: var(--p-grad); transform: scale(1.12); box-shadow: 0 6px 14px rgba(246, 90, 55, 0.35); }

.stars { display: flex; gap: 7px; }
.stars button { font-size: 27px; color: #EBE2D2; line-height: 1; transition: color 0.15s; }
.stars button.on { color: var(--gold); }

.sheet-btn-row { margin-top: 22px; }

/* 打卡成功小弹层 */
.mini-sheet { text-align: center; padding: 8px 0 4px; }
.mini-emoji { font-size: 44px; margin-bottom: 8px; }
.mini-sheet h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.mini-sheet p { font-size: 13px; color: var(--ink2); margin: 0 0 18px; line-height: 1.6; }
.mini-btns { display: flex; gap: 10px; }
.mini-btns button { flex: 1; height: 46px; }

/* ---------- Toast ---------- */

.toast-root { position: absolute; top: 0; left: 0; right: 0; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.toast {
  margin-top: 66px;
  background: rgba(42, 35, 32, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(50, 25, 10, 0.3);
  opacity: 0;
  transform: translateY(-12px);
  transition: all 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  max-width: 86%;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- 空状态 ---------- */

.empty {
  text-align: center;
  padding: 34px 20px 30px;
}
.empty-emoji { font-size: 38px; margin-bottom: 12px; }
.empty h3 { font-size: 15px; font-weight: 700; margin: 0 0 5px; color: var(--ink); }
.empty p { font-size: 12.5px; color: var(--ink2); margin: 0 0 16px; line-height: 1.6; }
.empty .btn-ghost { height: 42px; font-size: 13.5px; padding: 0 26px; }

/* ---------- 桌面端 ---------- */

@media (min-width: 720px) {
  body { background: linear-gradient(160deg, #F6EFE2, #EDDFC8 55%, #F2E8D6); }
  .device {
    box-shadow: 0 40px 100px rgba(90, 50, 25, 0.35), 0 10px 30px rgba(90, 50, 25, 0.18), inset 0 0 2px rgba(255, 255, 255, 0.25), inset 0 0 14px rgba(0, 0, 0, 0.5);
  }
}
