/**
 * 通用 Hero 样式
 * 适用于：/guide/、/faq、/about、/terms 等页面
 * 包含：背景图 hero + overlay + CTA 按钮 + 统计数字 + 搜索卡片
 */

/* ---------- Hero 基础 ---------- */
.tour-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #062A34;
}

.tour-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.tour-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(5, 35, 45, 0.94) 0%,
      rgba(5, 35, 45, 0.78) 30%,
      rgba(5, 35, 45, 0.28) 58%,
      rgba(5, 35, 45, 0.04) 100%
    ),
    linear-gradient(
      to top,
      rgba(5, 35, 45, 0.32) 0%,
      transparent 40%
    );
  z-index: 1;
}

.tour-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 52px;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding-left: var(--space-lg, 24px);
  padding-right: var(--space-lg, 24px);
}

.tour-hero h1 {
  color: #fff;
  font-family: Georgia, "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

.tour-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 540px;
  margin: 0;
}

.tour-hero-accent {
  width: 60px;
  height: 4px;
  background: var(--brand-red, #EF3B3A);
  border-radius: 2px;
  margin: 20px 0 0;
}

.faq-updated-note {
  display: inline-flex;
  align-items: center;
  margin: 16px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ---------- Hero 列表页特化（/guide/、/faq 等） ---------- */
.cities-hero-list {
  min-height: 620px;
}

.cities-hero-list .tour-hero-content {
  text-align: left;
  padding-bottom: 96px;
}

.cities-hero-list h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  max-width: 680px;
}

.cities-hero-list .tour-hero-subtitle {
  max-width: 540px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.cities-hero-list .tour-hero-accent {
  margin: 20px 0 0;
}

/* ---------- Hero CTA 按钮组 ---------- */
.cities-hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.cities-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.cities-hero-cta a.cities-hero-btn-primary,
.cities-hero-cta a.cities-hero-btn-primary:hover {
  color: #fff;
}

.cities-hero-cta a.cities-hero-btn-secondary,
.cities-hero-cta a.cities-hero-btn-secondary:hover {
  color: #1a3a52;
}

.cities-hero-btn-primary {
  background: var(--brand-red, #EF3B3A);
  color: #fff;
  border: 1px solid var(--brand-red, #EF3B3A);
  box-shadow: 0 2px 6px rgba(239, 59, 58, 0.25);
}

.cities-hero-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 59, 58, 0.35);
  color: #fff;
}

.cities-hero-btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: #1a3a52;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.cities-hero-btn-secondary:hover {
  background: #fff;
  transform: translateY(-1px);
  color: #1a3a52;
}

/* ---------- 统计数字条 ---------- */
.cities-hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.cities-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cities-hero-stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  font-family: Georgia, "Playfair Display", serif;
}

.cities-hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ---------- FAQ 搜索卡片（毛玻璃，咬住 hero 底部） ---------- */
.faq-search-bar {
  position: relative;
  z-index: 5;
  margin-top: -36px;
  margin-bottom: 24px;
  padding: 0;
}

.faq-search-bar > .container {
  max-width: 720px;
}

.faq-search-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 16px 24px;
  box-shadow: 0 16px 40px -16px rgba(15, 35, 60, 0.35),
              0 4px 12px rgba(15, 35, 60, 0.06);
}

.faq-search-bar-inner svg {
  flex-shrink: 0;
  color: #5a6a78;
}

.faq-search-bar-inner input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: #1a2c3a;
  padding: 0;
}

.faq-search-bar-inner input::placeholder {
  color: #8a9baa;
}

.faq-search-hint {
  font-size: 0.78rem;
  color: #8a9baa;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .tour-hero {
    min-height: 340px;
  }
  .tour-hero h1 {
    font-size: 1.8rem;
  }
  .cities-hero-list {
    min-height: 420px;
  }
  .cities-hero-list .tour-hero-content {
    padding-bottom: 42px;
  }
  .cities-hero-list h1 {
    font-size: 1.7rem;
    line-height: 1.12;
  }
  .cities-hero-list .tour-hero-subtitle {
    font-size: 1rem;
  }
  .cities-hero-cta {
    margin-top: 20px;
  }
  .cities-hero-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  .cities-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
    max-width: 360px;
  }
  .cities-hero-stat-num {
    font-size: 1.5rem;
  }
  .cities-hero-stat-label {
    font-size: 0.66rem;
    line-height: 1.25;
    letter-spacing: 0.06em;
  }

  .page-faq .cities-hero-list {
    min-height: 360px;
  }

  .page-faq .cities-hero-list .tour-hero-content {
    padding-bottom: 34px;
  }

  .page-faq .tour-hero-subtitle {
    max-width: 340px;
    font-size: 0.94rem;
  }

  .page-faq .faq-updated-note {
    margin-top: 12px;
    font-size: 0.76rem;
  }

  .page-faq .cities-hero-stats {
    display: none;
  }

  .page-faq .faq-topics-strip {
    margin: -20px 0 10px;
  }
}

@media (max-width: 600px) {
  .faq-search-bar {
    margin-top: -24px;
  }
  .faq-search-bar-inner {
    padding: 14px 18px;
    border-radius: 12px;
  }
  .faq-search-hint {
    display: none;
  }

  .page-faq .cities-hero-list {
    min-height: 340px;
  }

  .page-faq .cities-hero-cta {
    gap: 8px;
  }

  .page-faq .cities-hero-btn {
    flex: 1 1 136px;
    justify-content: center;
    padding: 10px 12px;
  }
}


/* ---------- FAQ 分类快捷卡片 ---------- */
.faq-topics-strip {
  position: relative;
  z-index: 4;
  margin: -48px 0 18px;
}

.faq-topics-strip-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 26px 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(205, 217, 228, 0.9);
  border-radius: 16px;
  box-shadow: 0 24px 54px rgba(15, 35, 60, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.faq-topics-strip-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 6px 22px;
  border-left: 1px solid #edf2f6;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}

.faq-topics-strip-item:first-child {
  border-left: 0;
  padding-left: 4px;
}

.faq-topics-strip-item:last-child {
  padding-right: 4px;
}

.faq-topics-strip-item:hover {
  transform: translateY(-1px);
}

.faq-topics-strip-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff3f3;
  color: var(--brand-red, #EF3B3A);
  box-shadow: inset 0 0 0 1px rgba(239, 59, 58, 0.08);
}

.faq-topics-strip-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.faq-topics-strip-copy strong {
  color: #1a2c3a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.faq-topics-strip-copy span {
  color: #5d6d7e;
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .faq-topics-strip {
    margin: -28px 0 12px;
  }

  .faq-topics-strip-card {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 35, 60, 0.14);
  }

  .faq-topics-strip-item {
    gap: 10px;
    padding: 12px;
    border-left: 0;
  }

  .faq-topics-strip-item:nth-child(odd) {
    border-right: 1px solid #edf2f6;
  }

  .faq-topics-strip-item:nth-child(n + 3) {
    border-top: 1px solid #edf2f6;
  }

  .faq-topics-strip-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .faq-topics-strip-icon svg {
    width: 18px;
    height: 18px;
  }

  .faq-topics-strip-copy strong {
    font-size: 0.84rem;
  }

  .faq-topics-strip-copy span {
    font-size: 0.72rem;
    line-height: 1.35;
  }
}
