/* ==========================================================================
   玄熠数字视觉 · marketing.css
   内容页排版（解决方案 / 知识中心 / 文章 / FAQ / 地域页）
   + 获客转化组件（移动行动条 / 微信浮层 / 信任要素 / 相关阅读）
   + 全站导航与页脚适配（7 项导航、5 列页脚、抽屉次级链接）
   依赖 style.css 的 :root 设计令牌，请在其之后引入。
   ========================================================================== */

/* ---------- M1. 导航适配（7 项）---------- */
/* 文字略收窄，保证 7 项在 1240px 内容宽度内不换行 */
.nav a { padding: 10px 15px; font-size: 14.5px; }
.nav a::after { left: 15px; right: 15px; }

/* 1181–1259px：先把导航收进抽屉，避免挤压 */
@media (min-width: 1181px) and (max-width: 1259px) {
  .nav { display: none; }
  .header__tel { display: none; }
  .burger { display: flex; }
}

/* ---------- M2. 页脚 5 列 ---------- */
.footer__top { grid-template-columns: 1.45fr 0.85fr 1fr 1fr 1.35fr; gap: 38px; }
.footer h5 { letter-spacing: 0.14em; text-transform: none; }
.footer__links a { font-size: 14px; }

@media (max-width: 1180px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

/* ---------- M3. 抽屉次级链接 ---------- */
.drawer__sub { margin-top: 26px; }

.drawer__sub-title {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.drawer__sub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.drawer__sub-links a {
  padding: 8px 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px;
  color: var(--text-muted) !important;
  display: inline-block !important;
}

.drawer__sub-links a.is-active { border-color: var(--cyan) !important; color: var(--cyan) !important; }

/* ---------- M4. 信任要素条 ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.trust__i {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.trust__i svg { width: 20px; height: 20px; stroke: var(--cyan); flex: none; margin-top: 2px; }
.trust__i b { display: block; font-size: 14.5px; color: var(--text); margin-bottom: 5px; }
.trust__i span { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }

/* ---------- M5. 相关阅读 / 相关内容 ---------- */
.rel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.rel__item {
  display: block;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.45s var(--ease), transform 0.5s var(--ease), background 0.45s;
}

.rel__item:hover {
  border-color: rgba(42, 212, 232, 0.45);
  transform: translateY(-4px);
  background: linear-gradient(160deg, rgba(42, 212, 232, 0.08), rgba(139, 92, 246, 0.05));
}

.rel__kind {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  border: 1px solid rgba(42, 212, 232, 0.3);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.rel__item h4 { font-size: 16.5px; font-weight: 700; line-height: 1.55; margin-bottom: 10px; }
.rel__item p { font-size: 13.5px; line-height: 1.8; color: var(--text-muted); }

@media (max-width: 900px) { .rel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .rel { grid-template-columns: 1fr; } }

/* ---------- M6. 知识中心卡片 ---------- */
.klist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 34px; }

.kcard {
  position: relative;
  display: block;
  padding: 34px 32px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.5s var(--ease), transform 0.55s var(--ease);
}

.kcard::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease);
}

.kcard:hover { border-color: rgba(139, 92, 246, 0.42); transform: translateY(-4px); }
.kcard:hover::before { transform: scaleY(1); }

.kcard__tag {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 15px;
}

.kcard h3 { font-size: 20px; font-weight: 800; line-height: 1.5; margin-bottom: 13px; }
.kcard p { font-size: 14.5px; line-height: 1.85; color: var(--text-muted); }
.kcard__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 13.5px; color: var(--cyan); }
.kcard__more svg { width: 15px; height: 15px; }

@media (max-width: 860px) { .klist { grid-template-columns: 1fr; } }

/* ---------- M7. 长文排版 ---------- */
.article-layout { display: grid; grid-template-columns: 250px 1fr; gap: 58px; align-items: start; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  font-size: 13.5px;
  color: var(--text-faint);
}

.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta svg { width: 15px; height: 15px; stroke: var(--text-faint); }

.article { max-width: 78ch; }
.article > p:first-of-type { font-size: 17.5px; color: var(--text-soft); line-height: 1.95; }

.article h2 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.45;
  margin: 58px 0 20px;
  padding-left: 16px;
  border-left: 3px solid;
  border-image: var(--grad-brand) 1;
}

.article h3 { font-size: 19px; font-weight: 700; margin: 38px 0 14px; color: var(--text); }

.article p { font-size: 15.5px; line-height: 2; color: var(--text-soft); margin-bottom: 20px; }
.article strong, .article b { color: #fff; font-weight: 700; }
.article em { font-style: normal; color: var(--cyan); }

.article ul, .article ol { margin: 0 0 22px; padding-left: 0; list-style: none; }

.article ul li, .article ol li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--text-soft);
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(42, 212, 232, 0.7);
}

.article ol { counter-reset: n; }
.article ol li { counter-increment: n; padding-left: 38px; }

.article ol li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
}

.article blockquote {
  margin: 30px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--cyan);
  background: rgba(42, 212, 232, 0.05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-soft);
}

