:root {
  --ink: #17213b;
  --muted: #6e7488;
  --line: #e7e8f1;
  --surface: #fff;
  --soft: #f7f8fc;
  --primary: #6558ee;
  --primary-dark: #4f43d5;
  --primary-soft: #efedff;
  --success: #16a874;
  --warning: #e98733;
  --danger: #dc5b65;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(51, 47, 112, 0.09);
  /* 页面主容器宽度，header 与内容区共用它以保证左右边界对齐。 */
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1 0 auto; }
.home-page { --shell: 1480px; }
.home-page > main { display: flex; }
.home-page > main > .hero { flex: 1 0 auto; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
.page-shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 54px;
  border-bottom: 1px solid rgba(231,232,241,.86);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
}
.site-header__inner {
  width: min(var(--shell), calc(100% - 40px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 0 18px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 8px; font-size: 16px; font-weight: 850; }
.site-header__slogan {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.site-header__slogan strong { flex: 0 0 auto; font-size: 12px; font-weight: 800; letter-spacing: -.02em; }
.site-header__slogan strong em { color: var(--primary); font-style: normal; }
.site-header__slogan span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-header__actions { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; margin-left: auto; }
.header-feedback {
  padding: 6px 12px;
  color: var(--primary-dark);
  border: 1px solid #c6bdff;
  border-radius: 999px;
  background: var(--primary-soft);
  font-size: 10px;
  font-weight: 800;
  transition: .18s ease;
}
.header-feedback:hover { color: #fff; border-color: var(--primary); background: var(--primary); }
.heading-note { margin-left: 8px; color: var(--muted); font-size: 9px; font-weight: 600; white-space: nowrap; }
.header-reset {
  flex: 0 0 auto;
  padding: 6px 12px;
  color: #a14848;
  border: 1px solid #f0dada;
  border-radius: 999px;
  background: #fff7f7;
  font-size: 10px;
  font-weight: 750;
  transition: .18s ease;
}
.header-reset:hover { color: #fff; border-color: var(--danger); background: var(--danger); }
.header-reset[hidden] { display: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.brand__mark {
  display: block;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  object-fit: contain;
}
.hero {
  position: relative;
  min-height: 0;
  padding-bottom: 28px;
  /* 只裁横向：装饰圆环不会撑出横向滚动条，同时纵向不形成滚动容器，
     否则内部的 sticky 元素会以 .hero 为基准而永远吸不住。 */
  overflow-x: clip;
  overflow-y: visible;
  background:
    radial-gradient(circle at 12% 5%, rgba(126,113,246,.12), transparent 25%),
    radial-gradient(circle at 88% 0%, rgba(245,174,138,.16), transparent 29%),
    linear-gradient(180deg, #faf9ff 0%, #f3f2fa 68%, #f1f2f8 100%);
}
.hero::before {
  position: absolute;
  inset: 0;
  opacity: .32;
  background-image:
    linear-gradient(rgba(101,88,238,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101,88,238,.06) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 62%);
  pointer-events: none;
  content: "";
}
.hero::after {
  position: absolute;
  top: 18px;
  right: 8%;
  width: 190px;
  height: 190px;
  border: 34px solid rgba(255,255,255,.38);
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
  content: "";
}
.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--shell), calc(100% - 40px));
  margin: auto;
  padding-top: 22px;
  text-align: center;
}
.planner {
  width: min(900px, 100%);
  margin: auto;
  padding: 0 20px 18px;
  text-align: left;
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 48px rgba(80,65,146,.12);
}
.planner__tabs { display: flex; justify-content: space-between; align-items: center; min-height: 50px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.planner__tabs button { height: 50px; padding: 0 8px; color: var(--primary); border: 0; border-bottom: 2px solid var(--primary); background: transparent; font-weight: 800; }
.planner__fields { display: grid; grid-template-columns: 1.2fr 1fr .75fr auto; gap: 12px; padding-top: 18px; }
.planner label, .date-switcher label, .search-field, .admin-form-grid label { display: flex; flex-direction: column; gap: 6px; }
.planner label > span, .date-switcher label > span, .search-field > span, .admin-form-grid label > span { color: var(--muted); font-size: 11px; font-weight: 750; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(101,88,238,.1); }
.primary-button, .secondary-button, .outline-button, .official-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 11px;
  font-weight: 780;
}
.primary-button, .official-button { color: #fff; background: linear-gradient(135deg, #7469f6, #594bdc); box-shadow: 0 9px 20px rgba(101,88,238,.22); }
.primary-button:hover, .official-button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.secondary-button, .outline-button { color: var(--primary); border: 1px solid #d9d5ff; background: #fff; }
.planner__fields > .primary-button { align-self: end; }
.planner__hint { margin: 12px 0 0; color: #9297a8; text-align: center; font-size: 11px; }
.wizard-planner { width: 100%; padding: 14px; }
.planner-workspace { display: grid; grid-template-columns: minmax(300px,340px) minmax(0,1fr); gap: 16px; align-items: start; text-align: left; }
/* 侧栏吸顶自成滚动区，右侧攻略是长列表，跟页面一起滚。 */
.planner-editor { position: sticky; top: 16px; min-width: 0; max-height: calc(100vh - 32px); overflow-y: auto; padding: 0; scrollbar-width: thin; }
/* 不能给这一列加 overflow：否则它变成滚动容器，里面的排序条会吸附到它而不是视口。 */
.planner-preview { display: flex; flex-direction: column; min-width: 0; border-radius: 13px; background: #fff; box-shadow: 0 10px 28px rgba(44,39,92,.08); }
.planner-preview > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-radius: 13px 13px 0 0; background: #f8f8fd; }
.planner-preview > header h2 { margin: 2px 0 0; font-size: 15px; }
.planner-preview > header small { color: var(--muted); font-size: 8px; }
.planner-preview__actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.preview-refresh { padding: 6px 10px; color: #fff; border: 0; border-radius: 7px; background: var(--primary); cursor: pointer; font-size: 8px; font-weight: 750; }
.preview-refresh:hover { background: var(--primary-dark); }
.planner-preview__body { flex: 1 1 auto; padding: 6px 14px 14px; }
.planner-preview__body.is-loading { opacity: .55; transition: opacity .15s; }
.planner-preview__empty { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 100%; padding: 24px; color: var(--muted); text-align: center; }
.planner-preview__empty--city img {
  display: block;
  width: min(100%, 520px);
  height: auto;
  mix-blend-mode: multiply;
  opacity: .82;
  -webkit-mask-image: radial-gradient(ellipse 88% 84% at center, #000 62%, rgba(0,0,0,.78) 76%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 84% at center, #000 62%, rgba(0,0,0,.78) 76%, transparent 100%);
}
.planner-preview__empty b { color: var(--ink); font-size: 14px; }
.planner-preview__empty p { margin: 7px 0 0; font-size: 10px; }
.planner-preview .timeline-back { display: none; }
.planner-preview .timeline-heading { display: none; }
.planner-preview .timeline-toolbar { margin-bottom: 12px; }
.planner-preview .reservation-timeline { margin: 0; padding: 0; border: 0; box-shadow: none; }
.planner-preview .timeline-item { grid-template-columns: 18px minmax(0,1fr); gap: 8px; }
.planner-preview .timeline-date { grid-column: 2; padding-bottom: 2px; }
.planner-preview .timeline-details { grid-column: 2; width: 100%; min-width: 0; border: 0; background: #f7f7fb; }
.planner-preview .reservation-card__head { flex-wrap: wrap; gap: 8px; }
.planner-preview .reservation-card__body { grid-template-columns: 172px minmax(0,1fr); }
.planner-preview .timeline-summary-main { flex: 1 1 160px; min-width: 0; }
.planner-preview .timeline-plan-meta { width: 100%; margin-left: 0; justify-content: space-between; }
/* 预览面板跟页面一起滚，工具条以视口为基准吸顶。 */
.planner-preview .timeline-toolbar { margin-inline: -14px; padding-inline: 14px; }
.planner-preview .booking-gantt { border: 0; background: #f7f7fb; }
.planner-preview .booking-gantt .timeline-fold__body { overflow-x: auto; }
.planner-preview .gantt-row { grid-template-columns: 90px minmax(180px,1fr) 48px; gap: 6px; min-width: 350px; }
.planner-preview .gantt-scale { min-width: 350px; margin-left: 96px; padding-right: 54px; }
.wizard-step + .wizard-step { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.wizard-step > header { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.wizard-step > header > span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; color: #fff; border-radius: 9px; background: var(--primary); font-size: 12px; font-weight: 850; }
.wizard-step > header h2 { margin: 0; font-size: 15px; }
.wizard-step > header p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.step-feedback {
  margin-left: auto;
  padding: 6px 12px;
  color: var(--primary-dark);
  border: 1px solid #c6bdff;
  border-radius: 999px;
  background: var(--primary-soft);
  font-size: 10px;
  font-weight: 800;
  transition: .18s ease;
}
.step-feedback:hover { color: #fff; border-color: var(--primary); background: var(--primary); }
.trip-calendar[hidden] { display: none; }
.city-picker { position: relative; }
.city-picker__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 7px 10px; background: #eeeeF5; }
.city-picker__toolbar > b { font-size: 10px; }
.city-search { position: relative; display: block !important; width: min(200px,55%); }
.city-search > span { position: absolute; top: 50%; left: 9px; z-index: 1; color: #8d92a3; transform: translateY(-50%); font-size: 13px !important; }
.city-search input { min-height: 30px; padding: 5px 9px 5px 27px; border: 0; border-radius: 7px; background: #fff; font-size: 9px; }
.city-picker__body { display: grid; grid-template-columns: 92px minmax(0,1fr); min-height: 112px; max-height: 190px; }
.province-list { overflow-y: auto; padding: 5px; background: #ebebf1; scrollbar-width: thin; }
.province-list button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 31px; padding: 6px 8px; color: #646a7c; border: 0; border-radius: 6px; background: transparent; font-size: 9px; text-align: left; }
.province-list button:hover { color: var(--primary); background: rgba(255,255,255,.65); }
.province-list button.is-active { color: var(--primary-dark); background: #fff; font-weight: 800; }
.province-list small { color: #9a9eab; font-size: 8px; }
.city-picker__results { overflow-y: auto; padding: 8px; background: #f8f8fb; scrollbar-width: thin; }
.city-choice-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.city-choice { cursor: pointer; }
.city-choice[hidden] { display: none; }
.city-choice input, .place-term input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.city-choice > span { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 34px; padding: 7px 9px; border-radius: 7px; background: #fff; }
.city-choice b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.city-choice small { flex: 0 0 auto; color: var(--muted); font-size: 7px; }
.city-choice input:checked + span { color: var(--primary); background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.city-choice input:focus-visible + span, .place-term input:focus-visible + span { outline: 3px solid rgba(101,88,238,.2); }
.city-picker__empty { margin: 28px 0; color: var(--muted); text-align: center; font-size: 9px; }
.selected-cities { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 5px 6px 5px 11px; border-radius: 9px; background: #fff; }
.selected-cities > span { flex: 0 0 auto; color: var(--muted); font-size: 9px; font-weight: 750; }
.selected-cities > div { display: flex; align-items: center; flex: 1 1 auto; flex-wrap: wrap; gap: 5px; min-width: 0; }
.selected-cities > div small { color: #a2a6b3; font-size: 8px; }
.selected-city-chip { padding: 4px 7px; color: var(--primary-dark); border: 0; border-radius: 20px; background: var(--primary-soft); font-size: 8px; }
.selected-city-chip::after { margin-left: 4px; content: "×"; }
.selected-cities > [data-clear-cities] { flex: 0 0 auto; padding: 4px 6px; color: var(--muted); border: 0; background: transparent; font-size: 8px; }
.selected-cities > [data-clear-cities]:hover { color: var(--danger); }
.city-picker__add { flex: 0 0 auto; padding: 6px 11px; color: var(--primary-dark); border: 1px dashed #c3bbf7; border-radius: 999px; background: #fff; cursor: pointer; font-size: 9px; font-weight: 800; white-space: nowrap; transition: .16s ease; }
.city-picker__add:hover { color: #fff; border-color: var(--primary); border-style: solid; background: var(--primary); }
.city-picker__add[aria-expanded="true"] { color: #fff; border-style: solid; border-color: var(--primary); background: var(--primary); }
.city-picker__panel { overflow: hidden; border: 1px solid #e7e7ee; border-radius: 10px; background: #f5f5f9; }
.city-picker__panel[hidden] { display: none; }
.destination-places { display: flex; flex-direction: column; height: 306px; min-width: 0; overflow: hidden; padding: 0; border: 1px solid #e7e7ee; border-radius: 10px; background: #f8f8fb; }
.place-city-tabs { z-index: 3; display: flex; flex: 0 0 auto; gap: 4px; overflow-x: auto; margin: 0; padding: 8px 8px 7px; border: 0; background: #f8f8fb; scrollbar-width: none; }
.place-city-tabs[hidden] { display: none; }
.place-city-tabs::-webkit-scrollbar { display: none; }
.place-city-tabs button { flex: 0 0 auto; padding: 5px 10px; color: var(--muted); border: 0; border-radius: 6px; background: #ececf2; font-size: 8px; font-weight: 750; white-space: nowrap; }
.place-city-tabs button:hover { color: var(--primary); background: #e7e4ff; }
.place-city-tabs button.is-active { color: #fff; background: var(--primary); }
.destination-places.has-city-tabs .place-term-group__header { display: none; min-height: 0; margin: 0; }
.destination-places.has-city-tabs .place-term-group__header:has(.planner-feedback:not([hidden])) { display: flex; margin-bottom: 4px; }
.destination-places .place-empty-hint { display: grid; place-items: center; flex: 1 1 auto; min-height: 0; background: transparent; }
.destination-places .place-empty-hint[hidden] { display: none; }
.destination-places .place-term-groups { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin-top: 0; padding: 0 8px 8px; scrollbar-width: thin; }
.destination-places .place-term-group { padding: 0; }
.destination-places .place-term-group + .place-term-group { margin-top: 0; padding-top: 0; border-top: 0; }
.destination-places .place-term-list { grid-template-columns: minmax(0,1fr); max-height: none; overflow: visible; gap: 5px; padding-right: 0; }
.destination-places .place-scroll-hint { display: none; }
.trip-fields { display: grid; grid-template-columns: minmax(150px,1fr) 118px; gap: 9px; }
.trip-fields label { display: flex; flex-direction: column; gap: 5px; }
.trip-fields label > span { color: var(--muted); font-size: 9px; font-weight: 750; }
.trip-calendar { min-width: 0; }
.custom-date-display { width: 100%; min-height: 38px; padding: 8px 11px; color: var(--ink); border: 0; border-radius: 8px; background: #f2f2f7; cursor: pointer; font-size: 10px; text-align: left; }
.custom-date-display:hover { background: #ebe9fb; }
.custom-date-display:focus { border-color: transparent; background: #fff; box-shadow: inset 0 0 0 2px var(--primary); }
.custom-date-display i { float: right; color: var(--primary); font-style: normal; }
.trip-calendar.is-focused { border-radius: 8px; background: #f5f3ff; box-shadow: 0 0 0 5px #f5f3ff; transition: background .15s, box-shadow .15s; }
.day-stepper { display: grid; grid-template-columns: 32px minmax(0,1fr) 32px; width: 100%; min-height: 38px; overflow: hidden; border-radius: 8px; background: #f2f2f7; }
.day-stepper button { width: 32px; min-width: 32px; height: 100%; padding: 0; color: var(--primary); border: 0; background: transparent; cursor: pointer; font-size: 15px; }
.day-stepper button:hover { background: #e9e5ff; }
.day-stepper b { display: grid; place-items: center; font-size: 10px; }
.trip-calendar > header { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; margin-bottom: 4px; }
.trip-calendar > header b { color: var(--ink); font-size: 9px; text-align: center; }
.trip-calendar > header button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; color: var(--primary); border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 16px; }
.trip-calendar > header button:hover { background: var(--primary-soft); }
.trip-calendar__weekdays, .trip-calendar__track { display: grid; grid-template-columns: repeat(7,1fr); }
.trip-calendar__weekdays span { color: #9a9fb0; font-size: 7px; text-align: center; }
.trip-calendar__track { gap: 1px; margin-top: 2px; }
.trip-calendar__date { position: relative; height: 20px; padding: 0; color: #4e5567; border: 0; border-radius: 5px; background: transparent; cursor: pointer; font-size: 8px; }
.trip-calendar__date:hover { color: var(--primary); background: var(--primary-soft); }
.trip-calendar__date.is-outside { color: #c4c6cf; }
.trip-calendar__date.is-in-trip { color: var(--primary-dark); background: #e9e6ff; font-weight: 800; }
.trip-calendar__date.is-start, .trip-calendar__date.is-end { color: #fff; background: var(--primary); }
.trip-calendar__date.is-today::after { position: absolute; right: 4px; bottom: 2px; left: 4px; height: 1px; border-radius: 1px; background: #f08a5d; content: ""; }
.trip-calendar__date.is-disabled, .trip-calendar__date.is-disabled:hover { color: #bfc2cc; background: #f0f0f3; cursor: not-allowed; font-weight: 400; opacity: .72; }
.wizard-step--schedule > header > small { margin-left: auto; color: var(--muted); font-size: 9px; }
.planner-editor .trip-day-axis { position: static; }
.trip-day-axis { position: sticky; top: 54px; z-index: 30; margin: 3px 0 14px; padding: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.trip-day-axis > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.trip-day-axis > header div { display: flex; align-items: baseline; gap: 8px; }
.trip-day-axis > header b { color: var(--ink); font-size: 10px; }
.trip-day-axis > header span, .trip-day-axis > header small { color: var(--muted); font-size: 8px; }
.trip-day-axis__track { display: grid; grid-template-columns: 72px repeat(var(--trip-days),minmax(125px,1fr)); overflow-x: auto; border-radius: 8px; background: #fff; scrollbar-width: thin; }
.trip-schedule__header { display: grid; place-items: center; min-height: 40px; padding: 7px 9px; color: #858a9b; border-bottom: 1px solid #ececf3; background: #f7f7fb; font-size: 8px; font-weight: 750; }
.trip-schedule__date { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 40px; padding: 6px 9px; border-bottom: 1px solid #ececf3; border-left: 1px solid #ececf3; background: #f7f7fb; }
.trip-schedule__date.has-places { background: #f5f3ff; }
.trip-schedule__date strong { color: var(--ink); font-size: 9px; }
.trip-schedule__date small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.trip-schedule__time { display: grid; place-items: center; min-height: 45px; padding: 5px; color: #858a9b; border-bottom: 1px solid #eeeeF5; background: #fafafd; font-size: 8px; font-weight: 750; }
.trip-day-axis__day { flex: 1 0 155px; min-width: 0; border-right: 1px solid var(--line); }
.trip-day-axis__day:last-child { border-right: 0; }
.trip-day-axis__day > header { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 28px; padding: 5px 7px; border-bottom: 1px solid var(--line); background: #f7f7fc; }
.trip-day-axis__day.has-places > header { color: var(--primary-dark); background: var(--primary-soft); }
.trip-day-axis__day strong { color: var(--ink); font-size: 9px; }
.trip-day-axis__day small { color: var(--muted); font-size: 8px; white-space: nowrap; }
.trip-day-axis__slots { display: grid; }
.trip-slot { display: flex; align-items: center; min-width: 0; min-height: 45px; padding: 5px 7px; border-bottom: 1px solid #eeeeF5; border-left: 1px solid #eeeeF5; outline: none; transition: background .15s, box-shadow .15s; }
.trip-slot:last-child { border-bottom: 0; }
.trip-slot__name { color: #9a9dab; font-size: 8px; }
.trip-slot__places { display: flex; flex-wrap: wrap; gap: 3px; width: 100%; min-width: 0; }
.trip-slot__places::-webkit-scrollbar { display: none; }
.trip-slot__empty { color: #c0c2ce; font-size: 8px; }
.trip-slot.is-drop-target { background: #ebe8ff; box-shadow: inset 0 0 0 2px var(--primary); }
.trip-slot.is-unavailable { background: #fafafa; cursor: not-allowed; }
.trip-slot.is-unavailable .trip-slot__empty { color: #c8a3a3; }
.trip-slot.is-unavailable.is-drop-target { background: #fff1f1; box-shadow: inset 0 0 0 2px #d97979; }
.trip-place-entry { display: flex; min-width: 0; border: 1px solid #d2ccff; border-radius: 5px; overflow: hidden; background: #fff; }
.trip-place-chip { overflow: hidden; flex: 1 1 auto; max-width: 108px; padding: 4px 6px; color: var(--primary-dark); border: 0; background: #fff; cursor: grab; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.trip-place-chip:hover, .trip-place-chip:focus-visible, .trip-place-chip.is-moving { border-color: var(--primary); background: var(--primary-soft); }
.trip-place-chip.is-dragging { opacity: .35; cursor: grabbing; }
.trip-place-remove { flex: 0 0 22px; width: 22px; padding: 0; color: #9a8fbd; border: 0; border-left: 1px solid #e3dfff; background: #fff; cursor: pointer; font-size: 13px; }
.trip-place-remove:hover { color: #b34242; background: #fff1f1; }
.place-empty-hint { margin: 0; padding: 12px; color: var(--muted); border-radius: 8px; background: #f7f7fb; text-align: center; font-size: 10px; }
.planner-feedback { padding: 5px 8px; color: var(--primary-dark); border-radius: 6px; background: #ebe8ff; font-size: 8px; }
.planner-feedback[hidden] { display: none; }
.place-term-group { padding: 4px 0; background: transparent; }
.place-term-group__header { display: flex; align-items: center; gap: 10px; min-height: 25px; margin-bottom: 6px; }
.place-term-group__header h3 { flex: 0 0 auto; margin: 0; color: var(--ink); font-size: 10px; }
.place-term-group__header .planner-feedback { flex: 1; max-width: 430px; }
.place-term-group + .place-term-group { margin-top: 14px; }
.place-term-groups { margin-top: 10px; }
.place-term-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; max-height: 160px; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; }
.place-scroll-hint { margin-top: -24px; padding: 15px 0 3px; color: var(--primary); background: linear-gradient(transparent,rgba(255,255,255,.96) 48%); pointer-events: none; position: relative; z-index: 2; font-size: 8px; text-align: center; transition: opacity .18s; }
.place-scroll-hint.is-finished { opacity: 0; }
.place-term { position: relative; display: flex; min-width: 0; overflow: hidden; border-radius: 7px; background: #f5f5f8; }
.place-term input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.place-source { display: block; overflow: hidden; flex: 1 1 auto; min-width: 0; min-height: 34px; padding: 7px 9px; color: #555b6d; border: 0; background: transparent; cursor: grab; font-size: 9px; text-align: left; text-overflow: ellipsis; white-space: nowrap; transition: color .15s, background .15s; }
.place-source:hover { color: var(--primary); background: var(--primary-soft); }
.place-source:hover::before { margin-right: 5px; content: "⠿"; }
.place-source:active { cursor: grabbing; }
.place-term__duration { flex: 0 0 auto; align-self: center; margin-right: 6px; padding: 2px 7px; color: #6a5fe0; border-radius: 999px; background: #eae6ff; font-size: 7px; font-style: normal; font-weight: 800; white-space: nowrap; }
.place-add { flex: 0 0 50px; padding: 0 5px; color: var(--primary); border: 0; border-left: 1px solid #e5e4eb; background: #eeeef4; cursor: pointer; font-size: 8px; font-weight: 750; }
.place-add:hover { background: var(--primary-soft); }
.place-add.is-selected { color: #8c7180; background: #f7f3f5; }
.place-term.is-selected .place-source { color: var(--primary-dark); background: #f0eeff; box-shadow: inset 3px 0 0 var(--primary); font-weight: 750; }
.place-hover-card { position: fixed; z-index: 100; width: 260px; padding: 12px; color: #555c70; border: 1px solid #dcd9f3; border-radius: 10px; background: rgba(255,255,255,.98); box-shadow: 0 12px 32px rgba(38,35,78,.18); pointer-events: none; }
.place-hover-card strong { color: var(--ink); font-size: 11px; }
.place-hover-card > span { margin-left: 7px; color: var(--primary); font-size: 8px; }
.place-hover-card p { margin: 8px 0 5px; font-size: 9px; line-height: 1.55; }
.place-hover-card small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.wizard-submit { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 10px; padding-top: 4px; }
.wizard-submit p { margin: 0; color: var(--muted); font-size: 9px; }
.wizard-submit .primary-button { min-width: 190px; }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fafaff;
}
.feature-strip article { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 2px 8px; border-right: 1px solid var(--line); }
.feature-strip article:last-child { border: 0; }
.feature-strip h2 { margin: 0; font-size: 9px; }
.feature-strip p { margin: 1px 0 0; color: var(--muted); font-size: 8px; }
.feature-icon { display: grid; place-items: center; width: 22px; height: 22px; color: var(--primary); border-radius: 7px; background: var(--primary-soft); font-size: 8px; font-weight: 900; }
.section { padding-block: 78px 10px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2 { margin: 6px 0 0; font-size: 27px; letter-spacing: -.025em; }
.section-heading > a { color: var(--primary); font-size: 13px; font-weight: 750; }
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scene-card {
  position: relative;
  min-height: 210px;
  padding: 26px;
  overflow: hidden;
  color: #fff;
  border-radius: 20px;
  background: linear-gradient(145deg, #26345d, #6b54a6);
  box-shadow: var(--shadow);
}
.scene-card::after { content: ""; position: absolute; right: -45px; bottom: -65px; width: 210px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.14); }
.scene-card--2 { background: linear-gradient(145deg, #6650a0, #d9917a); }
.scene-card--3 { background: linear-gradient(145deg, #425c72, #7ea99f); }
.scene-card__index { position: absolute; top: 20px; right: 23px; color: rgba(255,255,255,.5); font-weight: 850; }
.scene-card div { position: absolute; z-index: 1; right: 26px; bottom: 24px; left: 26px; }
.scene-card div > span { font-size: 11px; opacity: .75; }
.scene-card h3 { margin: 5px 0 8px; font-size: 22px; }
.scene-card p { margin: 0; opacity: .8; font-size: 12px; line-height: 1.6; }
.update-section { padding-bottom: 80px; }
.update-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.update-list article { display: grid; grid-template-columns: 62px 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.update-list article:last-child { border: 0; }
.update-list h3 { margin: 0 0 5px; font-size: 14px; }
.update-list p { margin: 0; color: var(--muted); font-size: 12px; }
.update-list time { color: #999dad; font-size: 11px; }
.update-level { padding: 5px 8px; color: var(--success); border-radius: 20px; background: #eaf9f3; text-align: center; font-size: 10px; }
.update-level--important, .update-level--urgent { color: var(--danger); background: #fff0f1; }

.list-hero { padding: 38px 0 35px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #f0efff, #fff 65%); }
.breadcrumb { display: flex; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.breadcrumb a:hover { color: var(--primary); }
.list-hero__row { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.list-hero h1 { margin: 7px 0 8px; font-size: 34px; letter-spacing: -.035em; }
.list-hero__row > div > p { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.6; font-size: 13px; }
.date-switcher { display: grid; grid-template-columns: 145px 82px auto; gap: 8px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.date-switcher input, .date-switcher select { min-height: 38px; padding: 7px 9px; }
.date-switcher button { min-height: 38px; padding: 0 14px; color: #fff; border: 0; border-radius: 9px; background: var(--primary); font-size: 12px; font-weight: 750; }
.list-layout { display: grid; grid-template-columns: 235px 1fr; gap: 26px; padding-block: 30px 70px; }
.filter-panel { align-self: start; position: sticky; top: 90px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.filter-panel h2 { margin: 0 0 18px; font-size: 16px; }
.filter-panel fieldset { margin: 22px 0; padding: 0; border: 0; }
.filter-panel legend { margin-bottom: 10px; font-size: 12px; font-weight: 800; }
.radio-row { display: flex; align-items: center; gap: 9px; min-height: 36px; color: var(--muted); font-size: 12px; }
.radio-row input { width: 15px; min-height: 15px; accent-color: var(--primary); }
.filter-panel .secondary-button { width: 100%; }
.filter-note { margin-top: 18px; padding: 14px; color: var(--muted); border-radius: 11px; background: var(--soft); font-size: 11px; line-height: 1.55; }
.filter-note strong { color: var(--ink); }
.filter-note p { margin: 5px 0 0; }
.ai-summary { display: flex; gap: 13px; padding: 18px 20px; border: 1px solid #dedaff; border-radius: 15px; background: linear-gradient(100deg, #f3f1ff, #fff); }
.ai-summary__icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; color: #fff; border-radius: 11px; background: var(--primary); font-size: 11px; font-weight: 900; }
.ai-summary strong { font-size: 12px; }
.ai-summary p { margin: 5px 0 0; color: #5f6375; font-size: 12px; line-height: 1.6; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 11px; color: var(--muted); font-size: 12px; }
.result-toolbar p { margin: 0; }
.text-button { color: var(--primary); border: 0; background: none; font-size: 12px; }
.reservation-timeline {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #dcd8ff;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.timeline-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 6px; }
.timeline-heading h2 { margin: 3px 0 0; font-size: 21px; }
.timeline-heading > span { color: var(--muted); font-size: 10px; }
/* 整条工具栏一起吸顶，摘要与排序按钮保持并排；包含块是 .reservation-timeline，
   所以滚动整个卡片列表期间都不会脱落。站点头高 54px，紧贴其下沿。 */
.timeline-toolbar {
  position: sticky;
  z-index: 25;
  top: 54px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -22px 16px;
  padding: 4px 22px 10px;
  /* 这里刻意不用 backdrop-filter：iOS Safari 上它与 position: sticky 同时出现会导致吸顶失效。 */
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.trip-brief {
  min-width: 0;
  flex: 1 1 auto;
  padding: 10px 14px;
  border: 1px solid #ece8ff;
  border-radius: 12px;
  background: linear-gradient(180deg, #f6f4ff 0%, #f3f6ff 100%);
}
.trip-brief p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.65; }
.trip-brief p + p { margin-top: 3px; color: #555c70; font-size: 11px; }
.trip-brief__hl { color: var(--danger); font-weight: 800; }
.trip-brief b { color: var(--ink); font-weight: 800; }
.timeline-heading__actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.timeline-view-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.view-switch { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; color: var(--muted); border: 0; border-radius: 999px; background: #ececf4; font-size: 8px; font-weight: 750; }
.view-switch i { position: relative; width: 22px; height: 12px; border-radius: 999px; background: #c9cbd5; transition: background .18s ease; }
.view-switch i::after { position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20,24,44,.25); content: ""; transition: transform .18s ease; }
.view-switch[aria-pressed="true"] { color: var(--primary-dark); background: var(--primary-soft); }
.view-switch[aria-pressed="true"] i { background: var(--primary); }
.view-switch[aria-pressed="true"] i::after { transform: translateX(10px); }
.timeline-list { position: relative; display: grid; gap: 8px; }
.timeline-list::before { content: ""; position: absolute; top: 13px; bottom: 13px; left: 9px; width: 2px; background: #dedaff; }
.timeline-item { position: relative; display: grid; grid-template-columns: 20px 118px minmax(0,1fr); gap: 12px; align-items: start; }
.timeline-marker { position: relative; z-index: 1; display: grid; place-items: center; width: 20px; height: 30px; background: #fff; }
.timeline-marker span { width: 11px; height: 11px; border: 3px solid var(--primary); border-radius: 50%; background: #fff; }
.timeline-item--suspended .timeline-marker span, .timeline-item--late .timeline-marker span { border-color: var(--danger); }
.timeline-item--not_required .timeline-marker span { border-color: #9ba1b2; }
.timeline-date { padding-top: 4px; }
.timeline-date strong { display: block; font-size: 11px; }
.timeline-date small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.timeline-details { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.timeline-details .timeline-summary-main > span { color: var(--muted); font-size: 9px; }
.timeline-details h3 { margin: 2px 0 0; font-size: 14px; }
.timeline-summary-main { flex: 1 1 200px; min-width: 130px; }
.reservation-card__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding: 13px 15px; }
.reservation-card__body { display: grid; grid-template-columns: 190px minmax(0,1fr); border-top: 1px solid var(--line); }
.reservation-erratum { flex: 0 0 auto; margin-left: auto; padding: 5px 11px; color: #8a7fb8; border: 1px dashed #c6bdff; border-radius: 999px; background: #fff; font-size: 9px; font-weight: 750; white-space: nowrap; transition: .18s ease; }
.reservation-erratum:hover { color: var(--primary-dark); border-style: solid; border-color: var(--primary); background: var(--primary-soft); }
.reservation-signal { display: flex; align-items: flex-end; justify-content: center; flex-direction: column; flex: 0 1 auto; min-width: 0; text-align: right; }
.reservation-signal > strong { margin-top: 5px; color: var(--primary-dark); font-size: 13px; white-space: nowrap; }
.reservation-signal--released > strong { color: var(--success); }
.reservation-signal--ended > strong, .reservation-signal--suspended > strong { color: var(--danger); }
.reservation-brief { display: grid; align-content: start; gap: 11px; padding: 13px 14px; border-right: 1px solid var(--line); background: var(--soft); }
.reservation-brief span { min-width: 0; color: #555c70 !important; font-size: 10px !important; line-height: 1.5; overflow-wrap: anywhere; }
.reservation-brief span.is-critical { color: var(--danger) !important; }
.reservation-brief b { display: block; margin-bottom: 2px; color: #9a9ead; font-size: 8px; font-weight: 700; }
.timeline-plan-meta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.timeline-plan-meta span { color: #555c70 !important; font-size: 9px !important; white-space: nowrap; }
.timeline-plan-meta b { display: block; margin-bottom: 2px; color: #9a9ead; font-size: 7px; }
.ticket-state { padding: 4px 7px; border-radius: 999px; font-size: 8px; font-style: normal; font-weight: 750; white-space: nowrap; }
.ticket-state--unreleased { color: #735b18; background: #fff3c4; }
.ticket-state--released { color: #16724a; background: #dff7ec; }
.ticket-state--ended, .ticket-state--suspended { color: #a14848; background: #ffe8e8; }
.ticket-state--not_required, .ticket-state--check { color: #656a7a; background: #eceef4; }
.timeline-chevron { color: var(--primary); transition: transform .18s ease; }
.timeline-detail-body { min-width: 0; padding: 12px 14px 14px; background: #fff; }
.timeline-card-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; padding: 3px; border-radius: 9px; background: var(--soft); }
.timeline-card-tabs__list { display: flex; gap: 4px; }
.timeline-card-tabs__list button { flex: 0 0 auto; padding: 6px 11px; color: var(--muted); border: 0; border-radius: 7px; background: transparent; font-size: 9px; font-weight: 750; }
.timeline-card-tabs__list button.is-active { color: var(--primary); background: #fff; box-shadow: 0 2px 7px rgba(51,47,112,.09); }
.timeline-action { margin: 0 0 10px; color: var(--primary-dark); font-size: 11px; font-weight: 700; }
.timeline-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 8px 16px; }
.timeline-facts span { color: #555c70; font-size: 10px; line-height: 1.45; }
.timeline-facts b { display: block; margin-bottom: 3px; color: #9a9ead; font-size: 8px; }
.timeline-detail-body ol { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 11px 0 0; padding-left: 18px; color: var(--muted); font-size: 9px; }
.timeline-detail-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #eef0f6; }
.timeline-detail-footer ol { flex: 1 1 220px; margin: 0; }
.timeline-detail-footer a { flex: 0 0 auto; padding: 7px 12px; color: var(--primary); border: 1px solid #dad6ff; border-radius: 8px; font-size: 9px; font-weight: 750; }
.timeline-detail-footer .timeline-official { color: #fff; border-color: var(--primary); background: var(--primary); }
.timeline-intro-panel > p { margin: 0 0 10px; color: #555c70; font-size: 10px; line-height: 1.6; }
.timeline-intro-panel dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 0; }
.timeline-intro-panel dl div { padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.timeline-intro-panel dt { margin-bottom: 3px; color: #9a9ead; font-size: 8px; }
.timeline-intro-panel dd { margin: 0; color: #555c70; font-size: 9px; line-height: 1.45; }
.booking-list { display: grid; gap: 12px; }
.booking-card { position: relative; display: grid; grid-template-columns: 118px 1fr 32px; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: .2s ease; }
.booking-card:hover { transform: translateY(-2px); border-color: #d8d4fa; box-shadow: var(--shadow); }
.booking-card__visual { display: grid; place-items: center; min-height: 128px; color: rgba(255,255,255,.88); border-radius: 12px; background: linear-gradient(140deg, #40537d, #b26d75); font-size: 42px; font-family: serif; }
.booking-card__visual--1 { background: linear-gradient(140deg, #314f66, #7da899); }
.booking-card__visual--2 { background: linear-gradient(140deg, #6b5b96, #d59d77); }
.booking-card__visual--3 { background: linear-gradient(140deg, #4c5268, #8d8fc2); }
.booking-card__topline { display: flex; gap: 7px; }
.status-pill, .category-pill { display: inline-flex; align-items: center; width: max-content; padding: 4px 8px; border-radius: 20px; font-size: 10px; font-weight: 750; }
.status-pill--available { color: var(--success); background: #e9f9f3; }
.status-pill--waiting { color: var(--primary); background: var(--primary-soft); }
.status-pill--late { color: var(--danger); background: #fff0f1; }
.status-pill--suspended { color: #fff; background: var(--danger); }
.status-pill--check, .status-pill--unverified { color: var(--warning); background: #fff5e9; }
.status-pill--not_required { color: #64748b; background: #eef1f5; }
.category-pill { color: #74798b; background: #f2f3f7; }
.booking-card h2 { margin: 8px 0 5px; font-size: 18px; }
.booking-card h2 a:hover { color: var(--primary); }
.booking-card__body > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.booking-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 13px; color: #4f566a; font-size: 11px; }
.booking-facts span { display: flex; flex-direction: column; gap: 3px; }
.booking-facts b { color: #999dac; font-size: 9px; text-transform: uppercase; }
.booking-card .action-line { margin-top: 10px; color: var(--primary); font-weight: 650; }
.card-arrow { align-self: center; color: var(--primary); font-size: 20px; }
.place-select { position: absolute; z-index: 2; top: 22px; left: 99px; cursor: pointer; }
.place-select input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.place-select span { display: grid; place-items: center; width: 28px; height: 28px; color: #b0b3c1; border: 2px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 5px 14px rgba(0,0,0,.14); font-size: 13px; font-weight: 900; }
.place-select input:checked + span { color: #fff; background: var(--primary); }
.place-select input:focus-visible + span { outline: 3px solid rgba(101,88,238,.25); }
.place-selection-form { padding-bottom: 82px; }
.selection-bar {
  position: sticky;
  z-index: 20;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(560px, calc(100% - 24px));
  margin: 18px auto 0;
  padding: 10px 12px 10px 17px;
  border: 1px solid #dcd8ff;
  border-radius: 15px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 36px rgba(66,54,145,.2);
  backdrop-filter: blur(14px);
  font-size: 11px;
}
.selection-bar .primary-button { min-height: 38px; font-size: 11px; }
.save-button.is-saved { color: #fff; background: var(--primary); }
.empty-state { padding: 65px 20px; text-align: center; border: 1px dashed #cfd1df; border-radius: var(--radius); background: #fff; }
.empty-state h2 { margin: 0 0 7px; font-size: 20px; }
.empty-state p { color: var(--muted); }
.empty-state a { color: var(--primary); font-weight: 750; }

.detail-banner { position: relative; min-height: 275px; overflow: hidden; color: #fff; background: linear-gradient(110deg, #1d2947 0%, #4d4d85 50%, #b77b74 100%); }
.detail-banner::after { content:""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,15,35,.62), rgba(9,15,35,.12)); }
.detail-banner .page-shell { position: relative; z-index: 2; padding-top: 28px; }
.breadcrumb--light { color: rgba(255,255,255,.7); }
.detail-banner__text { padding-top: 32px; }
.detail-banner__text > span { padding: 5px 9px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; font-size: 10px; }
.detail-banner h1 { margin: 11px 0 8px; font-size: 37px; }
.detail-banner p { max-width: 520px; margin: 0; color: rgba(255,255,255,.76); font-size: 13px; }
.detail-banner__art span { position: absolute; z-index: 1; right: 7%; bottom: -30px; width: 380px; height: 170px; background: rgba(255,255,255,.1); clip-path: polygon(0 50%, 48% 0, 100% 54%, 82% 68%, 49% 31%, 17% 70%); }
.detail-banner__art span:nth-child(2) { right: -7%; bottom: -70px; transform: scale(1.4); opacity: .45; }
.detail-layout { display: grid; grid-template-columns: 185px minmax(0,1fr) 250px; gap: 28px; padding-block: 30px 75px; }
.detail-toc, .detail-actions { align-self: start; position: sticky; top: 92px; }
.detail-toc > a { color: var(--muted); font-size: 11px; }
.detail-toc nav { display: grid; gap: 4px; margin-top: 22px; }
.detail-toc nav a { padding: 9px 11px; color: var(--muted); border-left: 2px solid transparent; font-size: 12px; }
.detail-toc nav a:hover, .detail-toc nav a.is-active { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.local-plan-card { margin-top: 26px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.local-plan-card span, .local-plan-card p { color: var(--muted); font-size: 10px; }
.local-plan-card strong { display: block; margin: 5px 0; font-size: 15px; }
.local-plan-card p { margin: 0; line-height: 1.5; }
.detail-main { min-width: 0; }
.detail-section { margin-bottom: 26px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.detail-section__heading { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.section-number { display: grid; place-items: center; width: 36px; height: 36px; color: var(--primary); border-radius: 11px; background: var(--primary-soft); font-size: 11px; font-weight: 850; }
.detail-section__heading h2 { margin: 2px 0 0; font-size: 19px; }
.reservation-panel { padding: 20px; border: 1px solid #dedaff; border-radius: 14px; background: linear-gradient(145deg, #f8f7ff, #fff); }
.reservation-panel__title { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.reservation-panel__title > div { display: flex; align-items: center; gap: 8px; }
.reservation-panel__title h3 { margin: 0; font-size: 15px; }
.verified { color: #9599aa; font-size: 9px; }
.reservation-metrics { display: grid; grid-template-columns: repeat(3,1fr); margin: 18px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.reservation-metrics div { padding: 13px; border-right: 1px solid var(--line); }
.reservation-metrics div:last-child { border: 0; }
.reservation-metrics span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; }
.reservation-metrics strong { font-size: 13px; }
.reservation-action { margin: 0 0 7px; color: var(--primary-dark); font-size: 12px; font-weight: 700; }
.subtle-note { margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.official-button { width: 100%; font-size: 12px; }
.step-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.step-list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 11px; background: var(--soft); }
.step-list li > span { display: grid; place-items: center; width: 26px; height: 26px; color: #fff; border-radius: 50%; background: var(--primary); font-size: 10px; }
.step-list p { margin: 0; font-size: 12px; }
.info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.info-grid > div { padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.info-grid span { color: var(--primary); font-size: 10px; font-weight: 800; }
.info-grid p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.source-list { display: grid; gap: 9px; }
.source-list a { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; }
.source-list a:hover { border-color: #cec8ff; }
.source-list strong, .source-list span { display: block; font-size: 11px; }
.source-list div span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.action-card, .quick-facts, .peer-card { margin-bottom: 14px; padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.action-card { border-color: #dcd8ff; background: linear-gradient(145deg, #f2f0ff, #fff); }
.action-card h2 { margin: 6px 0; font-size: 18px; }
.action-card p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.action-card button { width: 100%; margin-top: 8px; font-size: 11px; }
.quick-facts h2, .peer-card h2 { margin: 0 0 14px; font-size: 14px; }
.quick-facts div { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.quick-facts span, .peer-card a span { color: var(--muted); font-size: 9px; }
.quick-facts strong { font-size: 10px; line-height: 1.5; }
.peer-card { display: grid; gap: 0; }
.peer-card a { padding: 10px 0; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.peer-card a span { display: block; margin-bottom: 3px; }
.guide-hero { padding: 44px 0 38px; color: #fff; background: linear-gradient(120deg, #202845, #6558ee); }
.guide-hero h1 { margin: 7px 0 5px; font-size: 34px; }
.guide-hero p { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; }
.generated-guide-layout { display: grid; grid-template-columns: minmax(0,1fr); padding-block: 28px 75px; }
.guide-summary-card { align-self: start; position: sticky; top: 90px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.guide-summary-card > p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.guide-summary-card dl { margin: 16px 0; }
.guide-summary-card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 10px; }
.guide-summary-card dt { color: var(--muted); }
.guide-summary-card dd { margin: 0; text-align: right; font-weight: 750; }
.guide-summary-card button { width: 100%; font-size: 10px; }
.generated-timeline { margin-top: 0; }
.timeline-sort { display: flex; flex: 0 0 auto; gap: 5px; padding: 3px; border-radius: 9px; background: var(--soft); }
.timeline-sort button { padding: 7px 10px; color: var(--muted); border: 0; border-radius: 7px; background: transparent; font-size: 9px; font-weight: 750; }
.timeline-sort button.is-active { color: var(--primary); background: #fff; box-shadow: 0 2px 7px rgba(51,47,112,.09); }
.timeline-sort .timeline-back { margin-left: 5px; color: var(--primary); border-left: 1px solid var(--line); border-radius: 0 7px 7px 0; }
.timeline-view-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.timeline-fold__body { padding: 0 14px 14px; }
.itinerary-map-panel { margin-bottom: 22px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.itinerary-map-panel .timeline-fold__body { padding: 0; }
.itinerary-map-panel h3 { margin: 0; font-size: 13px; }
.itinerary-map-panel p, .itinerary-map-panel header > span { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.itinerary-map { width: 100%; height: 360px; background: #fafbfc; }
.itinerary-map-error { padding: 10px 14px; color: #9b574f !important; background: #fff4f3; }
.planner-preview .itinerary-map-panel { border: 0; background: #f7f7fb; }
.planner-preview .itinerary-map { height: 250px; }
.booking-gantt { margin-bottom: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fafaff; }
.booking-gantt h3 { margin: 0; font-size: 13px; }
.booking-gantt p, .booking-gantt header > span { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.gantt-legend { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 8px; }
.gantt-legend span { display: inline-flex; align-items: center; gap: 4px; }
.gantt-legend i { width: 10px; height: 8px; border-radius: 2px; }
.gantt-legend .is-booking { height: 4px; background: #38a875; }
.gantt-legend .is-visit { width: 10px; height: 10px; border: 3px solid #ed8a4a; border-radius: 50%; background: #fff; }
.gantt-legend .is-empty { background: #e5e6ec; }
.gantt-legend .is-today { width: 2px; height: 12px; border-radius: 0; background: #df5050; }
.gantt-scale { display: grid; grid-template-columns: repeat(var(--gantt-days),minmax(18px,1fr)); gap: 3px; margin-left: 140px; padding-right: 70px; color: #9a9ead; font-size: 7px; text-align: center; }
.gantt-scale span { overflow: visible; white-space: nowrap; }
.gantt-scale span.is-skipped { visibility: hidden; }
.gantt-scale span.is-today { color: #c93f3f; font-weight: 800; }
.gantt-rows { display: grid; gap: 5px; margin-top: 5px; }
.gantt-row { display: grid; grid-template-columns: 130px minmax(0,1fr) 60px; align-items: center; gap: 10px; min-height: 27px; }
.gantt-row > strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.gantt-row > em { color: var(--muted); font-size: 8px; font-style: normal; text-align: right; }
.gantt-track { display: grid; grid-template-columns: repeat(var(--gantt-days),minmax(18px,1fr)); gap: 0; }
.gantt-cell { position: relative; height: 14px; background: transparent; }
.gantt-cell::before { position: absolute; top: 5px; right: 0; left: 0; height: 4px; background: #e3e5ea; content: ""; }
.gantt-cell--booking::before { background: #38a875; }
.gantt-visit-icon { position: absolute; z-index: 3; top: 1px; left: 50%; width: 10px; height: 10px; border: 3px solid #ed8a4a; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(125,67,29,.22); transform: translateX(-50%); }
.gantt-cell.is-today::after { position: absolute; z-index: 2; top: -9px; bottom: -9px; left: 50%; width: 2px; background: #df5050; box-shadow: 0 0 0 1px rgba(255,255,255,.75); transform: translateX(-50%); content: ""; }

.admin-header { padding: 24px 0; color: #fff; background: #293047; }
.admin-header .page-shell { display: flex; align-items: end; justify-content: space-between; }
.admin-header h1 { margin: 0 0 5px; font-size: 24px; }
.admin-header p { margin: 0; color: rgba(255,255,255,.7); font-size: 12px; }
.admin-header a { padding: 8px 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 3px; font-size: 11px; }
.admin-content { padding-block: 28px 70px; }
.admin-message { margin: 0 0 14px; padding: 10px 12px; color: #16724f; border: 1px solid #aad9c8; background: #eff9f5; font-size: 11px; }
.admin-message--error { color: #a33b32; border-color: #e1b7b3; background: #fff4f3; }
.admin-summary { display: flex; align-items: center; gap: 0; margin: 0; border: 1px solid #dfe1e8; background: #fff; }
.admin-summary div { display: flex; align-items: baseline; gap: 8px; min-width: 130px; padding: 11px 16px; border-right: 1px solid #dfe1e8; }
.admin-summary div:last-child { border-right: 0; }
.admin-summary dt { color: var(--muted); font-size: 10px; }
.admin-summary dd { margin: 0; color: var(--ink); font-size: 17px; font-weight: 750; }
.notice-box { padding: 17px; border: 1px solid #dcd8ff; border-radius: 13px; background: #f5f3ff; font-size: 12px; }
.notice-box p { margin: 6px 0 0; color: var(--muted); }
.notice-box--warning { border-color: #f0d7b7; background: #fff8ed; }
.notice-box--success { margin-bottom: 18px; color: var(--success); border-color: #bce9d8; background: #effbf7; }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.admin-stats div { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.admin-stats span { display: block; color: var(--muted); font-size: 10px; }
.admin-stats strong { display: block; margin-top: 5px; font-size: 24px; }
.admin-filters { display: grid; grid-template-columns: minmax(260px,1fr) 180px 160px auto auto; align-items: end; gap: 10px; margin-top: 16px; padding: 12px; border: 1px solid #dfe1e8; background: #fff; }
.admin-filters label { display: flex; flex-direction: column; gap: 6px; }
.admin-filters label > span { color: var(--muted); font-size: 10px; font-weight: 750; }
.admin-filters .primary-button { min-height: 40px; }
.admin-reset { display: grid; place-items: center; min-height: 40px; padding-inline: 10px; color: var(--muted); font-size: 11px; }
.admin-table-meta { margin: 18px 0 8px; color: var(--muted); font-size: 11px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid #d8dbe4; background: #fff; }
.admin-table { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: 11px; }
.admin-table th { padding: 10px 11px; color: #565c6e; border-right: 1px solid #e0e2e9; border-bottom: 1px solid #cfd2dc; background: #f2f3f6; text-align: left; white-space: nowrap; }
.admin-table td { padding: 10px 11px; color: #3e4351; border-right: 1px solid #eceef2; border-bottom: 1px solid #e3e5eb; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table th:last-child, .admin-table td:last-child { border-right: 0; }
.admin-table td strong { display: block; color: var(--ink); font-size: 11px; }
.admin-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.admin-table code { color: #555d74; font-size: 10px; }
.admin-table__id { color: var(--muted) !important; font-variant-numeric: tabular-nums; }
.admin-table-empty { height: 90px; color: var(--muted) !important; text-align: center; }
.admin-status { white-space: nowrap; }
.admin-status--on { color: #16724f; }
.admin-status--off { color: #8a5260; }
.admin-edit-link { color: var(--primary-dark); text-decoration: underline; white-space: nowrap; }
.admin-edit-section { margin-bottom: 20px; border: 1px solid #d8dbe4; background: #fff; }
.admin-edit-section > h2 { margin: 0; padding: 12px 16px; border-bottom: 1px solid #d8dbe4; background: #f2f3f6; font-size: 14px; }
.admin-edit-section > form { padding: 0 16px 18px; }
.admin-source-table { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 10px; }
.admin-source-table th, .admin-source-table td { padding: 9px; border: 1px solid #dfe1e8; text-align: left; }
.admin-source-table th { background: #f2f3f6; }
.admin-source-table a { color: var(--primary-dark); text-decoration: underline; }
.admin-section { margin-top: 28px; }
.admin-place-section .section-heading p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.admin-rule-list { display: grid; gap: 10px; }
.admin-rule { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.admin-rule summary { display: flex; justify-content: space-between; padding: 16px; cursor: pointer; font-size: 13px; font-weight: 750; }
.admin-rule form { padding: 0 16px 18px; border-top: 1px solid var(--line); }
.admin-place__identity { display: grid; gap: 4px; }
.admin-place__identity small { color: var(--muted); font-size: 10px; font-weight: 500; }
.admin-place__summary-meta { display: flex; align-items: center; gap: 10px; }
.admin-place__summary-meta > small { color: var(--muted); font-weight: 500; }
.admin-place__body h3 { margin: 16px 0 0; font-size: 13px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; padding-top: 16px; }
.admin-form-wide { grid-column: 1 / -1; }
.admin-form-grid textarea { min-height: 72px; resize: vertical; }
.admin-checks { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 16px; margin: 14px 0; color: var(--muted); font-size: 11px; }
.admin-checks > span { color: var(--ink); font-weight: 750; }
.admin-checks label { display: flex; align-items: center; gap: 5px; }
.admin-checks input { width: 15px; min-height: 15px; accent-color: var(--primary); }
.admin-rule-form { margin-top: 5px; background: #fafafd; }
.admin-sources { display: grid; gap: 7px; margin-top: 16px; padding: 12px; border-radius: 9px; background: #f1f2f7; font-size: 10px; }
.admin-sources a { display: flex; justify-content: space-between; gap: 12px; color: var(--primary-dark); }
.admin-sources small { color: var(--muted); }
.admin-empty { padding: 50px 20px; color: var(--muted); border-radius: 14px; background: #fff; text-align: center; font-size: 12px; }
.admin-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.admin-pagination a { display: grid; place-items: center; width: 34px; height: 34px; color: var(--muted); border: 1px solid #d8dbe4; background: #fff; font-size: 11px; font-weight: 750; }
.admin-pagination a.is-current { color: #fff; background: var(--primary); }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 14px 0; font-size: 12px; }
.checkbox-row input { width: 16px; min-height: 16px; accent-color: var(--primary); }

.site-footer { display: flex; flex-shrink: 0; justify-content: space-between; gap: 24px; padding: 20px max(20px, calc((100% - 1180px) / 2)); color: #a8adbd; background: #1d2438; font-size: 10px; }
.brand--footer { color: #fff; }
.site-footer p { margin: 6px 0 0; }
.site-footer__links { display: flex; align-items: center; gap: 25px; }
.site-footer__links button { padding: 0; color: inherit; border: 0; background: transparent; font-size: inherit; }
.site-footer__links a:hover, .site-footer__links button:hover { color: #fff; }

.feedback-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 0;
  color: var(--ink);
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(23,33,59,.22);
}
.feedback-dialog::backdrop { background: rgba(23,33,59,.48); backdrop-filter: blur(4px); }
.feedback-form { display: grid; gap: 15px; padding: 24px; }
.feedback-form > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.feedback-form h2 { margin: 4px 0 0; font-size: 20px; }
.feedback-dialog__close { width: 32px; height: 32px; padding: 0; color: var(--muted); border: 0; border-radius: 9px; background: var(--soft); font-size: 22px; line-height: 1; }
.feedback-context { margin: -4px 0 0; padding: 9px 12px; color: var(--primary-dark); border-radius: 9px; background: var(--primary-soft); font-size: 11px; font-weight: 700; }
.feedback-context[hidden] { display: none; }
.feedback-form label { display: grid; gap: 6px; color: #555c70; font-size: 11px; font-weight: 700; }
.feedback-form label small { color: var(--muted); font-weight: 500; }
.feedback-form input, .feedback-form select, .feedback-form textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid #dfe1eb;
  border-radius: 9px;
  outline: none;
  background: #fafafd;
  font-size: 12px;
}
.feedback-form textarea { resize: vertical; line-height: 1.55; }
.feedback-form input:focus, .feedback-form select:focus, .feedback-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.feedback-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.feedback-fields[hidden], .feedback-form .feedback-trap { display: none; }
.feedback-form__status { min-height: 17px; margin: -3px 0; color: var(--muted); font-size: 11px; }
.feedback-form__status.is-success { color: var(--success); }
.feedback-form__status.is-error { color: var(--danger); }
.feedback-form__actions { display: flex; justify-content: flex-end; gap: 9px; }
.feedback-form__actions button { padding: 9px 16px; border: 1px solid #dfe1eb; border-radius: 9px; background: #fff; font-size: 11px; font-weight: 750; }
.feedback-form__actions button[type="submit"] { color: #fff; border-color: var(--primary); background: var(--primary); }
.feedback-form__actions button:disabled { cursor: wait; opacity: .6; }

@media (max-width: 960px) {
  .site-header__slogan span { display: none; }
  .planner__fields { grid-template-columns: 1fr 1fr; }
  .place-term-list { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .feature-strip { grid-template-columns: repeat(2,1fr); row-gap: 0; }
  .feature-strip article { padding: 8px; }
  .feature-strip article:nth-child(2) { border-right: 0; }
  .feature-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .list-hero__row { align-items: stretch; flex-direction: column; }
  .date-switcher { width: 100%; }
  .detail-layout { grid-template-columns: 150px minmax(0,1fr); }
  .detail-actions { position: static; grid-column: 2; }
}

@media (max-width: 980px) {
  .planner-workspace { grid-template-columns: 1fr; }
  .planner-editor { position: static; max-height: none; overflow: visible; }
  .planner-preview__empty { min-height: 180px; }
}

@media (max-width: 700px) {
  .page-shell, .site-header__inner, .hero__content { width: min(100% - 24px, var(--shell)); }
  .site-header { height: 52px; }
  .site-header__slogan { display: none; }
  .wizard-step > header { flex-wrap: wrap; }
  .step-feedback { margin-left: 41px; }
  .hero { min-height: 0; }
  .hero__content { padding-top: 18px; }
  .planner { padding-inline: 14px; }
  .planner__fields { grid-template-columns: 1fr; }
  .wizard-planner { padding-block: 16px; }
  .city-picker__body { grid-template-columns: 78px minmax(0,1fr); }
  .city-choice-list { grid-template-columns: 1fr; }
  .destination-places .place-term-list { grid-template-columns: 1fr; }
  .trip-fields { grid-template-columns: 1fr 104px; }
  .wizard-step--schedule > header { align-items: flex-start; flex-wrap: wrap; }
  .wizard-step--schedule > header > small { flex: 1 0 100%; margin-left: 41px; }
  .trip-day-axis { top: 52px; padding: 8px; }
  .trip-day-axis > header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .trip-day-axis > header div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .trip-day-axis__day { flex-basis: 145px; }
  .place-term-list { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 139px; }
  .wizard-submit { align-items: stretch; flex-direction: column; }
  .wizard-submit .primary-button { width: 100%; }
  .feature-strip { grid-template-columns: repeat(2,1fr); margin-top: 10px; padding: 5px; }
  .feature-strip article { justify-content: start; padding: 6px 5px; }
  .section { padding-top: 55px; }
  .scene-grid { grid-template-columns: 1fr; }
  .update-list article { grid-template-columns: 54px 1fr; }
  .update-list time { display: none; }
  .list-hero { padding-top: 24px; }
  .list-hero h1 { font-size: 28px; }
  .date-switcher { grid-template-columns: 1fr 75px; }
  .date-switcher button { grid-column: 1 / -1; }
  .list-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .booking-card { grid-template-columns: 76px 1fr; gap: 13px; }
  .booking-card__visual { min-height: 90px; }
  .card-arrow { display: none; }
  .booking-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .place-select { top: 20px; left: 70px; }
  .reservation-timeline { padding: 16px 12px; }
  .timeline-heading { align-items: start; flex-direction: column; gap: 5px; }
  /* 让排序条脱离 toolbar，改由 .reservation-timeline 作为包含块，
     这样滚动整个卡片列表期间它都能吸在可见区顶部（紧贴 52px 高的站点头）。 */
  .timeline-toolbar { display: contents; }
  .trip-brief { margin-bottom: 12px; }
  .timeline-sort {
    position: sticky;
    z-index: 25;
    top: 52px;
    width: auto;
    flex-wrap: wrap;
    margin: 0 -8px 14px;
    padding: 7px 8px;
    border-radius: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
  }
  .timeline-sort button { flex: 1; }
  .gantt-row { grid-template-columns: 85px minmax(120px,1fr) 48px; gap: 6px; }
  .gantt-scale { margin-left: 95px; }
  .booking-gantt .timeline-fold__body { overflow-x: auto; }
  .timeline-item { grid-template-columns: 20px minmax(0,1fr); gap: 9px; }
  .timeline-date { grid-column: 2; padding: 0 0 2px; }
  .timeline-details { grid-column: 2; }
  .timeline-marker { grid-row: 1 / span 2; }
  .timeline-facts { grid-template-columns: 1fr; }
  .timeline-intro-panel dl { grid-template-columns: 1fr; }
  .reservation-card__head { align-items: flex-start; flex-wrap: wrap; }
  .planner-preview .reservation-card__body,
  .reservation-card__body { grid-template-columns: minmax(0,1fr); }
  .reservation-brief { grid-template-columns: repeat(auto-fit,minmax(104px,1fr)); gap: 8px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .reservation-signal { align-items: baseline; flex-direction: row; gap: 8px; text-align: left; }
  .reservation-signal > strong { margin-top: 0; }
  .timeline-plan-meta { width: 100%; margin: 7px 0 0; padding-top: 7px; border-top: 1px solid var(--line); }
  .timeline-detail-footer a { flex: 1 1 auto; text-align: center; }
  .selection-bar { bottom: 8px; width: 100%; }
  .detail-banner { min-height: 245px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-toc { position: static; }
  .detail-toc nav { display: none; }
  .detail-toc .local-plan-card { display: none; }
  .detail-actions { grid-column: auto; }
  .detail-section { padding: 18px; }
  .reservation-panel { padding: 15px; }
  .reservation-panel__title { flex-direction: column; }
  .reservation-metrics { grid-template-columns: 1fr; }
  .reservation-metrics div { border-right: 0; border-bottom: 1px solid var(--line); }
  .info-grid, .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-wide { grid-column: auto; }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
  .admin-filters { grid-template-columns: 1fr; }
  .admin-filters .primary-button, .admin-reset { width: 100%; }
  .admin-place summary { align-items: flex-start; }
  .admin-place__summary-meta { align-items: flex-end; flex-direction: column; }
  .admin-sources a { flex-direction: column; }
  .generated-guide-layout { grid-template-columns: 1fr; }
  .guide-summary-card { position: static; }
  .site-footer, .site-footer__links { flex-direction: column; align-items: start; }
  .feedback-fields { grid-template-columns: 1fr; }
  .feedback-form { padding: 20px; }
}

/* 手机上多层容器各自留白会叠加，横向可用宽度被吃掉近两成。这里统一收紧各层的左右内衬。 */
@media (max-width: 700px) {
  .page-shell, .site-header__inner, .hero__content { width: min(100% - 16px, var(--shell)); }
  .planner, .wizard-planner { padding-inline: 9px; }
  .planner-editor { padding-inline: 0; }
  .destination-places .place-term-groups { padding-inline: 5px; }
  .planner-preview__body { padding-inline: 9px; }
  .reservation-timeline { padding-inline: 8px; }
  .timeline-item { grid-template-columns: 14px minmax(0,1fr); gap: 8px; }
  .reservation-card__head { padding-inline: 11px; }
  .reservation-brief, .timeline-detail-body { padding-inline: 11px; }
  .timeline-view-panel > header { padding-inline: 11px; }
  .timeline-fold__body { padding-inline: 11px; }
  .itinerary-map-panel .timeline-fold__body { padding-inline: 0; }
}

/* iOS Safari 在输入框字号小于 16px 时，聚焦瞬间会把整页放大。触屏设备统一到 16px 可以避免。 */
@media (pointer: coarse) {
  .feedback-form input, .feedback-form select, .feedback-form textarea { font-size: 16px; }
  .city-search input { min-height: 36px; font-size: 16px; }
}

/* 首页 dashboard：保留原有规划流程，只采用旅行助手式的信息层级与视觉语言。 */
.site-dashboard-nav { display: none; }
.home-page .hero { background: #f5f6fb; }
.home-page .hero::before,
.home-page .hero::after { display: none; }
.home-page .wizard-planner {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-page .planner-workspace { gap: 16px; }
.home-page .planner-editor {
  display: grid;
  /* 显式 1fr 轨道：否则隐式 auto 轨道会被景点列表的 max-content 撑破，
     整块内容溢出到右侧预览面板底下形成遮挡。 */
  grid-template-columns: minmax(0,1fr);
  align-content: start;
  gap: 16px;
  padding: 0;
}
.home-page .wizard-step {
  padding: 16px;
  border: 1px solid #e9eaf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(57,53,109,.06);
}
.home-page .wizard-step + .wizard-step {
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid #e9eaf2;
}
.home-page .wizard-step > header > span {
  border-radius: 10px;
  background: linear-gradient(145deg,#7367f6,#5748dc);
}
.dashboard-banner {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 18px 28px;
  color: #23264a;
  border: 1px solid rgba(218,220,244,.9);
  border-radius: 22px;
  background:
    radial-gradient(circle at 76% 20%, rgba(255,255,255,.92), transparent 23%),
    linear-gradient(105deg, #e8edff 0%, #e6f3ff 52%, #f3e9fa 100%);
  box-shadow: 0 16px 40px rgba(78,73,145,.09);
  text-align: left;
}
.dashboard-banner__copy { position: relative; z-index: 2; min-width: 0; }
/* 首页没有站点头，品牌与全局操作放回横幅顶行。 */
.dashboard-banner__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.dashboard-banner__top .brand { font-size: 13px; }
.dashboard-banner__top .brand__mark { width: 26px; height: 26px; }
.dashboard-banner__actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.dashboard-banner__actions .header-reset[hidden] { display: none; }
.dashboard-banner__eyebrow {
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
}
.dashboard-banner h2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 7px;
  font-size: clamp(26px,2.4vw,36px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.dashboard-banner h2 i { color: #9e9ac4; font-style: normal; font-weight: 500; }
/* 城市名可能很长：允许换行并按城市数量降级字号，最多两行后省略。 */
.dashboard-banner h2 [data-dashboard-cities] {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}
.dashboard-banner h2 [data-dashboard-days] { flex: 0 0 auto; }
.dashboard-banner.is-multi-city h2 { font-size: clamp(21px,1.7vw,26px); }
.dashboard-banner.is-many-city h2 { font-size: clamp(18px,1.4vw,22px); }
.dashboard-banner p { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; margin: 0; color: #6a6f89; font-size: 12px; }
.dashboard-banner p span { font-weight: 800; }
.dashboard-banner p b { color: var(--primary-dark); font-size: 11px; }
/* 行程设置条：日期 / 天数 / 目的地，侧栏第一张卡片。 */
.trip-setup-bar {
  position: relative;
  z-index: 6;
  display: flex;
  align-content: start;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #e9eaf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(57,53,109,.06);
  text-align: left;
}
.trip-setup-bar > .trip-fields,
.trip-setup-bar__row { flex: 1 1 100%; min-width: 0; }
.trip-setup-bar > .trip-calendar { flex: 0 0 auto; }
/* 日期与城市面板走正常文档流：展开时把下方内容顶下去，不会盖住任何东西。 */
.trip-setup-bar__row { display: grid; grid-template-columns: minmax(0,1fr); gap: 9px; }
/* 景点面板常驻，与设置条在横幅内左右并排。 */
.place-picker { display: block; min-width: 0; }
.place-picker[hidden] { display: none; }
.place-picker__panel {
  display: flex;
  flex-direction: column;
  height: 296px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e9eaf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(57,53,109,.06);
}
.place-picker__head { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid #ececf3; }
.place-picker__head b { flex: 0 0 auto; font-size: 10px; }
.place-picker__head small { flex: 1 1 auto; color: var(--primary-dark); font-size: 8px; font-weight: 800; }
.place-picker__head .step-feedback { flex: 0 0 auto; margin: 0; }
.trip-setup-bar .custom-date-display, .trip-setup-bar .day-stepper { background: #fff; }
.trip-setup-bar .custom-date-display:hover { background: #f1eeff; }
.trip-setup-bar .trip-calendar,
.trip-setup-bar .city-picker__panel {
  margin: 0;
  border: 1px solid #e4e4ee;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(40,38,80,.07);
}
.trip-setup-bar .trip-calendar {
  width: min(292px,100%);
  padding: 12px 13px 13px;
  background: #fff;
}
.trip-setup-bar .city-picker__body { min-height: 150px; max-height: 190px; }
/* 侧栏只有 280px 宽，目的地面板在流里会挤成两列小格子；桌面端改成浮层，
   省份、搜索和城市网格都能铺开。 */
@media (min-width: 981px) {
  .trip-setup-bar .city-picker__panel {
    position: absolute;
    z-index: 60;
    top: calc(100% + 9px);
    left: 0;
    width: min(560px,calc(100vw - 48px));
    box-shadow: 0 22px 54px rgba(38,35,80,.18);
  }
  .trip-setup-bar .city-picker__toolbar { min-height: 50px; padding: 8px 12px; }
  .trip-setup-bar .city-search { width: min(240px,55%); }
  .trip-setup-bar .city-picker__body {
    grid-template-columns: 132px minmax(0,1fr);
    min-height: 320px;
    max-height: min(52vh,400px);
  }
  .trip-setup-bar .city-choice-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
.place-picker .destination-places { flex: 1 1 auto; height: auto; min-height: 0; border: 0; border-radius: 0; background: transparent; }
.place-picker .place-city-tabs { background: transparent; }
@media (min-width: 1180px) {
  .home-page { background: #f5f6fb; }
  .home-page .hero__content {
    width: min(var(--shell),calc(100% - 36px));
    padding-top: 18px;
  }
  .home-page .planner-preview {
    border: 1px solid #e9eaf2;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(57,53,109,.08);
  }
  .home-page .planner-preview > header {
    padding: 15px 17px;
    border-radius: 16px 16px 0 0;
  }
}

@media (max-width: 1179px) {
  .dashboard-banner { padding: 16px 20px; }
}

@media (max-width: 700px) {
  .dashboard-banner {
    margin-bottom: 12px;
    padding: 14px 14px 15px;
    border-radius: 17px;
  }
  .dashboard-banner h2 { margin: 6px 0 7px; font-size: 25px; }
  .dashboard-banner p { gap: 4px; flex-direction: column; align-items: flex-start; }
  .trip-setup-bar { padding: 10px; }
  .trip-setup-bar .trip-calendar { width: 100%; }
  .place-picker__panel { height: 268px; }
  .place-picker__head { flex-wrap: wrap; }
}

/* 首页工作台：左侧规划工具，右侧排期与长时间轴。 */
.home-page .planner-workspace {
  grid-template-columns: 280px minmax(0,1fr);
  gap: 16px;
  /* 右栏要跟着左栏的满高一起拉伸，内容不足一屏时才不会在底部留白。 */
  align-items: stretch;
}
.home-page .planner-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
  height: calc(100vh - 40px);
  max-height: none;
  overflow: visible;
}
.home-page .dashboard-banner {
  flex: 0 0 auto;
  margin: 0;
  padding: 14px 18px 16px;
}
.home-page .dashboard-banner h2 { font-size: 27px; }
.home-page .dashboard-banner.is-multi-city h2 { font-size: 22px; }
.home-page .dashboard-banner.is-many-city h2 { font-size: 19px; }
.home-page .trip-setup-bar { flex: 0 0 auto; }
/* 窄侧栏里「目的地 / 添加城市」占一行，已选城市另起一行铺开。 */
.home-page .selected-cities { align-items: center; flex-wrap: wrap; gap: 7px; padding: 9px 10px; }
.home-page .selected-cities > span { order: 0; }
.home-page .selected-cities > .city-picker__add { order: 1; margin-left: auto; }
.home-page .selected-cities > [data-clear-cities] { order: 2; }
.home-page .selected-cities > div { order: 3; flex: 1 1 100%; }
.home-page .trip-fields { grid-template-columns: minmax(0,1fr) 88px; }
.home-page .place-picker {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}
.home-page .place-picker[hidden] { display: none; }
.home-page .place-picker__panel {
  width: 100%;
  height: auto;
  min-height: 0;
}
.home-page .place-picker .destination-places { min-height: 0; }
/* 还没选城市时左栏只剩一张设置卡，下面用插画占位把这一列撑到底。 */
.home-page .planner-placeholder {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 18px 16px 0;
  border: 1px solid #e9eaf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(57,53,109,.06);
}
.home-page .planner-placeholder[hidden] { display: none; }
.home-page .planner-placeholder p { flex: 0 0 auto; margin: 0; color: var(--muted); font-size: 10px; }
/* 插画沉在卡片底部，用径向遮罩加正片叠底把矩形边缘化开，融进白底。 */
.home-page .planner-placeholder img {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  /* 高度必须跟着原图比例走：留白撑高盒子会把插画推进遮罩的淡出区。 */
  max-height: 100%;
  margin-top: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: .92;
  /* 遮罩圆心必须留在 center：Chrome 下写成 at 50% 62% 会把整张图裁没。 */
  -webkit-mask-image: radial-gradient(ellipse 78% 74% at center, #000 0%, rgba(0,0,0,.94) 22%, rgba(0,0,0,.72) 42%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.14) 78%, transparent 95%);
  mask-image: radial-gradient(ellipse 78% 74% at center, #000 0%, rgba(0,0,0,.94) 22%, rgba(0,0,0,.72) 42%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.14) 78%, transparent 95%);
}
/* 攻略内容不足一屏时，右栏也铺到浏览器底端，不留白。 */
.home-page .planner-guide-column {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-width: 0;
}
.home-page .planner-guide-column > .wizard-step--schedule {
  height: auto;
  min-height: 0;
  padding: 12px 14px;
}
.home-page .wizard-step--schedule > header { margin-bottom: 7px; }
.home-page .wizard-step--schedule .trip-day-axis { position: static; margin: 0; }
.home-page .wizard-step--schedule .trip-day-axis__track {
  grid-template-columns: 56px repeat(var(--trip-days),minmax(104px,1fr));
  max-height: min(44vh,320px);
  overflow: auto;
  overscroll-behavior: contain;
}
.home-page .wizard-step--schedule .trip-day-axis__slot-label,
.home-page .wizard-step--schedule .trip-day-axis__slot { min-height: 34px; }
/* 收起后只留标题行，把纵向空间让给右侧攻略。 */
.wizard-step--schedule.is-collapsed > header { margin-bottom: 0; }
.wizard-step--schedule.is-collapsed .trip-day-axis { display: none; }
.schedule-toggle {
  flex: 0 0 auto;
  padding: 5px 12px;
  color: var(--primary-dark);
  border: 1px solid #d8d2ff;
  border-radius: 999px;
  background: var(--primary-soft);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  transition: .16s ease;
}
.schedule-toggle:hover { color: #fff; border-color: var(--primary); background: var(--primary); }
.home-page .planner-preview { width: 100%; min-height: 0; }
/* 首页没有站点头，右栏顶部的「预约攻略」标题栏、视图开关、行程摘要和排序条
   一起吸在视口顶端：标题栏贴 0，工具条接在它下沿（高度由 JS 实测写入变量）。
   下面的卡片流是白底，所以整条吸顶区染成淡紫，并压一条投影划出边界。 */
.home-page .planner-preview > header {
  position: sticky;
  z-index: 32;
  top: 0;
  border-bottom: 1px solid #dcd8f4;
  background: linear-gradient(180deg,#eeebff 0%,#e7eaf9 100%);
}
.home-page .planner-preview__body { padding-top: 0; }
.home-page .planner-preview .timeline-toolbar {
  top: var(--preview-head-h,58px);
  padding-top: 10px;
  padding-bottom: 12px;
  background: linear-gradient(180deg,#e7eaf9 0%,#e1e5f5 100%);
  box-shadow: 0 1px 0 #d2cdec, 0 14px 18px -12px rgba(52,45,110,.45);
}
.home-page .planner-preview .trip-brief {
  border-color: #d9d3f7;
  background: rgba(255,255,255,.92);
}
.home-page .planner-preview .timeline-sort { background: rgba(255,255,255,.78); }

/* 预约卡片：图片和核心状态优先，官方操作保持醒目。 */
.reservation-card__image {
  display: grid;
  place-items: center;
  flex: 0 0 88px;
  width: 88px;
  height: 74px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 5px 14px rgba(41,49,82,.1);
}
.reservation-card__image--fallback {
  color: rgba(255,255,255,.94);
  background:
    radial-gradient(circle at 72% 24%,rgba(255,255,255,.38),transparent 24%),
    linear-gradient(145deg,#77a9df,#6558ee);
  font-family: serif;
  font-size: 30px;
  font-weight: 800;
}
.reservation-card__title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.reservation-card__title h3 { margin: 0; }
.reservation-card__title em {
  padding: 3px 7px;
  color: #fff;
  border-radius: 999px;
  background: #ff7193;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}
.timeline-details .timeline-summary-main > p {
  margin: 8px 0 0;
  color: #788098;
  font-size: 10px;
  line-height: 1.45;
}
.reservation-signal {
  align-self: stretch;
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 13px;
  background: linear-gradient(135deg,#f8f9ff,#f2f3fb);
}
.reservation-signal > strong { font-size: 16px; }
.timeline-detail-footer .timeline-official {
  min-width: 108px;
  border-radius: 999px;
  text-align: center;
  box-shadow: 0 7px 16px rgba(101,88,238,.2);
}

@media (min-width: 1180px) {
  .home-page .hero__content { padding-top: 16px; }
  .home-page .planner-editor { top: 16px; }
}

@media (max-width: 980px) {
  .home-page .planner-workspace { grid-template-columns: minmax(0,1fr); }
  .home-page .planner-editor { height: auto; overflow: visible; }
  .home-page .planner-guide-column { grid-template-rows: auto auto; gap: 12px; }
  .home-page .planner-guide-column > .wizard-step--schedule { height: auto; min-height: 0; }
  /* 单列布局下左栏不再有富余高度，占位卡纯属浪费屏幕，直接不显示。 */
  .home-page .planner-placeholder { display: none; }
}

@media (max-width: 700px) {
  /* 首页没有站点头，排序条改为吸在攻略标题栏下沿。 */
  .home-page .timeline-sort { top: var(--preview-head-h,52px); }
  .home-page .trip-brief { margin-top: 10px; }
  .home-page .dashboard-banner { min-height: 105px; }
  .reservation-card__image { flex-basis: 70px; width: 70px; height: 64px; }
  .reservation-signal { min-width: 0; width: 100%; align-items: flex-start; text-align: left; }
}
