/* ===== 青舰探索 - 增强功能样式 ===== */
/* 品牌色：深蓝 #1a2d5a，亮蓝 #00b4d8，橙色 #f4a261 */

/* ===== 1. 导航栏搜索框 ===== */
.nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-search-box {
  display: flex;
  align-items: center;
  background: #f0f2f5;
  border-radius: 20px;
  padding: 0 14px;
  height: 36px;
  width: 200px;
  transition: all 0.3s;
  border: 1.5px solid transparent;
}
.nav-search-box:focus-within {
  background: #fff;
  border-color: #00b4d8;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
  width: 260px;
}
.nav-search-box svg {
  width: 16px;
  height: 16px;
  color: #999;
  flex-shrink: 0;
}
.nav-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #333;
  width: 100%;
  margin-left: 6px;
}
.nav-search-box input::placeholder {
  color: #aaa;
}

/* ===== 2. 访客统计计数器 ===== */
.visitor-counter {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  background: rgba(26, 45, 90, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 140px;
  transition: all 0.3s;
}
.visitor-counter:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}
.visitor-counter .vc-title {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.visitor-counter .vc-title .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.visitor-counter .vc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  line-height: 1.5;
}
.visitor-counter .vc-row:last-child {
  margin-bottom: 0;
}
.visitor-counter .vc-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
}
.visitor-counter .vc-num {
  font-weight: 700;
  font-size: 15px;
  color: #f4a261;
  font-variant-numeric: tabular-nums;
}
.visitor-counter .vc-num.total {
  color: #00b4d8;
}
.visitor-counter .vc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 6px 0;
}
.visitor-counter .vc-collapse {
  position: absolute;
  top: 4px;
  right: 6px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1;
  background: none;
  border: none;
  padding: 2px;
}
.visitor-counter .vc-collapse:hover {
  color: rgba(255, 255, 255, 0.8);
}
.visitor-counter.collapsed {
  padding: 8px 14px;
  min-width: auto;
}
.visitor-counter.collapsed .vc-content {
  display: none;
}
.visitor-counter.collapsed .vc-collapsed-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.visitor-counter .vc-collapsed-hint {
  display: none;
}

/* ===== 3. Camps 页面增强筛选器 ===== */
.filter-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 5% 0;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.filter-group .fg-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
  min-width: 70px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid #e5e7eb;
  background: #f8f9fa;
  color: #666;
  transition: all 0.2s;
  user-select: none;
}
.filter-chip:hover {
  border-color: #1a2d5a;
  color: #1a2d5a;
}
.filter-chip.active {
  background: #1a2d5a;
  color: #fff;
  border-color: #1a2d5a;
}
/* 年龄段标签颜色 */
.filter-chip.age-active {
  background: #00b4d8;
  color: #fff;
  border-color: #00b4d8;
}
/* 价格标签颜色 */
.filter-chip.price-active {
  background: #f4a261;
  color: #fff;
  border-color: #f4a261;
}

/* 活动卡片上的年龄段徽章 */
.age-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 3px;
}
.age-badge-小学生 {
  background: #e6f6e6;
  color: #2d812d;
}
.age-badge-初中生 {
  background: #e8f0fe;
  color: #1a56db;
}
.age-badge-高中生 {
  background: #fce7f3;
  color: #be185d;
}
.age-badge-all {
  background: #f0f2f5;
  color: #666;
}

/* 筛选结果计数 */
.filter-result-count {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}
.filter-result-count strong {
  color: #1a2d5a;
}

/* 无结果状态 */
.enhanced-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}
.enhanced-empty-state .emoji {
  font-size: 48px;
  margin-bottom: 16px;
}
.enhanced-empty-state p {
  font-size: 16px;
  margin-bottom: 8px;
}
.enhanced-empty-state .hint {
  font-size: 13px;
  color: #bbb;
}

/* ===== 4. 搜索页面样式 ===== */
.search-page-hero {
  margin-top: 64px;
  background: linear-gradient(135deg, #1a2d5a 0%, #00b4d8 100%);
  color: #fff;
  padding: 60px 5% 40px;
  text-align: center;
}
.search-page-hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}
.search-page-hero p {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 24px;
}
.search-big-box {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}
.search-big-box input {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 16px;
  outline: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.search-big-box button {
  height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 8px;
  background: #f4a261;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.search-big-box button:hover {
  background: #e8954f;
}
.search-hot-tags {
  max-width: 640px;
  margin: 16px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.search-hot-tags span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  padding: 2px 0;
}
.search-hot-tags a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}
.search-hot-tags a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.search-results-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 5% 80px;
}
.search-results-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}
.search-results-info strong {
  color: #1a2d5a;
}
.search-results-info .query {
  color: #f4a261;
  font-weight: 600;
}

/* 搜索结果卡片 */
.search-result-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  border-left: 4px solid transparent;
}
.search-result-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
}
.search-result-card .src-cats {
  margin-bottom: 8px;
}
.search-result-card .src-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a2d5a;
  margin-bottom: 6px;
  text-decoration: none;
  display: block;
}
.search-result-card .src-title:hover {
  color: #00b4d8;
}
.search-result-card .src-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.search-result-card .src-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}
.search-result-card .src-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-result-card .src-price {
  font-size: 18px;
  font-weight: 700;
  color: #f4a261;
}
.search-result-card .src-price.consult {
  color: #e74c3c;
  font-size: 15px;
}
.search-result-card .src-link {
  font-size: 14px;
  color: #fff;
  background: #1a2d5a;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.search-result-card .src-link:hover {
  background: #00b4d8;
}
.search-result-card .src-age-badges {
  display: flex;
  gap: 4px;
}
/* 搜索高亮 */
.search-highlight {
  background: #fff3cd;
  padding: 0 2px;
  border-radius: 2px;
}

/* 搜索无结果 */
.search-empty {
  text-align: center;
  padding: 80px 20px;
  color: #999;
}
.search-empty .emoji {
  font-size: 56px;
  margin-bottom: 20px;
}
.search-empty h3 {
  font-size: 20px;
  color: #555;
  margin-bottom: 8px;
}
.search-empty p {
  font-size: 14px;
  margin-bottom: 20px;
}
.search-empty .suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.search-empty .suggest a {
  font-size: 13px;
  color: #1a2d5a;
  background: #f0f2f5;
  padding: 6px 16px;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s;
}
.search-empty .suggest a:hover {
  background: #1a2d5a;
  color: #fff;
}

/* 搜索加载中 */
.search-loading {
  text-align: center;
  padding: 60px;
  color: #999;
  font-size: 15px;
}

/* ===== 5. 响应式 ===== */
@media (max-width: 768px) {
  .nav-search-box {
    width: 140px;
  }
  .nav-search-box:focus-within {
    width: 180px;
  }
  .visitor-counter {
    right: 8px;
    bottom: 8px;
    padding: 10px 14px;
    min-width: 120px;
    font-size: 11px;
  }
  .visitor-counter .vc-num {
    font-size: 13px;
  }
  .filter-group .fg-label {
    min-width: 60px;
    font-size: 12px;
  }
  .filter-chip {
    padding: 5px 10px;
    font-size: 12px;
  }
  .search-big-box {
    flex-direction: column;
  }
  .search-big-box button {
    width: 100%;
  }
}
