/* 旅优购票 · MP 设计令牌（对标美团景点游玩链路，差异化轻量精品感） */
:root {
  --color-primary: #0d9488;
  --color-primary-light: #14b8a6;
  --color-primary-bg: #f0fdfa;
  --color-price: #e11d48;
  --color-text: #0f172a;
  --color-text-secondary: #64748b;
  --color-text-muted: #94a3b8;
  --color-bg: #f1f5f9;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);
  --space-page: 16px;
  --font-title: 18px;
  --font-section: 16px;
  --font-body: 14px;
  --font-caption: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  width: 375px;
  min-height: 812px;
  margin: 0 auto;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page-body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); min-height: 100vh; }
.page-body.no-tab { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }

/* 导航栏 */
.status-bar, .nav-bar {
  height: 44px;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
  letter-spacing: 0.02em;
}
.nav-bar.transparent { background: transparent; color: #fff; border: none; }
.nav-bar .back {
  position: absolute;
  left: 12px;
  font-size: 15px;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease);
}
.nav-bar.transparent .back { color: #fff; }
.nav-bar .back:active { background: rgba(0,0,0,.04); }

/* 首页顶栏（城市 + 搜索同行，右侧避让胶囊） */
.home-topbar {
  background: linear-gradient(145deg, #0d9488 0%, #0f766e 100%);
  padding: calc(8px + env(safe-area-inset-top, 0px)) 96px 12px 16px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-topbar .city-entry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
}
.home-topbar .city-entry:active { background: rgba(255,255,255,.12); }
.home-topbar .city-entry .arrow { font-size: 9px; opacity: 0.75; }
.home-topbar .search-entry-inline {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 9px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.home-topbar .search-entry-inline:active { opacity: 0.92; }
.wx-capsule-placeholder {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: 12px;
  width: 87px;
  height: 32px;
  border: 1px dashed rgba(255,255,255,.35);
  border-radius: 16px;
  pointer-events: none;
  opacity: 0.6;
}

.search-bar-wrap { padding: 12px var(--space-page); background: var(--color-surface); }
.search-input {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 11px 16px;
  font-size: var(--font-body);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.search-input:focus { border-color: var(--color-primary-light); box-shadow: 0 0 0 3px rgba(13,148,136,.12); }

/* 轮播 */
.banner-swiper {
  margin: 12px var(--space-page);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 140px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.banner-slide {
  height: 100%;
  background: linear-gradient(135deg, #5eead4 0%, #0d9488 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  color: #fff;
}
.banner-slide .title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.banner-slide .sub { font-size: var(--font-caption); opacity: 0.9; }
.banner-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 5px;
}
.banner-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); }
.banner-dots span.active { background: #fff; width: 16px; border-radius: 3px; }

/* 分区标题 */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px var(--space-page) 10px;
}
.section-title { font-size: var(--font-section); font-weight: 600; color: var(--color-text); }
.section-sub { font-size: var(--font-caption); color: var(--color-text-muted); }

/* 景区卡片 · 基础 */
.scenic-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.scenic-card:active { transform: scale(0.985); box-shadow: var(--shadow-md); }
.scenic-card .name { font-size: 14px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.scenic-card .meta { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tag-chip {
  font-size: 11px;
  color: var(--color-primary);
  background: var(--color-primary-bg);
  padding: 2px 8px;
  border-radius: 4px;
}
.scenic-card .price { font-size: 16px; color: var(--color-price); font-weight: 700; }
.scenic-card .price small { font-size: 11px; font-weight: 500; color: var(--color-text-muted); }
.scenic-card .price .unit { font-size: 12px; }

/* 形态 A · 双列瀑布流（首页） */
.waterfall-grid {
  column-count: 2;
  column-gap: 10px;
  padding: 0 12px 8px;
}
.scenic-card--waterfall {
  break-inside: avoid;
  margin-bottom: 10px;
  display: inline-block;
  width: 100%;
}
.scenic-card--waterfall .cover {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #99f6e4, #2dd4bf);
  position: relative;
}
.scenic-card--waterfall .cover.tall { height: 150px; }
.scenic-card--waterfall .cover .level-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.62);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  line-height: 1.2;
}
.scenic-card--waterfall .info { padding: 10px; }
.scenic-card--waterfall .detail {
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.scenic-card--waterfall.skeleton .cover,
.scenic-card--waterfall.skeleton .name,
.scenic-card--waterfall.skeleton .detail { background: #e2e8f0; color: transparent; min-height: 12px; }

/* 形态 B · 左图右文（搜索结果） */
.scenic-card--row {
  display: flex;
  flex-direction: row;
  margin: 0 var(--space-page) 10px;
}
.scenic-card--row .cover {
  width: 110px;
  height: 88px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #99f6e4, #2dd4bf);
  position: relative;
}
.scenic-card--row .cover .badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15,23,42,.55);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}
.scenic-card--row .info {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.scenic-card--row.skeleton .cover,
.scenic-card--row.skeleton .name,
.scenic-card--row.skeleton .meta { background: #e2e8f0; color: transparent; }

/* TabBar */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(50px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  display: flex;
  z-index: 20;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--color-text-muted);
  text-decoration: none;
  gap: 2px;
  transition: color 0.2s var(--ease);
}
.tab-item.active { color: var(--color-primary); font-weight: 500; }
.tab-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* 热词 */
.chip-wrap { padding: 4px var(--space-page) 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 8px 14px;
  border-radius: var(--radius-xl);
  font-size: 13px;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chip:active, .chip.hot { background: var(--color-primary-bg); border-color: var(--color-primary-light); color: var(--color-primary); }

/* 我的 */
.profile-hero {
  background: linear-gradient(160deg, #0d9488, #115e59);
  padding: 28px var(--space-page) 36px;
  color: #fff;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.menu-list {
  background: var(--color-surface);
  margin: -16px var(--space-page) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.menu-item {
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.15s var(--ease);
}
.menu-item:active { background: var(--color-bg); }
.menu-item:last-child { border-bottom: none; }
.menu-item .label { display: flex; align-items: center; gap: 10px; }
.menu-item .arrow { color: var(--color-text-muted); font-size: 18px; }

/* 景区详情 */
.detail-hero {
  height: 220px;
  background: linear-gradient(180deg, #5eead4 0%, #0d9488 100%);
  position: relative;
}
.detail-hero .nav-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding-top: env(safe-area-inset-top, 0);
}
.detail-info {
  background: var(--color-surface);
  margin: -28px var(--space-page) 12px;
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.detail-info h1 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.detail-info .row { font-size: 13px; color: var(--color-text-secondary); margin-top: 4px; }

.detail-action-row {
  display: flex;
  gap: 10px;
  padding: 4px var(--space-page) 16px;
}
.detail-action-btn {
  flex: 1;
  padding: 12px 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.detail-action-btn:active {
  background: var(--color-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* 游玩日期 TabBar（详情页） */
.date-tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 var(--space-page) 8px;
}
.date-tab-bar__tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.date-tab {
  flex: 0 0 auto;
  text-align: center;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
  line-height: 1.25;
  white-space: nowrap;
}
.date-tab:active { opacity: 0.85; }
.date-tab.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
  font-weight: 600;
}
.date-tab-clear {
  flex-shrink: 0;
  margin-left: auto;
  padding: 3px 0;
  font-size: 11px;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.date-tab-clear:active { opacity: 0.7; color: var(--color-primary); }

.date-filter-hint {
  padding: 0 var(--space-page) 8px;
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.date-filter-hint[hidden] { display: none; }

/* 门票分区：左分类菜单 + 右列表 */
.ticket-zone {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding-bottom: 8px;
}
.ticket-cat-menu {
  width: 76px;
  flex-shrink: 0;
  background: var(--color-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.ticket-cat-item {
  display: block;
  width: 100%;
  padding: 14px 8px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.ticket-cat-item.active {
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-surface);
  border-left-color: var(--color-primary);
}
.ticket-list-panel {
  flex: 1;
  min-width: 0;
  padding-right: var(--space-page);
}
.ticket-list-panel .ticket-item {
  margin: 0 0 10px;
}
.ticket-empty {
  text-align: center;
  padding: 48px 16px;
  font-size: 14px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.sheet-rich-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.75;
}
.sheet-rich-text p { margin-bottom: 10px; }
.sheet-rich-text p:last-child { margin-bottom: 0; }

.ticket-item {
  background: var(--color-surface);
  margin: 0 var(--space-page) 10px;
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ticket-item__body {
  flex: 1;
  min-width: 0;
}
.ticket-item__name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
}
.ticket-item__aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.ticket-item__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-price);
  line-height: 1.2;
  text-align: right;
}
.ticket-item__price .suffix {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.ticket-item__price.is-free {
  color: var(--color-primary);
}
.ticket-item__btn {
  min-width: 56px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.28);
}
.ticket-item__btn:active { transform: scale(0.97); opacity: 0.92; }
.ticket-item__btn:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.ticket-item.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,.1);
}
.ticket-item.disabled { opacity: 0.45; cursor: not-allowed; }

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  padding: 12px var(--space-page) calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  box-shadow: 0 -4px 20px rgba(15,23,42,.06);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13,148,136,.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { background: #cbd5e1; box-shadow: none; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  cursor: pointer;
}

.form-card {
  background: var(--color-surface);
  margin: 12px var(--space-page);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.form-card .card-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--color-border); }
.order-ticket-title {
  padding-top: 16px;
  padding-bottom: 16px;
}
.order-ticket-title #orderTicketTitle {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}
.order-booking-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--color-primary);
  cursor: pointer;
}
.order-booking-link .link-arrow {
  font-size: 14px;
  line-height: 1;
}
.order-booking-link:active { opacity: 0.75; }

.session-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.session-chip {
  flex: 1 1 calc(50% - 4px);
  min-width: calc(50% - 4px);
  max-width: 100%;
  padding: 10px 8px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.session-chip .session-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}
.session-chip .session-status {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 4px;
  line-height: 1.2;
}
.session-chip.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
}
.session-chip.selected .session-time { color: var(--color-primary); }
.session-chip.closed {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--color-bg);
  border-color: var(--color-border);
}
.session-chip.closed .session-time { color: var(--color-text-muted); font-weight: 500; }
.session-empty {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.form-row { margin-bottom: 14px; }
.form-row:last-child { margin-bottom: 0; }
.form-row label { display: block; font-size: 13px; color: var(--color-text-secondary); margin-bottom: 6px; }
.form-row input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: border-color 0.2s var(--ease);
}
.form-row input:focus { outline: none; border-color: var(--color-primary); }

.order-card {
  background: var(--color-surface);
  margin: 10px var(--space-page);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease);
}
.order-card:active { box-shadow: var(--shadow-md); }
.order-status { font-size: 12px; font-weight: 600; color: var(--color-primary); margin-bottom: 8px; }
.order-status.warn { color: #d97706; }

.status-banner {
  background: linear-gradient(135deg, var(--color-primary), #0f766e);
  color: #fff;
  padding: 24px var(--space-page);
  text-align: center;
}
.status-banner .title { font-size: 20px; font-weight: 700; }
.status-banner .desc { font-size: 13px; opacity: 0.9; margin-top: 6px; }

.verify-box {
  background: var(--color-surface);
  margin: 16px var(--space-page);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.qrcode {
  width: 168px;
  height: 168px;
  background: var(--color-bg);
  margin: 16px auto;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-text-muted);
  border: 2px dashed var(--color-border);
}

.tabs {
  display: flex;
  background: var(--color-surface);
  padding: 0 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-border);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 14px 12px;
  font-size: 14px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease);
}
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); font-weight: 600; }

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }

/* 城市选择 */
.city-picker { display: flex; height: calc(100vh - 44px); background: var(--color-surface); }
.province-list {
  width: 108px;
  background: var(--color-bg);
  overflow-y: auto;
  flex-shrink: 0;
}
.province-item {
  padding: 15px 12px;
  font-size: 14px;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s var(--ease);
}
.province-item.active {
  background: var(--color-surface);
  color: var(--color-primary);
  font-weight: 600;
  border-left-color: var(--color-primary);
}
.city-list { flex: 1; overflow-y: auto; }
.city-item {
  padding: 16px 20px;
  font-size: 15px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s var(--ease);
}
.city-item:active { background: var(--color-primary-bg); }
.city-item .check { color: var(--color-primary); font-weight: 700; }

.trust-row {
  display: flex;
  gap: 16px;
  padding: 12px var(--space-page);
  font-size: 11px;
  color: var(--color-text-muted);
}
.trust-row span::before { content: '✓ '; color: var(--color-primary); }

.price-summary { font-size: 13px; color: var(--color-text-secondary); line-height: 2; }
.price-summary .total { font-size: 18px; font-weight: 700; color: var(--color-price); }

/* 票种标签 / 限购提示 */
.ticket-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ticket-validity {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.4;
}
.ticket-validity__label {
  flex-shrink: 0;
  color: var(--color-text-muted);
}
.ticket-validity__text {
  color: var(--color-text-secondary);
}
.order-ticket-title .ticket-validity {
  margin-top: 8px;
}
.ticket-tag {
  font-size: 10px;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 2px 6px;
  border-radius: 4px;
}
.ticket-tag.warn { color: #d97706; background: #fffbeb; }
.ticket-tag--orange {
  color: #ea580c;
  background: rgba(234, 88, 12, 0.08);
  border: none;
}
.ticket-tag--blue {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border: none;
}
.ticket-tag--muted {
  color: var(--color-text-muted);
  background: rgba(100, 116, 139, 0.08);
  border: none;
}
.form-static {
  flex: 1;
  font-size: 14px;
  color: var(--color-text);
  line-height: 36px;
}
.order-ticket-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

/* 购买日历 */
.calendar-card {
  background: var(--color-surface);
  margin: 0 var(--space-page) 12px;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.calendar-card .cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}
.calendar-card .cal-head .hint { font-size: 11px; color: var(--color-text-muted); font-weight: 400; }
.calendar-card .cal-head .more-link {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
  cursor: pointer;
}
.calendar-card .cal-head .more-link:active { opacity: 0.75; }
.calendar-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.calendar-scroll::-webkit-scrollbar { display: none; }
.cal-day {
  flex-shrink: 0;
  width: 56px;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--color-bg);
  transition: all 0.2s var(--ease);
}
.cal-day .week { font-size: 11px; color: var(--color-text-muted); }
.cal-day .date { font-size: 13px; font-weight: 600; margin: 2px 0; }
.cal-day .price { font-size: 11px; color: var(--color-price); font-weight: 600; margin-top: 2px; }
.cal-day.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
  box-shadow: 0 0 0 3px rgba(13,148,136,.08);
}
.cal-day.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.cal-day.soldout .price { color: var(--color-text-muted); text-decoration: line-through; }
.cal-day.past-deadline .price { color: var(--color-text-muted); }

