[hidden] { display: none !important; }
:root {
  --ink: #1f2d2f;
  --muted: #6b7b7d;
  --line: #e2e8e7;
  --bg: #eef2f1;
  --card: #fbfcfc;
  --brand: #2f5d62;
  --brand-2: #4b7f84;
  --accent: #c0563b;
  --warn-bg: #fbf3e6;
  --warn: #9a6a1c;
  --ok-bg: #dcefe8;
  --ok: #2b6b55;
  --radius: 14px;
  --tabs-h: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 16px);
}
button { font: inherit; color: inherit; }
.top {
  background: linear-gradient(135deg, #2f5d62, #4b7f84);
  color: #fff; padding: calc(14px + env(safe-area-inset-top)) 18px 18px;
}
.top-title { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.top-sub { font-size: 13px; opacity: .85; margin-top: 2px; }
.view { padding: 14px 14px 0; max-width: 680px; margin: 0 auto; }
.wechat-tip { background: #fff4d6; color: #7a5a12; font-size: 13px; padding: 8px 14px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.card h2 { margin: 0 0 4px; font-size: 18px; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.section-title { font-size: 13px; color: var(--muted); letter-spacing: 1px; margin: 18px 4px 8px; }

.day-head { display: flex; align-items: baseline; gap: 10px; }
.day-no { font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1; }
.day-date { color: var(--muted); font-size: 14px; }

.stop { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.stop:first-of-type { border-top: 0; }
.stop-time { color: var(--brand-2); font-weight: 600; font-size: 14px; padding-top: 1px; }
.stop-title { font-weight: 600; }
.stop-desc { color: #4a5a5c; font-size: 14px; margin-top: 3px; }
.stop.now { background: #e6f1ef; margin: 0 -16px; padding: 12px 16px; border-radius: 10px; border-top-color: transparent; }
.stop.past .stop-title, .stop.past .stop-time { color: #9aa7a8; }

.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; margin-right: 4px; background: var(--ok-bg); color: var(--ok); }
.tag.must { background: #f6dcd4; color: var(--accent); }

.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn { border: 0; border-radius: 10px; padding: 10px 14px; font-size: 15px; font-weight: 600; background: #e4ecea; color: var(--brand); cursor: pointer; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.big { width: 100%; padding: 16px; font-size: 17px; border-radius: 12px; }
.btn.warn { background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.btn:active { transform: scale(.98); }

.next { background: var(--brand); color: #fff; border: 0; }
.next .muted { color: rgba(255,255,255,.8); }
.next .btn.primary { background: #fff; color: var(--brand); }

.warn-box { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 10px; }
.ok-box { background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 10px; }
.tips { margin: 8px 0 0; padding-left: 18px; color: #4a5a5c; font-size: 14px; }

.charge-row { padding: 10px 0; border-top: 1px solid var(--line); }
.charge-row:first-child { border-top: 0; }
.charge-role { font-size: 12px; color: var(--brand-2); font-weight: 700; }
.charge-name { font-weight: 600; }

.hotel { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.hotel:first-child { border-top: 0; }
.hotel .grow { flex: 1; }
.hotel.chosen .charge-name::after { content: " ✓ 我们住这家"; color: var(--ok); font-size: 13px; }

.daypick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; }
.daypick button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.daypick button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

label.field { display: block; margin: 12px 0 4px; font-size: 14px; color: var(--muted); }
select, input[type=text], input[type=password], textarea {
  width: 100%; font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid #cfd9d8; background: #fff; color: var(--ink);
}
textarea { min-height: 70px; resize: vertical; }
.file-pick { display: block; border: 2px dashed #b9cbc9; border-radius: 12px; padding: 18px; text-align: center; color: var(--brand); font-weight: 600; margin-top: 12px; }
.file-pick input { display: none; }
.preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.feed-item { padding: 12px 0; border-top: 1px solid var(--line); }
.feed-item:first-child { border-top: 0; }
.feed-meta { font-size: 13px; color: var(--muted); }
.feed-note { margin: 4px 0; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #dfe7e6; }

.check-item { display: flex; gap: 10px; padding: 7px 0; font-size: 15px; align-items: flex-start; }
.check-item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.check-item.done span { color: #9aa7a8; text-decoration: line-through; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: rgba(251,252,252,.97);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(8px); z-index: 10;
}
.tabs button { flex: 1; border: 0; background: none; height: var(--tabs-h); font-size: 12px; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tabs button span { font-size: 21px; }
.tabs button.active { color: var(--brand); font-weight: 700; }

.queue-bar { position: fixed; left: 10px; right: 10px; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 8px); background: #1f2d2f; color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; z-index: 11; }
.queue-bar button { background: #fff; color: #1f2d2f; border: 0; border-radius: 8px; padding: 6px 10px; font-weight: 600; }

.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20; display: flex; align-items: flex-end; }
.sheet-body { background: #fff; width: 100%; max-height: 88vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
.sheet-body h3 { margin: 0 0 8px; }
.sheet-body ol { padding-left: 20px; margin: 8px 0; }
.sheet-body li { margin: 6px 0; }
.photo-view { position: fixed; inset: 0; background: #000; z-index: 30; display: flex; align-items: center; justify-content: center; }
.photo-view img { max-width: 100%; max-height: 100%; }

.toast { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); background: #1f2d2f; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 40; font-size: 14px; max-width: 90vw; }

.login { max-width: 420px; margin: 40px auto; }
.offline-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f0b429; margin-right: 6px; }
