/* ========== 全局安全样式（无:root/var/*reset） ========== */

.tp-page, .tp-page *, .tp-modal-overlay, .tp-modal-overlay * {
  box-sizing: border-box;
}


/* ========== 页面容器 ========== */
.tp-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  min-height: 100vh;
}

/* ========== ① Hero标题区 ========== */
.tp-hero {
  position: relative;
  padding-left: 16px;
  margin-bottom: 32px;
}
.tp-hero__bar {
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, #ff6b35, #ffa500);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.tp-hero:hover .tp-hero__bar { width: 48px; }
.tp-hero__title {
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.tp-hero__title-gradient {
  background: linear-gradient(135deg, #ff6b35, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tp-hero__title-black { color: #111; }
.tp-hero__sub {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}
.tp-hero__shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.tp-hero:hover .tp-hero__shine { left: 120%; }
.tp-hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.tp-hero__stat { display: flex; flex-direction: column; }
.tp-hero__stat-num {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b35, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.tp-hero__stat-label { font-size: 12px; color: #999; margin-top: 2px; }

/* ========== ② 双栏主体 ========== */
.tp-main {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
}
@media (max-width: 960px) {
  .tp-main { grid-template-columns: 1fr; }
}

/* ========== 左侧：规划器表单 ========== */
.tp-planner {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  position: sticky;
  top: 20px;
  align-self: flex-start;
}
.tp-planner__title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tp-field { margin-bottom: 16px; }
.tp-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.tp-field__input,
.tp-field__select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #222;
  background: #fff;
  transition: border-color 0.3s;
  font-family: inherit;
}
.tp-field__input:focus,
.tp-field__select:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}
.tp-field__input--readonly {
  background: #f9fafb;
  cursor: pointer;
  color: #555;
}
.tp-field__hint {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}
.tp-field__hint--success { color: #10b981; }
.tp-field__hint--error { color: #ef4444; }
.tp-field__hint--warn { color: #f59e0b; }

/* 出行方式单选 */
.tp-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tp-radio {
  position: relative;
}
.tp-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tp-radio__label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
}
.tp-radio input:checked + .tp-radio__label {
  border-color: #ff6b35;
  background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(255,165,0,0.08));
  color: #ff6b35;
  font-weight: 600;
}

/* 偏好标签 */
.tp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tp-tag {
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
}
.tp-tag--active {
  background: linear-gradient(135deg, #ff6b35, #ffa500);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

/* 生成按钮 */
.tp-generate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6b35, #ffa500);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(255,107,53,0.3);
  margin-top: 8px;
  font-family: inherit;
}
.tp-generate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}
.tp-generate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.tp-generate-btn--secondary {
  background: #fff;
  color: #ff6b35;
  border: 1px solid #ff6b35;
  box-shadow: none;
  margin-top: 10px;
}
.tp-generate-btn--secondary:hover {
  background: rgba(255,107,53,0.05);
}

/* ========== 右侧：行程计划 ========== */
.tp-timeline-wrap {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(18px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.tp-timeline-empty {
  padding: 80px 20px;
  text-align: center;
  color: #999;
}
.tp-timeline-empty__icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.tp-timeline-empty__title {
  font-size: 16px;
  color: #666;
  margin-bottom: 8px;
}
.tp-timeline-empty__desc {
  font-size: 13px;
  color: #aaa;
}

.tp-timeline {
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  /* max-height 由JS动态设置，等于左侧高度 */
}
/* 自定义滚动条 */
.tp-timeline::-webkit-scrollbar { width: 6px; }
.tp-timeline::-webkit-scrollbar-track { background: transparent; }
.tp-timeline::-webkit-scrollbar-thumb { background: rgba(255,107,53,0.3); border-radius: 3px; }
.tp-timeline::-webkit-scrollbar-thumb:hover { background: rgba(255,107,53,0.5); }

.tp-timeline__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
}
.tp-timeline__title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}
.tp-timeline__meta {
  font-size: 12px;
  color: #999;
}
.tp-timeline__route {
  margin: -8px 0 18px;
  font-size: 13px;
  color: #059669;
  background: #f0fdf4;
  border: 1px dashed #6ee7b7;
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1.7;
}

/* 单天卡片 */
.tp-day {
  position: relative;
  padding: 0 0 0 28px;
  margin-bottom: 24px;
}
.tp-day::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: -24px;
  width: 2px;
  background: linear-gradient(180deg, #ff6b35, #ffa500);
  border-radius: 1px;
}
.tp-day:last-child::before { display: none; }
.tp-day__dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ffa500);
  box-shadow: 0 0 0 4px rgba(255,107,53,0.15);
  z-index: 2;
}
.tp-day__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.tp-day__label {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.tp-day__place {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 10px;
  vertical-align: middle;
  white-space: nowrap;
}
.tp-day__date {
  font-size: 12px;
  color: #999;
}
.tp-day__weather {
  font-size: 12px;
  color: #666;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
}
.tp-day__edit-btn {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s;
  font-family: inherit;
}
.tp-day__edit-btn:hover {
  border-color: #ff6b35;
  color: #ff6b35;
}

.tp-day__content {
  background: #fafbfc;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: #444;
  line-height: 1.8;
  white-space: pre-line;
}
/* 行程图片组合 */
.tp-day__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.tp-day__gallery-item {
  position: relative;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f2f5;
  cursor: pointer;
  border: 1px solid #eef0f3;
}
.tp-day__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.tp-day__gallery-item:hover img { transform: scale(1.06); }
.tp-day__gallery-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 8px 6px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .tp-day__gallery {
    grid-template-columns: 1fr 1fr;
  }
}
.tp-day__content--editing {
  padding: 0;
}
.tp-day__textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px 16px;
  border: 1px solid #ff6b35;
  border-radius: 10px;
  font-size: 13px;
  color: #222;
  resize: vertical;
  font-family: inherit;
  line-height: 1.8;
}
.tp-day__save-btn {
  margin-top: 8px;
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff6b35, #ffa500);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* 交通提示 */
.tp-day__traffic {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: #888;
}
.tp-day__traffic-icon { font-size: 14px; }

/* 推荐区 */
.tp-day__recs {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* 住宿/美食/景点 多列 */
.tp-rec__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}
.tp-rec__cols--3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.tp-rec__cols .tp-rec {
  min-width: 0;
}
@media (max-width: 900px) {
  .tp-rec__cols--3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .tp-rec__cols,
  .tp-rec__cols--3 {
    grid-template-columns: 1fr;
  }
}
.tp-rec {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.7;
}
.tp-rec--hotel {
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(16,185,129,0.02));
  border: 1px solid rgba(16,185,129,0.15);
}
.tp-rec--food {
  background: linear-gradient(135deg, rgba(249,158,11,0.06), rgba(249,158,11,0.02));
  border: 1px solid rgba(249,158,11,0.15);
}
.tp-rec--tips {
  background: linear-gradient(135deg, rgba(239,68,68,0.05), rgba(239,68,68,0.02));
  border: 1px solid rgba(239,68,68,0.12);
}
.tp-rec__title {
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tp-rec--hotel .tp-rec__title { color: #10b981; }
.tp-rec--food .tp-rec__title { color: #f59e0b; }
.tp-rec--scenic {
  background: linear-gradient(135deg, rgba(59,130,246,0.07), rgba(59,130,246,0.02));
  border: 1px solid rgba(59,130,246,0.16);
}
.tp-rec--scenic .tp-rec__title { color: #3b82f6; }
.tp-rec--tips .tp-rec__title { color: #ef4444; }
.tp-rec__empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  color: #aaa;
  padding: 16px 0;
}
.tp-rec__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  color: #555;
}
.tp-rec__item-name { font-weight: 500; }
.tp-rec__item-meta { color: #999; font-size: 11px; }
.tp-rec__tip {
  color: #666;
  padding: 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.tp-rec__loading {
  color: #999;
  font-size: 12px;
  font-style: italic;
}

/* ========== ③ 预算计算器 ========== */
.tp-budget {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.tp-budget__title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tp-budget__sub {
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
}
.tp-budget__rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tp-budget__row {
  display: grid;
  grid-template-columns: 60px 100px 1fr 80px;
  align-items: center;
  gap: 12px;
}
@media (max-width: 640px) {
  .tp-budget__row { grid-template-columns: 50px 80px 1fr 60px; gap: 8px; }
}
.tp-budget__label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}
.tp-budget__input {
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #ff6b35;
  width: 100%;
  font-family: inherit;
}
.tp-budget__input:focus {
  outline: none;
  border-color: #ff6b35;
}
.tp-budget__bar {
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}
.tp-budget__bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, #ff6b35, #ffa500);
}
.tp-budget__pct {
  font-size: 12px;
  color: #999;
  text-align: right;
}
.tp-budget__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid #f3f4f6;
}
.tp-budget__total-label {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}
.tp-budget__total-value {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b35, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.tp-budget__detail {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 12px;
  color: #666;
  line-height: 1.8;
}
.tp-budget__detail-title {
  font-weight: 700;
  color: #444;
  margin-bottom: 4px;
}

/* ========== ④ 天气卡片 ========== */
.tp-weather {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.tp-weather__title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tp-weather__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 768px) { .tp-weather__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .tp-weather__grid { grid-template-columns: repeat(2, 1fr); } }
.tp-weather__card {
  text-align: center;
  padding: 14px 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  transition: all 0.3s;
}
.tp-weather__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.tp-weather__day {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}
.tp-weather__icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.tp-weather__temp {
  font-size: 14px;
  font-weight: 700;
  color: #222;
}
.tp-weather__desc {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}
.tp-weather__notice {
  background: #fff8e6;
  border: 1px solid #f3d9a4;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #8a6d3b;
  margin-bottom: 14px;
}
.tp-weather__card--pending {
  background: #fafafa;
  opacity: 0.6;
}

/* ========== ⑤ 城市选择器弹窗 ========== */
.tp-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.tp-modal-overlay--show { display: flex; }
.tp-modal {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: tpModalIn 0.3s ease;
}
@keyframes tpModalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.tp-modal__title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}
.tp-modal__sub {
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
}
/* 城市选择器：两级联动，点击城市后自动关闭 */
.tp-city-picker {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  max-height: 340px;
}
.tp-city-picker__provinces {
  border-right: 1px solid #f3f4f6;
  overflow-y: auto;
  max-height: 320px;
}
.tp-city-picker__province {
  padding: 8px 12px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  user-select: none;
}
.tp-city-picker__province:hover {
  background: #f9fafb;
  color: #ff6b35;
}
.tp-city-picker__province--active {
  background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(255,165,0,0.1));
  color: #ff6b35;
  font-weight: 600;
}
.tp-city-picker__cities {
  overflow-y: auto;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tp-city-picker__city {
  padding: 8px 12px;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  user-select: none;
}
.tp-city-picker__city:hover {
  background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(255,165,0,0.08));
  color: #ff6b35;
  font-weight: 600;
}
.tp-city-picker__city--empty {
  padding: 20px;
  font-size: 12px;
  color: #bbb;
  text-align: center;
}

/* ========== ⑥ 热门行程模板 ========== */
.tp-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #ff6b35;
}
.tp-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tp-tab {
  padding: 8px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}
.tp-tab:hover { border-color: #ff6b35; color: #ff6b35; }
.tp-tab--active {
  background: linear-gradient(135deg, #ff6b35, #ffa500);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}
.tp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 1024px) { .tp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tp-grid { grid-template-columns: 1fr; } }

.tp-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(18px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: tpFadeUp 0.6s ease both;
  position: relative;
}
.tp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 0 20px rgba(255,107,53,0.15);
}
@keyframes tpFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.tp-card__cover {
  position: relative;
  height: 170px;
  overflow: hidden;
}
.tp-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tp-card:hover .tp-card__img { transform: scale(1.06); }
.tp-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}
.tp-card__badge--hot { background: #ef4444; }
.tp-card__badge--new { background: #10b981; }
.tp-card__badge--tip { background: #3b82f6; }
.tp-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 2;
}
.tp-card__fav:hover { color: #ef4444; transform: scale(1.15); }
.tp-card__rating {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}
.tp-card__body { padding: 14px; }
.tp-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}
.tp-card:hover .tp-card__title {
  background: linear-gradient(135deg, #ff6b35, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tp-card__desc {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.tp-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #888;
}
.tp-card__bg {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff6b35 0%, transparent 70%);
  opacity: 0.06;
  transition: all 0.8s ease;
  z-index: 1;
  pointer-events: none;
}
.tp-card:hover .tp-card__bg { opacity: 0.14; transform: rotate(15deg) scale(1.1); }

/* ========== ⑦ 达人推荐路线 ========== */
.tp-topics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 1024px) { .tp-topics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tp-topics { grid-template-columns: 1fr; } }
.tp-topic {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  height: 160px;
}
.tp-topic__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tp-topic:hover .tp-topic__img { transform: scale(1.06); }
.tp-topic__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
}
.tp-topic__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.tp-topic__meta { font-size: 12px; opacity: 0.85; }

/* ========== ⑧ 数据来源说明 ========== */
.tp-source {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(18px);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.tp-source__title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tp-source__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
@media (max-width: 640px) { .tp-source__list { grid-template-columns: 1fr; } }
.tp-source__item {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.tp-source__check { color: #10b981; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ========== 加载更多 ========== */
.tp-loadmore {
  text-align: center;
  margin-top: 20px;
}
.tp-loadmore__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ff6b35, #ffa500);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(255,107,53,0.3);
  font-family: inherit;
}
.tp-loadmore__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,53,0.4); }

/* ========== 入场动画延迟 ========== */
.tp-card:nth-child(1) { animation-delay: 0s; }
.tp-card:nth-child(2) { animation-delay: 0.08s; }
.tp-card:nth-child(3) { animation-delay: 0.16s; }
.tp-card:nth-child(4) { animation-delay: 0.24s; }
.tp-card:nth-child(5) { animation-delay: 0.32s; }
.tp-card:nth-child(6) { animation-delay: 0.40s; }
.tp-card:nth-child(7) { animation-delay: 0.48s; }
.tp-card:nth-child(8) { animation-delay: 0.56s; }
.tp-card:nth-child(9) { animation-delay: 0.64s; }

/* ========== 加载中动画 ========== */
.tp-loading {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,107,53,0.3);
  border-top-color: #ff6b35;
  border-radius: 50%;
  animation: tpSpin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes tpSpin { to { transform: rotate(360deg); } }

/* ===== 嵌入站点布局后的作用域化补充（原 body/a/img 全局规则） ===== */
.tp-page {
  overflow-x: hidden;
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f7fa;
  color: #222;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.tp-page a, .tp-modal-overlay a { text-decoration: none; color: inherit; }
.tp-page img, .tp-modal-overlay img { display: block; max-width: 100%; }

/* ========== ⑰ 出发日期：点击整块输入区域弹出日期选择器 ========== */
.tp-date-wrap {
  position: relative;
}
.tp-date-input {
  width: 100%;
  padding-right: 44px;
  cursor: pointer;
}
.tp-date-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  color: #ff6b35;
}

/* ========== ⑱ 数字步进器（+/- 快捷调整） ========== */
.tp-stepper {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color .3s, box-shadow .3s;
}
.tp-stepper:focus-within {
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255,107,53,.1);
}
.tp-stepper__btn {
  width: 46px;
  border: none;
  background: #f3f4f6;
  font-size: 20px;
  font-weight: 700;
  color: #666;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  user-select: none;
  line-height: 1;
}
.tp-stepper__btn:hover { background: linear-gradient(135deg,#ff6b35,#ffa500); color: #fff; }
.tp-stepper__btn:active { transform: scale(.94); }
.tp-stepper__input {
  flex: 1;
  min-width: 0;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  padding: 10px 4px;
  font-family: inherit;
  -moz-appearance: textfield;
  appearance: textfield;
}
.tp-stepper__input::-webkit-outer-spin-button,
.tp-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tp-stepper__input:focus { outline: none; }

/* ========== ⑲ 必选项未选高亮 ========== */
.tp-field--error .tp-field__label { color: #ef4444; }
.tp-field--error .tp-radio__label {
  border-color: #ef4444;
  background: rgba(239,68,68,.05);
  color: #ef4444;
}
.tp-field--error .tp-tag { border-color: #ef4444; }
.tp-field--error .tp-stepper { border-color: #ef4444; }
.tp-field--error .tp-field__input,
.tp-field--error textarea.tp-custom__note {
  border-color: #ef4444;
  background: #fef2f2;
}

/* ========== ⑳ 行程顶部 AI 生成提示（sticky 固定，滚动不消失） ========== */
.tp-timeline__ai-notice {
  position: sticky;
  top: 0;
  z-index: 6;
  background: linear-gradient(135deg,#fff7ed,#ffedd5);
  border: 1px solid #fdba74;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: #9a3412;
  margin-bottom: 14px;
}
.tp-timeline__custom-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #1d4ed8;
  margin: -6px 0 14px;
  line-height: 1.7;
}

/* ========== ㉑ 悬浮「定制行程」按钮（时间线内右下角，行程生成后随时间线渲染出现） ========== */
.tp-timeline__fab-holder {
  position: sticky;
  bottom: 20px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.tp-custom-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg,#ff6b35,#ffa500);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255,107,53,.45);
  transition: all .3s;
  font-family: inherit;
  animation: tpFabPulse 2.4s ease infinite;
}
.tp-custom-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 32px rgba(255,107,53,.55);
}
@keyframes tpFabPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(255,107,53,.45); }
  50% { box-shadow: 0 8px 32px rgba(255,107,53,.72); }
}
@media (max-width: 600px) {
  .tp-custom-fab { padding: 10px 16px; font-size: 13px; }
}

/* ========== ㉑+ 时间线头部导出 PDF 按钮 ========== */
.tp-timeline__header-main { min-width: 0; }
.tp-export-pdf {
  flex-shrink: 0;
  margin-left: 12px;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #ff6b35;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
}
.tp-export-pdf:hover {
  border-color: #ff6b35;
  background: linear-gradient(135deg,#ff6b35,#ffa500);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,107,53,.3);
}

/* ========== ㉒ 定制表单弹窗 / 重置确认弹窗 ========== */
.tp-custom {
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
}
.tp-custom__form { margin-bottom: 18px; }
.tp-custom__form .tp-field:last-child { margin-bottom: 0; }
.tp-custom__note {
  width: 100%;
  min-height: 72px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #222;
  resize: vertical;
  font-family: inherit;
  line-height: 1.7;
  box-sizing: border-box;
}
.tp-custom__note:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255,107,53,.1);
}
.tp-custom__error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 13px;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  line-height: 1.6;
}
.tp-custom__error:not(:empty) { display: block; }
.tp-custom__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid #f3f4f6;
  padding-top: 16px;
}
.tp-custom__btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #666;
  transition: all .25s;
  font-family: inherit;
}
.tp-custom__btn:hover { border-color: #ff6b35; color: #ff6b35; }
.tp-custom__btn--primary {
  background: linear-gradient(135deg,#ff6b35,#ffa500);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(255,107,53,.3);
}
.tp-custom__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,.4);
}
.tp-custom__btn--danger {
  background: linear-gradient(135deg,#ef4444,#f97316);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(239,68,68,.3);
}
.tp-custom__btn--danger:hover { transform: translateY(-2px); }
.tp-reset { max-width: 420px; }
.tp-reset .tp-custom__actions { justify-content: center; }

/* ========== ㉓ 出发日期美化日历 ========== */
.tp-calendar {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
  padding: 14px;
  user-select: none;
}
.tp-calendar--open { display: block; }
.tp-calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.tp-calendar__nav {
  width: 30px;
  height: 30px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.tp-calendar__nav:hover { background: linear-gradient(135deg,#ff6b35,#ffa500); color: #fff; }
.tp-calendar__ym {
  font-size: 15px;
  font-weight: 700;
  color: #222;
}
.tp-calendar__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.tp-calendar__week span {
  text-align: center;
  font-size: 12px;
  color: #999;
  font-weight: 600;
  padding: 4px 0;
}
.tp-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.tp-calendar__blank { height: 34px; }
.tp-calendar__day {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.tp-calendar__day:hover:not(.is-past) { background: #fff3ec; color: #ff6b35; }
.tp-calendar__day.is-past { color: #d1d5db; cursor: not-allowed; }
.tp-calendar__day.is-past.is-today { border-color: #e5e7eb; font-weight: 400; }
.tp-calendar__day.is-today { border: 1px solid #ff6b35; color: #ff6b35; font-weight: 700; }
.tp-calendar__day.is-selected {
  background: linear-gradient(135deg,#ff6b35,#ffa500);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(255,107,53,.35);
}
.tp-calendar__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
}
.tp-calendar__today {
  padding: 6px 14px;
  border: 1px solid #ff6b35;
  border-radius: 20px;
  background: #fff;
  color: #ff6b35;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.tp-calendar__today:hover { background: linear-gradient(135deg,#ff6b35,#ffa500); color: #fff; }

/* ========== ㉔ 导出 PDF 打印样式（仅打印行程+预算+天气，目标选择「另存为 PDF」） ========== */
@media print {
  /* 隐藏页面其余所有区块（含站点头尾），只保留行程助手主体 */
  body > * { display: none !important; }
  body > #pc-list-main { display: block !important; }
  .tp-hero, .tp-planner, .tp-section-title, .tp-tabs,
  .tp-grid, .tp-topics, .tp-source, .tp-modal-overlay,
  .tp-custom-fab, .tp-timeline__fab-holder { display: none !important; }
  .tp-page { max-width: none !important; padding: 0 !important; }
  .tp-main { display: block !important; grid-template-columns: 1fr !important; }
  .tp-timeline-wrap, .tp-budget, .tp-weather {
    display: block !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #fff !important;
    backdrop-filter: none !important;
  }
  .tp-timeline {
    max-height: none !important;
    overflow: visible !important;
    padding: 16px 0 !important;
  }
  .tp-export-pdf, .tp-day__edit-btn { display: none !important; }
  .tp-day, .tp-day__gallery-item { break-inside: avoid; }
  .tp-day__gallery img { max-height: 160px; }
}

/* ========== ⑳ toast 轻提示 ========== */
.tp-toast {
  position: fixed;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%) translateY(20px);
  z-index: 99999;
  max-width: 86%;
  padding: 12px 22px;
  border-radius: 12px;
  background: rgba(17,24,39,.92);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.tp-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }
