/* ============ 家长问答列表页 (/faq.php) ============ */
.faq-list-page { background: #F1F5F9; }

.faq-wrap {
  padding: 60px 20px 80px;
}
.faq-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* 顶部 Hero · 方案 C · 深蓝品牌卡片 */
.faq-hero-c {
  padding: 50px 40px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #0A2540 0%, #1E3A8A 60%, #2563EB 100%);
  border-radius: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(10, 37, 64, .25);
}
.faq-hero-c::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(96, 165, 250, .35) 0%, transparent 65%);
  pointer-events: none;
}
.faq-hero-c::after {
  content: '?';
  position: absolute;
  left: -20px;
  top: -50px;
  font-family: Georgia, serif;
  font-size: 260px;
  font-weight: 900;
  color: rgba(255, 255, 255, .05);
  line-height: 1;
  pointer-events: none;
}
.faq-hero-c-eyebrow {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.faq-hero-c h1 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
  color: #fff;
}
.faq-hero-c h1 .hi {
  color: #FDE68A;
}
.faq-hero-c p {
  margin: 0;
  font-size: 15px;
  opacity: .85;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  max-width: 700px;
}

/* 顶部数据条 */
.faq-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.faq-stat {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(10,37,64,.05);
  box-shadow: 0 2px 10px rgba(10,37,64,.04);
}
.faq-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}
.faq-stat-num {
  font-size: 22px;
  font-weight: 900;
  color: #0F172A;
  line-height: 1;
}
.faq-stat-label {
  font-size: 12.5px;
  color: #94A3B8;
  margin-top: 4px;
}

/* 筛选按钮 */
.faq-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  justify-content: center;
}
.faq-tag {
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  border: 1px solid #E2E8F0;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.faq-tag:hover {
  border-color: #2563EB;
  color: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37,99,235,.12);
}
.faq-tag.active {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(37,99,235,.32);
}
.faq-tag em {
  font-style: normal;
  margin-left: 2px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(10,37,64,.06);
  font-size: 11.5px;
  min-width: 22px;
  text-align: center;
}
.faq-tag.active em {
  background: rgba(255,255,255,.22);
  color: #fff;
}

/* 卡片网格 */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.faq-card {
  --accent: #2563EB;
  --accent-soft: #EFF6FF;
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px 22px;
  box-shadow: 0 4px 16px rgba(10,37,64,.05);
  border: 1px solid rgba(10,37,64,.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, border-color .3s;
}
.faq-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 60%, transparent 100%);
}
.faq-card::after {
  content: '?';
  position: absolute;
  top: -8px; right: 14px;
  font-family: Georgia, serif;
  font-size: 96px;
  font-weight: 900;
  color: var(--accent);
  opacity: .06;
  line-height: 1;
  pointer-events: none;
}
.faq-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(10,37,64,.14);
  border-color: rgba(37,99,235,.2);
}
.faq-card:hover::after { opacity: .1; }

.faq-card.cat-通用 { --accent: #2563EB; --accent-soft: #EFF6FF; }
.faq-card.cat-小学 { --accent: #059669; --accent-soft: #ECFDF5; }
.faq-card.cat-初中 { --accent: #EA580C; --accent-soft: #FFF7ED; }
.faq-card.cat-高中 { --accent: #DC2626; --accent-soft: #FEF2F2; }

.faq-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.faq-cat {
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 999px;
  letter-spacing: .5px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.faq-cat::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.faq-badge {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: #059669;
  background: #D1FAE5;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.faq-badge::before {
  content: '✓';
  font-weight: 900;
  font-size: 10px;
}
.faq-card-num {
  margin-left: auto;
  font-family: "Inter", monospace;
  font-size: 12.5px;
  font-weight: 800;
  color: #CBD5E1;
  letter-spacing: 1px;
}
.faq-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 14px;
  color: #0F172A;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.faq-answer {
  position: relative;
  padding: 18px 20px 18px 24px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(255,255,255,0) 100%);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  margin-bottom: 14px;
  flex: 0 0 auto;
}
.faq-answer::before {
  content: '💡 学思侠答';
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: .5px;
}
.faq-answer p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: #1F2937;
  font-weight: 500;
}
.faq-answer p::before {
  content: '"';
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
  margin-right: 4px;
  line-height: 1;
}
.faq-answer p::after {
  content: '"';
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
  margin-left: 4px;
  line-height: 1;
}
.faq-card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #94A3B8;
  position: relative;
  z-index: 1;
}
.faq-card-foot .foot-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.faq-card-foot .foot-team::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}
.faq-card.cat-通用 .faq-card-foot .foot-team::before { content: '侠'; }
.faq-card.cat-小学 .faq-card-foot .foot-team::before { content: '小'; }
.faq-card.cat-初中 .faq-card-foot .foot-team::before { content: '初'; }
.faq-card.cat-高中 .faq-card-foot .foot-team::before { content: '高'; }
.faq-card-foot a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.faq-card-foot a:hover { gap: 8px; }

