/* ===================================
   小旅游 v2 — 全新设计
=================================== */

/* -- 页面 Hero -- */
.tv-page-hero {
  position: relative;
  padding: 28px 24px 20px;
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  border-radius: 24px;
  overflow: hidden;
}
.tv-hero-bg {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.6;
}
.tv-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.tv-hero-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tv-hero-title {
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.04em;
  margin: 0;
}
.tv-hero-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin: 2px 0 0;
}
.tv-add-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border: none; border-radius: 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.tv-add-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* -- 筛选栏 -- */
.tv-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.tv-filter-tab {
  padding: 6px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.18s;
}
.tv-filter-tab.active {
  background: linear-gradient(135deg, #1d4350, #a43931);
  border-color: transparent;
  color: #fff;
}
.tv-filter-tab:hover:not(.active) {
  border-color: #a43931;
  color: #a43931;
}

/* -- 卡片 Grid -- */
.tv-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* 年份分组 */
.tv-year-section {
  margin-bottom: 8px;
}
.tv-year-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 4px 12px;
}
.tv-year-label {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tv-year-count {
  font-size: 0.75rem;
  color: var(--text-light);
  background: var(--bg-secondary, rgba(0,0,0,0.04));
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.tv-year-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.tv-year-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tv-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-light);
  padding: 40px 0;
  font-size: 0.9rem;
}

/* -- 空状态 -- */
.tv-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}
.tv-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.tv-empty-state p { color: var(--text-light); font-size: 0.95rem; margin: 4px 0; }
.tv-empty-sub { font-size: 0.82rem !important; opacity: 0.7; }

/* -- 旅行卡片 -- */
.tv-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
.tv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-color: transparent;
}
.tv-card-cover {
  height: 150px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}
.tv-card-dest-watermark {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.04em;
  z-index: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.15);
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-card-cover-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.tv-card-emoji { font-size: 1.8rem; line-height: 1; }
.tv-card-title {
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.tv-card-dates {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tv-card-body {
  padding: 10px 14px;
}
.tv-card-route {
  font-size: 0.75rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tv-card-date-line {
  font-size: 0.75rem;
  color: var(--text-mid);
  margin: 0 0 4px 0;
}
.tv-card-dest {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.tv-card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.tv-tag {
  padding: 2px 9px;
  background: #eef4f8;
  color: #3a6073;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.tv-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}
.tv-card-cost {
  font-weight: 600;
  color: #a43931;
  flex-shrink: 0;
}

/* -- 详情弹窗 -- */
.tv-detail-modal {
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 !important;
}
.tv-detail-hero {
  padding: 48px 24px 20px;
  border-radius: 16px 16px 0 0;
}
.tv-detail-hero-inner {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.tv-detail-emoji { font-size: 2.2rem; line-height: 1; }
.tv-detail-dates {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 4px;
}
.tv-detail-title {
  font-size: 1.35rem;
  color: #fff;
  margin: 0;
  letter-spacing: 0.03em;
}
.tv-detail-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  flex-wrap: wrap;
}
.tv-detail-content { padding: 20px 24px 28px; }
.tv-detail-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* -- Tab 导航栏 -- */
.tv-tab-bar {
  display: flex;
  gap: 0;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  scroll-behavior: smooth;
}
.tv-tab-bar::-webkit-scrollbar { display: none; }
.tv-tab-btn {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.tv-tab-btn:hover { color: var(--text); }
.tv-tab-btn.active {
  color: #a43931;
  border-bottom-color: #a43931;
  font-weight: 600;
}

/* -- 行程总览路线 -- */
.tv-overview-route {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f7f9fa;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 16px;
}
.tv-overview-route-icon { font-size: 1.1rem; }
.tv-timeline-clickable { cursor: pointer; }
.tv-timeline-clickable:hover .tv-timeline-card {
  background: #eef2f5;
  transform: translateX(2px);
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
}

/* -- Day 日期标签 -- */
.tv-day-date {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-light);
  background: rgba(164,57,49,0.08);
  padding: 1px 7px;
  border-radius: 999px;
}

/* -- Day 详情页头部 v2 -- */
.tv-day-header {
  margin-bottom: 16px;
}
.tv-day-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.tv-day-header-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1d4350;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.tv-day-header-date-inline {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
}
.tv-day-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #6b7280;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.tv-day-edit-btn:hover {
  background: #1d4350;
  color: #fff;
  border-color: #1d4350;
  box-shadow: 0 2px 8px rgba(29,67,80,0.2);
}
.tv-day-edit-btn svg {
  flex-shrink: 0;
}
.tv-day-header-route-line,
.tv-day-route-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 8px;
  padding: 8px 12px;
  background: rgba(164,57,49,0.03);
  border-radius: 8px;
  border-left: 3px solid rgba(164,57,49,0.15);
  flex-wrap: wrap;
}
.tv-day-route-chain {
  font-size: 0.82rem;
  font-weight: 600;
  color: #a43931;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.tv-day-km-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #2563eb;
  background: rgba(59,130,246,0.08);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
/* 保留旧类名兼容 */
.tv-day-header-date {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 6px;
}
.tv-day-header-route {
  font-size: 0.92rem;
  color: #a43931;
  font-weight: 500;
  margin-bottom: 8px;
}
.tv-day-header-stats {
  display: flex;
  gap: 12px;
}
.tv-day-stat {
  font-size: 0.78rem;
  color: var(--text-light);
  background: #f7f9fa;
  padding: 4px 12px;
  border-radius: 999px;
}

/* -- Day 行程内容 -- */
.tv-day-content {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
}

/* -- Day 亮点盒子 -- */
.tv-day-highlight-box {
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(212,165,116,0.1), rgba(164,57,49,0.06));
  border-radius: 10px;
  border-left: 3px solid #d4a574;
  font-size: 0.88rem;
  color: #8b6914;
  font-style: italic;
  margin-bottom: 20px;
}

/* -- Day 前后翻页 -- */
.tv-day-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.tv-day-nav-btn {
  padding: 8px 16px;
  font-size: 0.82rem;
  color: #1d4350;
  background: #f7f9fa;
  border: 1px solid rgba(29,67,80,0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.tv-day-nav-btn:hover {
  background: #1d4350;
  color: #fff;
}

/* -- 费用 Tab 住宿日期标签 -- */
.tv-hotel-day-label {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

/* -- 详情区块 -- */
.tv-section { margin-bottom: 24px; }
.tv-section-title {
  font-size: 0.82rem;
  color: var(--text-mid);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

/* 费用 */
.tv-expense-total {
  font-size: 2rem;
  font-weight: 700;
  color: #1d4350;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.tv-expense-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.tv-expense-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: #f7f9fa;
  border-radius: 12px;
  gap: 4px;
}
.tv-expense-icon { font-size: 1.2rem; }
.tv-expense-label { font-size: 0.72rem; color: var(--text-light); }
.tv-expense-val { font-size: 0.88rem; font-weight: 600; color: var(--text); }

/* -- 行程总览：总路线卡片 -- */
.tv-ov-route-card {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(29,67,80,0.04) 0%, rgba(164,57,49,0.04) 100%);
  border-radius: 12px;
  border: 1px solid rgba(29,67,80,0.08);
}
.tv-ov-route-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.tv-ov-route-icon { font-size: 1.1rem; }
.tv-ov-route-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1d4350;
}
.tv-ov-km-badge {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
  background: rgba(59,130,246,0.1);
  padding: 2px 10px;
  border-radius: 999px;
}
.tv-ov-route-chain {
  font-size: 0.82rem;
  font-weight: 600;
  color: #a43931;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* -- 时间线内每日路线 -- */
.tv-timeline-route {
  font-size: 0.76rem;
  color: #a43931;
  margin-bottom: 3px;
  font-weight: 500;
  line-height: 1.4;
}
/* -- 时间线内每日费用标签 -- */
.tv-timeline-cost {
  font-size: 0.68rem;
  font-weight: 700;
  color: #a43931;
  background: rgba(164,57,49,0.08);
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
  margin-left: auto;
}

/* -- 旅途总结 v2 -- */
.tv-summary-note {
  padding: 14px 16px 14px 14px;
  background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, rgba(99,102,241,0.04) 100%);
  border-radius: 12px;
  margin-bottom: 8px;
  border-left: 3px solid rgba(59,130,246,0.5);
  position: relative;
}
.tv-summary-note-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.tv-summary-note-icon {
  font-size: 0.9rem;
  line-height: 1;
}
.tv-summary-note-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid, #6b7280);
  letter-spacing: 0.02em;
}
.tv-summary-note-text {
  font-size: 0.86rem;
  color: var(--text-main);
  line-height: 1.8;
  padding-left: 2px;
}
.tv-exp-v2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tv-exp-hero-card {
  text-align: center;
  padding: 24px 16px 20px;
  background: linear-gradient(135deg, #1d4350 0%, #a43931 100%);
  border-radius: 16px;
  color: #fff;
}
.tv-exp-hero-label {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-bottom: 6px;
}
.tv-exp-hero-amount {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tv-exp-hero-sub {
  font-size: 0.72rem;
  opacity: 0.6;
  margin-top: 4px;
}
.tv-exp-hero-cny {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-top: 2px;
  font-weight: 500;
}
/* 分类卡片 */
.tv-exp-cats {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tv-exp-cat-card {
  padding: 10px 4px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.15s;
}
.tv-exp-cat-card:hover { background: rgba(0,0,0,0.015); }
.tv-exp-cat-card:last-of-type { border-bottom: none; }
.tv-exp-cat-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tv-exp-cat-icon { font-size: 1rem; flex-shrink: 0; }
.tv-exp-cat-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  min-width: 36px;
}
.tv-exp-cat-pct {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
}
.tv-exp-cat-amt {
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: #a43931;
  font-variant-numeric: tabular-nums;
}
.tv-exp-cat-arrow {
  flex-shrink: 0;
  color: #9ca3af;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tv-exp-cat-card.expanded .tv-exp-cat-arrow {
  transform: rotate(180deg);
}
.tv-exp-cat-bar {
  height: 3px;
  background: rgba(0,0,0,0.04);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}
.tv-exp-cat-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* 分类明细展开 */
.tv-exp-cat-detail {
  display: none;
  padding: 4px 0 8px;
}
.tv-exp-cat-detail.open {
  display: block;
}
.tv-exp-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px 5px 28px;
  font-size: 0.76rem;
  color: var(--text-mid);
}
.tv-exp-detail-row:hover {
  background: rgba(0,0,0,0.015);
  border-radius: 6px;
}
.tv-exp-detail-icon { font-size: 0.85rem; flex-shrink: 0; }
.tv-exp-detail-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tv-exp-detail-day {
  font-size: 0.68rem;
  color: var(--text-light);
  background: rgba(0,0,0,0.04);
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.tv-exp-detail-amt {
  font-weight: 600;
  color: #a43931;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
/* 每日开销列表 */
.tv-exp-daily {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 16px;
}
.tv-exp-daily-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 10px;
}
.tv-exp-daily-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 6px;
}
.tv-exp-daily-item:hover { background: rgba(29,67,80,0.04); }
.tv-exp-daily-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tv-exp-daily-day {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1d4350;
}
.tv-exp-daily-date {
  font-size: 0.72rem;
  color: var(--text-light);
}
.tv-exp-daily-amt {
  font-size: 0.88rem;
  font-weight: 700;
  color: #a43931;
  font-variant-numeric: tabular-nums;
}

/* 时间轴 */
.tv-timeline {
  position: relative;
  padding-left: 20px;
}
.tv-timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #a43931 0%, #1d4350 100%);
  border-radius: 2px;
}
.tv-timeline-item {
  position: relative;
  padding-bottom: 16px;
}
.tv-timeline-item:last-child { padding-bottom: 0; }
.tv-timeline-dot {
  position: absolute;
  left: -17px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #a43931;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(164,57,49,0.2);
}
.tv-timeline-card {
  background: #f7f9fa;
  border-radius: 12px;
  padding: 12px 14px;
}
.tv-timeline-day {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1d4350;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tv-day-km, .tv-day-hrs {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-light);
  background: rgba(0,0,0,0.04);
  padding: 1px 7px;
  border-radius: 999px;
}
.tv-timeline-desc {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
}
.tv-timeline-highlight {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #d4a574;
  font-style: italic;
}

/* 酒店点评 */
.tv-hotels-list { display: flex; flex-direction: column; gap: 12px; }
.tv-hotel-card {
  background: #f7f9fa;
  border-radius: 12px;
  padding: 14px 16px;
  border-left: 3px solid #1d4350;
}
.tv-hotel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.tv-hotel-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.tv-hotel-price {
  font-size: 0.78rem;
  font-weight: 600;
  color: #a43931;
  background: rgba(164,57,49,0.08);
  padding: 2px 8px;
  border-radius: 999px;
}
.tv-hotel-stars { font-size: 0.82rem; margin-bottom: 4px; }
.tv-hotel-review { font-size: 0.82rem; color: var(--text-mid); line-height: 1.5; margin: 4px 0; }
.tv-hotel-room { font-size: 0.75rem; color: var(--text-light); }

/* 美食 */
.tv-food-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.tv-food-item {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  background: #f7f9fa;
  border-radius: 10px;
  gap: 2px;
}
.tv-food-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.tv-food-dish { font-size: 0.78rem; color: #a43931; }
.tv-food-note { font-size: 0.72rem; color: var(--text-light); font-style: italic; }
.tv-food-text { font-size: 0.9rem; color: var(--text); line-height: 1.7; }

/* 加电/加油 */
.tv-fuel-list { display: flex; flex-direction: column; gap: 6px; }
.tv-fuel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f7f9fa;
  border-radius: 8px;
  font-size: 0.82rem;
}
.tv-fuel-loc { flex: 1; color: var(--text); }
.tv-fuel-cost { font-weight: 600; color: #a43931; }
.tv-fuel-note { font-size: 0.72rem; color: var(--text-light); }

/* 亮点 */
.tv-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tv-highlight-chip {
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(29,67,80,0.08), rgba(164,57,49,0.06));
  border-radius: 999px;
  font-size: 0.82rem;
  color: #1d4350;
  border: 1px solid rgba(29,67,80,0.12);
}

/* -- 新建弹窗 v3（Tab 式编辑器） -- */
.tv-plan-v3 {
  max-width: 680px;
  max-height: 92vh;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tve-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.tve-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d4350;
  margin: 0;
}
.tve-close-btn {
  width: 30px; height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.tve-close-btn:hover { background: rgba(0,0,0,0.12); color: #333; }

/* Tab 导航栏 */
.tve-tab-bar {
  display: flex;
  gap: 2px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  overflow-x: auto;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tve-tab-bar::-webkit-scrollbar { display: none; }
.tve-tab {
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #888;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.tve-tab:hover { color: #1d4350; }
.tve-tab.active {
  color: #1d4350;
  border-bottom-color: #1d4350;
  font-weight: 600;
}

/* Tab 内容区 */
.tve-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px;
}
.tve-panel { display: none; }
.tve-panel.active { display: block; }

/* ---- 精简版基本信息面板 ---- */
.tve-field-card {
  margin-bottom: 16px;
}
.tve-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.tve-field-icon {
  font-size: 0.9rem;
  line-height: 1;
}
.tve-field-optional {
  font-size: 0.7rem;
  font-weight: 400;
  color: #9ca3af;
  margin-left: 2px;
}
.tve-field-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.88rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  background: #fafbfc;
  color: #1f2937;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.tve-field-input:focus {
  border-color: #1d4350;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29,67,80,0.08);
}
.tve-field-input::placeholder {
  color: #b0b8c4;
}
.tve-field-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.85rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  background: #fafbfc;
  color: #1f2937;
  resize: vertical;
  min-height: 72px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.tve-field-textarea:focus {
  border-color: #1d4350;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29,67,80,0.08);
}
.tve-field-textarea::placeholder {
  color: #b0b8c4;
}

/* 日期选择行 */
.tve-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tve-date-group {
  flex: 0 1 auto;
  position: relative;
  min-width: 0;
}
.tve-date-hint {
  position: absolute;
  top: -7px;
  left: 10px;
  font-size: 0.65rem;
  color: #9ca3af;
  background: linear-gradient(to bottom, #fafbfc, #fafbfc);
  padding: 0 4px;
  z-index: 1;
  pointer-events: none;
}
.tve-date-input {
  width: 100%;
  padding: 8px 8px;
  font-size: 0.78rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  background: #fafbfc;
  color: #1f2937;
  font-family: 'SF Mono', 'Consolas', monospace;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.tve-date-input:focus {
  border-color: #1d4350;
  box-shadow: 0 0 0 3px rgba(29,67,80,0.08);
}
.tve-date-arrow {
  color: #9ca3af;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin: 0 2px;
}
.tve-days-badge {
  display: inline-block;
  min-width: 52px;
  text-align: center;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1d4350;
  background: rgba(29,67,80,0.08);
  border-radius: 10px;
  white-space: nowrap;
  margin-top: 8px;
}
.tve-days-badge:empty {
  display: none;
}

/* 出行方式 chip 选择器 */
.tve-mode-selector {
  display: flex;
  gap: 8px;
}
.tve-mode-option {
  flex: 1;
  cursor: pointer;
  margin: 0;
}
.tve-mode-option input[type="radio"] {
  display: none;
}
.tve-mode-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}
.tve-mode-option:hover .tve-mode-chip {
  border-color: #c4cdd5;
  color: #374151;
}
.tve-mode-option input[type="radio"]:checked + .tve-mode-chip {
  background: rgba(29,67,80,0.08);
  border-color: #1d4350;
  color: #1d4350;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(29,67,80,0.12);
}

/* 底部操作栏 */
.tve-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
  background: #fafbfc;
}
.tve-cost-preview {
  font-size: 0.82rem;
  color: #666;
}
.tve-cost-preview strong {
  color: #a43931;
  font-size: 0.95rem;
}
.tve-cost-detail {
  font-size: 0.75rem;
  color: #999;
}
.tve-footer-btns {
  display: flex;
  gap: 8px;
}
/* 兼容旧天数显示（新建/full模式用） */
.tve-days-count {
  text-align: center;
  background: rgba(29,67,80,0.06) !important;
  font-weight: 600;
  color: #1d4350 !important;
}
/* basic 模式下弹窗变窄更精致 */
.tv-plan-v3.tve-basic-mode {
  max-width: 480px;
}

/* Day 面板头部 */
.tve-day-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
/* ---- Day 编辑面板 v2 ---- */
.tve-day-head-v2 {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0f7ff 0%, #faf5ff 100%);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.04);
}
.tve-day-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.tve-day-num {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1d4350, #3a7bd5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.tve-day-fulldate {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 400;
}
.tve-day-summary-card {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #fefefe;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
}
.tve-items-section {
  margin-bottom: 12px;
}
.tve-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}
.tve-items-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}
.tve-items-count {
  font-size: 0.72rem;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 2px 10px;
  border-radius: 999px;
}

/* v2 添加行程按钮栏 */
.tve-add-bar-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.tve-add-btn-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  font-size: 0.72rem;
  border: 1.5px dashed color-mix(in srgb, var(--btn-color) 30%, transparent);
  background: color-mix(in srgb, var(--btn-color) 4%, white);
  color: var(--btn-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tve-add-btn-v2:hover {
  background: var(--btn-color);
  color: #fff;
  border-color: var(--btn-color);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--btn-color) 25%, transparent);
}
.tve-add-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.tve-add-text {
  font-weight: 500;
}

/* v2 子行程条目 */
.tve-item-v2 {
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 3px solid var(--item-color, #1d4350);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #fff;
  transition: box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tve-item-v2:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* 分行标签布局 */
.tve-row-labeled {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}
.tve-row-labeled + .tve-row-labeled {
  border-top: 1px dashed rgba(0,0,0,0.05);
}
.tve-row-label {
  flex-shrink: 0;
  width: 70px;
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 500;
  text-align: right;
}
.tve-row-fields {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tve-row-fields .tve-title-input {
  flex: 1;
  min-width: 0;
}

/* v2 item header 美化 */
.tve-item-v2 .tve-item-header {
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* transport km/duration 行 */
.tve-trans-km {
  width: 90px;
  padding: 6px 10px;
  font-size: 0.8rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}
.tve-trans-km:focus {
  border-color: #2980b9;
}
.tve-duration-picker {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.tve-duration-picker:focus-within {
  border-color: #2980b9;
}
.tve-dur-h,
.tve-dur-m {
  padding: 5px 4px;
  font-size: 0.8rem;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  min-width: 36px;
  text-align: center;
}
.tve-dur-sep {
  font-size: 0.68rem;
  color: var(--text-light);
  user-select: none;
  padding: 0 1px;
}
.tve-dur-h:focus,
.tve-dur-m:focus {
  background: rgba(41,128,185,0.06);
}

/* time picker 样式 */
.tve-time-picker {
  width: 110px !important;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-weight: 500;
  text-align: center;
  padding: 6px 8px;
  font-size: 0.82rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  outline: none;
  background: #fafbfc;
  color: #1d4350;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tve-time-picker:focus {
  border-color: var(--item-color, #1d4350);
  box-shadow: 0 0 0 2px rgba(29,67,80,0.08);
}

/* 交通出发地/目的地行 */
.tve-transport-places {
  margin-top: 4px;
}
.tve-trans-from, .tve-trans-to {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  font-size: 0.8rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}
.tve-trans-from:focus, .tve-trans-to:focus {
  border-color: #2980b9;
}

/* ---- 展示页 Schedule 内联操作按钮 v2 ---- */
.tv-sch-inline-actions {
  display: inline-flex;
  gap: 2px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.tv-sch-item:hover .tv-sch-inline-actions {
  opacity: 1;
}
.tv-sch-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: #9ca3af;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.tv-sch-inline-btn:hover {
  color: #1d4350;
  background: rgba(29,67,80,0.08);
}
.tv-sch-inline-cost:hover {
  color: #a43931;
  background: rgba(164,57,49,0.08);
}
/* 保留旧类兼容 */
.tv-sch-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tv-sch-item:hover .tv-sch-actions {
  opacity: 1;
}
.tv-sch-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 500;
  color: #6b7280;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.tv-sch-action-btn:hover {
  background: #1d4350;
  color: #fff;
  border-color: #1d4350;
}
.tv-sch-action-btn svg {
  flex-shrink: 0;
}
.tv-sch-cost-btn:hover {
  background: #a43931;
  border-color: #a43931;
}
.tve-day-badge {
  background: linear-gradient(135deg, #1d4350, #2a5f73);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.tve-day-date {
  margin-left: 6px;
  font-weight: 400;
  opacity: 0.8;
  font-size: 0.78rem;
}
.tve-day-route {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}
.tve-day-route:focus { border-color: #1d4350; }
.tve-day-highlight {
  font-size: 0.82rem;
}

/* 子行程添加栏 */
.tve-add-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.02);
  border-radius: 10px;
  border: 1px dashed rgba(0,0,0,0.1);
}
.tve-add-label {
  font-size: 0.78rem;
  color: #888;
  margin-right: 2px;
}
.tve-add-btn {
  padding: 5px 10px;
  font-size: 0.76rem;
  border: 1px solid color-mix(in srgb, var(--btn-color) 25%, transparent);
  background: color-mix(in srgb, var(--btn-color) 6%, white);
  color: var(--btn-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.tve-add-btn:hover {
  background: var(--btn-color);
  color: #fff;
}

/* 子行程条目 */
.tve-item {
  border: 1px solid rgba(0,0,0,0.08);
  border-left: 3px solid var(--item-color, #1d4350);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fff;
  transition: box-shadow 0.2s;
}
.tve-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.tve-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
/* 子行程编号 */
.tve-item-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  font-size: 0.68rem;
  font-weight: 700;
  color: #6b7280;
  flex-shrink: 0;
}
.tve-item-actions {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.tve-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tve-move-btn, .tve-del-btn {
  width: 22px; height: 22px;
  border: none;
  border-radius: 4px;
  background: rgba(0,0,0,0.04);
  color: #888;
  cursor: pointer;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.tve-move-btn:hover { background: rgba(29,67,80,0.1); color: #1d4350; }
.tve-del-btn:hover { background: rgba(164,57,49,0.12); color: #a43931; }

/* 出发→到达时间同行 */
.tve-time-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tve-time-sep {
  font-size: 0.82rem;
  color: var(--text-light, #999);
  flex-shrink: 0;
}

.tve-item-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.tve-item-row:last-child { margin-bottom: 0; }
.tve-row-extra {
  padding-top: 4px;
  border-top: 1px dashed rgba(0,0,0,0.06);
}
.tve-item input, .tve-item select {
  padding: 6px 8px;
  font-size: 0.8rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
}
.tve-item input:focus, .tve-item select:focus {
  border-color: var(--item-color, #1d4350);
}
.tve-time, .tve-time-start, .tve-time-end {
  width: 70px;
  text-align: center;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-weight: 500;
}
.tve-title-input { flex: 1; min-width: 0; }
.tve-meal-type, .tve-trans-type { width: 85px; flex-shrink: 0; }
.tve-note { flex: 1; min-width: 0; }
.tve-cost {
  width: 72px;
  text-align: right;
  flex-shrink: 0;
}
.tve-arrow {
  color: #999;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.tve-item-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* 每日费用汇总 */
.tve-day-cost {
  text-align: right;
  font-size: 0.8rem;
  color: #a43931;
  font-weight: 500;
  padding: 6px 0;
}

.tv-save-btn {
  background: linear-gradient(135deg, #1d4350, #a43931) !important;
}
.tv-save-btn:hover {
  box-shadow: 0 6px 20px rgba(29,67,80,0.35) !important;
}

/* -- 顶部操作按钮栏（编辑/删除/关闭） -- */
.tv-detail-top-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.tv-top-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.tv-top-btn:hover {
  transform: scale(1.1);
}
.tv-top-btn:active {
  transform: scale(0.95);
}
.tv-top-edit:hover { background: rgba(29,67,80,0.75); }
.tv-top-del:hover { background: rgba(164,57,49,0.75); }
.tv-top-close:hover { background: rgba(0,0,0,0.55); }

/* -- 卡片封面图叠层（有 coverImage 时保证文字可读） -- */
.tv-card-cover {
  position: relative;
}
.tv-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
  border-radius: inherit;
}
.tv-card-cover > * {
  position: relative;
  z-index: 1;
}

/* -- 详情 Hero 图片叠层 -- */
.tv-detail-hero {
  position: relative;
}
.tv-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  border-radius: inherit;
}
.tv-detail-hero-inner {
  position: relative;
  z-index: 1;
}

/* -- Day Schedule 时间线 -- */
.tv-day-schedule {
  position: relative;
  padding-left: 56px;
  margin-bottom: 20px;
}
.tv-day-schedule::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #a43931 0%, #d4a574 50%, #1d4350 100%);
  border-radius: 2px;
}
.tv-sch-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding-bottom: 8px;
}
.tv-sch-item:last-child {
  padding-bottom: 0;
}
.tv-sch-time {
  position: absolute;
  left: -56px;
  top: 2px;
  width: 44px;
  text-align: right;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1d4350;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tv-sch-dot {
  position: relative;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a43931;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(164,57,49,0.18);
  margin-top: 4px;
  margin-right: 12px;
  z-index: 1;
}
.tv-sch-body {
  flex: 1;
  min-width: 0;
  background: #f7f9fa;
  border-radius: 10px;
  padding: 8px 12px;
  transition: background 0.2s;
}
.tv-sch-item:hover .tv-sch-body {
  background: #eef2f5;
}
.tv-sch-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 22px;
  position: relative;
  padding-right: 40px;
}
/* 标签内联到标题同行，空间不够整体换行 */
.tv-sch-tags-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.tv-sch-icon {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
.tv-sch-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.tv-sch-cost {
  font-size: 0.72rem;
  font-weight: 600;
  color: #a43931;
  background: rgba(164,57,49,0.08);
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.tv-sch-desc {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin-top: 4px;
  padding: 4px 0 0;
  border-top: 1px dashed rgba(0,0,0,0.05);
}

/* transport 元信息标签 */
.tv-sch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
/* -- Schedule 标签行 -- */
.tv-sch-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.tv-sch-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}
.tv-sch-chip-km {
  background: rgba(59,130,246,0.08);
  color: #2563eb;
}
.tv-sch-chip-dur {
  background: rgba(245,158,11,0.08);
  color: #d97706;
}
/* transport 圆点特殊色 */
.tv-sch-dot-trans {
  background: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.18);
}
/* transport 条目左边框 */
.tv-sch-transport .tv-sch-body {
  border-left: 2px solid rgba(59,130,246,0.2);
}
/* meal 圆点和边框 */
.tv-sch-dot-meal {
  background: #e67e22;
  box-shadow: 0 0 0 2px rgba(230,126,34,0.18);
}
.tv-sch-meal .tv-sch-body {
  border-left: 2px solid rgba(230,126,34,0.15);
}
/* hotel 圆点和边框 */
.tv-sch-dot-hotel {
  background: #8e44ad;
  box-shadow: 0 0 0 2px rgba(142,68,173,0.18);
}
.tv-sch-hotel .tv-sch-body {
  border-left: 2px solid rgba(142,68,173,0.15);
}
/* 餐别标签 */
.tv-sch-chip-meal {
  font-weight: 600;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.68rem;
  white-space: nowrap;
}

/* ==== 通用输入弹窗（替代 prompt） ==== */
.tv-input-overlay {
  z-index: 9999;
}
.tv-input-dialog {
  width: 92%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  overflow: hidden;
  animation: tvInputIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tvInputIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.tv-input-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.tv-input-icon {
  font-size: 1.2rem;
}
.tv-input-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d4350;
  margin: 0;
}
.tv-input-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}
.tv-input-close:hover {
  background: rgba(0,0,0,0.08);
  color: #1d4350;
}
.tv-input-body {
  padding: 16px 20px;
}
.tv-input-label {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 500;
}
.tv-input-textarea {
  width: 100%;
  min-height: 100px;
  max-height: 240px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  outline: none;
  resize: vertical;
  font-family: inherit;
  color: var(--text);
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.tv-input-textarea:focus {
  border-color: #1d4350;
  box-shadow: 0 0 0 3px rgba(29,67,80,0.08);
  background: #fff;
}
.tv-input-field {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  color: var(--text);
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.tv-input-field:focus {
  border-color: #1d4350;
  box-shadow: 0 0 0 3px rgba(29,67,80,0.08);
  background: #fff;
}
.tv-input-footer {
  display: flex;
  gap: 10px;
  padding: 12px 20px 16px;
  justify-content: flex-end;
}
.tv-input-btn {
  padding: 8px 24px;
  font-size: 0.85rem;
  border-radius: 10px;
  font-weight: 600;
}

/* -- Day 费用条 v3 -- */
.tv-day-cost-bar {
  margin-top: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fef9f4 0%, #fff5f3 100%);
  border-radius: 12px;
  border: 1px solid rgba(164,57,49,0.08);
}
.tv-day-cost-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(164,57,49,0.06);
}
.tv-day-cost-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
}
.tv-day-cost-total {
  font-size: 1.05rem;
  font-weight: 800;
  color: #a43931;
  letter-spacing: -0.01em;
}
.tv-cost-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tv-cost-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.tv-cost-cat-item:last-child,
.tv-cost-cat-item:has(+ .tv-cost-other-panel) {
  border-bottom: none;
}
.tv-cost-cat-icon {
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.tv-cost-cat-name {
  font-weight: 500;
  color: var(--text);
  min-width: 32px;
}
.tv-cost-cat-amt {
  margin-left: auto;
  font-weight: 700;
  color: #a43931;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.tv-cost-cat-other {
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 6px;
  padding: 6px 4px;
  margin: 0 -4px;
}
.tv-cost-cat-other:hover {
  background: rgba(164,57,49,0.04);
}
.tv-cost-arrow {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: 2px;
  color: #9ca3af;
}
.tv-cost-other-panel {
  display: none;
  padding: 4px 0 4px 28px;
}
.tv-cost-other-panel.open {
  display: block;
}
.tv-cost-other-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 0.73rem;
  color: var(--text-light);
}
.tv-cost-other-amt {
  font-weight: 600;
  color: #a43931;
  font-variant-numeric: tabular-nums;
}
/* 旧 v2 类保留兼容 */
.tv-day-cost-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tv-day-cost-bar .tv-day-cost-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #a43931;
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: 0;
}
.tv-cost-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}
.tv-cost-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mid);
  background: rgba(0,0,0,0.03);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tv-cost-tag-other {
  cursor: pointer;
  transition: all 0.15s;
}
.tv-cost-tag-other:hover {
  background: rgba(164,57,49,0.08);
  color: #a43931;
}
/* 旧类保留兼容 */
.tv-day-cost-summary {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.tv-day-cost-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.tv-day-cost-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.tv-day-cost-total {
  font-weight: 700;
  color: #a43931;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.tv-day-cost-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tv-cost-chip {
  position: relative;
  flex: 1;
  min-width: 80px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(29,67,80,0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tv-cost-chip-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #a43931, #d4a574);
  border-radius: 0 3px 0 0;
  transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}
.tv-cost-chip-icon {
  font-size: 0.85rem;
  line-height: 1;
}
.tv-cost-chip-label {
  font-size: 0.68rem;
  color: var(--text-mid);
  font-weight: 500;
}
.tv-cost-chip-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1d4350;
}
/* "其他"费用明细列表 */
.tv-cost-other-detail {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0,0,0,0.08);
}
.tv-cost-other-title {
  font-size: 0.72rem;
  color: var(--text-mid);
  margin-bottom: 6px;
  font-weight: 500;
}
.tv-cost-other-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 0.78rem;
}
.tv-cost-other-icon {
  font-size: 0.82rem;
  flex-shrink: 0;
}
.tv-cost-other-name {
  flex: 1;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tv-cost-other-val {
  font-weight: 600;
  color: #a43931;
  white-space: nowrap;
}
/* 费用编辑弹窗 - 币种选择行 */
.tv-cost-currency-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.tv-cost-cur-label {
  font-size: 0.82rem;
  color: var(--text-mid);
  font-weight: 500;
  flex-shrink: 0;
}
.tv-cost-cur-select {
  flex: 1;
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.85rem;
  font-family: var(--font);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.tv-cost-cur-select:focus {
  border-color: #a43931;
}

/* -- 紫色按钮保留（其他页面可能引用） -- */

/* 待办清单页样式已迁移到 modules/todo/todo.css */

/* 旧旅行详情弹窗样式已移除，使用 tv-* 新样式 */

/* 多币种分组标题 */
.tv-exp-cur-header {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main, #333);
  padding: 12px 0 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tv-exp-cur-sym {
  font-size: 1rem;
  font-weight: 700;
}
/* 每日费用币种标签 */
.tv-cost-cur-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main, #555);
  padding: 8px 0 2px;
  opacity: 0.8;
}

/* ===================================
   弹窗
