/* =====================================================================
   企旺星 官网 v2 · pages.css —— 内容页（指南 / 常见问题 / 下载 / 百科）
   深蓝科技 · 沉稳版
   ===================================================================== */

/* ============ 页头 ============ */
.page-hero { position: relative; padding: calc(var(--nav-h) + 72px) 26px 56px; text-align: center; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(720px 360px at 50% -10%, rgba(14, 111, 190, .10), transparent); }
.ph-inner { position: relative; z-index: 2; max-width: 840px; margin: 0 auto; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--brand-blue); }
.breadcrumb i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; letter-spacing: -.5px; line-height: 1.12; }
.page-hero h1 .hl { color: var(--s1); }
.page-hero .lead { font-size: 17px; color: var(--ink-soft); margin: 16px auto 0; max-width: 620px; }

.ph-search { display: flex; align-items: center; gap: 10px; max-width: 540px; margin: 28px auto 0;
  background: #fff; border-radius: var(--r-pill); padding: 7px 7px 7px 20px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); }
.ph-search svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.ph-search input { flex: 1; border: none; outline: none; font-size: 15px; font-family: inherit;
  color: var(--ink); background: transparent; }
.ph-search input::placeholder { color: var(--muted); }
.ph-search .btn { padding: 11px 22px; border-radius: var(--r-pill); }

/* ============ 内容容器 ============ */
.content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 10px 26px 96px; }
.block { margin-top: 64px; }
.block-head { margin-bottom: 30px; }
.block-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--ink); }
.block-head h2 .hl { color: var(--s1); }
.block-head p { font-size: 16px; color: var(--ink-soft); margin-top: 8px; }

