/* 周游小程序 UI 设计稿 · 共享样式（按原生小程序约束：750rpx 基准、胶囊按钮、安全区） */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
:root {
  --paper: #f4f1ea; --card: #ffffff; --ink: #26241f; --sub: #78716c; --faint: #a8a29e;
  --teal: #0f766e; --teal-deep: #115e59; --teal-bg: rgba(15,118,110,.06);
  --amber-bg: #fef3c7; --amber: #92400e; --line: rgba(0,0,0,.06);
}
body { font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", sans-serif; background: #211f1c; color: var(--ink); }
.serif { font-family: "Songti SC", "STSong", Georgia, serif; }

/* 手机屏幕容器 */
.phone { width: 375px; height: 812px; background: var(--paper); position: relative; overflow: hidden; display: flex; flex-direction: column; }
/* 状态栏 + 导航栏 + 胶囊（原生小程序标配） */
.statusbar { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-size: 14px; font-weight: 600; background: var(--paper); flex-shrink: 0; }
.statusbar .icons { display: flex; gap: 5px; align-items: center; color: var(--ink); font-size: 11px; }
.navbar { height: 44px; display: flex; align-items: center; justify-content: center; position: relative; background: var(--paper); border-bottom: .5px solid var(--line); flex-shrink: 0; }
.navbar .title { font-size: 16px; font-weight: 600; }
.navbar .back { position: absolute; left: 12px; font-size: 18px; color: var(--ink); }
.capsule { position: absolute; top: 51px; right: 8px; width: 87px; height: 32px; border: .5px solid rgba(0,0,0,.12); border-radius: 16px; background: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: space-evenly; z-index: 40; }
.capsule i { display: block; }
.capsule .dots { width: 16px; height: 4px; border-radius: 2px; background: radial-gradient(circle, var(--ink) 1.5px, transparent 1.6px) left/5.3px 4px repeat-x; }
.capsule .dot { width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--ink); }
.content { flex: 1; overflow: hidden; position: relative; }

/* 通用组件 */
.chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px; font-size: 10px; font-weight: 500; }
.chip.ok { background: #ccfbf1; color: #115e59; }
.chip.wait { background: var(--amber-bg); color: var(--amber); }
.chip.cand { background: #e7e5e4; color: var(--sub); }
.btn-primary { background: var(--teal); color: #fff; border-radius: 12px; text-align: center; font-size: 14px; font-weight: 500; padding: 12px; }
.btn-ghost { background: #fff; border: 1px solid rgba(15,118,110,.3); color: var(--teal-deep); border-radius: 12px; text-align: center; font-size: 13px; font-weight: 500; padding: 10px; }
.card { background: var(--card); border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--teal-deep); color: #f4f1ea; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }

/* 聊天气泡 */
.msg { display: flex; margin-bottom: 12px; }
.msg.user { justify-content: flex-end; }
.bubble { max-width: 78%; border-radius: 16px; padding: 10px 12px; font-size: 14px; line-height: 1.6; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.msg.zhou .bubble { background: #fff; border-bottom-left-radius: 4px; border: .5px solid var(--line); }
.msg.user .bubble { background: var(--teal); color: #f0fdfa; border-bottom-right-radius: 4px; }
.attach { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); border-radius: 8px; padding: 6px 8px; font-size: 11px; margin-bottom: 6px; }
.attach.z { background: #f5f5f4; color: var(--sub); }

/* 常驻缩略卡 */
.minibar { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--teal-bg); border-bottom: .5px solid rgba(15,118,110,.12); font-size: 11px; flex-shrink: 0; }
.minibar b { color: #134e4a; font-size: 12px; }
.minibar .right { margin-left: auto; display: flex; gap: 6px; color: var(--sub); align-items: center; }

/* 输入区 */
.inputbar { padding: 10px 12px 20px; background: #faf8f3; border-top: .5px solid var(--line); flex-shrink: 0; }
.inputbox { display: flex; align-items: center; gap: 8px; background: #fff; border: .5px solid rgba(0,0,0,.1); border-radius: 999px; padding: 9px 14px; color: var(--faint); font-size: 13px; }
.quick { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.quick button { background: #fff; border: 1px solid rgba(15,118,110,.25); color: #134e4a; border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 500; text-align: left; }

/* 对比卡 */
.compare { border: .5px solid #e7e5e4; border-radius: 12px; overflow: hidden; background: #fff; margin-top: 6px; }
.compare .head { background: #fafaf9; border-bottom: .5px solid #f5f5f4; padding: 8px 10px; font-size: 11px; font-weight: 600; color: #57534e; }
.compare table { width: 100%; font-size: 11px; border-collapse: collapse; }
.compare td, .compare th { padding: 6px 8px; text-align: left; border-bottom: .5px solid #fafaf9; }
.compare th { color: var(--faint); font-weight: 500; }
.compare .good { color: var(--teal); font-weight: 600; }
.compare .warn { color: #b45309; font-weight: 600; }
.compare .opts { display: flex; border-top: .5px solid #f5f5f4; }
.compare .opts span { flex: 1; text-align: center; padding: 8px; font-size: 12px; color: var(--teal-deep); font-weight: 500; }
.compare .opts span + span { border-left: .5px solid #f5f5f4; }

/* 行程卡页 */
.sect { padding: 0 16px; margin-top: 18px; }
.sect h3 { font-size: 12px; color: var(--sub); font-weight: 600; letter-spacing: .05em; margin-bottom: 8px; }
.daycard { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.daycard .dt { font-size: 13px; font-weight: 600; }
.daycard .dt .d { color: var(--teal-deep); margin-right: 6px; font-family: "Songti SC", serif; }
.item { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; color: #44403c; }
.sk-tag { font-size: 9px; color: var(--teal-deep); border: .5px solid rgba(15,118,110,.35); border-radius: 4px; padding: 0 4px; margin-left: 6px; }

/* 路线库 */
.routecard { background: #fff; border-radius: 16px; overflow: hidden; margin-bottom: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.routecard .cover { height: 110px; position: relative; display: flex; align-items: flex-end; padding: 12px; color: #fff; }
.routecard .cover .name { font-size: 17px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.routecard .meta { padding: 10px 14px; font-size: 12px; color: var(--sub); display: flex; gap: 10px; align-items: center; }
.badge-verified { background: #134e4a; color: #99f6e4; font-size: 9px; padding: 2px 7px; border-radius: 999px; }
.badge-edit { background: #78350f; color: #fde68a; font-size: 9px; padding: 2px 7px; border-radius: 999px; }

/* tabbar（原生小程序底部） */
.tabbar { height: 56px; background: #faf8f3; border-top: .5px solid var(--line); display: flex; flex-shrink: 0; padding-bottom: 10px; }
.tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; color: var(--faint); }
.tabbar .tab.on { color: var(--teal-deep); }
.tabbar .tab .ic { font-size: 18px; }

/* 设计稿画廊 */
.gallery { display: flex; flex-wrap: wrap; gap: 28px; padding: 36px; justify-content: center; }
.gitem { display: flex; flex-direction: column; gap: 10px; }
.gitem .cap { color: #d6d3d1; font-size: 13px; text-align: center; }
.gitem .phone { border-radius: 36px; border: 8px solid #44403c; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ghead { color: #f4f1ea; text-align: center; padding: 40px 20px 8px; }
.ghead h1 { font-size: 26px; }
.ghead p { color: #a8a29e; font-size: 13px; margin-top: 8px; }
@media (max-width: 480px) {
  .gallery { padding: 12px; gap: 20px; }
  .gitem .phone { transform: scale(.86); transform-origin: top center; margin-bottom: -110px; }
}

/* ===== v0.2 新增 ===== */
/* 节奏点标记（替代"骨架"文字标签：来自实走行程单的节奏要点） */
.dot-r { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-left: 6px; vertical-align: 2px; }
.dot-legend { font-size: 10px; color: var(--faint); font-weight: 400; letter-spacing: 0; margin-left: 8px; }
.dot-legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 3px; vertical-align: 1px; }

/* 搜索栏 + 分类横滑 tab */
.searchbar { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 9px 14px; font-size: 12px; color: var(--faint); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats span { flex-shrink: 0; font-size: 12px; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--sub); }
.cats span.on { background: var(--teal-deep); color: #f0fdfa; font-weight: 500; }

/* 双列瀑布流（路线库） */
.wf { column-count: 2; column-gap: 10px; margin-top: 10px; }
.wfcard { break-inside: avoid; background: #fff; border-radius: 14px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.wfcard .cover { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; padding: 8px; color: #fff; }
.wfcard .cover .name { font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.35); line-height: 1.4; }
.wfcard .meta { padding: 7px 9px; font-size: 10px; color: var(--sub); line-height: 1.7; }
.wfcard .price { color: var(--teal); font-weight: 600; }

/* 修改确认卡 / 已改卡（对话即编辑） */
.modcard { border: .5px solid #e7e5e4; border-radius: 12px; background: #fafaf9; margin-top: 8px; padding: 10px 12px; font-size: 12px; color: #57534e; line-height: 1.8; }
.modcard .ripple { border-top: .5px dashed #e7e5e4; margin-top: 8px; padding-top: 8px; }
.modcard .opts { display: flex; gap: 8px; margin-top: 10px; }
.modcard .opts span { flex: 1; text-align: center; padding: 7px; font-size: 12px; font-weight: 500; border-radius: 10px; }
.modcard .opts .yes { background: var(--teal); color: #fff; }
.modcard .opts .no { background: #fff; border: 1px solid rgba(15,118,110,.3); color: var(--teal-deep); }
.donecard { display: flex; align-items: center; gap: 8px; background: var(--teal-bg); border: .5px solid rgba(15,118,110,.15); border-radius: 12px; padding: 9px 12px; font-size: 12px; color: #134e4a; margin-top: 8px; }
