/* =========================================================
   自游旅行 · 2026 UI 改版
   白底 / 黑字 / 薄荷绿只做强调
   叠在 styles.css 之后，只覆盖视觉，不改交互
   ========================================================= */

:root {
  --mint-800: #237f73;
  --mint-700: #2f9e8f;
  --mint-600: #3eb7a6;
  --mint-500: #55c8b7;
  --mint-200: #bcece4;
  --mint-100: #e6f8f3;
  --mint-50: #f3fbf8;

  --paper: #f6f8f7;
  --white: #ffffff;
  --ink: #182322;
  --ink-soft: #3c4a48;
  --muted: #869391;
  --muted-light: #a7b1af;
  --line: #e9efed;
  --line-strong: #dfe7e4;

  --amber: #b57a24;
  --amber-bg: #fff7e7;
  --peach: #b57a24;
  --peach-bg: #fff7e7;
  --lilac: #7367b8;
  --lilac-bg: #f2f0fb;
  --blue: #4f87a8;
  --blue-bg: #eff7fb;
  --green-soft: #4aa77e;
  --green-bg: #eef9f3;

  --shadow-sm: 0 2px 8px rgba(24, 59, 54, 0.035);
  --shadow-md: 0 10px 30px rgba(24, 59, 54, 0.07);
  --shadow-lg: 0 20px 50px rgba(24, 59, 54, 0.1);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --header-h: 72px;
  --tabbar-h: 72px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", "Avenir Next", system-ui, sans-serif;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-view="home"],
body[data-view="profile"] {
  background: #fff;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.app-container {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.035em;
}

/* ---------- 顶部导航 ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: none !important;
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-nav button {
  height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0;
}

.top-nav button:hover {
  color: var(--ink);
  background: var(--paper);
}

.top-nav button.is-active {
  color: var(--mint-800);
  background: var(--mint-50);
  font-weight: 600;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn.soft {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.icon-btn.soft:hover {
  background: var(--paper);
}

.header-new {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--mint-700);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 14px rgba(47, 158, 143, 0.18);
}

.header-new .icon {
  font-size: 14px;
}

.header-saved {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-saved .icon {
  font-size: 14px;
}

.header-saved em {
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--mint-50);
  color: var(--mint-800);
  font-size: 9px;
  font-style: normal;
  display: inline-grid;
  place-items: center;
}

.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

/* ---------- 首页 ---------- */
.home-screen {
  padding: 44px 0 80px;
  min-height: calc(100vh - var(--header-h));
}

.home-hero {
  min-height: 0;
  display: block;
}

.home-hero-copy {
  max-width: 720px;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.home-hero h1 span {
  color: var(--mint-700);
}

.home-sub {
  max-width: 560px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.home-hero-art {
  display: none;
}

.home-search {
  width: 100%;
  height: 64px;
  margin-top: 26px;
  padding: 0 9px 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.home-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.home-search-field .icon {
  color: var(--muted);
  font-size: 19px;
}

.home-search-field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}

.home-search-field input::placeholder {
  color: var(--muted-light);
}

.home-search .btn {
  height: 46px;
  min-width: 96px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--mint-700);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(47, 158, 143, 0.2);
}

.home-hot {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 2px 0;
  color: var(--muted);
  font-size: 12px;
}

.home-hot span {
  color: var(--muted-light);
}

.home-hot button {
  color: var(--ink-soft);
  font-size: 12px;
}

.home-hot button:hover {
  color: var(--mint-800);
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  margin-top: 44px;
}

.home-section {
  margin-top: 38px;
}

.home-main > .home-section:first-child {
  margin-top: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-head .section-note {
  color: var(--muted);
  font-size: 11.5px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--mint-800);
  font-size: 11.5px;
  font-weight: 500;
}

.link-btn .icon {
  font-size: 14px;
}

/* 当前 / 最近行程，第一张做成主角 */
.recent-list {
  display: block;
}

.recent-list .recent-item {
  display: none;
}

.recent-list .recent-item:first-child {
  display: flex;
  width: 100%;
  min-height: 168px;
  padding: 8px;
  gap: 18px;
  align-items: stretch;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.recent-list .recent-item:first-child:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.recent-thumb {
  width: 178px;
  min-height: 150px;
  border-radius: 16px;
  overflow: hidden;
  flex: none;
  background: var(--mint-50);
  color: var(--mint-800);
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 600;
}

.recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-copy {
  flex: 1;
  min-width: 0;
  padding: 14px 6px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recent-copy strong {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.recent-copy small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.recent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.recent-tags span {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font-size: 10px;
}

.recent-action {
  width: 38px;
  height: 38px;
  margin: auto 6px auto 0;
  border-radius: 50%;
  background: var(--mint-50);
  color: var(--mint-700);
  display: grid;
  place-items: center;
  font-size: 0;
  flex: none;
}

.recent-action .icon {
  font-size: 17px;
}

.recent-empty-note {
  display: none;
}

/* 灵感目的地 */
.insp-scroll {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  padding: 0;
}

.insp-card {
  position: relative;
  display: block;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.insp-card::after {
  display: none;
}

.insp-card img {
  width: 100%;
  height: 154px;
  object-fit: cover;
  border-radius: 0;
}

.insp-tag {
  position: static;
  display: block;
  padding: 12px 14px 0;
  background: none;
  color: var(--mint-800);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.insp-copy {
  position: static;
  display: block;
  padding: 5px 14px 14px;
  color: var(--ink);
}

.insp-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.insp-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.insp-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}

.insp-arrow .icon {
  font-size: 13px;
}

/* 工具 */
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-row button,
.tool-row a {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}

.tool-row button:hover,
.tool-row a:hover {
  border-color: var(--mint-500);
  color: var(--mint-800);
}

/* 酒店 */
.stay-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  overflow: visible !important;
  padding: 0 !important;
}

.stay-card {
  display: block !important;
  min-width: 0 !important;
  width: auto !important;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stay-cover {
  display: block;
  height: 132px !important;
  border-radius: 0 !important;
}

.stay-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stay-body {
  display: block !important;
  padding: 12px 13px 13px;
}

.stay-body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stay-body small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.stay-price {
  display: block;
  margin-top: 8px;
  color: var(--mint-800);
  font-size: 11.5px;
  font-weight: 600;
}

.stay-price i {
  font-style: normal;
  font-size: 9px;
}

.stay-price small {
  display: inline;
  margin-left: 2px;
  font-weight: 400;
  color: var(--muted);
}

/* 右栏 */
.home-aside {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-aside .aside-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
}

.home-aside .aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-aside .mini-label {
  color: var(--mint-800);
  font-size: 9.5px;
  letter-spacing: 0.12em;
}

.home-aside .soft-badge {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font-size: 9px;
}

.home-aside .aside-card h3 {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.home-aside .aside-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.home-aside .aside-card .link-btn {
  margin-top: 16px;
}

.home-aside .style-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 11px;
}

.home-aside .style-dots span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.home-aside .style-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.home-aside .aside-footnote {
  padding: 0 6px;
  color: var(--muted-light);
  font-size: 10.5px;
  line-height: 1.6;
}

/* 底部导航 */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 8px 14px max(8px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted-light);
  font-size: 10px;
}

.tab-item .icon {
  font-size: 21px;
}

.tab-item.is-active {
  color: var(--mint-700);
  font-weight: 600;
}

.tab-item em {
  position: absolute;
  transform: translate(12px, -13px);
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  background: var(--mint-700);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  display: inline-grid;
  place-items: center;
}

/* ---------- 规划页 ---------- */
body[data-view="planner"] {
  background: var(--paper);
}

.planner-screen {
  padding: 34px 0 96px;
}

.subpage-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.subpage-head .round-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.subpage-head .mini-label {
  color: var(--mint-800);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.subpage-head h1 {
  margin-top: 2px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.head-chip {
  margin-left: auto;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
}

.head-chip.soft {
  background: var(--mint-50);
  border-color: #def3ec;
  color: var(--mint-800);
}

.planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.planner-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-section {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: none;
}

.form-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.step-num {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--mint-800);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding-top: 3px;
}

.form-section-head h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.form-section-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.form-section-head .head-chip {
  margin-left: auto;
}

.field-grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.field-label .icon {
  font-size: 13px;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  outline: 0;
}

.field input:focus {
  border-color: var(--mint-500);
  box-shadow: 0 0 0 3px rgba(62, 183, 166, 0.12);
}

.field input::placeholder {
  color: var(--muted-light);
}

.quick-dest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10.5px;
}

.quick-dest button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 11px;
}

.quick-dest button:hover {
  border-color: var(--mint-500);
  color: var(--mint-800);
}

.traveler-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 12px;
}

.traveler-row > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.stepper button {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.stepper input {
  width: 28px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.style-card {
  position: relative;
  min-height: 76px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.style-card .style-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
  display: grid;
  place-items: center;
  flex: none;
}

.style-card .style-icon .icon {
  font-size: 14px;
}

.style-copy strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

.style-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.style-check {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  color: transparent;
  display: grid;
  place-items: center;
}

.style-check .icon {
  font-size: 10px;
}

.style-card.is-active {
  border-color: var(--mint-500);
  background: var(--mint-50);
  box-shadow: inset 0 0 0 1px var(--mint-500);
}

.style-card.is-active .style-icon {
  background: #fff;
  color: var(--mint-800);
}

.style-card.is-active .style-check {
  background: var(--mint-700);
  color: #fff;
}

.pref-block {
  margin-top: 16px;
}

.pref-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.pref-label em {
  margin-left: 4px;
  color: var(--muted-light);
  font-style: normal;
  font-size: 9.5px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: var(--paper);
  gap: 3px;
}

.segmented button {
  height: 32px;
  padding: 0 18px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11.5px;
}

.segmented button.is-active {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(24, 59, 54, 0.08);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chips button {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 11px;
}

.chips button.is-active {
  border-color: var(--mint-500);
  background: var(--mint-50);
  color: var(--mint-800);
  font-weight: 500;
}

.notes-field {
  margin-top: 16px;
}

.notes-field input {
  width: 100%;
}

.form-error {
  color: #b24c43;
  font-size: 11.5px;
  padding: 0 4px;
}

.planner-actions {
  position: sticky;
  bottom: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(24, 59, 54, 0.08);
  backdrop-filter: blur(16px);
}

.form-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10.5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-500);
}

.setup-link {
  color: var(--mint-800);
  font-size: 10.5px;
  text-decoration: underline;
}

.btn-generate {
  height: 48px;
  min-width: 220px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--mint-700);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 18px rgba(47, 158, 143, 0.2);
}

.planner-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

.preview-art {
  display: none;
}

.preview-card h3 {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.preview-chips span {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font-size: 10px;
}

.preview-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.aside-note {
  display: flex;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.aside-note .aside-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--mint-50);
  color: var(--mint-700);
  display: grid;
  place-items: center;
  flex: none;
}

.aside-note .aside-icon .icon {
  font-size: 14px;
}

.aside-note strong {
  font-size: 11.5px;
  font-weight: 600;
}

.aside-note p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

/* ---------- 行程结果 ---------- */
body[data-view="result"] {
  background: var(--paper);
  padding-bottom: 56px;
}

.result-screen {
  padding: 0;
}

/* 把原来的大图封面收成一条干净的操作栏，功能按钮全部保留 */
.result-cover {
  height: 64px !important;
  background: #fff !important;
  border-bottom: 1px solid var(--line);
  position: relative !important;
}

.result-cover #resultCoverImg,
.result-cover .cover-shade,
.result-cover .cover-bottom {
  display: none !important;
}

.cover-topbar {
  height: 64px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink) !important;
}

.cover-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cover-btn {
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--ink-soft) !important;
  font-size: 11px !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: none !important;
}

.cover-btn:hover {
  border-color: var(--mint-500) !important;
  color: var(--mint-800) !important;
}

.cover-btn .icon {
  font-size: 14px;
}

.cover-btn.icon-only {
  width: 34px;
  padding: 0;
  justify-content: center;
}

.result-sheet {
  width: min(1180px, calc(100% - 64px)) !important;
  margin: 0 auto !important;
  padding: 34px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.result-head h1 {
  margin-top: 10px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.result-tagline {
  max-width: 680px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.trip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trip-tags span {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--mint-50);
  color: var(--mint-800);
  font-size: 9.5px;
  font-weight: 500;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.result-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.result-meta .icon {
  font-size: 12px;
  color: var(--mint-700);
}

.demo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid #f0e2c2;
  border-radius: 12px;
  background: #fffaf0;
}

.demo-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f8eccd;
  color: #a37724;
  display: grid;
  place-items: center;
  flex: none;
}

.demo-banner strong {
  display: block;
  color: #765321;
  font-size: 11px;
  font-weight: 600;
}

.demo-banner p {
  margin-top: 1px;
  color: #9b7d49;
  font-size: 9.5px;
  line-height: 1.55;
}

.demo-banner .btn {
  margin-left: auto;
  flex: none;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
}

.trip-intro {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--mint-500);
  border-radius: 12px;
  background: #fff;
}

.trip-intro .mini-label {
  color: var(--mint-800);
  font-size: 9px;
}

.trip-intro-copy p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.summary-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--mint-50);
  color: var(--mint-700);
  display: grid;
  place-items: center;
  flex: none;
}

