/* ===== 常见问题 faq 专属样式 ===== */

/* 首屏：左图右文，照片占左半 */
.hero-faq {
  position: relative;
  background: var(--blue-50);
  overflow: hidden;
}
.hero-faq .ph-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: 48%;
  height: 100%;
  overflow: hidden;
}
.hero-faq .ph-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-faq .ph-main {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-left: auto;
  padding: 120px 0 110px;
}
.hero-faq .sec-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue-500);
  font-weight: 600;
  letter-spacing: 3px;
}
.hero-faq .hero-title {
  font-size: 46px;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--ink-900);
}
.hero-faq .ph-desc {
  font-size: 17px;
  color: var(--ink-700);
  line-height: 1.8;
  margin: 0 0 28px;
}
.hero-faq .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 折线分割 */
.split {
  position: relative;
  height: 60px;
  overflow: hidden;
  line-height: 0;
}
.split svg { width: 100%; height: 100%; display: block; }
.split-green { color: var(--green-500); }
.split-blue { color: var(--blue-500); }
.split-yellow { color: var(--yellow-400); }
.split.flip { transform: scaleY(-1); }

/* 窄容器 */
.container.narrow { max-width: 860px; margin-left: auto; margin-right: auto; }

/* 纯 CSS tab */
.faq-tabs { margin-top: 30px; }
.faq-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tab-labels {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tab-labels label {
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--green-100);
  color: var(--ink-700);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all .2s;
}
#tab-all:checked ~ .tab-labels label[for="tab-all"],
#tab-baokao:checked ~ .tab-labels label[for="tab-baokao"],
#tab-kaoshi:checked ~ .tab-labels label[for="tab-kaoshi"],
#tab-zhengshu:checked ~ .tab-labels label[for="tab-zhengshu"] {
  background: var(--green-500);
  color: #fff;
  border-color: var(--green-500);
}
/* tab 过滤 */
#tab-baokao:checked ~ .faq-list .acc:not(.cat-baokao),
#tab-kaoshi:checked ~ .faq-list .acc:not(.cat-kaoshi),
#tab-zhengshu:checked ~ .faq-list .acc:not(.cat-zhengshu) {
  display: none;
}

/* 折叠问答 */
.faq-list .acc {
  background: #fff;
  border: 1px solid var(--green-100);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 16px 20px;
}
.faq-list .acc summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list .acc .acc-ico { color: var(--blue-500); font-size: 20px; }
.faq-list .acc[open] .acc-ico { transform: rotate(45deg); display: inline-block; }
.faq-list .acc-body { padding-top: 12px; color: var(--ink-700); line-height: 1.9; }
.faq-list .acc-body a { color: var(--blue-500); }

/* 未解答提示 */
.nf-flex {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.nf-img img {
  width: 100%;
  border-radius: 14px;
  display: block;
  box-shadow: 0 14px 40px rgba(21,50,56,.14);
}
.nf-txt h2 { margin: 10px 0 16px; }
.nf-txt p { color: var(--ink-700); line-height: 1.9; margin: 0 0 14px; }
.nf-txt .notice { margin-top: 18px; }

/* 电话速答 */
.call-flex {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.call-txt h2 { margin: 10px 0 16px; }
.call-txt p { color: var(--ink-700); line-height: 1.9; margin: 0 0 22px; }
.call-img img {
  width: 100%;
  border-radius: 14px;
  display: block;
  box-shadow: 0 14px 40px rgba(21,50,56,.14);
}

/* 备考提醒横幅 */
.faq-cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.faq-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.faq-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(68,147,196,.8), rgba(21,50,56,.65));
}
.faq-cta-inner { position: relative; z-index: 2; }
.faq-cta-inner h2 { font-size: 32px; margin: 0 0 12px; color: #fff; }
.faq-cta-inner p { color: #EAF3FA; margin: 0 0 22px; font-size: 16px; }

/* 相关导航 */
.rel-grid { gap: 18px; margin-top: 28px; }
.rel-card { padding: 22px 20px; display: block; color: inherit; text-decoration: none; }
.rel-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--blue-500); }
.rel-card p { margin: 0; color: var(--ink-700); line-height: 1.7; font-size: 14px; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hero-faq .ph-bg { width: 38%; }
  .nf-flex, .call-flex { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .hero-faq .ph-bg { width: 100%; opacity: .22; }
  .hero-faq .ph-main { padding: 100px 0 70px; }
  .hero-faq .hero-title { font-size: 32px; }
  .hero-faq .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-faq .hero-actions .btn { width: 100%; }
  .split { height: 36px; }
  .rel-grid { grid-template-columns: 1fr; }
}

/* 首屏标题强制可见 */
.hero-faq .hero-title,
.hero-faq .hero-title .line,
.hero-faq .hero-title .line > span,
.hero-faq .ph-desc,
.hero-faq .ph-actions,
.hero-faq .sec-kicker {
  opacity: 1 !important;
  transform: none !important;
}
