/* === Reset === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Noto Sans SC', 'Helvetica Neue', system-ui, sans-serif;
  background: #F4F4F2;
  color: #222;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* === Header === */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #F9F9F6;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.location-select {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

#cityLabel {
  opacity: 1;
  transition: none;
}

/* === Category Bar === */
.category-bar {
  display: flex;
  overflow-x: auto;
  padding: 1rem 0.5rem;
  gap: 1rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.tag {
  font-family: 'Inter', 'Noto Sans Rounded SC', sans-serif;
  font-size: 16px;
  font-weight: 500; /* 稍加粗 */
  padding: 0.6rem 1.4rem;
  border-radius: 24px;
  background: #F8F8F5;
  color: #333;
  box-shadow:
    4px 4px 8px rgba(0, 0, 0, 0.03),
    -4px -4px 8px rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.tag.active {
  background: #EEF3FF;   /* 柔和蓝色背景 */
  color: #2E5FFF;        /* 深一点的蓝色文字 */
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.03),
    inset -2px -2px 5px rgba(255, 255, 255, 0.9);
}

.tag:hover {
  background: #f3f5ff;
  color: #3D7EFF;
}

/* === Cards Section === */
.cards-container {
  padding: 2rem 2rem 5rem;
}

.cards-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.cards-scroll::-webkit-scrollbar {
  display: none;
}

.card {
  flex-shrink: 0;
  width: 340px;
  min-height: 600px;
  border-radius: 24px;
  background: #fff;
  border: none;
  box-shadow: 6px 6px 14px rgba(0,0,0,0.05), -4px -4px 10px rgba(255,255,255,0.8);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.06), -4px -4px 10px rgba(255, 255, 255, 0.8);
}

.card-content {
  padding: 2rem 2rem 2.5rem;
}

.title {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  margin-bottom: 0.25rem;
}

.meta {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  line-height: 1.6;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
}

/* === Actions === */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.actions button {
  padding: 0.6rem 0.75rem;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  border: none;
  background: #F5F5F3;
  color: #333;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6), 0 2px 4px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}

.actions button:hover {
  background: #F5F5F3;
  color: #EEF1FC;
}

/* === Bottom Nav === */
.bottom-btn {
  flex: 1;
  margin: 0.4rem 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  background: #F5F5F3;
  border: none;
  border-radius: 10px;
  color: #444;
  cursor: pointer;
  box-shadow:
    inset 1px 2px 3px rgba(0, 0, 0, 0.04),
    inset 0px 2px 4px #fffef5;
  transition: all 0.2s ease;
}

.bottom-btn:hover {
  box-shadow:
    inset 2px 2px 6px rgba(0, 0, 0, 0.05),
    inset -2px -2px 6px #fefefe;
  color: #333;
}


/* === Toast === */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 13px;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 999;
}

/* === Loading / Status === */
.status {
  text-align: center;
  padding: 2rem;
  font-size: 14px;
  color: #888;
}

.loading {
  width: 36px;
  height: 36px;
  border: 3px solid #eee;
  border-top: 3px solid #555;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === Responsive === */
@media (max-width: 768px) {
  .card {
    width: 240px;
  }
}