.summary-icon .icon {
  font-size: 15px;
}

.summary-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.summary-copy span {
  color: var(--muted-light);
  font-size: 9px;
}

.summary-copy strong {
  margin-top: 1px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.summary-copy small {
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 308px;
  align-items: start;
  gap: 40px;
  margin-top: 36px;
}

.itinerary-col {
  min-width: 0;
}

.itinerary-head {
  margin-bottom: 12px;
}

.itinerary-head h2 {
  margin-top: 3px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.items-count {
  color: var(--muted);
  font-size: 10.5px;
}

.day-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  width: 100%;
  gap: 7px;
  margin-bottom: 14px;
  padding: 9px 0;
  overflow-x: auto;
  background: var(--paper);
  scrollbar-width: none;
}

.day-nav::-webkit-scrollbar {
  display: none;
}

.day-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
}

.day-pill span {
  color: var(--mint-700);
  font-size: 9px;
  font-weight: 600;
}

.day-pill.is-active {
  border-color: var(--mint-700);
  background: var(--mint-700);
  color: #fff;
}

.day-pill.is-active span {
  color: #dff8f1;
}

.day-card {
  padding: 20px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.day-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.day-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--mint-50);
  color: var(--mint-700);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
}

.day-badge span {
  color: var(--mint-700);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
}

.day-badge strong {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.day-head-copy h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.day-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.day-meta .dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
  align-self: center;
}

.day-budget {
  margin-left: auto;
  color: var(--mint-800);
  font-size: 11px;
  font-weight: 600;
}

.timeline {
  position: relative;
  padding-top: 4px;
}

.timeline::before {
  display: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px 22px minmax(0, 1fr);
  gap: 0 12px;
  padding: 14px 0 14px;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-time {
  padding-top: 2px;
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mint-50);
  color: var(--mint-700);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}

.timeline-dot .icon {
  font-size: 12px;
}

.timeline-card {
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-type {
  display: block;
  margin-bottom: 2px;
  color: var(--mint-800);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.item-head h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.item-cost {
  flex: none;
  color: var(--ink-soft);
  font-family: "Avenir Next", sans-serif;
  font-size: 11px;
}

.item-cost.is-free {
  color: var(--mint-700);
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
}

.item-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.item-meta .icon {
  font-size: 11px;
}

.item-desc {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.item-tip,
.item-transport {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--mint-50);
  color: var(--mint-800);
  font-size: 10.5px;
  line-height: 1.55;
}

.item-tip .icon,
.item-transport .icon {
  font-size: 12px;
  flex: none;
  margin-top: 1px;
}

.item-transport {
  background: var(--paper);
  color: var(--muted);
}

.day-note {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.day-note .icon {
  font-size: 12px;
  color: var(--mint-700);
  flex: none;
}

/* 行程右栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
  position: sticky;
  top: 16px;
}

.side-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

.side-card > header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.side-card > header h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.side-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--mint-50);
  color: var(--mint-700);
  display: grid;
  place-items: center;
  flex: none;
}

.side-icon .icon {
  font-size: 13px;
}

.side-tag {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--paper);
  color: var(--muted);
  font-size: 9px;
}

.highlight-row {
  display: flex;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.highlight-row:first-child {
  border-top: 0;
}

.highlight-icon {
  width: 20px;
  height: 20px;
  color: var(--mint-700);
  flex: none;
}

.highlight-icon .icon {
  font-size: 13px;
}

.highlight-row strong {
  font-size: 11.5px;
  font-weight: 600;
}

.highlight-row p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.highlight-empty {
  color: var(--muted);
  font-size: 10.5px;
}

.budget-ring-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.budget-ring {
  width: 112px;
  height: 112px;
  flex: none;
}

.budget-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.budget-legend-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}

.budget-legend-row i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}

.budget-legend-row b {
  margin-left: auto;
  color: var(--ink-soft);
  font-weight: 500;
}

.budget-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.55;
}

.food-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.food-row:first-child {
  border-top: 0;
}

.food-row strong {
  font-size: 11.5px;
  font-weight: 600;
}

.food-row p {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.food-price {
  margin-left: auto;
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
}

.packing-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.packing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.packing-row input {
  accent-color: var(--mint-700);
}

.packing-row.is-done span {
  color: var(--muted-light);
  text-decoration: line-through;
}

.tip-row,
.alt-row {
  display: flex;
  gap: 7px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.tip-row:first-child,
.alt-row:first-child {
  border-top: 0;
}

.tip-row .icon,
.alt-row .icon {
  font-size: 11px;
  color: var(--mint-700);
  flex: none;
  margin-top: 1px;
}

.side-cta {
  padding: 18px;
  border-radius: 18px;
  background: var(--mint-50);
  border: 1px solid #def3ec;
}

.side-cta .mini-label {
  color: var(--mint-800);
  font-size: 9px;
}

.side-cta h3 {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.side-cta p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.side-cta .btn {
  margin-top: 12px;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  background: #fff;
  color: var(--mint-800);
  border: 1px solid #d8eee8;
  font-size: 10.5px;
  font-weight: 600;
}

.end-card {
  margin-top: 14px;
  padding: 26px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.end-card .end-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mint-50);
  color: var(--mint-700);
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
}

.end-card h3 {
  font-size: 15px;
  font-weight: 600;
}

.end-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

/* ---------- 伴游 ---------- */
body[data-view="guide"],
body[data-view="guide-detail"] {
  background: #fff;
}

.guide-screen {
  padding: 34px 0 60px;
}

.guide-hero {
  min-height: 210px;
  padding: 32px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--mint-50);
  color: var(--ink);
  overflow: hidden;
}

.guide-hero-copy {
  max-width: 520px;
}

.guide-hero .mini-label.light {
  color: var(--mint-800);
  font-size: 9.5px;
}

.guide-hero h2 {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.guide-hero p {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.65;
}

.guide-hero .btn {
  margin-top: 18px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--mint-700);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.guide-hero-art {
  display: none;
}

.guide-city-search {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.guide-city-input {
  flex: 1;
  height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
}

.guide-city-input .icon {
  color: var(--muted);
  font-size: 16px;
}

.guide-city-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.guide-city-search .btn {
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--mint-700);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.guide-city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.guide-city-chips button {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 11px;
}

.guide-city-chips button.is-active {
  border-color: var(--mint-500);
  background: var(--mint-50);
  color: var(--mint-800);
}

.guide-poi-section {
  margin-top: 34px;
}

.poi-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.poi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
}

.poi-card:hover {
  border-color: var(--mint-500);
}

.poi-thumb,
.poi-cover {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  background: var(--mint-50);
  color: var(--mint-800);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 600;
  flex: none;
  overflow: hidden;
}

.poi-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.poi-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.poi-card small {
  display: block;
  margin-top: 4px;
  color: var(--mint-800);
  font-size: 9.5px;
}

.guide-bottom-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.guide-bottom-card strong {
  font-size: 13px;
  font-weight: 600;
}

.guide-bottom-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.guide-bottom-card .link-btn {
  margin-left: auto;
}

/* 讲解详情 */
.guide-detail-screen {
  padding-bottom: 60px;
}

.guide-detail-cover {
  min-height: 240px;
  height: auto;
  padding: 24px 0 34px;
  background: var(--mint-50) !important;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.guide-cover-char {
  position: absolute;
  right: 5%;
  bottom: -40px;
  color: rgba(47, 158, 143, 0.09) !important;
  font-size: 240px;
  line-height: 1;
  font-weight: 700;
  pointer-events: none;
}

.guide-cover-pattern {
  display: none;
}

.cover-topbar {
  position: relative;
  z-index: 2;
}

.guide-detail-cover .cover-btn {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

.guide-cover-copy {
  position: relative;
  z-index: 2;
  padding-top: 54px;
}

.guide-cover-copy h1 {
  margin-top: 10px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.guide-cover-copy p {
  max-width: 560px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.guide-sheet {
  width: min(980px, calc(100% - 64px));
  margin: -18px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  z-index: 3;
}

.guide-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mint-700);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}

.play-btn .icon {
  font-size: 17px;
}

.player-main {
  flex: 1;
  min-width: 0;
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.player-top strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.player-bar {
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.player-bar i {
  display: block;
  height: 100%;
  background: var(--mint-600);
}

.guide-player .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.guide-text-block {
  margin-top: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.guide-text-block .mini-label {
  color: var(--mint-800);
  font-size: 9px;
}

.guide-text-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guide-text-block p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.soft-badge {
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--paper);
  color: var(--muted);
  font-size: 9px;
}

.guide-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.guide-fact {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.guide-fact span {
  color: var(--muted);
  font-size: 9.5px;
}

.guide-fact strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
}

.guide-ask-block {
  margin-top: 22px;
}

.guide-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.guide-message {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.guide-message.is-user {
  align-self: flex-end;
  background: var(--mint-50);
  color: var(--ink);
}

.guide-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.guide-suggestions button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.guide-ask-form {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
}

.guide-ask-form input {
  flex: 1;
  height: 40px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
}

.guide-ask-form button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--mint-700);
  color: #fff;
  display: grid;
  place-items: center;
}

/* ---------- 我的 ---------- */
body[data-view="profile"] {
  background: var(--paper);
}

.profile-screen {
  padding: 34px 0 70px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--mint-100);
  color: var(--mint-800);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 600;
  flex: none;
}

.profile-info h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.profile-info p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.profile-stats {
  display: flex;
  gap: 34px;
  margin-left: auto;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.profile-stats div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.profile-stats strong {
  font-family: "Avenir Next", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.profile-stats span {
  color: var(--muted);
  font-size: 9.5px;
}

.member-card {
  padding: 26px;
  border: 1px solid #def3ec;
  border-radius: 20px;
  background: var(--mint-50);
  color: var(--ink);
  box-shadow: none;
}

.member-card .member-kicker {
  color: var(--mint-800);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.member-card h2 {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.member-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.member-card .btn {
  margin-top: 16px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  background: #fff;
  color: var(--mint-800);
  border: 1px solid #d8eee8;
  font-size: 11px;
}

.member-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #dff0ea;
}

.member-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 9.5px;
}

.member-benefits .icon {
  font-size: 12px;
  color: var(--mint-700);
}

.settings-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.settings-row {
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.settings-row + .settings-row {
  border-top: 1px solid var(--line);
}

.settings-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--paper);
  color: var(--mint-800);
  display: grid;
  place-items: center;
  flex: none;
}

.settings-icon .icon {
  font-size: 15px;
}

.settings-icon.peach {
  color: #b57a24;
  background: var(--amber-bg);
}

.settings-icon.blue {
  color: #4f87a8;
  background: var(--blue-bg);
}

.settings-copy {
  flex: 1;
  min-width: 0;
}

.settings-copy strong {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
}

.settings-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.settings-row .chevron {
  color: var(--muted-light);
  font-size: 14px;
}

.settings-row .version {
  color: var(--muted-light);
  font-size: 10px;
}

/* ---------- 弹窗 / 抽屉 ---------- */
.setup-modal {
  background: rgba(18, 32, 29, 0.38);
  backdrop-filter: blur(6px);
}

.setup-card {
  width: min(540px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.setup-head h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.setup-body,
.setup-help {
  font-size: 12px;
  color: var(--ink-soft);
}

.setup-body code {
  background: var(--paper);
  border-radius: 5px;
}

.setup-body input {
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  font-size: 13px;
}

.setup-actions .btn {
  border-radius: 10px;
  font-size: 12px;
}

.saved-drawer {
  width: min(440px, 100%);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.drawer-head {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.saved-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.saved-item strong {
  font-size: 13px;
}

.saved-item small {
  color: var(--muted);
  font-size: 10px;
}

.planning-overlay {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.planning-inner {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.planning-inner h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.planning-kicker {
  color: var(--mint-800);
}

.planning-orbit {
  background: var(--mint-50);
}

.orbit-core {
  background: var(--mint-700);
}

.toast {
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .home-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-aside {
    display: none;
  }

  .planner-layout {
    grid-template-columns: 1fr;
  }

  .planner-aside {
    display: none;
  }

  .result-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .side-cta {
    grid-column: 1 / -1;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-stats {
    margin-left: auto;
  }
}

@media (max-width: 820px) {
  :root {
    --tabbar-h: 68px;
  }

  .app-container {
    width: calc(100% - 36px);
  }

  .app-header {
    display: none;
  }

  body {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px);
  }

  .home-screen {
    padding: 30px 0 90px;
  }

  .home-hero h1 {
    font-size: 34px;
    line-height: 1.14;
  }

  .home-sub {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.6;
  }

  .home-search {
    height: 58px;
    margin-top: 20px;
    padding: 0 7px 0 15px;
    border-radius: 16px;
    gap: 8px;
  }

  .home-search-field input {
    font-size: 12.5px;
  }

  .home-search .btn {
    height: 42px;
    min-width: 82px;
    padding: 0 13px;
    font-size: 12px;
    border-radius: 11px;
  }

  .home-hot {
    gap: 13px;
    padding-top: 11px;
    font-size: 11px;
  }

  .home-hot button {
    font-size: 11px;
  }

  .home-layout {
    margin-top: 28px;
  }

  .home-section {
    margin-top: 28px;
  }

  .section-head {
    margin-bottom: 11px;
  }

  .section-head h2 {
    font-size: 17px;
  }

  .recent-list .recent-item:first-child {
    min-height: 142px;
    padding: 7px;
    gap: 13px;
    border-radius: 18px;
  }

  .recent-thumb {
    width: 112px;
    min-height: 128px;
    border-radius: 13px;
    font-size: 26px;
  }

  .recent-copy {
    padding: 10px 2px 10px 0;
  }

  .recent-copy strong {
    font-size: 19px;
  }

  .recent-copy small {
    margin-top: 4px;
    font-size: 11px;
  }

  .recent-tags {
    margin-top: 9px;
    gap: 5px;
  }

  .recent-tags span {
    font-size: 9px;
    padding: 2px 6px;
  }

  .recent-action {
    width: 32px;
    height: 32px;
    margin-right: 3px;
  }

  .insp-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .insp-scroll::-webkit-scrollbar {
    display: none;
  }

  .insp-card {
    width: 236px;
    flex: none;
  }

  .insp-card img {
    height: 132px;
  }

  .insp-copy strong {
    font-size: 14px;
  }

  .tool-row {
    gap: 7px;
  }

  .tool-row button,
  .tool-row a {
    height: 34px;
    padding: 0 11px;
    font-size: 11px;
  }

  .stay-strip {
    display: flex !important;
    gap: 12px;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    scrollbar-width: none;
  }

  .stay-strip::-webkit-scrollbar {
    display: none;
  }

  .stay-card {
    width: 214px !important;
    flex: none;
  }

  .stay-cover {
    height: 112px !important;
  }

  .tabbar {
    height: calc(68px + env(safe-area-inset-bottom));
    padding: 7px 10px max(7px, env(safe-area-inset-bottom));
  }

  .tab-item {
    font-size: 9.5px;
  }

  .tab-item .icon {
    font-size: 20px;
  }

  /* 规划 */
  .planner-screen {
    padding: 22px 0 88px;
  }

  .subpage-head {
    gap: 12px;
    margin-bottom: 18px;
  }

  .subpage-head h1 {
    font-size: 26px;
  }

  .subpage-head .mini-label {
    font-size: 8px;
  }

  .head-chip {
    font-size: 9px;
    padding: 0 8px;
  }

  .form-section {
    padding: 18px;
    border-radius: 16px;
  }

  .form-section-head {
    gap: 9px;
    margin-bottom: 14px;
  }

  .form-section-head h2 {
    font-size: 16px;
  }

  .form-section-head p {
    font-size: 10px;
  }

  .field-grid.two {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .field input {
    height: 46px;
    font-size: 13px;
  }

  .style-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .style-card {
    min-height: 64px;
    padding: 10px;
  }

  .style-copy small {
    display: none;
  }

  .planner-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
  }

  .form-note {
    display: none;
  }

  .btn-generate {
    width: 100%;
    min-width: 0;
    height: 48px;
  }

  /* 结果 */
  .result-cover {
    height: 56px !important;
  }

  .cover-topbar {
    height: 56px;
  }

  .cover-btn {
    height: 30px;
    padding: 0 9px;
    font-size: 10px !important;
  }

  .cover-btn.icon-only {
    width: 30px;
  }

  .result-sheet {
    width: calc(100% - 36px) !important;
    padding-top: 22px !important;
  }

  .result-head h1 {
    font-size: 28px;
    line-height: 1.18;
  }

  .result-tagline {
    font-size: 11.5px;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .summary-card {
    padding: 10px;
    gap: 8px;
  }

  .summary-icon {
    width: 28px;
    height: 28px;
  }

  .summary-copy strong {
    font-size: 12.5px;
  }

  .result-layout {
    margin-top: 24px;
  }

  .itinerary-head h2 {
    font-size: 21px;
  }

  .day-nav {
    margin-right: -18px;
    padding-right: 18px;
  }

  .day-card {
    padding: 14px;
    border-radius: 16px;
  }

  .day-head {
    gap: 9px;
    padding-bottom: 12px;
  }

  .day-badge {
    width: 40px;
    height: 40px;
  }

  .day-head-copy h2 {
    font-size: 15.5px;
  }

  .day-meta {
    font-size: 9.5px;
  }

  .day-budget {
    font-size: 10px;
  }

  .timeline-item {
    grid-template-columns: 40px 20px minmax(0, 1fr);
    gap: 0 8px;
    padding: 12px 0;
  }

  .timeline-time {
    font-size: 12px;
  }

  .timeline-dot {
    width: 20px;
    height: 20px;
  }

  .timeline-dot .icon {
    font-size: 10px;
  }

  .item-head h3 {
    font-size: 14px;
  }

  .item-desc {
    font-size: 11.5px;
  }

  .sidebar {
    grid-template-columns: 1fr;
    margin-top: 8px;
  }

  .side-card {
    padding: 16px;
  }

  /* 伴游 */
  .guide-screen {
    padding: 22px 0 50px;
  }

  .guide-hero {
    min-height: 0;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .guide-hero h2 {
    font-size: 28px;
  }

  .guide-hero p {
    font-size: 11.5px;
  }

  .guide-city-search {
    margin-top: 14px;
  }

  .guide-city-input {
    height: 46px;
  }

  .guide-city-search .btn {
    height: 46px;
    font-size: 11px;
  }

  .poi-list {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .guide-detail-cover {
    min-height: 210px;
    padding: 16px 0 28px;
  }

  .guide-cover-copy {
    padding-top: 38px;
  }

  .guide-cover-copy h1 {
    font-size: 32px;
  }

  .guide-cover-char {
    font-size: 190px;
    bottom: -26px;
  }

  .guide-sheet {
    width: calc(100% - 36px);
  }

  .guide-text-block {
    padding: 18px;
  }

  .guide-text-block p {
    font-size: 13px;
  }

  .guide-facts {
    grid-template-columns: 1fr 1fr;
  }

  /* 我的 */
  .profile-screen {
    padding: 22px 0 60px;
  }

  .profile-card {
    flex-wrap: wrap;
    gap: 13px;
    padding: 18px;
  }

  .profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 19px;
  }

  .profile-info h2 {
    font-size: 18px;
  }

  .profile-stats {
    width: 100%;
    margin-left: 0;
    padding: 13px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    justify-content: space-between;
    gap: 0;
  }

  .profile-stats strong {
    font-size: 19px;
  }

  .member-card {
    padding: 20px;
  }

  .member-card h2 {
    font-size: 21px;
  }

  .settings-card {
    margin-top: 12px;
  }

  .settings-row {
    padding: 11px 13px;
  }
}

@media (max-width: 420px) {
  .app-container {
    width: calc(100% - 32px);
  }

  .home-hero h1 {
    font-size: 31px;
  }

  .home-search .btn {
    min-width: 74px;
    padding: 0 11px;
  }

  .result-sheet {
    width: calc(100% - 32px) !important;
  }

  .guide-sheet {
    width: calc(100% - 32px);
  }

  .cover-btn span {
    display: none;
  }

  .cover-btn {
    width: 30px;
    padding: 0;
    justify-content: center;
  }

  .cover-btn.icon-only {
    width: 30px;
  }

  .summary-icon {
    display: none;
  }
}

/* 桌面不显示底部 Tab；结果 / 规划 / 讲解详情也不显示 */
@media (min-width: 821px) {
  .tabbar {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }
}

body[data-view="result"] .tabbar,
body[data-view="planner"] .tabbar,
body[data-view="guide-detail"] .tabbar {
  display: none !important;
}

.tab-item {
  position: relative;
}

/* 细节修正 */
.home-hero h1 span::after {
  display: none !important;
}

.insp-card {
  aspect-ratio: auto !important;
  background: #fff !important;
  color: var(--ink) !important;
  isolation: auto !important;
}

.insp-card img {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  height: 154px !important;
}

.insp-card:hover img {
  transform: none !important;
}

.insp-tag {
  position: static !important;
  display: block !important;
  padding: 12px 14px 0 !important;
  border: 0 !important;
  background: none !important;
  backdrop-filter: none !important;
  color: var(--mint-800) !important;
  font-size: 9.5px !important;
}

.insp-copy {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  padding: 5px 14px 14px !important;
  color: var(--ink) !important;
}

.insp-copy strong {
  color: var(--ink) !important;
  font-size: 15px !important;
}

.insp-copy small {
  color: var(--muted) !important;
}

@media (max-width: 820px) {
  .insp-card img {
    height: 132px !important;
  }

  .insp-copy strong {
    font-size: 14px !important;
  }
}

.recent-copy strong {
  white-space: normal !important;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: clip;
}

.result-cover .cover-topbar {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: min(1180px, calc(100% - 64px)) !important;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .result-cover .cover-topbar {
    width: calc(100% - 36px) !important;
  }

  .demo-banner {
    gap: 8px;
    padding: 10px;
  }

  .demo-banner .btn {
    height: 28px;
    padding: 0 8px;
    margin-left: auto;
    font-size: 9px;
  }

  .demo-banner strong {
    font-size: 10px;
  }

  .demo-banner p {
    font-size: 9px;
  }
}

@media (max-width: 420px) {
  .result-cover .cover-topbar {
    width: calc(100% - 32px) !important;
  }
}

.side-cta h3 {
  color: var(--ink) !important;
}

.side-cta .mini-label {
  color: var(--mint-800) !important;
}

/* 首页搜索前的功能标签 */
.home-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 24px;
  color: var(--mint-800);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-kicker .icon {
  font-size: 14px;
}

.home-search {
  margin-top: 9px;
}

@media (max-width: 820px) {
  .home-kicker {
    margin-top: 18px;
    font-size: 10px;
  }

  .home-search {
    margin-top: 8px;
  }
}

/* ---------- 我的订单（与设置卡同一套卡片语言） ---------- */
.orders-card {
  grid-column: 1 / -1;
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.orders-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.orders-head h2 {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.orders-count {
  min-width: 30px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--mint-800);
  display: inline-grid;
  place-items: center;
  font-family: "Avenir Next", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.orders-list {
  display: flex;
  flex-direction: column;
}

.orders-empty {
  padding: 18px 0 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.order-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.order-row + .order-row {
  border-top: 1px solid var(--line);
}

.order-main {
  flex: 1;
  min-width: 0;
}

.order-main strong {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
}

.order-main small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.order-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.order-amount {
  font-family: "Avenir Next", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.order-status {
  min-width: 52px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--mint-50);
  color: var(--mint-800);
  font-size: 9px;
  text-align: center;
}

.order-status.is-cancelled {
  background: var(--paper);
  color: var(--muted);
}

.order-cancel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 9px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 9.5px;
  cursor: pointer;
}

.order-cancel:hover {
  border-color: var(--mint-200);
  color: var(--mint-800);
}

@media (max-width: 640px) {
  .orders-card {
    padding: 16px 14px;
  }
  .order-row {
    gap: 8px;
  }
  .order-side {
    gap: 7px;
  }
  .order-cancel {
    padding: 5px 7px;
  }
}