.article a { color: var(--cyan); border-bottom: 1px solid rgba(42, 212, 232, 0.35); }
.article a:hover { border-bottom-color: var(--cyan); }

.article-note {
  margin: 30px 0;
  padding: 22px 26px;
  border-radius: var(--r-md);
  border: 1px solid rgba(232, 169, 74, 0.28);
  background: rgba(232, 169, 74, 0.06);
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-soft);
}

.article-note b { color: var(--gold); }
.article-note--danger { border-color: rgba(217, 70, 239, 0.32); background: rgba(217, 70, 239, 0.07); }
.article-note--danger b { color: var(--magenta); }

/* 表格 */
.table-wrap { margin: 30px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }

.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }

.tbl caption {
  caption-side: top;
  text-align: left;
  padding: 16px 20px 0;
  font-size: 13px;
  color: var(--text-faint);
}

.tbl th {
  text-align: left;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.tbl td {
  padding: 15px 20px;
  color: var(--text-soft);
  line-height: 1.8;
  border-bottom: 1px solid var(--line);
}

.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }

/* 目录（侧栏） */
.toc { position: sticky; top: calc(var(--navh) + 26px); }

.toc__t {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.toc ol { list-style: none; counter-reset: t; display: grid; gap: 2px; }

.toc li { counter-increment: t; }

.toc a {
  display: block;
  padding: 9px 12px 9px 34px;
  position: relative;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  border-radius: 7px;
  transition: color 0.3s, background 0.3s;
}

.toc a::before {
  content: counter(t, decimal-leading-zero);
  position: absolute;
  left: 10px;
  font-family: var(--font-num);
  font-size: 11.5px;
  color: var(--text-faint);
}

.toc a:hover { color: var(--cyan); background: rgba(42, 212, 232, 0.06); }

.toc__cta {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

/* 文内转化条 */
.q-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  margin: 44px 0 0;
  padding: 30px 34px;
  border-radius: var(--r-md);
  border: 1px solid rgba(42, 212, 232, 0.26);
  background:
    radial-gradient(ellipse 60% 140% at 0% 50%, rgba(42, 212, 232, 0.1), transparent 70%),
    var(--surface);
}

.q-strip h4 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.q-strip p { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin: 0; }

@media (max-width: 1080px) {
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; }
  .toc__cta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .article h2 { font-size: 22px; margin: 44px 0 16px; }
  .article h3 { font-size: 17.5px; }
  .q-strip { padding: 26px 22px; }
  .toc__cta { grid-template-columns: 1fr; }
}

/* ---------- M8. 移动行动条（获客）---------- */
.actbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 870;
  display: none;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(150%);
  padding-bottom: env(safe-area-inset-bottom);
}

.actbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 11px 4px 12px;
  background: rgba(6, 9, 16, 0.92);
  font-size: 12.5px;
  color: var(--text-soft);
  transition: background 0.3s, color 0.3s;
}

.actbar a svg { width: 19px; height: 19px; }
.actbar a:active { background: rgba(42, 212, 232, 0.12); }

.actbar a.is-main {
  background: linear-gradient(115deg, #2ad4e8, #2f7bff 45%, #8b5cf6);
  color: #04070d;
  font-weight: 700;
}

.actbar a.is-main svg { stroke: #04070d; }

@media (max-width: 720px) {
  .actbar { display: grid; }
  body { padding-bottom: 70px; }
  .totop { bottom: 84px; }
}

/* ---------- M9. 微信咨询浮层 ---------- */
.wx-mask {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2, 4, 7, 0.78);
  backdrop-filter: blur(10px);
}

.wx-mask.is-open { display: grid; }

/* 浮层要放两张码（销售 + 公众号），所以比单码时代更宽；矮屏内部滚动 */
.wx-card {
  position: relative;
  width: min(548px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 36px 32px 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #0e1420, #070b12);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.wx-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.wx-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.8; margin-bottom: 22px; }

/* 二维码组：浮层 / 联系页 / 首页 CTA 共用同一套结构 */
.wx-qrs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 396px;
  margin: 0 auto 22px;
}

.wx-qr { margin: 0; min-width: 0; }

/* 二维码必须落在白底上：深色底会吃掉定位图案的对比度，机器扫不出来 */
.wx-qr__box {
  padding: 9px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.wx-qr__box img { display: block; width: 100%; height: auto; }

.wx-qr figcaption { margin-top: 11px; font-size: 13.5px; }
.wx-qr figcaption b { display: block; font-weight: 800; color: var(--text); }
.wx-qr figcaption span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-faint);
}

/* 图片缺失时不出现破图，用文案兜住 */
.wx-qr.is-missing .wx-qr__box img { display: none; }
.wx-qr.is-missing .wx-qr__box {
  display: grid;
  place-items: center;
  min-height: 152px;
  padding: 18px 14px;
}
.wx-qr.is-missing .wx-qr__box::after {
  content: "二维码暂时不可用\A请直接电话或邮件联系";
  white-space: pre-line;
  font-size: 12.5px;
  line-height: 1.8;
  color: #6b7280;
}

.wx-card__alt { font-size: 13px; color: var(--text-muted); line-height: 1.9; }
.wx-card__alt b { color: var(--cyan); }

.wx-card__x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--text-muted);
}

