/* 全局样式 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
}

/* 导航激活状态 */
.nav-link.active {
  color: #0284c7;
  font-weight: 600;
}

/* 概览卡片 */
.overview-card {
  transition: all 0.3s ease;
  cursor: pointer;
}
.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.15);
}
.overview-card.active {
  border-color: #0ea5e9;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
}

/* 日期标签 */
.day-tab {
  transition: all 0.3s ease;
  cursor: pointer;
}
.day-tab:hover {
  background-color: #e0f2fe;
  color: #0284c7;
}
.day-tab.active {
  background-color: #0ea5e9;
  color: white;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* 时间线 */
.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 2rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #7dd3fc, #bae6fd);
}
.timeline-item:last-child::before {
  display: none;
}
.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  z-index: 1;
}

/* 行程卡片 */
.schedule-card {
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #e0f2fe;
  transition: all 0.3s ease;
}
.schedule-card:hover {
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.1);
  border-color: #7dd3fc;
}

/* 住宿卡片 */
.hotel-card {
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
  border: 1px solid #e5e7eb;
}
.hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* 美食卡片 */
.food-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}
.food-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* 贴士卡片 */
.tip-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}
.tip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 行李清单 */
.packing-category {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}
.packing-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.packing-item:hover {
  color: #0284c7;
}
.packing-item.checked {
  color: #9ca3af;
  text-decoration: line-through;
}
.packing-item .check-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  font-size: 0.6rem;
  color: transparent;
}
.packing-item.checked .check-icon {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: white;
}

/* 动画 */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 标签样式 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.tag-blue { background: #e0f2fe; color: #0369a1; }
.tag-green { background: #dcfce7; color: #166534; }
.tag-orange { background: #ffedd5; color: #9a3412; }
.tag-pink { background: #fce7f3; color: #9d174d; }
.tag-purple { background: #f3e8ff; color: #7e22ce; }

/* 响应式 */
@media (max-width: 768px) {
  .overview-card {
    flex-direction: row !important;
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f9ff;
}
::-webkit-scrollbar-thumb {
  background: #7dd3fc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* 潮汐表格 */
#tidal-table table {
  border-collapse: collapse;
}
#tidal-table th,
#tidal-table td {
  border-bottom: 1px solid #f0fdf4;
}

/* 行李清单删除按钮 */
.packing-item .delete-item-btn {
  padding: 2px 4px;
  border-radius: 4px;
}
.packing-item .delete-item-btn:hover {
  background: #fee2e2;
}

/* 行李清单添加输入框动画 */
.add-item-form {
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 赶海地点卡片 */
#sea-spots > div {
  transition: all 0.3s ease;
}