/* 途笔 Routequill · 手帐风格，iPhone 优先 */
:root {
  --paper: #f4efe3;
  --paper-deep: #e9e0ce;
  --card: #fffdf7;
  --ink: #213331;
  --muted: #6b726c;
  --line: #ddd3c1;
  --green: #27634e;
  --green-soft: #dcebe0;
  --red: #b44a37;
  --gold: #c68a21;
  --shadow: 0 10px 28px rgba(62, 49, 29, 0.1);
  --radius: 16px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --kai: "LXGW WenKai", "Kaiti SC", "STKaiti", "KaiTi", var(--serif);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--kai);
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(120, 95, 60, 0.05) 1px, transparent 1px);
  background-size: 6px 6px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 14px;
  background: var(--green); color: #fff; font-size: 17px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(39, 99, 78, 0.25); text-decoration: none;
  transition: transform 0.12s, opacity 0.12s;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid var(--line); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; background: rgba(255, 253, 247, 0.92); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 4px 12px;
  border-radius: 999px; background: var(--paper-deep); font-size: 14px; color: var(--ink);
}
#toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--sab)); transform: translate(-50%, 20px);
  background: rgba(33, 51, 49, 0.94); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 15px; opacity: 0; pointer-events: none; transition: 0.25s; z-index: 2100; max-width: 88vw; text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 首页 ---------- */
.home { max-width: 640px; margin: 0 auto; padding: calc(20px + var(--sat)) calc(18px + var(--sar)) calc(40px + var(--sab)) calc(18px + var(--sal)); }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand h1 { font-family: var(--kai); font-size: 34px; }
.brand span { font-size: 13px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.hero {
  margin: 18px 0 26px; padding: 22px 20px; border-radius: 22px; color: #fdf9ef;
  background: linear-gradient(140deg, #2b5b4b, #27634e 55%, #3d7a5f);
  box-shadow: 0 16px 34px rgba(39, 99, 78, 0.28); position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -30px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.25);
}
.hero h2 { font-family: var(--kai); font-size: 26px; line-height: 1.35; }
.hero p { margin: 10px 0 18px; opacity: 0.88; line-height: 1.6; font-size: 15px; }
.hero .btn { background: #fdf9ef; color: var(--green); box-shadow: none; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 2px 12px; }
.section-title h3 { font-size: 19px; }
.trip-list { display: grid; gap: 12px; }
.trip-item { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; }
.trip-item .stamp {
  flex: none; width: 54px; height: 54px; border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: var(--paper-deep); font-family: var(--serif);
}
.trip-item .stamp b { font-size: 20px; line-height: 1; }
.trip-item .stamp small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.trip-item .t { font-family: var(--serif); font-weight: 700; font-size: 17px; }
.trip-item .s { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.empty { padding: 18px; text-align: center; color: var(--muted); font-size: 14px; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.foot { margin-top: 36px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.7; }

/* ---------- 引导表单 ---------- */
.wizard { min-height: 100dvh; display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; }
.wz-top { padding: calc(10px + var(--sat)) calc(12px + var(--sar)) 6px calc(12px + var(--sal)); display: flex; align-items: center; gap: 10px; }
.wz-top .icon-btn { box-shadow: none; background: transparent; }
.dots { flex: 1; display: flex; gap: 6px; }
.dots i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.dots i.on { background: var(--green); }
.wz-body { flex: 1; padding: 14px calc(20px + var(--sar)) 130px calc(20px + var(--sal)); }
.wz-body h2 { font-family: var(--kai); font-size: 28px; line-height: 1.3; }
.wz-body .lead { color: var(--muted); margin: 8px 0 22px; font-size: 15px; line-height: 1.6; }
.field { margin-bottom: 22px; }
.field label.l { display: block; font-weight: 600; margin-bottom: 10px; font-size: 16px; }
.field input[type="text"], .field input[type="date"], .field textarea {
  width: 100%; min-height: 52px; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--card); font-size: 17px; outline: none; -webkit-appearance: none; appearance: none;
}
.field input[type="date"] { display: block; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--green); }
.hint-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hint-chips button { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: transparent; border: 1px dashed #c9bda6; color: var(--muted); min-height: 34px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  min-height: 46px; padding: 10px 16px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line);
  font-size: 16px; transition: 0.12s;
}
.opt.on { border-color: var(--green); background: var(--green-soft); color: var(--green); font-weight: 600; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); }
.stepper button { width: 52px; height: 50px; font-size: 24px; color: var(--green); }
.stepper output { min-width: 64px; text-align: center; font-size: 20px; font-weight: 700; font-family: var(--serif); }
.toggle { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; }
.switch { width: 52px; height: 32px; border-radius: 16px; background: var(--line); position: relative; transition: 0.2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 13px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: 0.2s; }
.switch.on { background: var(--green); }
.switch.on::after { left: 23px; }
.wz-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px calc(18px + var(--sar)) calc(12px + var(--sab)) calc(18px + var(--sal));
  background: linear-gradient(to top, var(--paper) 70%, rgba(244, 239, 227, 0));
  display: flex; gap: 12px; max-width: 640px; margin: 0 auto;
}
.wz-bar .btn { flex: 1; }
.wz-bar .btn.ghost { flex: 0 0 auto; }

