/* =========================================================
   faq.css（最终稳定版）
   - 卡片 / 条目切换
   - 点击弹窗查看详细答疑
   - 白色轻科技背景
========================================================= */

:root{
  --fq-text: rgba(15,23,42,.92);
  --fq-muted: rgba(15,23,42,.58);
  --fq-line: rgba(15,23,42,.12);
  --fq-card: rgba(255,255,255,.94);
  --fq-shadow: 0 16px 44px rgba(15,23,42,.10);
  --fq-shadow2: 0 24px 66px rgba(0,0,0,.28);
}

/* ✅ 强制隐藏：绕开 hidden 被全局覆盖的问题 */
.is-hidden{ display:none !important; }

.fq-page{
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(83,215,255,.14), transparent 55%),
    radial-gradient(820px 520px at 88% 10%, rgba(178,140,255,.12), transparent 55%),
    linear-gradient(180deg, #ffffff, #f6f8fc);
  color: var(--fq-text);
}

.fq-wrap{
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

/* ===== Hero ===== */
.fq-heroCard{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--fq-line);
  border-radius: 18px;
  box-shadow: var(--fq-shadow);
  padding: 18px;
}

.fq-title{
  margin:0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
}

.fq-lead{
  margin: 10px 0 0;
  line-height: 1.65;
  color: rgba(15,23,42,.60);
  font-size: 14px;
  font-weight: 650;
}

.fq-badges{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fq-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--fq-line);
  background: rgba(255,255,255,.86);
  color: rgba(15,23,42,.72);
  font-weight: 800;
  font-size: 12.5px;
}
.fq-badge i{
  width:10px;height:10px;border-radius:999px;
  background: rgba(83,215,255,.95);
  box-shadow: 0 0 0 3px rgba(83,215,255,.18);
  display:inline-block;
}
.fq-badge--v i{
  background: rgba(178,140,255,.95);
  box-shadow: 0 0 0 3px rgba(178,140,255,.18);
}
.fq-badge--g i{
  background: rgba(0,179,255,.85);
  box-shadow: 0 0 0 3px rgba(0,179,255,.14);
}

.fq-heroRight{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(248,250,252,.92);
  border-radius: 16px;
  padding: 12px;
}

.fq-kpis{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fq-kpi{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.90);
  border-radius: 14px;
  padding: 10px;
}
.fq-kpiLabel{
  font-size: 12px;
  color: rgba(15,23,42,.55);
  font-weight: 800;
}
.fq-kpiValue{
  margin-top: 6px;
  font-size: 14px;
  font-weight: 900;
}
.fq-link{
  text-decoration: none;
  color: rgba(15,23,42,.92);
  font-weight: 900;
  border-bottom: 1px dashed rgba(15,23,42,.28);
}

/* ===== Controls ===== */
.fq-controls{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  justify-content: space-between;
  margin-top: 14px;
}

.fq-search{
  flex: 1 1 360px;
  display:flex;
  align-items:center;
  gap: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(15,23,42,.14);
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
  padding: 10px 12px;
}

.fq-searchIcon{ font-weight: 900; color: rgba(15,23,42,.55); }

.fq-search input{
  width: 100%;
  border:none;
  outline:none;
  background: transparent;
  color: rgba(15,23,42,.88);
  font-weight: 700;
  font-size: 14px;
}

.fq-actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.fq-viewSwitch{ display:inline-flex; gap:10px; }

.fq-btn{
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(248,250,252,.90);
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
  color: rgba(15,23,42,.82);
  font-weight: 850;
  font-size: 13px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.fq-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(83,215,255,.75);
  box-shadow: 0 14px 34px rgba(83,215,255,.16);
}
.fq-viewBtn.is-active{
  border-color: rgba(83,215,255,.85);
  background: rgba(83,215,255,.14);
}

/* ===== Filters ===== */
.fq-filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.fq-tag{
  cursor:pointer;
  border-radius: 999px;
  padding: 9px 12px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.92);
  color: rgba(15,23,42,.72);
  font-weight: 850;
  font-size: 13px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.fq-tag:hover{
  transform: translateY(-1px);
  border-color: rgba(178,140,255,.70);
  background: rgba(178,140,255,.12);
}
.fq-tag.is-active{
  border-color: rgba(83,215,255,.85);
  background: rgba(83,215,255,.14);
  color: rgba(15,23,42,.88);
}

/* ===== Meta ===== */
.fq-meta{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:12px;
  flex-wrap:wrap;
}
.fq-count{
  display:inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
  font-weight: 850;
  color: rgba(15,23,42,.72);
  font-size: 12.5px;
}
.fq-hint{
  color: rgba(15,23,42,.50);
  font-size: 12.5px;
  font-weight: 650;
}

/* ===== Cards ===== */
.fq-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.fq-card{
  grid-column: span 4;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.12);
  background: var(--fq-card);
  box-shadow: var(--fq-shadow);
  padding: 14px;
  cursor:pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.fq-card:hover{
  transform: translateY(-2px);
  border-color: rgba(83,215,255,.60);
  box-shadow: 0 22px 56px rgba(83,215,255,.12);
}

.fq-topline{
  display:flex;
  justify-content: space-between;
  gap:10px;
  align-items:flex-start;
}
.fq-no{
  display:inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(248,250,252,.92);
  font-weight: 900;
  font-size: 12px;
  color: rgba(15,23,42,.72);
}
.fq-cat{
  display:inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(83,215,255,.26);
  background: rgba(83,215,255,.10);
  font-weight: 900;
  font-size: 12px;
  color: rgba(15,23,42,.76);
}

