/* =============================================================
   九如软件官网 · 行业洞察栏目专用样式
   依赖 ../css/style.css（变量与基础类）与 ../css/product.css（子首屏/CTA 等）
   组件：文章卡片 / 文章排版 / 政策引用框 / 公式框 / 路线图
        / DMA 示意 / 对比示意 / 相关产品 / FAQ 折叠面板 / 中部转化卡
   ============================================================= */

/* ---------- 子首屏元信息行（日期 / 作者） ---------- */
.ph-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
  font-size: 13.5px;
  opacity: .92;
}
.ph-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.ph-meta .meta-kw {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
}

/* ---------- 栏目首页：文章卡片 ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-cover {
  height: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.post-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 34px 34px;
}
.post-cover .cover-word {
  position: relative;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 4px;
}
.post-cover .cover-sub {
  position: relative;
  font-size: 12px;
  letter-spacing: 2px;
  opacity: .85;
}
.post-cover.c-blue  { background: linear-gradient(135deg, #0D47A1, #1565C0); }
.post-cover.c-cyan  { background: linear-gradient(135deg, #1565C0, #00B4D8); }
.post-cover.c-warm  { background: linear-gradient(135deg, #e8542a, #FF6B35); }
.post-body {
  padding: 24px 26px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.post-meta .post-cat {
  color: var(--primary);
  font-weight: 700;
  background: rgba(21, 101, 192, .08);
  padding: 3px 12px;
  border-radius: 999px;
}
.post-card h3 { font-size: 17.5px; line-height: 1.5; margin-bottom: 10px; }
.post-card h3 a { transition: color .2s; }
.post-card h3 a:hover { color: var(--primary); }
.post-card .post-sum {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 18px;
}
.post-card .post-more {
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
  font-size: 14.5px;
}

/* ---------- 文章页排版 ---------- */
.article-wrap { max-width: 880px; margin: 0 auto; }
.article-body { font-size: 16.5px; }
.article-body p { margin: 0 0 18px; line-height: 1.95; color: #3b4a66; }
.article-body strong { color: var(--ink); }
.article-body h2 {
  font-size: clamp(20px, 2.6vw, 25px);
  margin: 56px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  letter-spacing: .5px;
}
.article-body h2:first-child { margin-top: 8px; }
.article-body h3 {
  font-size: 18.5px;
  margin: 30px 0 10px;
  color: var(--primary-dark);
}
.article-body ul { margin: 0 0 18px; }
.article-body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: #3b4a66;
  line-height: 1.85;
}
.article-body li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-light);
}

/* ---------- 政策引用框 ---------- */
.policy-quote {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin: 24px 0;
}
.policy-quote .pq-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 8px;
}
.policy-quote p { margin: 0 0 8px; font-size: 15px; line-height: 1.9; color: #3b4a66; }
.policy-quote p:last-child { margin-bottom: 0; }

/* ---------- 公式框 ---------- */
.formula-box {
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 26px 0;
  text-align: center;
}
.formula-box .fx { font-size: 19px; font-weight: 700; letter-spacing: .5px; line-height: 1.7; }
.formula-box .fn { font-size: 13px; opacity: .85; margin-top: 12px; line-height: 1.7; }

/* ---------- 治理路线图 / 步骤 ---------- */
.roadmap { display: flex; flex-direction: column; gap: 14px; margin: 26px 0; }
.rm-step {
  display: flex;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.rm-step:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.rm-no {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(21, 101, 192, .1);
  color: var(--primary);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rm-step .rm-txt h3 { font-size: 16.5px; margin: 0 0 6px; }
.rm-step .rm-txt p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.8; }

/* ---------- DMA 分区计量示意 ---------- */
.dma-map {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 26px 0;
}
.dma-node {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.dma-node b { display: block; font-size: 15px; margin-bottom: 4px; }
.dma-node span { font-size: 13px; color: var(--muted); line-height: 1.7; }
.dma-node.hl { border-color: rgba(21, 101, 192, .45); background: rgba(21, 101, 192, .05); }
.dma-arrow {
  text-align: center;
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
  padding: 8px 0;
  font-weight: 700;
}
.dma-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dma-note {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}

/* ---------- 对比示意（水力平衡等） ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0; }
.compare-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.compare-card.bad { border-top-color: var(--warm); }
.compare-card.good { border-top-color: var(--accent); }
.compare-card h3 { font-size: 16px; margin-bottom: 12px; }
.compare-card.bad h3 { color: var(--warm-dark); }
.compare-card.good h3 { color: #0a9e7e; }
.compare-card li { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---------- 要点速览框 ---------- */
.takeaway {
  background: rgba(0, 201, 167, .07);
  border: 1px solid rgba(0, 201, 167, .35);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin: 26px 0;
}
.takeaway h3 { font-size: 15.5px; color: #0a9e7e; margin-bottom: 10px; letter-spacing: .5px; }
.takeaway li { font-size: 14.5px; color: #3b4a66; line-height: 1.8; }

/* ---------- 中部转化卡 ---------- */
.insight-cta {
  background: var(--primary-deep);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  margin: 54px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.insight-cta::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #00B4D8;
  filter: blur(80px);
  opacity: .3;
  top: -100px;
  right: -60px;
}
.insight-cta h3 { color: #fff; font-size: 19px; position: relative; }
.insight-cta p { color: rgba(255, 255, 255, .75); font-size: 14.5px; margin: 8px 0 0; position: relative; }
.insight-cta .btn { position: relative; }

/* ---------- 相关产品 ---------- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rc-tag {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(21, 101, 192, .08);
  padding: 4px 12px;
  border-radius: 999px;
}
.rc-tag.warm { color: var(--warm-dark); background: rgba(255, 107, 53, .1); }
.related-card h3 { font-size: 17px; margin: 14px 0 8px; }
.related-card p { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 0 0 16px; flex: 1; }
.rc-link { color: var(--primary); font-weight: 600; font-size: 14.5px; }
.rc-link:hover { text-decoration: underline; }
.more-insights { margin-top: 26px; text-align: center; font-size: 14.5px; color: var(--muted); }
.more-insights a { color: var(--primary); font-weight: 600; }
.more-insights a:hover { text-decoration: underline; }

/* ---------- 文末作者行与说明 ---------- */
.article-byline {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
.article-foot-note {
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- FAQ 折叠面板 ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 26px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .2s;
}
.faq-item summary:hover { background: var(--bg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a {
  padding: 0 26px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.faq-item .faq-a p { margin: 0 0 10px; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* =============================================================
   响应式
   ============================================================= */
@media (max-width: 768px) {
  .insight-cta { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
  .insight-cta .btn { width: 100%; }
  .compare-grid, .dma-cols { grid-template-columns: 1fr; }
  .article-body h2 { margin-top: 44px; }
  .faq-item summary { padding: 16px 20px; font-size: 15px; }
  .faq-item .faq-a { padding: 0 20px 16px; }
}
