/* ===================================
   category.css — 分类页专用样式
   =================================== */

/* ===== CATEGORY HERO ===== */
.cat-hero {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.cat-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, rgba(200,16,46,0.85), rgba(10,20,60,0.9)),
    url('https://images.unsplash.com/photo-1508804185872-d7badad00f7d?w=1600');
  transition: background-image 0.5s;
}
.cat-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 40px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.cat-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.cat-breadcrumb a { color: rgba(255,255,255,0.85); transition: color 0.2s; }
.cat-breadcrumb a:hover { color: var(--gold); }
.cat-breadcrumb i { font-size: 0.7rem; }
.cat-hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.cat-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
}

/* ===== CATEGORY NAV CARDS ===== */
.cat-filter-section {
  background: var(--white);
  padding: 32px 0 0;
}
.cat-cards-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cat-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s;
}
.cat-nav-card:hover { transform: translateY(-3px); }
.cat-nav-card.active .cat-nav-img { ring: 3px solid var(--red); box-shadow: 0 0 0 3px var(--red); }
.cat-nav-card.active span { color: var(--red); font-weight: 600; }
.cat-nav-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.cat-nav-card.active .cat-nav-img {
  box-shadow: 0 0 0 3px var(--red), var(--shadow);
}
.cat-nav-card span {
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  max-width: 80px;
  line-height: 1.3;
}

/* ===== TOOLBAR ===== */
.cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid #eee;
}
.cat-result-count {
  font-size: 0.9rem;
  color: var(--text-light);
}
.cat-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.cat-sort select {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  cursor: pointer;
  background: #fff;
}

/* ===== TOURS GRID (inherits from styles.css) ===== */
.cat-tours-section {
  padding: 32px 0 64px;
  background: var(--light-bg);
}

/* ===== CATEGORY EMPTY ===== */
.cat-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.cat-empty i { font-size: 3rem; margin-bottom: 16px; color: #ccc; }
.cat-empty h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--text); }
.cat-empty p { margin-bottom: 24px; }

/* ===== TOUR CARD EXTRAS (分类页专用) ===== */
.tour-duration-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.depart-tag-first {
  font-size: 0.78rem;
  color: var(--text-light);
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ===== FOOTER (同首页) ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}
.footer-about { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-col h4 { color: var(--gold); font-size: 0.95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-col ul li a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col ul li i { width: 18px; color: var(--gold); margin-right: 6px; }
.footer-bottom { padding-top: 24px; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .cat-hero { height: 260px; }
  .cat-hero-title { font-size: 1.8rem; }
  .cat-hero-content { padding: 0 20px; }
  .cat-cards-nav { gap: 8px; }
  .cat-nav-img { width: 56px; height: 56px; font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