/* 空态 */
.faq-empty {
  background: #fff;
  border-radius: 20px;
  padding: 80px 20px;
  text-align: center;
  color: #64748B;
  border: 1px dashed #E2E8F0;
}
.faq-empty h3 { font-size: 20px; font-weight: 800; color: #0F172A; margin: 0 0 8px; }
.faq-empty p { margin: 0; font-size: 14px; }

/* 底部 CTA · 方案 I · 大字亮点 + 双按钮 */
.faq-cta2 {
  margin-top: 40px;
  padding: 44px 40px;
  background: linear-gradient(135deg, #0A2540 0%, #1E3A8A 60%, #2563EB 100%);
  border-radius: 20px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(10, 37, 64, .25);
}
.faq-cta2::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(96, 165, 250, .35) 0%, transparent 65%);
  pointer-events: none;
}
.faq-cta2::after {
  content: '?';
  position: absolute;
  left: -20px;
  bottom: -60px;
  font-family: Georgia, serif;
  font-size: 220px;
  font-weight: 900;
  color: rgba(255, 255, 255, .05);
  line-height: 1;
  pointer-events: none;
}
.faq-cta2-eyebrow {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.faq-cta2 h3 {
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
  line-height: 1.3;
  color: #fff;
}
.faq-cta2 h3 .hi {
  color: #FDE68A;
}
.faq-cta2 p {
  margin: 0 0 26px;
  font-size: 15px;
  color: rgba(255, 255, 255, .9);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.faq-cta2-btns {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.faq-cta2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 32px;
  background: #FDE68A;
  color: #0A2540;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 10px 30px rgba(253, 230, 138, .35);
}
.faq-cta2-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(253, 230, 138, .5);
}
.faq-cta2-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all .2s;
}
.faq-cta2-btn-secondary:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .6);
}

/* 移动端 */
@media (max-width: 800px) {
  .faq-wrap { padding: 40px 14px 60px; }
  .faq-hero-c { padding: 32px 22px; margin-bottom: 28px; border-radius: 16px; }
  .faq-hero-c h1 { font-size: 22px; }
  .faq-hero-c p { font-size: 13.5px; }
  .faq-hero-c::after { font-size: 180px; }
  .faq-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .faq-stat { padding: 14px; gap: 10px; }
  .faq-stat-icon { width: 36px; height: 36px; font-size: 16px; }
  .faq-stat-num { font-size: 18px; }
  .faq-stat-label { font-size: 11.5px; }
  .faq-grid { grid-template-columns: 1fr; gap: 14px; }
  .faq-card { padding: 22px 20px 18px; }
  .faq-card::after { font-size: 72px; right: 10px; }
  .faq-cta2 { margin-top: 28px; padding: 32px 22px; }
  .faq-cta2 h3 { font-size: 22px; }
  .faq-cta2 p { font-size: 13.5px; }
  .faq-cta2::after { font-size: 160px; }
  .faq-cta2-btn-primary, .faq-cta2-btn-secondary { padding: 12px 22px; font-size: 14px; }
}