/* 更多日期 · 30 日选日弹窗 */
.date-picker-scroll { padding-top: 12px; }
.date-picker-month { margin-bottom: 18px; }
.date-picker-month:last-child { margin-bottom: 0; }
.date-picker-month-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}
.date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 10px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--color-surface);
  padding-bottom: 6px;
}
.date-picker-weekdays span {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 600;
  line-height: 28px;
  height: 28px;
}
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.date-picker-cell {
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--color-bg);
  transition: all 0.15s var(--ease);
  box-sizing: border-box;
}
.date-picker-cell.empty {
  background: transparent;
  cursor: default;
  pointer-events: none;
  border: none;
}
.date-picker-cell .day-num {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.date-picker-cell .day-num.day-num--relative {
  font-size: 11px;
}
.date-picker-cell .day-price {
  font-size: 10px;
  color: var(--color-price);
  font-weight: 600;
  margin-top: 4px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.date-picker-cell.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
}
.date-picker-cell.disabled,
.date-picker-cell.soldout {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.date-picker-cell.soldout .day-price {
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.date-picker-cell.past-deadline .day-price {
  color: var(--color-text-muted);
}
.date-picker-cell:not(.empty):not(.disabled):not(.soldout):active {
  transform: scale(0.96);
}

/* 数量步进器 */
.qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
.qty-row .label { font-size: 14px; font-weight: 500; }
.qty-row .limit-hint { font-size: 11px; color: var(--color-text-muted); margin-top: 4px; }
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qty-stepper button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-bg);
  font-size: 18px;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.qty-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-stepper button:active:not(:disabled) { background: var(--color-border); }
.qty-stepper .val {
  width: 40px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  line-height: 36px;
}

/* 游客信息 */
.visitor-block {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
}
.visitor-block:last-child { margin-bottom: 0; }
.visitor-block .vb-title { font-size: 12px; color: var(--color-primary); font-weight: 600; margin-bottom: 10px; }
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: var(--color-surface);
}
.limit-tip {
  font-size: 11px;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  line-height: 1.5;
}
.info-readonly {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
}
.info-readonly:last-child { border-bottom: none; }
.info-readonly .label { color: var(--color-text-secondary); }
.info-readonly .value { font-weight: 500; }

.bottom-bar .summary { flex: 1; min-width: 0; }
.bottom-bar .summary .line1 { font-size: 12px; color: var(--color-text-muted); }
.bottom-bar .summary .line2 { margin-top: 2px; }
.bottom-bar .summary .total-price { font-size: 20px; font-weight: 700; color: var(--color-price); }

.toast-demo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15,23,42,.88);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  z-index: 100;
  display: none;
  max-width: 280px;
  text-align: center;
}
.toast-demo.show { display: block; animation: fadeIn 0.2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.loading-overlay.show { display: flex; }
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.field-hint { font-size: 12px; margin-top: 4px; line-height: 1.4; }
.field-hint.ok { color: #059669; }
.field-hint.err { color: #dc2626; }
.field-hint.pending { color: var(--color-text-muted); }
.form-row input.field-ok { border-color: #059669; }
.form-row input.field-err { border-color: #dc2626; }

/* 摘要入口行（只读展示，点击打开弹窗） */
.info-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s var(--ease);
}
.info-entry:last-child { border-bottom: none; }
.info-entry:active { opacity: 0.85; }
.info-entry-main { flex: 1; min-width: 0; }
.info-entry-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.info-entry-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info-entry-desc.muted { color: var(--color-text-muted); }
.info-entry-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.info-entry-arrow { font-size: 18px; color: var(--color-text-muted); line-height: 1; }
.status-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.status-tag.ok { background: #ecfdf5; color: #059669; }
.status-tag.warn { background: #fff7ed; color: #d97706; }
.status-tag.err { background: #fef2f2; color: #dc2626; }

/* 底部编辑弹窗 */
.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.sheet-mask.open { opacity: 1; visibility: visible; }
.sheet-panel {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 375px;
  max-height: 78vh;
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 81;
  display: flex;
  flex-direction: column;
  transform: translate(-50%, 100%);
  transition: transform 0.28s var(--ease);
  box-shadow: var(--shadow-lg);
}
.sheet-panel.open { transform: translate(-50%, 0); }
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.sheet-title { font-size: 16px; font-weight: 600; }
.sheet-sub { font-size: 12px; color: var(--color-text-muted); font-weight: 400; margin-left: 6px; }
.sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-bg);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  -webkit-overflow-scrolling: touch;
}
.sheet-footer {
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}
.sheet-panel--book {
  max-height: 82vh;
}
.sheet-panel--book .sheet-body {
  flex: 1;
  min-height: 0;
}
.sheet-footer .btn-primary { width: 100%; padding: 14px; border-radius: var(--radius-xl); }
