/* 山海行记 · 网页版。沿用「山海之间」旅行杂志风格：纸面留白、松绿、宋体标题 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;600&display=swap");

:root {
  --paper: #fafaf7;
  --white: #fff;
  --ink: #263c34;
  --muted: #68736b;
  --forest: #234c3e;
  --dark: #163a2c;
  --pale: #eef1e9;
  --pale2: #e8eee3;
  --line: #dde2d8;
  --ochre: #b99053;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --num: Georgia, "Times New Roman", serif;
  /* 六种出行类型的点缀色（与小程序一致） */
  --st-family: #d08a1e;
  --st-elder: #b4683c;
  --st-duo: #b0566b;
  --st-solo: #6a5a9c;
  --st-rush: #3d6fa8;
  --st-quiet: #4f8a63;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html, body { background: var(--paper); }
body { margin: 0; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: 0.6; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h1, h2 { font-family: var(--serif); }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 4px;
}
::selection { background: #c9d8c5; color: #15352a; }

/* ── 页眉 ── */
.header {
  height: 88px;
  max-width: 1536px;
  margin: auto;
  padding: 0 4.3%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand > svg { color: var(--forest); }
.brand > span { font-family: var(--serif); font-size: 22px; letter-spacing: 0.16em; line-height: 1.3; }
.brand small { display: block; font: 8px var(--sans); letter-spacing: 0.17em; margin-top: 6px; color: #606e64; }
.nav { display: flex; gap: 34px; font-size: 13px; }
.nav a { padding: 8px 0; position: relative; white-space: nowrap; }
.nav a.active::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  width: 14px; height: 2px; background: var(--forest); transform: translateX(-50%);
}
.header-cta { font-size: 12px; border: 1px solid var(--line); padding: 8px 16px; border-radius: 3px; white-space: nowrap; }
.header-cta:hover { border-color: var(--forest); }

/* ── 首页大图 ── */
.hero { position: relative; height: 540px; margin: 0 2%; overflow: hidden; color: #fff; background: #355446; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 30, 22, 0.67), rgba(8, 30, 22, 0.12) 68%, rgba(8, 30, 22, 0.02)),
    linear-gradient(0deg, rgba(4, 25, 16, 0.42), transparent 50%);
}
.hero-copy { position: absolute; top: 14%; left: 7%; max-width: 650px; right: 7%; }
.hero-copy h1 { font-size: 56px; line-height: 1.4; letter-spacing: 0.04em; color: #fff; }
.hero-copy p { font-size: 14px; line-height: 2.05; color: #f6faf3; margin-top: 22px; letter-spacing: 0.035em; }
.hero-link {
  display: inline-flex; gap: 34px; align-items: center; margin-top: 30px; font-size: 13px;
  border-bottom: 1px solid #c0cdbd; padding-bottom: 9px; transition: gap 0.2s;
}
.hero-link:hover { gap: 44px; }
.hero-caption {
  position: absolute; left: 7%; right: 4%; bottom: 66px; display: flex; gap: 7px; align-items: center;
  font-size: 10px; letter-spacing: 0.07em; color: #eef3e9;
}
.hero-caption > span:last-child { margin-left: auto; letter-spacing: 0.15em; font-family: var(--num); }

/* ── 快速开始条 ── */
.quick {
  position: relative; width: 85%; max-width: 1230px; margin: -46px auto 0; background: #fff;
  border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 0.8fr auto; z-index: 2;
}
.quick label { display: block; padding: 20px 26px 18px; border-right: 1px solid var(--line); min-width: 0; }
.quick label > span { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.quick input, .quick select {
  width: 100%; border: 0; background: transparent; padding: 6px 0 0; font-family: var(--serif); font-size: 19px; outline: none;
}
.quick input::placeholder { color: #a9b2aa; }
.quick .button { border-radius: 0; height: 100%; padding: 0 34px; }

/* ── 区块 ── */
.section { width: 85%; max-width: 1230px; margin: 0 auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { font-size: 28px; letter-spacing: 0.02em; }
.section-heading p { margin-top: 10px; color: var(--muted); font-size: 12px; }
.subtle-note { font-size: 10px; letter-spacing: 0.08em; color: var(--muted); padding-bottom: 5px; }
.pad-top { padding-top: 72px; }
.pad-bottom { padding-bottom: 64px; }

/* 六种出行类型 */
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.persona {
  border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent;
  text-align: left; padding: 26px 28px 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0;
  transition: background 0.2s; position: relative;
}
.persona:hover { background: var(--pale); }
.persona.selected { background: #fff; }
.persona.selected::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--forest)); }
.persona-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.persona h3 { font-family: var(--serif); font-size: 21px; letter-spacing: 0.04em; }
.persona .who { font-size: 11px; color: var(--c, var(--muted)); letter-spacing: 0.06em; }
.persona p { font-size: 12px; color: var(--muted); line-height: 1.85; }
.persona .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.st-family { --c: var(--st-family); }
.st-elder { --c: var(--st-elder); }
.st-duo { --c: var(--st-duo); }
.st-solo { --c: var(--st-solo); }
.st-rush { --c: var(--st-rush); }
.st-quiet { --c: var(--st-quiet); }

/* 目的地 */
.city-feature { display: grid; grid-template-columns: 1.15fr 1.15fr 0.85fr; gap: 24px; }
.photo-card { background: none; border: 0; padding: 0; text-align: left; min-width: 0; }
.photo { position: relative; aspect-ratio: 1.37; overflow: hidden; background: #c9d3c6; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1); }
.photo-card:hover img { transform: scale(1.035); }
.photo::after { position: absolute; content: ""; inset: 60% 0 0; background: linear-gradient(transparent, rgba(0, 20, 10, 0.4)); }
.photo span { position: absolute; bottom: 14px; left: 18px; color: #fff; font-size: 10px; letter-spacing: 0.08em; z-index: 1; }
.caption { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; gap: 10px; }
.caption h3 { font-family: var(--serif); font-size: 23px; }
.caption p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.essay {
  background: var(--pale2); border: 0; text-align: left; padding: 27px 26px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 330px; min-width: 0;
}
.essay-top { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; letter-spacing: 0.15em; }
.essay h3 { font-family: var(--serif); font-size: 29px; line-height: 1.6; margin-top: 22px; position: relative; z-index: 1; }
.essay p { margin-top: auto; font-size: 11px; line-height: 1.9; position: relative; z-index: 1; }
.essay small { font-size: 9px; letter-spacing: 0.06em; color: #52664f; }
.contour { position: absolute; bottom: 56px; right: -30px; width: 100%; height: 90px; opacity: 0.27; }
.contour path { fill: none; stroke: #68845c; stroke-width: 1; }

.city-list { margin-top: 42px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 28px; }
.province { border-top: 1px solid var(--line); padding: 12px 0 16px; break-inside: avoid; }
.province > b { display: block; font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 6px; }
.province > div { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-left: -9px; }
.city-chip {
  border: 1px solid transparent; background: transparent; padding: 3px 9px; border-radius: 2px; font-size: 14px;
  font-family: var(--serif); display: inline-flex; align-items: center; gap: 6px;
}
.city-chip:hover { background: var(--pale); }
.city-chip.ready::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #69855b; }
.legend { display: flex; gap: 18px; font-size: 11px; color: var(--muted); margin-top: 14px; align-items: center; flex-wrap: wrap; }
.legend i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #69855b; margin-right: 6px; vertical-align: middle; }

/* 承诺块 */
.promise { background: #edf0e7; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 50px 60px; margin-bottom: 74px; }
.promise h2 { font-size: 29px; line-height: 1.65; margin-top: 18px; }
.promise .button { margin-top: 26px; }
.promise-list { display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.promise-list > div { display: flex; gap: 18px; }
.promise-list > div > svg { margin-top: 4px; color: #5c745a; }
.promise-list h3 { font-size: 14px; font-weight: 600; }
.promise-list p { font-size: 12px; color: #626f60; line-height: 1.8; margin-top: 5px; }

/* 按钮 */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px; background: var(--forest); color: #fff;
  border: 1px solid transparent; padding: 13px 22px; border-radius: 3px; line-height: 1.6; font-size: 13px; transition: background 0.2s;
}
.button:hover { background: var(--dark); }
.button.secondary { background: transparent; border-color: #cdd6c9; color: var(--forest); }
.button.secondary:hover { background: #edf1e8; }
.button.compact { padding: 8px 15px; gap: 9px; font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; border: 0; background: none; padding: 0; color: var(--forest); text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; border: 0; background: none; padding: 0; }
.back-link:hover { color: var(--forest); }

/* 页脚 */
.footer { border-top: 1px solid var(--line); padding: 30px 7.5%; display: flex; justify-content: space-between; gap: 24px; font-size: 11px; color: #647062; }
.footer-brand { font-family: var(--serif); font-size: 18px; letter-spacing: 0.1em; }
.footer-brand span { display: block; font: 11px var(--sans); letter-spacing: 0; margin-top: 8px; }
.footer > div:last-child { text-align: right; line-height: 1.9; }
.dot-live { display: inline-block; width: 5px; height: 5px; background: #69855b; border-radius: 50%; margin-right: 7px; vertical-align: middle; }

/* ── 普通页 ── */
.page { width: 85%; max-width: 1200px; margin: 0 auto; padding-bottom: 80px; }
.page-head { padding: 36px 0 30px; }
.page-head h1 { font-size: 37px; line-height: 1.5; margin-top: 30px; letter-spacing: 0.025em; }
.page-head p { font-size: 13px; color: var(--muted); line-height: 1.95; margin-top: 14px; max-width: 560px; }

/* 定制表单 */
.create { display: grid; grid-template-columns: 32% 1fr; gap: 9%; padding-top: 30px; }
.aside h1 { font-size: 36px; line-height: 1.6; margin-top: 40px; letter-spacing: 0.025em; }
.aside > p { font-size: 13px; color: var(--muted); line-height: 1.95; margin-top: 18px; max-width: 320px; }
.aside-photo { height: 280px; position: relative; margin-top: 36px; overflow: hidden; }
.aside-photo img { width: 100%; height: 100%; object-fit: cover; }
.aside-note { display: flex; gap: 12px; margin-top: 24px; font-size: 12px; color: var(--muted); line-height: 1.85; }
.aside-note svg { margin-top: 3px; color: #5c745a; }
.form { background: #fff; padding: 34px 38px; }
.form-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.form-title h2 { font-size: 24px; }
.small-tag { display: inline-block; background: #edf1e8; color: #496044; border-radius: 2px; padding: 3px 10px; font-size: 11px; white-space: nowrap; }
.field { margin-bottom: 24px; }
.field > label, .field > .label { display: flex; gap: 10px; align-items: baseline; font-size: 13px; margin-bottom: 10px; }
.field > label em, .field > .label em { font-style: normal; font-family: var(--num); color: var(--ochre); font-size: 13px; }
.field small { font-size: 11px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input, textarea.input {
  width: 100%; border: 1px solid #dce1d5; background: #fdfdfa; padding: 11px 12px; border-radius: 3px; font-size: 14px; outline: none;
}
.input:focus { background: #fff; border-color: #9fb19d; }
textarea.input { resize: vertical; min-height: 76px; line-height: 1.7; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 3px; font-size: 13px; min-height: 38px;
  display: inline-flex; align-items: center; gap: 8px;
}
.choice:hover { border-color: #9fb19d; }
.choice.selected { background: #eff3e8; border-color: #5a7654; color: var(--forest); }
.choice .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.style-hint { font-size: 12px; color: var(--muted); line-height: 1.85; margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--c, var(--line)); }
.form-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.form-submit p { font-size: 12px; color: var(--muted); line-height: 1.8; max-width: 380px; }
.form-submit p b { color: var(--forest); font-weight: 600; }
.error-box { background: #fbefe8; color: #8a3b22; padding: 11px 14px; font-size: 12px; margin-top: 16px; border-radius: 3px; line-height: 1.8; }

/* 生成中 */
.planning { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.planning h1 { font-size: 30px; margin-top: 30px; }
.planning p { color: var(--muted); font-size: 13px; margin-top: 12px; line-height: 1.9; }
.seal { width: 92px; height: 92px; margin: auto; color: var(--forest); animation: spin 20s linear infinite; }
.steps { margin: 26px auto 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); text-align: left; width: max-content; max-width: 100%; }
.steps span.on { color: var(--forest); }
@keyframes spin { to { transform: rotate(360deg); } }

/* 城市页 */
.style-block { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.style-block h2 { font-size: 21px; }
.style-block .who { font-size: 11px; color: var(--c); margin-top: 4px; }
.trip-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trip-card {
  border: 1px solid var(--line); background: #fff; padding: 18px 18px 16px; text-align: left; border-radius: 3px; min-width: 0;
  display: flex; flex-direction: column; gap: 6px; transition: border-color 0.2s;
}
.trip-card:hover { border-color: var(--forest); }
.trip-card .days { font-family: var(--num); font-size: 24px; color: var(--forest); line-height: 1.2; }
.trip-card .days small { font-family: var(--sans); font-size: 12px; margin-left: 4px; color: var(--muted); }
.trip-card h3 { font-size: 14px; font-weight: 600; }
.trip-card p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.trip-card.custom { border-style: dashed; background: transparent; justify-content: center; color: var(--forest); }

/* ── 行程页 ── */
.trip-cover { width: 88%; max-width: 1280px; margin: 0 auto; padding: 28px 0 34px; border-bottom: 1px solid var(--line); }
.trip-cover .eyebrow { display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; margin-top: 28px; flex-wrap: wrap; }
.trip-cover h1 { font-size: 43px; line-height: 1.45; margin-top: 12px; letter-spacing: 0.03em; }
.trip-cover .summary { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.9; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.trip-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.ai-note { margin-top: 18px; font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: center; line-height: 1.7; }
.trip-body { width: 88%; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 22% 1fr; gap: 6%; padding: 34px 0 80px; }
.day-nav { position: sticky; top: 16px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.day-btn { border: 1px solid transparent; background: transparent; text-align: left; padding: 10px 14px; border-radius: 3px; display: flex; gap: 14px; align-items: baseline; min-width: 0; }
.day-btn b { font-family: var(--num); font-weight: 400; font-size: 20px; color: var(--forest); }
.day-btn span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-btn:hover { background: var(--pale); }
.day-btn.on { background: #eff3e8; border-color: #cfdac9; }
.day-btn.on span { color: var(--forest); }
.variant-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.variant-tabs::-webkit-scrollbar { display: none; }
.variant-tabs button { border: 0; background: none; padding: 10px 0; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; min-height: 44px; }
.variant-tabs button.on { color: var(--forest); border-color: var(--forest); }
.day-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.day-head .n { font-family: var(--num); font-size: 15px; color: var(--ochre); letter-spacing: 0.1em; }
.day-head h2 { font-size: 26px; }
.day-head .level { font-size: 11px; color: var(--muted); }
.timeline { margin-top: 22px; position: relative; }
.slot { display: grid; grid-template-columns: 76px 1fr; gap: 18px; position: relative; padding-bottom: 26px; }
.slot::before { content: ""; position: absolute; left: 82px; top: 12px; bottom: -4px; width: 1px; background: var(--line); }
.slot:last-child::before { display: none; }
.slot .time { font-family: var(--num); font-size: 14px; color: var(--forest); text-align: right; padding-top: 2px; white-space: nowrap; }
.slot .body { padding-left: 22px; position: relative; min-width: 0; }
.slot .body::before { content: ""; position: absolute; left: -4px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--forest); }
.slot h3 { font-size: 16px; font-weight: 600; }
.slot p { font-size: 13px; color: #4b5b52; line-height: 1.9; margin-top: 4px; }
.slot .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.slot .meta span { display: inline-flex; gap: 6px; align-items: center; }
.slot .warn { margin-top: 8px; font-size: 12px; color: #7a5a24; background: #f7f1e4; padding: 6px 10px; border-radius: 2px; display: inline-block; }
.day-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 6px; }
.day-foot > div { background: #fff; padding: 14px 18px; display: flex; gap: 12px; font-size: 13px; line-height: 1.8; }
.day-foot > div svg { color: #5c745a; margin-top: 3px; }
.day-foot b { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.notes { margin-top: 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.note-block { border-top: 1px solid var(--line); padding-top: 18px; }
.note-block h3 { font-family: var(--serif); font-size: 18px; display: flex; gap: 10px; align-items: center; }
.note-block h3 svg { color: #5c745a; }
.note-block ul { margin: 12px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.95; color: #4b5b52; }
.tweak { margin-top: 42px; background: #edf0e7; padding: 26px 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.tweak h3 { font-family: var(--serif); font-size: 20px; }
.tweak p { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.8; }

/* 我的行程 */
.saved-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.saved-list .trip-card { position: relative; }
.empty { text-align: center; padding: 70px 0; color: var(--muted); }
.empty h2 { font-size: 24px; color: var(--ink); margin-bottom: 10px; }
.empty .button { margin-top: 24px; }

.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 5px; font-size: 13px; box-shadow: 0 8px 30px #19382c26; z-index: 50; max-width: 90vw;
}

/* ── 响应式 ── */
@media (max-width: 1100px) {
  .city-list { grid-template-columns: repeat(3, 1fr); }
  .hero-copy h1 { font-size: 46px; }
  .trip-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .header { height: auto; padding: 14px 16px 0; flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; justify-content: center; gap: 30px; border-top: 1px solid var(--line); padding-top: 4px; }
  .hero { height: 440px; margin: 0; }
  .hero-copy { left: 22px; right: 22px; top: 12%; }
  .hero-copy h1 { font-size: 37px; line-height: 1.55; }
  .hero-copy p { font-size: 13px; line-height: 1.95; }
  .hero-caption { left: 22px; }
  .quick { width: auto; margin: -30px 16px 0; grid-template-columns: 1fr 1fr; }
  .quick label { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .quick label:nth-child(2) { border-right: 0; }
  .quick label:nth-child(3) { grid-column: 1 / -1; border-right: 0; }
  .quick .button { grid-column: 1 / -1; padding: 15px; }
  .section, .page { width: auto; margin: 0 16px; }
  .pad-top { padding-top: 52px; }
  .section-heading { flex-direction: column; align-items: start; }
  .section-heading h2 { font-size: 24px; }
  .persona-grid { grid-template-columns: 1fr 1fr; }
  .persona { padding: 18px 16px; }
  .persona h3 { font-size: 18px; }
  .persona p { font-size: 11.5px; }
  .city-feature { grid-template-columns: 1fr 1fr; gap: 14px; }
  .essay { grid-column: 1 / -1; min-height: 210px; }
  .caption h3 { font-size: 19px; }
  .city-list { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .hero-caption { bottom: 46px; }
  .promise { grid-template-columns: 1fr; gap: 30px; padding: 32px 22px; }
  .footer { flex-direction: column; padding: 26px 16px; }
  .footer > div:last-child { text-align: left; }
  .create { grid-template-columns: 1fr; gap: 26px; padding-top: 18px; }
  .aside h1 { font-size: 28px; margin-top: 22px; }
  .aside-photo { display: none; }
  .form { padding: 24px 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .style-block { grid-template-columns: 1fr; gap: 12px; }
  .trip-cover, .trip-body { width: auto; margin: 0 16px; }
  .trip-cover h1 { font-size: 29px; }
  .trip-body { grid-template-columns: 1fr; gap: 18px; padding-top: 18px; }
  .day-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .day-nav::-webkit-scrollbar { display: none; }
  .day-btn { flex: 0 0 auto; flex-direction: column; gap: 0; padding: 8px 14px; max-width: 150px; }
  .slot { grid-template-columns: 48px 1fr; gap: 12px; }
  .slot::before { left: 54px; }
  .slot .time { font-size: 13px; }
  .slot .body { padding-left: 18px; }
  .day-foot, .notes { grid-template-columns: 1fr; }
  .tweak { grid-template-columns: 1fr; padding: 22px 18px; }
  .saved-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .trip-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trip-card { padding: 14px 12px; }
  .city-feature .photo-card:nth-child(2) .caption p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media print {
  .header, .nav, .footer, .trip-actions, .day-nav, .variant-tabs, .tweak { display: none !important; }
  .trip-body { display: block; }
}

/* ── 账号与付费 ── */
button.header-cta { background: transparent; cursor: pointer; }
.header-cta b { font-family: var(--num); font-weight: 400; font-size: 14px; color: var(--forest); margin: 0 2px; }
.muted { color: var(--muted); font-size: 12px; }
.mono { font-family: var(--num); letter-spacing: 0.08em; }
dialog.login {
  border: 0; border-radius: 8px; padding: 34px 32px 26px; width: min(440px, calc(100vw - 32px)); background: var(--paper); color: var(--ink);
  box-shadow: 0 8px 30px #19382c26; max-height: calc(100vh - 32px); overflow: auto;
}
dialog.login::backdrop { background: #152b236b; }
dialog.login > svg { color: var(--forest); }
dialog.login h2 { font-size: 24px; margin-top: 12px; }
dialog.login > p { font-size: 13px; color: var(--muted); line-height: 1.85; margin-top: 8px; }
dialog.login > p b { color: var(--forest); font-weight: 600; }
dialog.login form { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
dialog.login .field { margin: 0; }
dialog.login .field .label { font-size: 12px; margin-bottom: 6px; display: block; }
dialog.login .button { width: 100%; }
.dialog-close { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 24px; color: var(--muted); width: 36px; height: 36px; }
.code-row { display: flex; gap: 8px; }
.code-row .input { font-family: var(--num); letter-spacing: 0.3em; font-size: 18px; }
.code-row .button { width: auto !important; white-space: nowrap; }
.lg-msg { font-size: 12px; color: var(--muted); line-height: 1.7; min-height: 0; }
.lg-msg.err { color: #8a3b22; }
.lg-foot { font-size: 11px !important; margin-top: 16px !important; color: #8a948c !important; }
dialog.login .packs { margin-top: 18px; grid-template-columns: 1fr; }
dialog.login > .button { margin-top: 14px; width: 100%; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pack {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 18px 20px; display: grid;
  grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 12px; align-items: baseline; transition: border-color 0.2s;
}
.pack:hover { border-color: var(--forest); }
.pack.best { border-color: #5a7654; background: #f6f8f2; }
.pack b { font-size: 15px; font-weight: 600; }
.pack .price { font-family: var(--num); font-size: 28px; color: var(--forest); grid-row: span 2; align-self: center; }
.pack .price small { font-size: 14px; margin-right: 2px; }
.pack .per { font-size: 11px; color: var(--muted); }
.pack-flag { position: absolute; top: -9px; left: 16px; background: var(--ochre); color: #fff; font-size: 10px; padding: 1px 8px; border-radius: 2px; letter-spacing: 0.08em; }
.acct-box { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); }
.acct-box > div { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.acct-box > div + div { border-left: 1px solid var(--line); }
.acct-box .big { font-family: var(--num); font-weight: 400; font-size: 28px; color: var(--forest); line-height: 1.2; }
.acct-box span { overflow-wrap: anywhere; }
.sec-title { font-size: 21px; margin: 44px 0 16px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
.how > div { border-top: 1px solid var(--line); padding-top: 12px; display: flex; gap: 12px; }
.how b { font-family: var(--num); font-weight: 400; color: var(--ochre); }
.how p { font-size: 13px; line-height: 1.85; color: #4b5b52; }
.how p b { font-family: inherit; color: var(--forest); font-weight: 600; }
.rules { margin: 22px 0 0; padding: 16px 20px 16px 36px; background: #edf0e7; font-size: 12.5px; line-height: 2; color: #4b5b52; }
.claim { display: flex; gap: 10px; max-width: 560px; }
.claim .button { white-space: nowrap; flex-shrink: 0; }
.claim + .muted { margin-top: 8px; }
.ledger { border-top: 1px solid var(--line); max-width: 680px; }
.ledger > div { display: grid; grid-template-columns: 170px 1fr auto; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ledger > div span:first-child { color: var(--muted); font-family: var(--num); font-size: 12px; }
.ledger b { font-family: var(--num); font-weight: 400; color: #8a3b22; }
.ledger b.plus { color: var(--forest); }
.mine-sec { margin-top: 8px; padding-bottom: 30px; }
.mine-sec h2 { font-size: 21px; margin-bottom: 16px; }
.page-head p b { color: var(--forest); font-weight: 600; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) {
  .packs, .how { grid-template-columns: 1fr; }
  .acct-box { grid-template-columns: 1fr; }
  .acct-box > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .acct-box > div { padding: 16px 18px; }
  .ledger > div { grid-template-columns: 1fr auto; }
  .ledger > div span:first-child { grid-column: 1 / -1; }
  .claim { flex-direction: column; }
  dialog.login { padding: 30px 20px 22px; }
}