/* ============ 快速上手 步骤时间线 ============ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.steps::before { content: ''; position: absolute; top: 30px; left: 8%; right: 8%; height: 2px;
  background: #D8E2EE; border-radius: 2px; }
.step { text-align: center; position: relative; }
.step .sn { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 14px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800;
  background: var(--s1); box-shadow: 0 10px 22px rgba(14, 111, 190, .22);
  position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.step h4 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--ink-soft); }

/* ============ 模块指南 卡片网格 ============ */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic { display: block; background: #fff; border-radius: var(--r); padding: 26px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s, border-color .25s; }
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CBD9EA; }
.topic-ic { width: 50px; height: 50px; border-radius: 12px; margin-bottom: 16px; color: var(--s1);
  display: flex; align-items: center; justify-content: center;
  background: var(--s-soft); border: 1px solid #DCE7F3; }
.topic-ic svg { width: 25px; height: 25px; }
.topic h4 { font-size: 18px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.topic h4 .arr { margin-left: auto; color: var(--s1); opacity: 0; transform: translateX(-6px); transition: .25s; }
.topic h4 .arr svg { width: 18px; height: 18px; }
.topic:hover h4 .arr { opacity: 1; transform: none; }
.topic p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.topic ul { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.topic ul li { font-size: 12px; font-weight: 700; color: var(--ink-soft); background: #F1F5FA;
  padding: 4px 10px; border-radius: 999px; }

/* ============ 分类筛选按钮 ============ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-btn { padding: 9px 18px; border-radius: 10px; font-size: 14px; font-weight: 700;
  color: var(--ink-soft); background: #fff; border: 1px solid var(--line); transition: .2s; }
.filter-btn:hover { color: var(--brand-blue); border-color: var(--s1); }
.filter-btn.on { color: #fff; background: var(--s1); border-color: var(--s1); }

/* ============ FAQ 手风琴 ============ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden;
  border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s; }
.faq-item.open { box-shadow: var(--shadow); border-color: #CBD9EA; }
.faq-q { display: flex; align-items: center; gap: 14px; padding: 20px 24px; cursor: pointer; }
.faq-q .qmark { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; color: var(--s1); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  background: var(--s-soft); border: 1px solid #DCE7F3; }
.faq-q h4 { flex: 1; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.faq-q .chev { width: 22px; height: 22px; color: var(--muted); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--s1); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 24px 22px 66px; font-size: 15px; color: var(--ink-soft); line-height: 1.8; }
.faq-a-inner b { color: var(--s-deep); }

/* ============ 下载中心 ============ */
.dl-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.dl-tab { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 12px;
  font-size: 15px; font-weight: 700; color: var(--ink-soft); background: #fff;
  border: 1px solid var(--line); transition: .22s; }
.dl-tab svg { width: 19px; height: 19px; }
.dl-tab:hover { color: var(--brand-blue); border-color: var(--s1); }
.dl-tab.on { color: #fff; background: var(--s1); border-color: var(--s1); }
.dl-panel { display: none; }
.dl-panel.on { display: block; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl-card { background: #fff; border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column; }
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CBD9EA; }
.dl-card .dl-ic { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px; color: var(--s1);
  display: flex; align-items: center; justify-content: center;
  background: var(--s-soft); border: 1px solid #DCE7F3; }
.dl-card .dl-ic svg { width: 26px; height: 26px; }
.dl-card h4 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.dl-card .dl-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.7; flex: 1; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 18px; font-size: 12.5px; color: var(--muted); }
.dl-meta b { color: var(--s-deep); font-weight: 800; }
.dl-card .btn { width: 100%; }

.sysreq { background: #fff; border-radius: var(--r); padding: 30px 32px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sysreq .sr { display: flex; gap: 14px; align-items: flex-start; }
.sysreq .sr-ic { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; color: var(--s1);
  display: flex; align-items: center; justify-content: center;
  background: var(--s-soft); border: 1px solid #DCE7F3; }
.sysreq .sr-ic svg { width: 22px; height: 22px; }
.sysreq h5 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.sysreq p { font-size: 13.5px; color: var(--ink-soft); }

/* ============ 技术百科 ============ */
.wiki-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wiki-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s, border-color .25s; }
.wiki-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CBD9EA; }
.wiki-thumb { height: 120px; position: relative; overflow: hidden; color: rgba(255, 255, 255, .92);
  background: #12233F; display: flex; align-items: center; padding: 0 24px; }
.wiki-thumb::before { content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(240px 140px at 85% 0%, rgba(35, 110, 210, .22), transparent),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px; }
.wiki-thumb svg { width: 40px; height: 40px; opacity: .95; position: relative; }
.wiki-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.wiki-cat { font-size: 12px; font-weight: 800; color: var(--s1); margin-bottom: 8px; letter-spacing: .5px; }
.wiki-card h4 { font-size: 17.5px; font-weight: 800; line-height: 1.35; margin-bottom: 10px; }
.wiki-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; flex: 1; }
.wiki-meta { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.wiki-meta .read { margin-left: auto; color: var(--s1); font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.wiki-meta .read svg { width: 15px; height: 15px; }

.empty-tip { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 15px; display: none; }
.empty-tip.show { display: block; }

/* ============ 帮助 CTA 条（深色科技面板） ============ */
.help-cta { margin-top: 70px; background: #0F2242; border-radius: var(--r-lg);
  padding: 40px 44px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: #fff;
  box-shadow: var(--shadow); position: relative; overflow: hidden; }
.help-cta::before { content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(420px 220px at 88% -20%, rgba(35, 110, 210, .22), transparent),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px; }
.help-cta .hc-txt { flex: 1; min-width: 260px; position: relative; }
.help-cta h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.help-cta p { font-size: 15px; color: #AEBFDD; }
.help-cta .btn { position: relative; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .topic-grid, .dl-grid, .wiki-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps::before { display: none; }
  .sysreq { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topic-grid, .dl-grid, .wiki-grid, .steps { grid-template-columns: 1fr; }
  .faq-a-inner { padding-left: 24px; }
  .help-cta { flex-direction: column; align-items: flex-start; }
}