/* 生成中 */
.gen { max-width: 520px; margin: 0 auto; padding: calc(40px + var(--sat)) 24px calc(30px + var(--sab)); text-align: center; }
.gen h2 { font-family: var(--kai); font-size: 26px; }
.gen .quill { width: 120px; height: 120px; margin: 10px auto 18px; }
.gen .quill path { stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.steps { text-align: left; margin: 26px 0 18px; display: grid; gap: 10px; }
.steps li { list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.steps li .st { width: 24px; height: 24px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 13px; background: var(--paper-deep); color: var(--muted); }
.steps li.running .st { background: var(--gold); color: #fff; animation: pulse 1s infinite alternate; }
.steps li.done .st { background: var(--green); color: #fff; }
.steps li.error .st { background: var(--red); color: #fff; }
.steps li b { display: block; font-size: 15px; }
.steps li small { color: var(--muted); font-size: 13px; }
@keyframes pulse { to { opacity: 0.55; } }
.steps-wrap { padding: 0; margin: 0; }

/* 地图标注 */
.leaflet-div-icon.rq { background: none; border: 0; }
.pop b { font-size: 15px; }
.pop p { margin: 4px 0 0; font-size: 13px; color: #4d5652; max-width: 220px; line-height: 1.45; }

/* 弹层 */
.modal-bg { position: fixed; inset: 0; background: rgba(20, 30, 28, 0.4); z-index: 2000; display: flex; align-items: flex-end; justify-content: center; }
.modal {
  background: var(--paper); width: 100%; max-width: 520px; border-radius: 22px 22px 0 0;
  padding: 20px calc(20px + var(--sar)) calc(20px + var(--sab)) calc(20px + var(--sal)); animation: up 0.22s ease-out;
}
.modal h3 { font-family: var(--kai); font-size: 22px; margin-bottom: 6px; }
.modal p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.modal .row { display: flex; gap: 10px; margin-top: 16px; }
.modal .row .btn { flex: 1; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* ---------- 大屏：左侧内容，右侧地图 ---------- */
@media (min-width: 900px) {
  .modal-bg { align-items: center; }
  .modal { border-radius: 22px; }
}

.nav-opts { display: grid; gap: 10px; margin-top: 4px; }
.menu-list { display: grid; gap: 10px; }
.menu-list .danger { color: var(--red); }

/* ---------- 路书页：照 Demo 版（左文右图；手机上地图铺满 + 底部抽屉） ---------- */
body.on-trip { background-image: none; }
.rq-trip { --drive: #b44a37; --walk: #397197; --shuttle: #4f875c; --line2: #d8cfbf; min-height: 100dvh; }
.rq-trip button { border: 0; font: inherit; color: inherit; cursor: pointer; background: none; }
.rq-trip button:focus-visible { outline: 3px solid #c48b3a; outline-offset: 2px; }
.rq-trip h1, .rq-trip h2, .rq-trip h3 { font-family: var(--serif); }
.rq-trip .appbar { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: calc(12px + var(--sat)) clamp(18px, 4vw, 48px) 12px; background: rgba(255, 253, 247, 0.94); border-bottom: 1px solid var(--line2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.rq-trip .kicker { margin: 0 0 2px; color: var(--green); font-size: 13px; letter-spacing: 0.1em; }
.rq-trip .appbar h1 { margin: 0; font-size: clamp(22px, 3vw, 29px); letter-spacing: 0.02em; }
.rq-trip .brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green); text-decoration: none; }
.rq-trip .brand i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--green); color: #fffdf5; font-style: normal; font-size: 12px; }
.rq-trip .brand em { font-style: normal; font-weight: 400; opacity: 0.8; }
.rq-trip .actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.rq-trip .badge { padding: 8px 12px; border: 1px solid #a7c2ad; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 13px; white-space: nowrap; }
.rq-trip .btn-o { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line2); border-radius: 10px; background: rgba(255, 253, 247, 0.85); font-size: 14px; white-space: nowrap; color: var(--ink); text-decoration: none; }
.rq-trip .btn-o:hover { border-color: var(--green); background: #fff; }
.rq-trip .btn-p { display: block; min-height: 44px; width: 100%; padding: 11px 15px; border-radius: 10px; background: var(--green); color: #fffdf5; font-weight: 700; text-align: center; text-decoration: none; }
.rq-trip .btn-p:hover { background: #1d4e3e; }

.rq-trip .rail { position: sticky; top: 72px; z-index: 900; display: flex; gap: 8px; overflow-x: auto; padding: 10px clamp(18px, 4vw, 48px); border-bottom: 1px solid var(--line2); background: rgba(244, 239, 227, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); scrollbar-width: none; }
.rq-trip .rail::-webkit-scrollbar { display: none; }
.rq-trip .tab { flex: 1 0 112px; min-height: 48px; padding: 7px 12px; border: 1px solid transparent; border-radius: 11px; text-align: left; }
.rq-trip .tab small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.rq-trip .tab strong { display: block; font-size: 15px; white-space: nowrap; }
.rq-trip .tab:hover { background: rgba(255, 253, 247, 0.7); }
.rq-trip .tab[aria-current=date] { border-color: #9fbeaa; background: var(--green-soft); color: var(--green); }
.rq-trip .tab.ov strong { color: var(--green); }
.rq-trip .dn { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-right: 6px; border-radius: 10px; background: var(--c, #27634e); color: #fffdf5; font: 700 12px/1 Arial, sans-serif; font-style: normal; vertical-align: 1px; box-shadow: 0 0 0 2px rgba(255, 253, 245, 0.9); }
.rq-trip .tab strong .dn { min-width: 17px; height: 17px; font-size: 11px; margin-right: 5px; }

.rq-trip .ws { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); min-height: calc(100dvh - 141px); }
.rq-trip .content { padding: 24px clamp(18px, 3vw, 34px) 42px; border-right: 1px solid var(--line2); background: linear-gradient(180deg, rgba(255, 253, 247, 0.58), rgba(233, 224, 206, 0.34)); }
.rq-trip .grab, .rq-trip .msum { display: none; }
.rq-trip .demo-banner { background: #fff4d6; border: 1px solid #ecd28b; color: #7a5a12; border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.rq-trip .dayhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rq-trip .dk { margin: 0 0 5px; color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.rq-trip .dayhead h2 { margin: 0; font-size: 28px; line-height: 1.2; text-wrap: balance; }
.rq-trip .cond { max-width: 320px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.rq-trip .tbtn { padding: 5px 0; color: var(--green); font-size: 14px; font-weight: 700; white-space: nowrap; min-height: 44px; }
.rq-trip .tbtn:hover { text-decoration: underline; }
.rq-trip .intro { margin: 0 0 16px; font-size: 15px; line-height: 1.75; color: #3d4a45; }
.rq-trip .wx { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.rq-trip .wx b { font-size: 17px; color: var(--ink); font-weight: 700; margin-right: 4px; white-space: nowrap; }
.rq-trip .wsrc { font-size: 12px; color: var(--muted); }
.rq-trip .pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 253, 247, 0.85); color: #485954; font-size: 13px; white-space: nowrap; border: 1px solid #e3dccd; }
.rq-trip .pill.drive { color: var(--drive); } .rq-trip .pill.walk { color: var(--walk); } .rq-trip .pill.shuttle { color: var(--shuttle); }
.rq-trip .stat { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.rq-trip .next { margin-bottom: 24px; padding: 18px; border: 1px solid #b7cbbb; border-radius: 18px; background: linear-gradient(135deg, #e2efe3, #f6f0e1); box-shadow: var(--shadow); }
.rq-trip .nl { margin: 0 0 8px; color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; }
.rq-trip .next h3 { margin: 0; font-size: 24px; }
.rq-trip .nm { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 14px; }
.rq-trip .nn { margin: 0 0 14px; color: #4f5d57; font-size: 14px; line-height: 1.5; }
.rq-trip .sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rq-trip .sh h3 { margin: 0; font-size: 20px; }
.rq-trip .sh span { color: var(--muted); font-size: 13px; }

.rq-trip .tl { margin: 0; padding: 0; list-style: none; }
.rq-trip .it { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 12px; min-height: 58px; cursor: pointer; }
.rq-trip .it::before { content: ""; position: absolute; top: 22px; bottom: -1px; left: 77px; width: 1px; background: #c6c9bb; }
.rq-trip .it.last::before { display: none; }
.rq-trip .tm { padding-top: 3px; color: #6f7871; font-size: 13px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rq-trip .tb { display: flex; align-items: flex-start; gap: 10px; padding: 0 0 12px; }
.rq-trip .dot { flex: none; width: 15px; height: 15px; margin-top: 4px; border: 3px solid var(--paper); border-radius: 50%; background: #263833; box-shadow: 0 0 0 1px #80928a; position: relative; z-index: 1; }
.rq-trip .it.sel .dot { background: var(--green); box-shadow: 0 0 0 4px #cfe2d4; }
.rq-trip .sb { text-align: left; padding: 0; }
.rq-trip .sb strong { display: block; font-size: 16px; }
.rq-trip .sb span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.rq-trip .it.sel .sb strong { color: var(--green); }
.rq-trip .sb .opt { display: inline; margin-left: 6px; font-size: 12px; font-style: normal; font-weight: 400; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 0 4px; min-height: 0; background: none; }
.rq-trip .sb .opt.guess { color: var(--muted); border-color: var(--line2); }
.rq-trip .leg { display: flex; align-items: center; gap: 7px; margin: 0 0 8px 70px; padding: 2px 6px; color: var(--muted); font-size: 13px; }
.rq-trip .leg.lgk { cursor: pointer; border-radius: 8px; }
.rq-trip .leg.lgk:hover { background: rgba(255, 253, 247, 0.8); }
.rq-trip .leg.on { background: var(--green-soft); color: var(--green); }
.rq-trip .ld { flex: none; width: 19px; height: 4px; border-radius: 3px; background: var(--drive); }
.rq-trip .ld.walk { background: var(--walk); } .rq-trip .ld.shuttle { background: var(--shuttle); }
.rq-trip .nav { margin-left: auto; padding: 3px 8px; border: 1px solid #c9d4c9 !important; border-radius: 7px; background: #f9fbf5 !important; color: var(--green) !important; font-size: 13px; text-decoration: none; white-space: nowrap; flex: none; }
.rq-trip .nav:hover { background: var(--green-soft) !important; }

.rq-trip .fold { margin-top: 22px; border-top: 1px solid var(--line2); }
.rq-trip .ft { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 17px 0 12px; text-align: left; min-height: 44px; }
.rq-trip .ft strong { font-family: var(--serif); font-size: 20px; }
.rq-trip .ft span { color: var(--green); font-size: 13px; }
.rq-trip .fi { margin: 0 0 11px; color: var(--muted); font-size: 13px; }
.rq-trip .fl { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rq-trip .fl li { padding: 10px 12px; border: 1px solid #e0d8ca; border-radius: 11px; background: rgba(255, 253, 247, 0.72); font-size: 14px; line-height: 1.5; color: #4f5d57; }
.rq-trip .fl strong { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: 15px; color: var(--ink); }
.rq-trip .fl .price { font-style: normal; font-size: 12px; font-weight: 400; color: var(--gold); }
.rq-trip .fold.closed .fl, .rq-trip .fold.closed .fi { display: none; }
.rq-trip .foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 14px; border-top: 1px dashed var(--line2); text-align: left; }
.rq-trip .note { margin: 18px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

.rq-trip .ovsum { margin-bottom: 24px; padding: 16px 18px; border: 1px solid #b7cbbb; border-radius: 18px; background: linear-gradient(135deg, #e2efe3, #f6f0e1); box-shadow: var(--shadow); }
.rq-trip .ovsum dl { display: grid; gap: 7px; margin: 4px 0 14px; }
.rq-trip .ovsum dl div { display: grid; grid-template-columns: 5.2em 1fr; gap: 8px; font-size: 14px; line-height: 1.45; }
.rq-trip .ovsum dt { color: var(--green); font-weight: 700; }
.rq-trip .ovsum dd { margin: 0; color: #3d4a45; }
.rq-trip .ovb { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.rq-trip .ovb .btn-o { color: var(--green); font-weight: 700; }
.rq-trip .dlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rq-trip .dlist button { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; width: 100%; padding: 6px 8px 6px 4px; border: 1px solid transparent !important; border-radius: 12px; text-align: left; }
.rq-trip .dlist button:hover { border-color: var(--line2) !important; background: rgba(255, 253, 247, 0.8); }
.rq-trip .dvig { display: grid; place-items: center; align-content: center; width: 84px; height: 64px; border-radius: 10px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, #fffdf5), color-mix(in srgb, var(--c) 45%, #efe6d2)); color: color-mix(in srgb, var(--c) 80%, #222); box-shadow: inset 0 0 0 1px rgba(62, 49, 29, 0.08); }
.rq-trip .dvig b { font: 700 24px/1 var(--serif); }
.rq-trip .dvig small { font-size: 11px; margin-top: 3px; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-trip .dd { display: grid; gap: 2px; }
.rq-trip .dd .d1 { font-size: 13px; color: var(--muted); }
.rq-trip .dd .d1 b { margin-left: 6px; font-weight: 400; color: #6d5482; }
.rq-trip .dd strong { font-size: 15px; line-height: 1.3; }
.rq-trip .dd small { font-size: 12.5px; color: #4f5d57; line-height: 1.4; }
.rq-trip .dd em { font-style: normal; font-size: 12.5px; color: var(--drive); }

/* 地图区 */
.rq-trip .mp { position: sticky; top: 141px; height: calc(100dvh - 141px); min-height: 560px; background: #ebe5d6; }
.rq-trip #map { position: absolute; inset: 0; background: #ebe5d6; }
.rq-trip .mp.fs { position: fixed; inset: 0; z-index: 1100; height: 100dvh; }

.rq-trip .mtb { position: absolute; top: 16px; right: 18px; left: 18px; z-index: 500; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; pointer-events: none; }
.rq-trip .mtb > * { pointer-events: auto; }
.rq-trip .mt { padding: 8px 11px; border: 1px solid rgba(211, 204, 189, 0.88); border-radius: 10px; background: rgba(255, 253, 247, 0.9); box-shadow: 0 5px 16px rgba(51, 42, 26, 0.1); }
.rq-trip .mt strong { display: block; font-size: 15px; }
.rq-trip .mt small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.rq-trip .ma { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.rq-trip .ma button { min-height: 40px; padding: 8px 11px; border: 1px solid rgba(211, 204, 189, 0.88); border-radius: 9px; background: rgba(255, 253, 247, 0.92); box-shadow: 0 5px 16px rgba(51, 42, 26, 0.1); font-size: 14px; }
.rq-trip .ma button[aria-pressed=true] { border-color: #8eb49a; background: var(--green-soft); color: var(--green); }
.rq-trip .ma button[data-zoom] { background: var(--green); color: #fffdf5; border-color: var(--green); font-weight: 700; }
.rq-trip .ma button[data-zoom][aria-pressed=false] { background: rgba(255, 253, 247, 0.92); color: var(--green); }
.rq-trip .ma button[hidden] { display: none; }
.rq-trip .legnav { position: absolute; left: 50%; top: 76px; z-index: 600; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid rgba(211, 204, 189, 0.9); border-radius: 12px; background: rgba(255, 253, 247, 0.95); box-shadow: 0 6px 18px rgba(51, 42, 26, 0.14); font-size: 13px; white-space: nowrap; max-width: calc(100% - 24px); }
.rq-trip .legnav[hidden] { display: none; }
.rq-trip .legnav span { padding: 0 8px; overflow: hidden; text-overflow: ellipsis; }
.rq-trip .legnav button { min-width: 36px; min-height: 34px; border-radius: 9px; font-size: 18px; color: var(--green); }
.rq-trip .legnav button:disabled { opacity: 0.3; cursor: default; }
.rq-trip .legnav .all { font-size: 13px; padding: 0 10px; border-left: 1px solid var(--line2) !important; border-radius: 0 9px 9px 0; }
.rq-trip .mlg { position: absolute; left: 18px; bottom: 28px; z-index: 600; max-width: 250px; border: 1px solid rgba(211, 204, 189, 0.9); border-radius: 12px; background: rgba(255, 253, 247, 0.95); box-shadow: 0 6px 18px rgba(51, 42, 26, 0.12); font-size: 13px; }
.rq-trip .lgt { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 34px; padding: 6px 11px; font-weight: 700; }
.rq-trip .lgt em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; }
.rq-trip .lgt span { margin-left: auto; padding-left: 10px; color: var(--green); }
.rq-trip .mlg ul { margin: 0; padding: 0 11px 9px; list-style: none; display: grid; gap: 6px; }
.rq-trip .mlg li { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 6px; color: #45524d; line-height: 1.3; }
.rq-trip .mlg li > .dn, .rq-trip .mlg li > .num, .rq-trip .mlg li > .staymk, .rq-trip .mlg li > .g { justify-self: center; margin: 0; }
.rq-trip .sw { display: flex; gap: 2px; width: 38px; }
.rq-trip .sw i { flex: 1; height: 4px; border-radius: 2px; }
.rq-trip .g.near { color: #c0563a; font-style: normal; }

/* 地图上的标注（Leaflet divIcon / 高德 Marker 都用这些） */
.rq-trip .num, .rq-trip .dmk, .rq-trip .smk, .rq-trip .staymk, .rq-trip .arr, .rq-trip .lbl { position: absolute; left: 0; top: 0; }
.rq-trip .num { transform: translate(-50%, -50%); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #263833; color: #fffdf5; font: 700 12px/1 Arial, sans-serif; box-shadow: 0 0 0 2px #fffdf5, 0 3px 8px rgba(30, 40, 35, 0.3); }
.rq-trip .num.sel { background: var(--green); box-shadow: 0 0 0 2px #fffdf5, 0 0 0 6px rgba(39, 99, 78, 0.28); }
.rq-trip .num.stay { border-radius: 7px; }
.rq-trip .num.mini, .rq-trip .staymk.mini { position: static; transform: none; width: 20px; height: 20px; font-size: 11px; }
.rq-trip .dmk { transform: translate(-50%, -50%); display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; background: var(--c); color: #fffdf5; font: 700 13px/1 Arial, sans-serif; box-shadow: 0 0 0 2.5px #fffdf5, 0 4px 10px rgba(30, 40, 35, 0.3); white-space: nowrap; }
.rq-trip .dmk.dim { filter: grayscale(0.8); opacity: 0.6; }
.rq-trip .smk { transform: translate(-50%, -50%); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #263833; color: #fffdf5; font-size: 12px; font-weight: 700; box-shadow: 0 0 0 2px #fffdf5; }
.rq-trip .staymk { transform: translate(-50%, -135%); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--gold); color: #fffdf5; font-size: 12px; font-weight: 700; box-shadow: 0 0 0 2px #fffdf5, 0 3px 8px rgba(30, 40, 35, 0.25); }
.rq-trip .arr { transform: translate(-50%, -50%) rotate(var(--r)); color: var(--c); width: 16px; height: 16px; filter: drop-shadow(0 0 1.5px #fffdf5) drop-shadow(0 0 1.5px #fffdf5); pointer-events: none; }
.rq-trip .arr svg { display: block; }
.rq-trip .lbl { transform: translate(14px, -50%); white-space: nowrap; color: #3b3a33; font-size: 13px; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 5px #fff; pointer-events: none; }
.rq-trip .lbl.click { pointer-events: auto; cursor: pointer; }
.rq-trip .lbl.city { font-size: 15px; font-weight: 700; color: #24302c; transform: translate(19px, -50%); }
.rq-trip .lbl.stop { transform: translate(17px, -50%); }
.rq-trip .lbl.sight { color: #9b4630; font-weight: 700; }
.rq-trip .lbl.near { transform: translate(-6px, -50%); font-size: 12.5px; }
.rq-trip .lbl .g { font-style: normal; font-size: 10px; margin-right: 4px; vertical-align: 1px; }
.rq-trip .lbl.near .g { color: #c0563a; font-size: 12px; }
.rq-trip .lbl.city .g { display: none; }
.rq-trip .leaflet-container { font-family: var(--kai); }
.rq-trip .leaflet-popup-content { font-size: 14px; line-height: 1.55; }
.rq-trip .pop .nav { display: inline-block; margin-top: 8px; }

/* 平板 */
@media (max-width: 900px) and (min-width: 721px) {
  .rq-trip .ws { grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); }
  .rq-trip .mtb { flex-direction: column; align-items: stretch; }
  .rq-trip .legnav { top: auto; bottom: 22px; }
}

/* 手机：顶栏 52 + 日期栏 54，地图铺满，内容是可拖的底部抽屉 */
@media (max-width: 720px) {
  body.on-trip { overflow: hidden; height: 100%; }
  .rq-trip .appbar { position: fixed; top: 0; left: 0; right: 0; min-height: 0; height: calc(52px + var(--sat)); padding: var(--sat) 12px 0; gap: 8px; }
  .rq-trip .appbar h1 { display: none; }
  .rq-trip .kicker { margin: 0; font-size: 14px; line-height: 1.25; color: var(--ink); max-width: 56vw; }
  .rq-trip .kicker #ktrip { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rq-trip .actions { margin-left: auto; gap: 4px; }
  .rq-trip .badge { display: none; }
  .rq-trip .actions .btn-o { min-height: 34px; padding: 4px 9px; font-size: 13px; }
  .rq-trip .rail { position: fixed; top: calc(52px + var(--sat)); left: 0; right: 0; height: 54px; padding: 5px 10px; gap: 4px; z-index: 900; }
  .rq-trip .tab { flex: 0 0 auto; min-height: 44px; padding: 4px 10px; }
  .rq-trip .tab small { font-size: 11px; margin: 0; }
  .rq-trip .tab strong { font-size: 14px; }
  .rq-trip .ws { display: block; min-height: 0; }
  .rq-trip .mp { position: fixed; top: calc(106px + var(--sat)); left: 0; right: 0; bottom: 0; height: auto; min-height: 0; }
  .rq-trip .mtb { top: 8px; left: 8px; right: 8px; }
  .rq-trip .mt { display: none; }
  .rq-trip .ma { flex-wrap: nowrap; gap: 5px; }
  .rq-trip .ma button { min-height: 36px; padding: 5px 10px; font-size: 13px; }
  .rq-trip .ma [data-fs], .rq-trip .leaflet-control-attribution { display: none; }
  .rq-trip .legnav { top: 52px; }
  .rq-trip .mlg { left: 8px; bottom: calc(var(--pk, 170px) + 10px); max-width: 240px; font-size: 12px; }
  .rq-trip #sheet.content { position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; height: calc(100% - 118px - var(--sat)); padding: 0 16px calc(40px + var(--sab)); border: 0; border-radius: 20px 20px 0 0; background: var(--paper); box-shadow: 0 -10px 34px rgba(40, 35, 20, 0.2); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transform: translateY(calc(100% - var(--peek, 190px))); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .rq-trip #sheet[data-s=half] { transform: translateY(45%); }
  .rq-trip #sheet[data-s=full] { transform: none; }
  .rq-trip #sheet[data-s=peek] { overflow: hidden; }
  .rq-trip .grab { position: sticky; top: 0; z-index: 3; display: block; width: calc(100% + 32px); margin: 0 -16px; height: 24px; background: var(--paper); border-radius: 20px 20px 0 0; touch-action: none; }
  .rq-trip .grab span { display: block; width: 42px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: #cbbfa9; }
  .rq-trip .msum { display: block; touch-action: none; padding-bottom: 12px; }
  .rq-trip .mk1 { display: flex; align-items: center; gap: 2px; margin: 0 0 2px; color: var(--green); font-size: 13px; font-weight: 700; }
  .rq-trip .mov { margin-left: auto; padding: 2px 0; color: var(--green); font-size: 13px; }
  .rq-trip .msum h2 { margin: 0 0 4px; font-size: 21px; line-height: 1.25; }
  .rq-trip .mk2 { margin: 0 0 10px; color: var(--drive); font-size: 13px; }
  .rq-trip .mnext { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #b7cbbb; border-radius: 14px; background: linear-gradient(135deg, #e2efe3, #f6f0e1); }
  .rq-trip .mn { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #263833; color: #fffdf5; font: 700 12px Arial, sans-serif; }
  .rq-trip .mt2 { flex: 1; min-width: 0; }
  .rq-trip .mt2 strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rq-trip .mt2 small { display: block; color: var(--muted); font-size: 12px; }
  .rq-trip .mnav { flex: none; padding: 8px 14px; border-radius: 10px; background: var(--green) !important; color: #fffdf5 !important; font-size: 14px; font-weight: 700; }
  .rq-trip #content .dayhead, .rq-trip #content .next { display: none; }
  .rq-trip .leg { margin-left: 66px; }
  .rq-trip .it { grid-template-columns: 54px 1fr; }
  .rq-trip .it::before { left: 73px; }
  .rq-trip .leaflet-control-zoom { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rq-trip #sheet.content { transition: none; } }
/* 地形模式：地形做底，OSM 以“正片叠底”淡淡叠上道路与地名 */
.rq-trip #map.is-terrain .osm-base { opacity: 0.45; mix-blend-mode: multiply; filter: saturate(0.75) contrast(1.05); }
.rq-trip #map.is-terrain .leaflet-tile-pane { filter: none; }
.rq-trip #map:not(.is-terrain) .leaflet-tile-pane { filter: saturate(0.5) sepia(0.22) contrast(0.94) brightness(1.04); }
.rq-trip .vig { display: grid; grid-template-columns: 47% 1fr; gap: 12px; align-items: center; margin: 0 0 16px; }
.rq-trip .vig img { display: block; width: 100%; height: auto; }
.rq-trip .vig figcaption { display: grid; gap: 4px; font-size: 14px; }
.rq-trip .vig .d1 { font-weight: 700; color: var(--ink); }
.rq-trip .vig small { color: #4f5d57; font-size: 13px; line-height: 1.45; }
.rq-trip .vig .card-btn { justify-self: start; min-height: 32px; font-size: 13px; }
.rq-trip .dimg { display: block; width: 96px; height: auto; }
.share-img { display: block; max-width: 100%; max-height: 62vh; margin: 0 auto; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.modal { max-height: 92dvh; overflow-y: auto; }
@media (max-width: 720px) { .rq-trip .vig { grid-template-columns: 44% 1fr; } }
/* 小数缩放时瓦片之间的细缝 */
.rq-trip .terrain-base img.leaflet-tile { width: 256.6px !important; height: 256.6px !important; }

/* ---------- 想去的地方：逐个添加 ---------- */
.field label.l .l-sub { font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 6px; }
.pl-list { position: relative; display: flex; flex-direction: column; gap: 10px; }
.pl-row { position: relative; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 8px; transition: border-color .15s, box-shadow .15s; }
.pl-row:focus-within { border-color: var(--green); }
.pl-row.locked { border-color: #b9d3c3; background: #fbfdf9; }
.pl-n { flex: none; width: 34px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--green); color: #fff; font: 600 16px/1 var(--sans); user-select: none; -webkit-user-select: none; }
.pl-in { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.field .pl-in input[type="text"] { border: 0; background: transparent; min-height: 44px; padding: 8px 2px; font-size: 17px; border-radius: 0; }
.pl-area { font-size: 12px; color: var(--green); margin: -6px 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-del { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; }
.pl-del:active { background: var(--paper-deep); }
.pl-add { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 10px; border-radius: 14px; border: 1.5px dashed var(--green); background: var(--green-soft); color: var(--green); font-size: 17px; font-weight: 600; }
.pl-add:active { filter: brightness(.95); }
.pl-add.hidden, .pl-chips.hidden { display: none; }
.pl-row:has(.pl-sug) { z-index: 20; }
.hint-chips .hc-l { font-size: 13px; color: var(--muted); align-self: center; }
.pl-sug { position: absolute; left: -1.5px; right: -1.5px; top: calc(100% + 6px); z-index: 20; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; max-height: 50vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pl-sug button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 11px 14px; min-height: 52px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); }
.pl-sug button:active { background: var(--green-soft); }
.pl-sug button b { font-size: 16px; font-weight: 600; }
.pl-sug button small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pl-sug-tip { padding: 10px 14px; font-size: 13px; color: var(--muted); }