.wx-card__x:hover { color: #fff; border-color: var(--line-strong); }

/* ---------- M10. 页面内小工具 ---------- */
.phero__tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }

.phero__tags span {
  font-size: 13px;
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
}

.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.step-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  position: relative;
}

.step-card__n {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  display: block;
  margin-bottom: 14px;
}

.step-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 13.5px; line-height: 1.85; color: var(--text-muted); }

@media (max-width: 900px) { .step-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .step-grid { grid-template-columns: 1fr; } }

/* 适用场景 / 标签墙 */
.tagwall { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.tagwall a, .tagwall span {
  font-size: 13.5px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-soft);
  transition: all 0.35s var(--ease);
}

.tagwall a:hover { border-color: rgba(42, 212, 232, 0.5); color: var(--cyan); background: rgba(42, 212, 232, 0.06); }

/* 面包屑末级 */
.phero__crumb span:last-child { color: var(--text-soft); }

/* 内联强调数字 */
.hl { color: var(--cyan); font-weight: 700; }

/* ---------- M11. 解决方案卡片（带图，链接式）---------- */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }

.sol-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-soft);
  transition: border-color 0.5s var(--ease), transform 0.55s var(--ease);
}

.sol-card:hover { border-color: rgba(42, 212, 232, 0.45); transform: translateY(-5px); }

.sol-card__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.sol-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.sol-card:hover .sol-card__thumb img { transform: scale(1.06); }

.sol-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.1), rgba(5, 7, 12, 0.85));
}

.sol-card__body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.sol-card__body h3 { font-size: 18.5px; font-weight: 800; margin-bottom: 11px; }
.sol-card__body p { font-size: 14px; line-height: 1.85; color: var(--text-muted); flex: 1; }

.sol-card__go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--cyan);
}

.sol-card__go svg { width: 15px; height: 15px; }

@media (max-width: 1050px) { .sol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sol-grid { grid-template-columns: 1fr; } }

/* ---------- M12. 咨询表单补充字段 ---------- */
.field--full { grid-column: 1 / -1; }

.form__promise {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.form__promise svg { width: 15px; height: 15px; stroke: var(--cyan); flex: none; }

/* ---------- M13. 报告型表格补充 ---------- */
.tbl--center td, .tbl--center th { text-align: center; }

/* ---------- M14. 表单提交后的投递闭环 ---------- */
.form__ok--lead {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  color: var(--text);
  background: rgba(42, 212, 232, 0.07);
  padding: 22px 22px 20px;
}

.form__ok--lead.is-show { display: flex; }

.form__ok-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 10px;
}

.form__ok-head svg { flex: none; }

.form__ok-tip {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form__actions .btn { width: auto; }

.form__ok-pre {
  margin: 16px 0 0;
  padding: 16px 18px;
  max-height: 260px;
  overflow: auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 560px) {
  .form__actions { flex-direction: column; }
  .form__actions .btn { width: 100%; }
}

/* ---------- M15. 微信浮层的窄屏收缩 ---------- */
@media (max-width: 560px) {
  .wx-card { padding: 28px 18px 24px; }
  .wx-card p { font-size: 13px; margin-bottom: 18px; }
  .wx-qrs { gap: 12px; margin-bottom: 18px; }
  .wx-qr__box { padding: 7px; }
  .wx-qr figcaption { margin-top: 9px; font-size: 12.5px; }
  .wx-qr figcaption span { font-size: 11.5px; }
}

/* ---------- M16. 行动条出现时，客服气泡与回顶按钮上移让位 ---------- */
@media (max-width: 720px) {
  body.has-actbar .chat { bottom: 86px; }
  body.has-actbar .chat__panel { height: min(520px, calc(100vh - 190px)); }
  body.has-actbar .totop { bottom: 86px; }
}

/* ---------- M17. 覆盖层打开时锁滚动 ---------- */
body.is-locked { overflow: hidden; }

/* ---------- M18. 联系方式页 / 首页 CTA 的扫码入口 ---------- */
.wx-inline {
  margin-top: 34px;
  padding: 28px 26px;
  border-radius: var(--r-md);
  border: 1px solid rgba(42, 212, 232, 0.26);
  background:
    radial-gradient(ellipse 70% 130% at 100% 0%, rgba(42, 212, 232, 0.1), transparent 70%),
    var(--surface);
}

.wx-inline h4 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.wx-inline .btn { width: auto; }
.wx-inline__lead {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.wx-inline__alt {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-faint);
}
.wx-inline__alt a { color: var(--cyan); }

/* 首页 CTA 里的扫码入口：比浮层更收敛，不抢主按钮的注意力 */
.cta__scan { margin-top: 36px; }
.cta__scan-title {
  display: block;
  margin-bottom: 18px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.wx-qrs--cta {
  max-width: 318px;
  gap: 16px;
  margin-bottom: 0;
}

/* ---------- M19. 表单蜜罐：真人看不到，自动脚本会填 ----------
   故意用绝对定位挪出视口，而不是 display:none——后者会被一部分机器人的
   "可见性检查"跳过，陷阱就白设了。 */
.form__hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
