/* ========================================
   TripManager — 1:1 design还原 + 中英双语
   Design: Travel app mockup (Explore / Group Travel)
   Fonts: Fraunces (serif title) / Manrope (sans body)
          Noto Serif SC / Noto Sans SC (中文)
   ======================================== */

:root {
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --text-primary: #1C1C1E;
  --text-secondary: #8E8E93;
  --accent: #F2994A;
  --accent-hover: #E67E22;
  --yellow: #F2C94C;
  --red: #EB5757;
  --black: #000000;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-float: 0 12px 40px rgba(0, 0, 0, 0.15);

  --font-serif: 'Fraunces', 'Noto Serif SC', Georgia, serif;
  --font-sans: 'Manrope', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background: #E5E5EA;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
}

#app {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  min-height: auto;
  background: var(--bg);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.page {
  --pad-y: 22px;
  --pad-x: 18px;
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 var(--pad-x) 120px;
  padding-top: max(env(safe-area-inset-top, 0px), 28px);
  padding-bottom: max(120px, calc(58px + 24px + env(safe-area-inset-bottom, 0px)));
  display: none;
  scrollbar-width: none;
}

.page::-webkit-scrollbar {
  display: none;
}

.page.active {
  display: block;
}

/* ========================================
   HOME PAGE
   ======================================== */

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.user-greeting {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  object-fit: cover;
  flex-shrink: 0;
}

.greeting-label {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.2;
}

.greeting-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-sans);
}

.menu-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: none;
  display: grid;
  grid-template-columns: repeat(2, 4px);
  grid-template-rows: repeat(2, 4px);
  gap: 4px;
  place-content: center;
  cursor: pointer;
}

.menu-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-primary);
}

.page-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 18px;
}

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 5px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.search-icon {
  width: 18px;
  height: 18px;
  margin: 0 10px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text-primary);
  background: transparent;
  font-family: inherit;
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-filter {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  border: none;
  display: grid;
  place-items: center;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
}

/* Section headers */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-more {
  font-size: 11px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

/* Travel Places row */
.places-row {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.vertical-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 14px;
  flex-shrink: 0;
  align-self: flex-start;
}

.vertical-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  padding-left: 9px;
  letter-spacing: 0.2px;
  line-height: 1.3;
}

.vertical-tab span {
  display: block;
}

.vertical-tab.vertical-en {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  display: block;
  padding-left: 0;
  padding-top: 10px;
  letter-spacing: 0.5px;
}

.vertical-tab.active {
  color: var(--text-primary);
  font-weight: 700;
}

.vertical-tab.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}

.vertical-tab.vertical-en.active::before {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
}

.places-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-right: 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.place-card {
  flex: 0 0 145px;
  height: 195px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  cursor: pointer;
}

.place-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}

.place-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 45%, transparent 70%);
}

.place-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  background: var(--yellow);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.place-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 13px;
  color: white;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.place-card-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}

.place-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.9;
}

.place-card-location {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75%;
}

.place-card-price {
  font-weight: 700;
}

/* Travel Groups */
.groups-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-right: 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.group-card {
  flex: 0 0 240px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 10px;
  display: flex;
  gap: 10px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  cursor: pointer;
}

.group-card-image {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.group-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.group-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-card-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 9px;
}

/* Travel Inspiration */
.inspiration-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-right: 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 18px;
}

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

.inspiration-card {
  flex: 0 0 auto;
  min-width: 150px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  cursor: pointer;
}

.inspiration-card-image {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.inspiration-card-body {
  flex: 1;
  min-width: 0;
}

.inspiration-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inspiration-card-location {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.group-members {
  display: flex;
  align-items: center;
}

.member-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  object-fit: cover;
  margin-left: -8px;
}

.member-avatar:first-child {
  margin-left: 0;
}

.member-count {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 8px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-left: -8px;
  border: 2px solid var(--surface);
}

.group-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* ========================================
   BOTTOM NAVIGATION
   ======================================== */

.bottom-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: none;
  height: 58px;
  background: var(--surface);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 100;
}

.nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-btn.active {
  color: var(--accent);
}

.nav-add {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--black);
  color: white;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ========================================
   DETAIL PAGE
   ======================================== */

/* 详情页悬浮顶栏（覆盖在头图上，贴回设计图的毛玻璃键） */
.detail-float-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--pad-x) 14px;
}

.float-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-primary);
}

.detail-float-header .avatar {
  width: 38px;
  height: 38px;
}