.fq-q{
  margin-top: 10px;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.fq-desc{
  margin-top: 8px;
  color: rgba(15,23,42,.58);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6;
  min-height: 42px;
}

.fq-foot{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:10px;
  padding-top: 10px;
  border-top: 1px solid rgba(15,23,42,.08);
}
.fq-mini{ color: rgba(15,23,42,.56); font-weight: 800; font-size: 12.5px; }
.fq-cta{ font-weight: 900; color: rgba(15,23,42,.86); font-size: 12.5px; }

/* ===== List/Table ===== */
.fq-listWrap{ margin-top: 12px; }

.fq-table{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
  box-shadow: var(--fq-shadow);
  overflow:hidden;
}
.fq-thead,
.fq-row{
  display:grid;
  grid-template-columns: 90px 150px 1.6fr 2.2fr 120px;
  gap: 10px;
  align-items:center;
}
.fq-thead{
  padding: 12px 14px;
  background: rgba(248,250,252,.92);
  border-bottom: 1px solid rgba(15,23,42,.10);
  font-weight: 950;
  color: rgba(15,23,42,.72);
  font-size: 12.5px;
}
.fq-row{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15,23,42,.06);
  cursor:pointer;
  transition: background .12s ease;
}
.fq-row:hover{ background: rgba(83,215,255,.08); }

.fq-cellNo{ font-weight: 950; color: rgba(15,23,42,.78); }
.fq-cellCat{
  display:inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(83,215,255,.26);
  background: rgba(83,215,255,.10);
  font-weight: 900;
  font-size: 12px;
}
.fq-cellQ{ font-weight: 950; }
.fq-cellKey{ color: rgba(15,23,42,.58); font-weight: 650; font-size: 12.5px; line-height: 1.5; }
.fq-openBtn{
  justify-self:end;
  border-radius: 999px;
  padding: 8px 10px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.86);
  font-weight: 900;
  font-size: 12.5px;
}

/* ===== Modal ===== */
.fq-zoomOverlay{
  position: fixed;
  inset: 0;
  z-index: 999;
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
  background: rgba(2,6,23,.42);
  backdrop-filter: blur(10px);
}
.fq-zoomOverlay.is-open{ display:flex; }

.fq-zoomCard{
  width: min(980px, 100%);
  max-height: 86vh;
  border-radius: 22px;
  position: relative;
  border: 1px solid rgba(255,255,255,.25);
  background:
    radial-gradient(900px 520px at 14% 10%, rgba(83,215,255,.30), transparent 55%),
    radial-gradient(820px 520px at 86% 12%, rgba(178,140,255,.26), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.92));
  box-shadow: var(--fq-shadow2);
  overflow:hidden;
}

.fq-zoomGlow{
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background:
    radial-gradient(680px 240px at 18% 16%, rgba(83,215,255,.26), transparent 60%),
    radial-gradient(620px 240px at 82% 14%, rgba(178,140,255,.22), transparent 60%);
}

.fq-zoomHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(12px);
}
.fq-zoomTitle{ margin:0; font-weight:950; font-size: 16.5px; }
.fq-zoomMeta{ margin-top: 6px; display:flex; flex-wrap:wrap; gap:8px; }
.fq-zoomPill{
  display:inline-flex;
  align-items:center;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.78);
  color: rgba(15,23,42,.70);
  font-weight: 850;
  font-size: 12.5px;
}

.fq-zoomClose{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.80);
  color: rgba(15,23,42,.78);
  font-weight: 950;
  cursor:pointer;
}

.fq-zoomBody{
  padding: 14px 16px 16px;
  overflow:auto;
  max-height: calc(86vh - 68px);
}

.fq-section{
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
  padding: 12px;
  margin-bottom: 12px;
}
.fq-sectionTitle{ font-weight:950; font-size:13px; }
.fq-sectionText{
  margin-top: 8px;
  color: rgba(15,23,42,.82);
  font-weight: 700;
  line-height: 1.72;
  font-size: 13.5px;
  white-space: pre-line;
}

.fq-notes{ border-style: dashed; background: rgba(248,250,252,.86); }
.fq-list{
  margin: 8px 0 0;
  padding-left: 18px;
  color: rgba(15,23,42,.76);
  font-weight: 650;
  line-height: 1.72;
  font-size: 13px;
}
.fq-list li{ margin: 6px 0; }

.fq-foot{
  margin-top: 4px;
  display:grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(15,23,42,.18);
  background: rgba(248,250,252,.92);
}

.fq-disclaimer{
  color: rgba(15,23,42,.55);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.6;
}

.fq-ctaRow{
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  flex-wrap: wrap;
}
.fq-ctaBtn{
  cursor:pointer;
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.88);
  color: rgba(15,23,42,.82);
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
  text-decoration:none;
}
.fq-ctaBtn--ghost{ background: rgba(248,250,252,.92); }

/* ===== Responsive ===== */
@media (max-width: 1000px){
  .fq-heroCard{ grid-template-columns: 1fr; }
  .fq-card{ grid-column: span 6; }
}
@media (max-width: 680px){
  .fq-card{ grid-column: span 12; }
}
@media (max-width: 860px){
  .fq-thead{ display:none; }
  .fq-row{ grid-template-columns: 1fr; gap: 6px; }
  .fq-openBtn{ justify-self:start; }
}
