/* Spark · 下一站 */

.travel-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 100px;
}

.travel-header {
  padding: 16px 4px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.travel-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-dark);
  letter-spacing: 0.5px;
}

.travel-subtitle {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.travel-actions {
  display: flex;
  gap: 6px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.icon-btn:active {
  background: rgba(255, 255, 255, 1);
  transform: scale(0.92);
}

/* 倒计时 Hero */
.countdown-hero {
  background: linear-gradient(135deg, #fff4ec 0%, #ffe2ec 50%, #ffe7d6 100%);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.countdown-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.6) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(255, 217, 160, 0.3) 0%, transparent 30%);
  pointer-events: none;
}

.countdown-label {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 8px;
  position: relative;
}

.countdown-days {
  font-size: 64px;
  font-weight: 800;
  color: var(--accent-coral);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgba(255, 138, 154, 0.25);
  position: relative;
  display: inline-block;
}

.countdown-days-label {
  font-size: 18px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-left: 4px;
  position: relative;
}

.countdown-dest {
  font-size: 14px;
  color: var(--ink-dark);
  font-weight: 600;
  margin-top: 8px;
  position: relative;
}

.countdown-date {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
  position: relative;
}

.countdown-pulse {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-coral);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* 行程卡片 */
.trip-section {
  margin-bottom: 20px;
}

.trip-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}

.trip-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-dark);
}

.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.day-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}

.day-tab.active {
  background: var(--accent-coral);
  color: white;
  border-color: var(--accent-coral);
  box-shadow: 0 4px 10px rgba(255, 138, 154, 0.3);
}

.day-tab-date {
  display: block;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 1px;
}

/* Day 内容 */
.day-content {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-xl);
  padding: 20px 16px;
  box-shadow: var(--shadow-soft);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.day-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--ink-fade);
  font-size: 13px;
}

.day-section {
  margin-bottom: 16px;
}

.day-section:last-child { margin-bottom: 0; }

.day-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-coral);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.day-section-text {
  font-size: 14px;
  color: var(--ink-dark);
  line-height: 1.7;
}

.day-section-text .highlight {
  color: var(--accent-coral);
  font-weight: 600;
}

/* 待办勾选 */
.todo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 244, 236, 0.5);
  border-radius: var(--r-md);
  transition: background 0.2s ease;
  cursor: pointer;
}

.todo-item:active {
  background: rgba(255, 244, 236, 0.9);
}

.todo-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(43, 38, 34, 0.2);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.todo-item.done .todo-check {
  background: var(--accent-coral);
  border-color: var(--accent-coral);
}

.todo-item.done .todo-check::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.todo-text {
  font-size: 13px;
  color: var(--ink-dark);
  line-height: 1.5;
  flex: 1;
}

.todo-item.done .todo-text {
  text-decoration: line-through;
  color: var(--ink-fade);
}

.todo-add {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 244, 236, 0.3);
  border: 1.5px dashed rgba(43, 38, 34, 0.15);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--ink-soft);
  width: 100%;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.todo-add:active {
  background: rgba(255, 244, 236, 0.6);
}

/* 列表选择（最近一次 / 归档） */
.trip-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.trip-tab {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}

.trip-tab.active {
  background: var(--ink-dark);
  color: white;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--r-xl);
  border: 1.5px dashed rgba(43, 38, 34, 0.1);
  margin-top: 12px;
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-dark);
  margin-bottom: 8px;
}

.empty-sub {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}

.empty-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-warm) 100%);
  color: white;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(255, 138, 154, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid rgba(43, 38, 34, 0.08);
}

/* 上传弹层 */
.upload-tip {
  background: var(--bg-pink);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 12px;
}

.upload-tip strong {
  color: var(--accent-coral);
  font-weight: 600;
}

/* Day 卡片归档按钮 */
.archive-btn {
  margin-top: 16px;
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--r-md);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid rgba(43, 38, 34, 0.08);
}

.archive-btn:active {
  background: rgba(255, 255, 255, 1);
}