.hero-card {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

/* 详情页头图满屏（顶到屏幕最顶端、左右出血），去掉顶部白条空档 */
.hero-card.detail-hero {
  height: 300px;
  border-radius: 0;
  margin: calc(-1 * var(--pad-y)) calc(-1 * var(--pad-x)) 18px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 55%);
}

.hero-info {
  position: absolute;
  bottom: 18px;
  left: 16px;
  right: 16px;
  color: white;
}

.hero-name {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 10px;
  border-radius: var(--radius-full);
}

.detail-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.detail-tab.active {
  background: var(--accent);
  color: white;
}

.detail-tab.inactive {
  background: var(--surface);
  color: var(--text-secondary);
  box-shadow: var(--shadow);
}

.detail-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(242, 201, 76, 0.16);
  display: grid;
  place-items: center;
  color: #D4A017;
  flex-shrink: 0;
}

.info-content {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 1px;
}

.info-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-description {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.detail-members {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
}

.members-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.members-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.member-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* Detail content sections (checklist/itinerary) */
.detail-content {
  margin-bottom: 80px;
}

.content-section {
  margin-bottom: 18px;
}

.content-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.checklist-item,
.itinerary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: var(--surface);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.checklist-text {
  font-size: 13px;
  color: var(--text-primary);
}

.checklist-text.checked {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.itinerary-time {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  min-width: 52px;
}

.itinerary-text {
  font-size: 13px;
  color: var(--text-primary);
}

/* Detail footer */
.detail-footer {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  padding: 12px 18px calc(26px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 10px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
  z-index: 90;
  margin-top: 16px;
}

.price-btn {
  flex: 0 0 80px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.action-btn {
  flex: 1;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--black);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ========================================
   MODALS
   ======================================== */

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  place-items: end center;
  z-index: 200;
  padding-bottom: 20px;
}

.modal-overlay.active {
  display: grid;
}

.modal {
  width: calc(100% - 36px);
  max-width: 340px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-float);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.modal-option {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #E5E5EA;
  background: transparent;
  margin-bottom: 8px;
  text-align: left;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
}

.modal-option:hover {
  background: #F2F2F7;
}

.modal-close {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--text-secondary);
  color: white;
  margin-top: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 12px;
}

/* ========================================
   NEW MODULES — 预算 / 预订 / 倒计时 / 时间轴
   ======================================== */

/* 倒计时 badge（首页卡片左上） */
.countdown-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow);
}
.countdown-badge.live { background: var(--accent); color: white; }
.countdown-badge.done { background: var(--text-secondary); color: white; }

