html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#page-background {
  min-height: 100vh;
}

.bg-theme-1 {
  background: linear-gradient(135deg, #91ddcf 0%, #f7f9f2 50%, #e8c5e5 100%);
}

.bg-theme-2 {
  background: linear-gradient(135deg, #dbeafe 0%, #fef3c7 48%, #fecdd3 100%);
}

.bg-theme-3 {
  background: linear-gradient(135deg, #cffafe 0%, #ede9fe 52%, #fde68a 100%);
} 
.bg-theme-4 {
  background: linear-gradient(14deg,rgba(226, 242, 203, 1) 0%, rgba(227, 234, 255, 1) 100%);
}
.bg-theme-5 {
  background: radial-gradient(circle,rgba(208, 208, 245, 1) 0%, rgba(255, 240, 247, 1) 100%);
}

:root {
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-bg-soft: rgba(255, 255, 255, 0.58);
  --glass-border: rgba(226, 232, 240, 0.9);
  --glass-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.glass-card,
.glass-card-soft {
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-card {
  background: var(--glass-bg-strong);
}

.glass-card-soft {
  background: var(--glass-bg-soft);
}

/* ===== CARD LAYOUT ===== */
.card-image {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: #f8fafc;
    display: block;
}

.card-body {
  padding: 12px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-top: 6px;
}

.card-desc {
  font-size: 14px;
  color: #4b5563;
  margin-top: 6px;
}

.card-meta {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

/* 卡片整体更好看 */
.timeline-content {
  padding: 0;
  overflow: hidden;
}

.transport-card {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.day-extra-card {
  background: rgba(248, 250, 252, 0.55);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stay-food-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .stay-food-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.timeline-item {
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.timeline-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background: #2563eb;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
  margin-top: 20px;
  z-index: 2;
}

.timeline-line {
  width: 2px;
  background: linear-gradient(to bottom, #cbd5e1, #e2e8f0);
  flex: 1;
  margin-top: 8px;
  min-height: 56px;
}

.timeline-line.timeline-line-last {
  opacity: 0;
}

.timeline-content,
.extra-card {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card-clickable,
.extra-card {
  cursor: pointer;
}

.card-clickable:hover,
.extra-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.timeline-content.active,
.extra-card.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09), 0 16px 30px rgba(15, 23, 42, 0.09);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.content-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
}

.extra-photo {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 18px;
  flex-shrink: 0;
}

.meta-pill {
  display: inline-flex;
  gap: 8px;
  align-items: flex-start;
  background: rgba(248, 250, 252, 0.62);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 14px;
  padding: 10px 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.transport-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.day-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
}

#map {
  min-height: 520px;
}

@media (max-width: 768px) {
  .timeline-item {
    gap: 12px;
  }

  .timeline-content,
  .extra-card {
    padding: 18px;
    border-radius: 20px;
  }

  .content-photo {
    height: 220px;
  }

  .extra-photo {
    width: 100px;
    height: 100px;
  }
}


/* ===== BILIBILI-STYLE COMMENTS ===== */
.comment-composer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  user-select: none;
}

.comment-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
  display: block;
}

.comment-avatar-placeholder {
  background: #f1f5f9;
  color: #64748b;
  font-size: 18px;
}

.comment-input {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  color: #334155;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.comment-input:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.comment-post-btn {
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.comment-post-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.comment-list {
  margin-top: 18px;
  border-top: 1px solid #e5e7eb;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid #e5e7eb;
}

.comment-main {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.comment-author {
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.comment-time {
  margin-top: 5px;
  font-size: 13px;
  color: #94a3b8;
}

.comment-content {
  margin-top: 12px;
  color: #334155;
  line-height: 1.7;
  word-break: break-word;
}

.delete-comment-btn {
  color: #ef4444;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.delete-comment-btn:hover {
  color: #b91c1c;
}

.empty-comments {
  margin-top: 16px;
  padding: 22px 0;
  color: #94a3b8;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

@media (max-width: 768px) {
  .comment-avatar-img {
    width: 38px;
    height: 38px;
  }

  .comment-composer {
    gap: 10px;
    flex-wrap: wrap;
  }

  .comment-avatar {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .comment-input {
    flex-basis: calc(100% - 48px);
  }

  .comment-post-btn {
    margin-left: 48px;
  }

  .comment-item {
    padding: 18px 0;
  }
}