/* 自定义样式 - 仅作为 Tailwind 的补充 */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
}

/* Day Tab 样式 */
.day-tab {
  background: white;
  color: #1E3A8A;
  border: 2px solid transparent;
}

.day-tab:hover {
  border-color: #D4AF37;
  transform: translateY(-2px);
}

.day-tab.active {
  background: linear-gradient(135deg, #1E3A8A, #C8102E);
  color: white;
  border-color: #D4AF37;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

/* 时间轴节点 */
.timeline-node {
  position: relative;
}

.timeline-node::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 60px;
  bottom: -16px;
  width: 2px;
  background: linear-gradient(to bottom, #D4AF37, transparent);
}

.timeline-node:last-child::before {
  display: none;
}

/* 渐入动画 */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 景点卡片悬浮 */
.attraction-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.attraction-card:hover {
  transform: translateY(-8px);
}

.attraction-card:hover .attraction-img {
  transform: scale(1.08);
}

.attraction-img {
  transition: transform 0.6s ease;
}

/* 行李清单复选框 */
.checklist-item {
  transition: all 0.3s ease;
  cursor: pointer;
}

.checklist-item.checked {
  opacity: 0.5;
  text-decoration: line-through;
}

.checklist-item.checked .check-circle {
  background: #D4AF37;
  border-color: #D4AF37;
}

.checklist-item.checked .check-circle::after {
  content: '✓';
  color: white;
  font-weight: bold;
}

.check-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #1E3A8A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #FFF8E7;
}

::-webkit-scrollbar-thumb {
  background: #1E3A8A;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C8102E;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .day-tab {
    flex: 1 1 45%;
    padding: 0.75rem 1rem;
  }
  .day-tab .text-xs {
    font-size: 0.7rem;
  }
}

/* 时段标签 */
.time-badge {
  background: linear-gradient(135deg, #1E3A8A, #2563EB);
  color: white;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* 价格标签 */
.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #FFF8E7;
  color: #C8102E;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  border: 1px solid #D4AF37;
}

/* 时长标签 */
.duration-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #E0E7FF;
  color: #1E3A8A;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
}