/* 倒计时 chip（详情页 hero 下方） */
.countdown-chip {
  display: inline-block;
  background: rgba(242, 153, 74, 0.12);
  color: var(--accent-hover);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.countdown-chip.live { background: rgba(242, 153, 74, 0.2); }
.countdown-chip.done { background: #E5E5EA; color: var(--text-secondary); }

/* 详情页头部右侧（删除按钮 + 头像） */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 预算卡片 */
.budget-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 6px;
}

.budget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.budget-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.budget-of {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.budget-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.budget-bar {
  height: 7px;
  background: #F2F2F7;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 6px;
}

.budget-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #F2C94C);
  border-radius: var(--radius-full);
  transition: width 0.3s;
}

.budget-stats {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.budget-stats span:last-child { color: var(--accent-hover); font-weight: 600; }

/* 支出列表 */
.expense-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}

.expense-item {
  position: relative;
  background: #F7F7FA;
  border-radius: var(--radius-sm);
  padding: 9px 32px 9px 11px;
}

.expense-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.expense-cat { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.expense-amt { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.expense-note { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }

/* 预订列表 */
.booking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.booking-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 10px 32px 10px 10px;
  box-shadow: var(--shadow);
}

.booking-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: white;
  flex-shrink: 0;
}
.booking-flight { background: #4A90E2; }
.booking-hotel { background: #8B5CF6; }
.booking-ticket { background: var(--accent); }

.booking-main { min-width: 0; flex: 1; }
.booking-name { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.booking-meta { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }

/* 删除按钮 */
.del-x {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(235, 87, 87, 0.12);
  color: var(--red);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* 添加行按钮 */
.add-row-btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed #C7C7CC;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* 内联小表单 */
.mini-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mf-row { display: flex; gap: 7px; }
.mf-row .mf-input { flex: 1; }

.mf-input {
  flex: 1;
  border: 1px solid #E5E5EA;
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  background: #F7F7FA;
}
.mf-input:focus { border-color: var(--accent); background: white; }

.mf-submit {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.mf-submit:hover { background: var(--accent-hover); }

.empty-mini {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 8px 0;
}

/* 行程时间轴 */
.day-block { margin-bottom: 18px; }

.day-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.day-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(242, 153, 74, 0.12);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.day-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }

.timeline-item {
  display: grid;
  grid-template-columns: 44px 14px 1fr;
  gap: 7px;
  align-items: stretch;
}

.timeline-time {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  padding-top: 10px;
  text-align: right;
}

.timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.timeline-rail::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #E5E5EA;
}
.timeline-dot {
  position: relative;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid white;
  box-shadow: 0 0 0 1px #E5E5EA;
  flex-shrink: 0;
}

.timeline-body {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.timeline-act { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.timeline-place { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* ========================================
   DESKTOP PREVIEW — 手机壳效果
   ======================================== */
@media (min-width: 420px) {
  body {
    padding: 20px;
  }

  #app {
    width: 100%;
    max-width: 390px;
    height: 100vh;
    max-height: 844px;
    min-height: 700px;
    border-radius: 44px;
    box-shadow: var(--shadow-float);
  }

  .page {
    --pad-y: 28px;
    --pad-x: 24px;
    padding: 0 var(--pad-x) 140px;
    padding-top: max(env(safe-area-inset-top, 0px), 28px);
    padding-bottom: max(140px, calc(58px + 40px + env(safe-area-inset-bottom, 0px)));
  }

  .home-header { margin-bottom: 24px; }
  .user-greeting { gap: 12px; }
  .avatar { width: 48px; height: 48px; border-width: 3px; }
  .greeting-label { font-size: 13px; }
  .greeting-name { font-size: 16px; }
  .header-actions { gap: 10px; }
  .lang-toggle { padding: 9px 14px; font-size: 12px; }
  .menu-btn { width: 44px; height: 44px; }
  .page-title { font-size: 32px; margin-bottom: 24px; }

  .search-bar { padding: 6px; margin-bottom: 28px; }
  .search-icon { width: 20px; height: 20px; margin: 0 12px; }
  .search-input { font-size: 14px; }
  .search-filter { width: 44px; height: 44px; }

  .section-header { margin-bottom: 16px; }
  .section-title { font-size: 18px; }
  .section-more { font-size: 12px; }

  .places-row { gap: 14px; margin-bottom: 32px; }
  .vertical-tabs { gap: 22px; padding-top: 18px; }
  .vertical-tab { font-size: 12px; padding-left: 10px; }
  .vertical-tab.active::before { height: 18px; }
  .places-scroll { gap: 16px; padding-right: 24px; }
  .place-card { flex: 0 0 175px; height: 235px; }
  .place-card-badge { top: 12px; right: 12px; width: 28px; height: 28px; }
  .place-card-info { padding: 16px; min-height: 80px; }
  .place-card-name { font-size: 16px; margin-bottom: 5px; }
  .place-card-meta { font-size: 12px; }
  .place-card-location { gap: 4px; }

  .groups-scroll { gap: 16px; padding-right: 24px; }
  .group-card { flex: 0 0 260px; padding: 12px; gap: 12px; }
  .group-card-image { width: 82px; height: 82px; }
  .group-card-title { font-size: 15px; margin-bottom: 3px; }
  .group-card-subtitle { font-size: 12px; margin-bottom: 12px; }
  .inspiration-scroll { gap: 12px; padding-right: 24px; margin-bottom: 24px; }
  .inspiration-card { min-width: 170px; padding: 12px; }
  .inspiration-card-image { width: 50px; height: 50px; }
  .inspiration-card-title { font-size: 14px; }
  .inspiration-card-location { font-size: 12px; }
  .member-avatar, .member-count { width: 28px; height: 28px; margin-left: -9px; font-size: 9px; }
  .group-play { width: 32px; height: 32px; }

  .bottom-nav { bottom: 22px; width: calc(100% - 48px); max-width: 320px; height: 66px; padding: 0 18px; }
  .nav-btn { width: 48px; height: 48px; }
  .nav-add { width: 54px; height: 54px; }

  .detail-float-header { padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--pad-x) 16px; }
  .float-btn { width: 42px; height: 42px; }
  .detail-float-header .avatar { width: 42px; height: 42px; }
  .hero-card { height: 300px; margin-bottom: 24px; }
  .hero-card.detail-hero { height: 340px; margin: calc(-1 * var(--pad-y)) calc(-1 * var(--pad-x)) 24px; }
  .hero-info { bottom: 22px; left: 20px; right: 20px; }
  .hero-name { font-size: 24px; margin-bottom: 10px; }
  .hero-location { font-size: 12px; padding: 6px 12px; }
  .detail-tabs { gap: 12px; margin-bottom: 24px; }
  .detail-tab { padding: 10px 22px; font-size: 14px; }
  .detail-info { gap: 16px; margin-bottom: 22px; }
  .info-item { gap: 12px; }
  .info-icon { width: 44px; height: 44px; }
  .info-label { font-size: 12px; margin-bottom: 2px; }
  .info-value { font-size: 15px; }
  .detail-description { font-size: 13px; margin-bottom: 24px; }
  .detail-members { margin-bottom: 100px; }
  .members-left { gap: 12px; }
  .members-text { font-size: 13px; }
  .member-play { width: 46px; height: 46px; }
  .detail-content { margin-bottom: 100px; }
  .content-section { margin-bottom: 24px; }
  .content-section-title { font-size: 16px; margin-bottom: 14px; }
  .checklist-item, .itinerary-item { padding: 14px 16px; gap: 12px; margin-bottom: 10px; }
  .checklist-item input[type="checkbox"] { width: 20px; height: 20px; }
  .checklist-text { font-size: 14px; }
  .itinerary-time { font-size: 12px; min-width: 56px; }
  .itinerary-text { font-size: 14px; }
  .detail-footer { padding: 16px 24px 32px; gap: 12px; }
  .price-btn { flex: 0 0 90px; height: 54px; font-size: 16px; }
  .action-btn { height: 54px; font-size: 15px; }

  .modal-overlay { padding-bottom: 24px; }
  .modal { padding: 24px; }
  .modal-title { font-size: 18px; margin-bottom: 16px; }
  .modal-option { padding: 14px 16px; margin-bottom: 10px; font-size: 14px; }
  .modal-close { padding: 14px; margin-top: 8px; font-size: 14px; }
  .empty-state { padding: 60px 20px; }
  .empty-state p { font-size: 13px; }

  .countdown-badge { top: 12px; left: 12px; font-size: 11px; padding: 5px 10px; }
  .countdown-chip { font-size: 12px; padding: 7px 14px; margin-bottom: 18px; }
  .header-right { gap: 10px; }
  .budget-card { padding: 16px; }
  .budget-total { font-size: 18px; }
  .budget-of { font-size: 13px; }
  .budget-pct { font-size: 13px; }
  .budget-bar { height: 8px; margin-bottom: 8px; }
  .budget-stats { font-size: 12px; margin-bottom: 14px; }
  .expense-list { gap: 8px; margin-bottom: 12px; }
  .expense-item { padding: 10px 36px 10px 12px; }
  .expense-cat { font-size: 13px; }
  .expense-amt { font-size: 13px; }
  .expense-note { font-size: 11px; }
  .booking-list { gap: 10px; margin-bottom: 12px; }
  .booking-item { padding: 12px 36px 12px 12px; gap: 12px; }
  .booking-icon { width: 38px; height: 38px; }
  .booking-name { font-size: 13px; }
  .booking-meta { font-size: 11px; }
  .del-x { top: 8px; right: 8px; width: 22px; height: 22px; font-size: 15px; }
  .add-row-btn { padding: 11px; font-size: 13px; }
  .mini-form { margin-top: 10px; gap: 8px; }
  .mf-row { gap: 8px; }
  .mf-input { padding: 10px 12px; font-size: 13px; }
  .mf-submit { width: 40px; height: 40px; font-size: 20px; }
  .empty-mini { font-size: 12px; padding: 10px 0; }
  .day-block { margin-bottom: 22px; }
  .day-head { gap: 10px; margin-bottom: 12px; }
  .day-num { font-size: 12px; padding: 3px 10px; }
  .day-title { font-size: 14px; }
  .timeline-item { grid-template-columns: 48px 16px 1fr; gap: 8px; }
  .timeline-time { font-size: 11px; padding-top: 12px; }
  .timeline-dot { top: 14px; width: 10px; height: 10px; }
  .timeline-body { padding: 12px 14px; margin-bottom: 10px; }
  .timeline-act { font-size: 14px; }
  .timeline-place { font-size: 12px; margin-top: 3px; }
}

/* Reset */
button {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}
