:root {
  color-scheme: light;
  --bg: #f6f4f0;
  --surface: #fffdf9;
  --surface-muted: #f1eee8;
  --ink: #243139;
  --muted: #7d8787;
  --line: rgba(36, 49, 57, 0.1);
  --shadow: 0 18px 40px rgba(36, 49, 57, 0.08);
  --shadow-soft: 0 8px 22px rgba(36, 49, 57, 0.06);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 13px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; background: radial-gradient(circle at top right, color-mix(in srgb, var(--accent-soft) 45%, transparent), transparent 30rem), var(--bg); color: var(--ink); min-height: 100vh; }
button, input, textarea { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; }

.app-frame { width: min(100%, 760px); margin: 0 auto; min-height: 100vh; padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 10; padding: max(14px, env(safe-area-inset-top)) 18px 12px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); }
.date-nav { display: flex; min-width: 0; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.date-nav::-webkit-scrollbar { display: none; }
.date-tab { flex: 0 0 auto; display: grid; gap: 1px; min-width: 66px; padding: 7px 9px 8px; border-radius: 13px; background: transparent; color: var(--muted); text-align: left; transition: 180ms ease; }
.date-tab span { font-size: 14px; font-weight: 750; letter-spacing: -0.03em; }
.date-tab small { font-size: 10px; }
.date-tab.is-active { background: var(--accent); color: #fffdf9; box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 25%, transparent); }
.more-button { width: 28px; color: var(--muted); background: transparent; letter-spacing: 0.15em; font-size: 12px; }

.main-content { padding: 10px 18px 0; }
.day-card { padding: 22px 21px 18px; border: 1px solid rgba(255, 255, 255, 0.65); border-radius: var(--radius-lg); background: linear-gradient(145deg, color-mix(in srgb, var(--accent-soft) 90%, #fffdf9), #fffdf9 80%); box-shadow: var(--shadow-soft); }
.day-card-top, .section-heading, .timeline-card-top, .day-stats, .setting-card, .row-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.date-label, .section-kicker { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.day-pill { padding: 6px 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.78); color: var(--accent); font-size: 11px; font-weight: 700; }
.day-intro { max-width: 30rem; margin: 23px 0 18px; font-family: Georgia, "Songti SC", serif; font-size: clamp(20px, 5.7vw, 28px); line-height: 1.35; letter-spacing: -0.04em; }
.day-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.day-tags span { padding: 7px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.8); color: var(--muted); font-size: 11px; }
.day-stats { justify-content: flex-start; flex-wrap: wrap; margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.day-stats strong { color: var(--ink); font-size: 14px; }

.map-section, .timeline-section, .attractions-view, .me-view { margin-top: 33px; }
.section-heading { margin-bottom: 13px; align-items: end; }
.section-heading h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -0.05em; }
.map-note { color: var(--muted); font-size: 11px; }
.map-card { position: relative; aspect-ratio: 1.6; overflow: hidden; border-radius: var(--radius-lg); background: #cddcf1; box-shadow: var(--shadow); isolation: isolate; }
.map-image { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 60%; filter: saturate(0.85) contrast(0.94); }
.map-wash { position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--map-accent) 7%, transparent), transparent 60%), linear-gradient(0deg, rgba(255, 253, 249, 0.08), transparent 35%); pointer-events: none; }
.map-label { position: absolute; color: rgba(36, 49, 57, 0.42); font-family: Georgia, serif; font-size: 12px; font-style: italic; pointer-events: none; }
.label-city { left: 22%; top: 69%; }.label-laoshan { right: 15%; top: 30%; }.label-sea { left: 50%; bottom: 14%; color: rgba(36, 83, 127, 0.42); }
.map-route { position: absolute; left: 25%; top: 26%; width: 45%; height: 55%; border-left: 1px dashed color-mix(in srgb, var(--map-accent) 40%, transparent); border-bottom: 1px dashed color-mix(in srgb, var(--map-accent) 40%, transparent); border-radius: 0 0 0 70%; opacity: 0.55; pointer-events: none; }
.map-pin { position: absolute; z-index: 2; display: grid; grid-template-columns: 23px auto; align-items: center; gap: 4px; max-width: 118px; padding: 0; background: transparent; transform: translate(-50%, -50%); text-align: left; }
.map-pin span { width: 23px; height: 23px; display: grid; place-items: center; border: 3px solid rgba(255, 253, 249, 0.9); border-radius: 50%; background: var(--map-accent); color: #fff; box-shadow: 0 4px 10px rgba(36, 49, 57, 0.18); font-size: 9px; font-weight: 800; transition: 180ms ease; }
.map-pin b { display: block; max-width: 82px; overflow: hidden; color: #fff; text-shadow: 0 1px 5px rgba(24, 36, 42, 0.66); font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.map-pin.is-active span { width: 29px; height: 29px; border-width: 4px; background: var(--ink); transform: scale(1.12); }.map-pin.is-done span { background: #82a17d; }
.map-scale { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,0.76); color: rgba(36,49,57,.62); font-size: 9px; backdrop-filter: blur(5px); }.map-scale i { width: 22px; height: 4px; display: block; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }

.timeline { position: relative; padding: 2px 0 12px; }.timeline::before { content: ""; position: absolute; left: 74px; top: 10px; bottom: 10px; width: 1px; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.timeline-item { position: relative; display: grid; grid-template-columns: 54px 40px 1fr; gap: 0; min-height: 103px; }.time-col { padding-top: 16px; color: var(--muted); font-size: 11px; line-height: 1.3; text-align: right; }.timeline-dot { z-index: 1; width: 17px; height: 17px; margin: 16px auto 0; display: grid; place-items: center; border: 4px solid var(--bg); border-radius: 50%; background: var(--accent); color: #fff; font-size: 8px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }.timeline-dot.meal-dot { background: #c4a77d; }.timeline-card { position: relative; margin: 6px 0 11px; padding: 14px 14px 12px; border: 1px solid transparent; border-radius: var(--radius-md); background: rgba(255, 253, 249, 0.8); transition: 160ms ease; }.timeline-card:hover, .timeline-item.is-active .timeline-card { border-color: color-mix(in srgb, var(--accent) 22%, transparent); background: #fffdf9; box-shadow: var(--shadow-soft); }.timeline-card h3 { margin: 8px 0 4px; font-size: 15px; letter-spacing: -0.04em; }.timeline-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.item-kind { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; }.done-check { position: relative; width: 20px; height: 20px; display: block; }.done-check input { position: absolute; opacity: 0; }.done-check span { width: 18px; height: 18px; display: block; border: 1px solid rgba(36,49,57,.2); border-radius: 50%; background: #fffdf9; }.done-check input:checked + span { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px #fffdf9; }.is-completed .timeline-card h3 { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); }.text-action { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; padding: 0; background: transparent; color: var(--accent); font-size: 11px; font-weight: 750; }.text-action span { font-size: 14px; }.meal-card { background: color-mix(in srgb, var(--accent-soft) 36%, #fffdf9); border-style: dashed; border-color: color-mix(in srgb, var(--accent) 16%, transparent); }

.spot-list { display: grid; gap: 11px; }.spot-row { display: grid; grid-template-columns: 84px 1fr; gap: 13px; padding: 10px; border-radius: var(--radius-md); background: rgba(255,253,249,.8); box-shadow: 0 4px 14px rgba(36,49,57,.04); }.spot-thumb, .detail-hero { position: relative; overflow: hidden; border-radius: 15px; background: #cfded8; }.spot-thumb { min-height: 86px; }.spot-thumb::before, .detail-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.13), transparent 42%, rgba(19,34,38,.22)); }.spot-thumb span { position: absolute; left: 9px; bottom: 8px; color: #fff; font-size: 9px; font-weight: 700; }.spot-row-body { min-width: 0; padding: 4px 3px 2px 0; }.spot-row h3 { margin: 0 0 5px; font-size: 14px; letter-spacing: -0.04em; }.spot-row p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.alternatives-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 3px 3px; color: var(--ink); font-size: 13px; font-weight: 800; }.alternatives-heading small { color: var(--muted); font-size: 10px; font-weight: 500; }.add-action { margin-top: 12px; padding: 7px 9px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 800; }.empty-state { padding: 26px; border-radius: var(--radius-md); background: var(--surface-muted); color: var(--muted); text-align: center; font-size: 12px; }

.profile-card { display: flex; align-items: center; gap: 16px; padding: 24px 21px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #23343c)); color: #fffdf9; box-shadow: var(--shadow); }.profile-mark { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 18px; font-family: Georgia, serif; font-size: 28px; }.profile-card .section-kicker { color: rgba(255,255,255,.72); }.profile-card h2 { margin: 5px 0 3px; font-size: 21px; letter-spacing: -0.05em; }.profile-card p { margin: 0; color: rgba(255,255,255,.72); font-size: 11px; }.setting-card { margin-top: 12px; padding: 17px 18px; border-radius: var(--radius-md); background: rgba(255,253,249,.8); }.setting-card span { font-size: 13px; font-weight: 750; }.setting-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.status-dot { color: #658f71 !important; font-size: 11px !important; }.theme-swatch { width: 33px; height: 18px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); }.reset-button { width: 100%; margin-top: 25px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: transparent; color: var(--muted); font-size: 11px; }

.bottom-nav { position: fixed; z-index: 15; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, 760px); margin: 0 auto; padding: 10px 18px max(10px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(36,49,57,.07); background: rgba(255,253,249,.9); backdrop-filter: blur(18px); }.nav-item { display: grid; justify-items: center; gap: 3px; padding: 3px; background: transparent; color: #a0a5a2; }.nav-item span { height: 20px; font-size: 21px; line-height: 1; }.nav-item small { font-size: 10px; font-weight: 700; }.nav-item.is-active { color: var(--accent); }

.sheet-layer { position: fixed; z-index: 30; inset: 0; display: flex; align-items: end; }.sheet-backdrop { position: absolute; inset: 0; background: rgba(25,35,37,.38); backdrop-filter: blur(3px); }.bottom-sheet { position: relative; z-index: 1; width: min(100%, 760px); max-height: min(88vh, 720px); overflow-y: auto; padding: 13px 18px max(26px, env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: #fffdf9; box-shadow: 0 -12px 40px rgba(24,33,37,.18); animation: sheet-in 220ms ease-out; }.sheet-handle { width: 38px; height: 4px; margin: 0 auto 14px; border-radius: 99px; background: #d7d4ce; }.sheet-close { position: absolute; top: 17px; right: 18px; width: 29px; height: 29px; border-radius: 50%; background: rgba(36,49,57,.08); color: var(--muted); font-size: 20px; line-height: 1; }.detail-hero { height: 152px; padding: 17px; display: flex; flex-direction: column; justify-content: end; color: #fff; }.detail-hero span { position: relative; z-index: 1; margin-bottom: 5px; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; opacity: .82; }.detail-hero h2 { position: relative; z-index: 1; margin: 0; font-size: 23px; letter-spacing: -0.05em; }.detail-body { padding: 16px 3px 0; }.detail-subtitle { margin: 0 0 18px; color: var(--muted); font-size: 12px; }.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; margin: 0; padding: 0 0 17px; border-bottom: 1px solid var(--line); }.detail-grid div { min-width: 0; }.detail-grid dt, .detail-block > span, .note-field > span, .meal-form label > span { margin-bottom: 5px; color: var(--muted); font-size: 10px; }.detail-grid dd { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.45; }.detail-block { padding: 15px 0 0; }.detail-block p { margin: 6px 0 0; color: var(--ink); font-size: 12px; line-height: 1.55; }.caution p { color: #8b614f; }.note-field, .meal-form label { display: grid; gap: 5px; margin-top: 18px; }.note-field textarea, .meal-form input, .meal-form textarea { width: 100%; resize: vertical; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: #f8f6f1; color: var(--ink); font-size: 12px; line-height: 1.5; }.note-field textarea:focus, .meal-form input:focus, .meal-form textarea:focus { border-color: color-mix(in srgb, var(--accent) 48%, transparent); box-shadow: 0 0 0 3px var(--accent-soft); }.primary-button { width: 100%; margin-top: 18px; padding: 13px; border-radius: 13px; background: var(--accent); color: #fffdf9; font-size: 12px; font-weight: 800; }.meal-edit-head { display: flex; align-items: center; gap: 13px; padding: 9px 3px 3px; }.meal-badge { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: var(--accent-soft); color: var(--accent); font-size: 17px; font-weight: 800; }.meal-edit-head h2 { margin: 5px 0 2px; font-size: 23px; letter-spacing: -0.05em; }.meal-edit-head p { margin: 0; color: var(--muted); font-size: 11px; }.meal-form { padding-top: 18px; }

.photo-beer { background: linear-gradient(145deg, #dd9a4a 0 28%, #7c381f 29% 57%, #e4be77 58%); }.photo-hill { background: linear-gradient(155deg, #b8573b 0 25%, #d9a67f 26% 43%, #5d7780 44% 100%); }.photo-architecture { background: linear-gradient(145deg, #d2a66d 0 28%, #b54d38 29% 64%, #514e4a 65%); }.photo-sea, .photo-sunset { background: linear-gradient(150deg, #5c9db1 0 38%, #e4b67e 39% 57%, #274f60 58%); }.photo-night { background: linear-gradient(155deg, #354967 0 45%, #cd7152 46% 64%, #202a34 65%); }.photo-mountain { background: linear-gradient(145deg, #77a9b6 0 33%, #4d7c83 34% 56%, #dae4dd 57%); }.photo-mountain-light { background: linear-gradient(145deg, #b4d4d8 0 42%, #6f9a86 43% 65%, #dce9df 66%); }.photo-coast, .photo-beach { background: linear-gradient(150deg, #9fd0dc 0 45%, #d9c69c 46% 65%, #397389 66%); }.photo-navy { background: linear-gradient(145deg, #274f70 0 32%, #6b96ab 33% 64%, #d5d0b9 65%); }.photo-green { background: linear-gradient(145deg, #739776 0 35%, #d9c998 36% 57%, #2d5960 58%); }.photo-sailing { background: linear-gradient(145deg, #85b7c5 0 36%, #e0c28b 37% 51%, #2e607b 52%); }

@keyframes sheet-in { from { transform: translateY(22px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 720px) { .main-content { padding-right: 24px; padding-left: 24px; }.topbar { padding-right: 24px; padding-left: 24px; }.bottom-nav { border-right: 1px solid rgba(36,49,57,.07); border-left: 1px solid rgba(36,49,57,.07); border-radius: 18px 18px 0 0; } }

.spot-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.detail-gallery { position: relative; display: flex; height: 210px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 15px; background: #cfded8; }
.detail-gallery::-webkit-scrollbar { display: none; }
.detail-gallery img { flex: 0 0 100%; width: 100%; height: 100%; display: block; object-fit: cover; scroll-snap-align: start; }
.detail-gallery::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.12), transparent 42%, rgba(19,34,38,.28)); pointer-events: none; }
.detail-gallery-title { position: absolute; z-index: 2; right: 17px; bottom: 16px; left: 17px; color: #fff; text-shadow: 0 2px 9px rgba(19,34,38,.7); pointer-events: none; }
.detail-gallery-title h2 { margin: 0 0 4px; font-size: 23px; letter-spacing: -0.05em; }
.detail-gallery-title span { font-size: 10px; opacity: .84; }
.gallery-count { position: absolute; z-index: 2; top: 12px; right: 12px; padding: 6px 8px; border-radius: 99px; background: rgba(18,28,32,.45); color: #fff; font-size: 10px; }
.detail-gallery { display: block; overflow: hidden; }
.gallery-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-control { position: absolute; z-index: 4; top: 50%; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.52); border-radius: 50%; background: rgba(18,28,32,.34); color: #fff; font-size: 25px; line-height: 1; transform: translateY(-50%); }
.gallery-prev { left: 10px; }.gallery-next { right: 10px; }
.detail-gallery-title { z-index: 3; }
.day-highlight-strip { display: flex; gap: 8px; margin-top: 17px; overflow: hidden; }
.day-highlight { position: relative; flex: 1; min-width: 0; height: 78px; overflow: hidden; border-radius: 14px; background: #ccdcd9; }
.day-highlight:first-child { flex: 1.45; }
.day-highlight img { width: 100%; height: 100%; display: block; object-fit: cover; }
.day-highlight::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,34,36,.55), transparent 65%); pointer-events: none; }
.day-highlight span { position: absolute; z-index: 1; right: 8px; bottom: 7px; left: 8px; overflow: hidden; color: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 5px rgba(0,0,0,.45); }
.transport-times { display: grid; gap: 5px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.transport-times div { display: grid; grid-template-columns: 43px 1fr 18px 1fr; align-items: center; gap: 4px; }
.transport-times span { color: var(--accent); font-size: 10px; font-weight: 800; }
.transport-times strong { font-size: 13px; letter-spacing: -0.03em; }
.transport-times i { color: var(--muted); font-size: 14px; font-style: normal; text-align: center; }
.transport-image-frame { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #f7f6f2; }
.transport-image { width: 100%; max-height: 150px; display: block; object-fit: contain; }
