@charset "UTF-8";
/* ==========================================================================
   云枢 · 产品详情 / 文章页
   --------------------------------------------------------------------------
   页头、页脚、悬浮栏、按钮、促销条都在 style.css 里，这里只写文章页独有的：
   面包屑标题区、阅读进度条、正文版式、相关产品、上下篇。

   正文是数据渲染出来的（见 data/articles.js + js/detail.js），所以下面这一堆
   `.artb--*` 规则是「正文块的样式表」—— 加一种新块类型，就在这里加一条。
   本页没有外部素材，配图位置留的是 CSS 画的占位框。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 阅读进度条
   sticky 而不是 fixed：页面顶部还有促销条，fixed 到 top:0 在未滚动时会压在
   页头中间。sticky 让它在 main 内滚到页头下沿就停住。
   -------------------------------------------------------------------------- */
.artbar {
  position: sticky;
  top: var(--hdr-h);
  z-index: 99;
  height: 3px;
  pointer-events: none;
}
.artbar__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width .1s linear;
}

/* --------------------------------------------------------------------------
   2. 标题区（浅灰底，和下面的白底正文分出一个层次）
   -------------------------------------------------------------------------- */
.artbn {
  /* 上下各 10。原先上 20~30、下 34~58，标题区整块显得太厚，压掉了它跟正文的层次感。 */
  padding-block: 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--red); }
.crumb i { font-style: normal; color: #c9c9c9; }
/* 末级是当前页，不做成链接 */
.crumb span { color: var(--ink-2); }

.artbn__cat {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--red);
}
.artbn__title {
  margin-top: 10px;
  font-size: clamp(27px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.01em;
  text-wrap: balance;
}
/* ↑ 这条没有对应的 DOM 了（副标题已按需求去掉），留着是为了以后想恢复时少写一遍；
   真要删就删掉这 7 行，删了不会影响任何东西。 */

.artbn__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-3);
}
.artbn__meta li { display: flex; align-items: center; gap: 6px; }
.artbn__meta li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 10px;
  border-radius: 50%;
  background: #cfcfcf;
}
.artbn__meta b { font-weight: 600; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   3. 正文骨架
   原来是「左目录 220 + 间隙 60 + 正文 780 = 1060」的两栏网格，整块在容器里居中。
   目录整块移出后只剩正文一栏，早先是让它继续在那个 1060 的位置上居中，
   结果标题（.artbn__title，从容器左边缘起排）在左边，正文却缩进约 198px
   （1440 宽下：(1176 - 780) / 2），看着就是「正文跟标题不对齐、左边一大片空白」。
   现在正文贴容器左边缘起排，跟标题左对齐，行宽仍是 780（行宽是阅读舒适度的决定项）。
   -------------------------------------------------------------------------- */
/* 上下各 10（原先上 34~56、下 52~88）。注意下面那截 10 是正文与
   「相关文章」之间的可见间距，.artrel 自己还有 padding-block: var(--sec-y) 兜着，
   所以衔接不会贴死；但正文尾部到相关文章的整段留白会比以前短。 */
.art { padding-block: 10px; }
.art__main { max-width: 780px; }

/* --------------------------------------------------------------------------
   4. 正文版式
   「相邻兄弟统一 20px 上间距」打底，标题和特殊块再各自覆盖 —— 这样新增块类型
   时不用挨个去写 margin。
   -------------------------------------------------------------------------- */
.art__body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}
.art__body > * + * { margin-top: 20px; }

/* --- 标题 --- */
.art__body > h2 {
  margin-top: 56px;
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
  scroll-margin-top: calc(var(--hdr-h) + 24px);
}
/* 站里那道短红杠，这里靠左放 */
.art__body > h2::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  margin-top: 12px;
  background: var(--red);
  border-radius: 2px;
}
.art__body > h3 {
  margin-top: 36px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  scroll-margin-top: calc(var(--hdr-h) + 24px);
}
/* 段首标题上方的 56px 由 h2 自己给，紧跟 h2 的 h3 不该再顶一次 */
.art__body > h2 + h3 { margin-top: 18px; }
.art__body h2:hover .art__anchor,
.art__body h3:hover .art__anchor,
.art__anchor:focus-visible { opacity: 1; }
/* --- 列表 --- */
.art__body > ul,
.art__body > ol { padding-left: 0; }
.art__body > ul > li,
.art__body > ol > li {
  position: relative;
  padding-left: 26px;
}
.art__body > ul > li + li,
.art__body > ol > li + li { margin-top: 10px; }
.art__body > ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow-dk);
}
.art__body > ol { counter-reset: artoli; }
.art__body > ol > li::before {
  counter-increment: artoli;
  content: counter(artoli);
  position: absolute;
  left: 0;
  top: .18em;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--blue-btn);
  border-radius: 50%;
}

/* --- 链接、加粗 --- */
.art__body a {
  color: var(--blue-btn);
  border-bottom: 1px solid rgba(5, 108, 184, .3);
}
.art__body a:hover { border-bottom-color: currentColor; }
.art__body b { font-weight: 600; }

/* --- 配图 --- */
.artfig img,
.artvin img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.artfig figcaption,
.artvin figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  text-align: center;
}
/* 没填 src 时露出来的占位框：斜纹 + 说明，一眼看出这里该放图 */
.artph {
  display: grid;
  place-items: center;
  gap: 10px;
  aspect-ratio: 16 / 9;
  padding: 24px;
  border: 1px dashed #d5d9de;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg,
    #f6f7f9, #f6f7f9 12px, #eef0f3 12px, #eef0f3 24px);
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
}
.artph svg { width: 34px; height: 34px; color: #b9bfc7; }

/* --- 视频 --- */
.artvin__frame {
  display: block;          /* 带 poster 时它是个 <a>，不加这句 aspect-ratio 不生效 */
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy);
}
.artvin__frame img,
.artvin__frame video,
.artvin__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.artvin__frame:hover .artvin__play { background: #fff; }
/* --- 提示框 --- */
.artnote {
  padding: 16px 20px;
  border-left: 3px solid var(--blue-btn);
  border-radius: 0 8px 8px 0;
  background: #eef4fb;
  font-size: 14.5px;
  line-height: 1.75;
}
.artnote__title {
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 4px;
}
.artnote--warn { background: #fdf6e6; border-left-color: #d99414; }
.artnote--warn .artnote__title { color: #a86f0a; }
.artnote--ok { background: #eaf7ee; border-left-color: #2f9e44; }
.artnote--ok .artnote__title { color: #237a35; }

/* --- 表格 --- */
.arttw {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.arttw table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
}
.arttw th,
.arttw td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-2);
}
.arttw thead th {
  background: var(--surface);
  font-weight: 600;
  white-space: nowrap;
  border-bottom-color: var(--line);
}
.arttw tbody tr:nth-child(even) { background: #fafbfc; }
.arttw tbody tr:last-child th,
.arttw tbody tr:last-child td { border-bottom: 0; }
.art__body .arttw__cap {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}

/* --- 能力卡 --- */
.artcards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.artcards__item {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.artcards__item:hover { border-color: #dcdcdc; box-shadow: var(--sh-1); }
.artcards__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--blue-btn);
  background: #eef4fb;
  border-radius: 3px;
}
.artcards__title { font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.artcards__desc {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* --- 步骤 --- */
.artsteps { counter-reset: artstep; }
.artsteps__item {
  counter-increment: artstep;
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 24px;
}
.artsteps__item:last-child { padding-bottom: 0; }
/* 竖线连到下一个序号；最后一个不画 */
.artsteps__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}
.artsteps__no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: var(--blue-btn);
  border-radius: 50%;
}
.artsteps__no::before { content: counter(artstep); }
.artsteps__title { font-size: 15.5px; font-weight: 600; line-height: 1.9; }
.artsteps__desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* --- 数字条 --- */
.artstats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 14px;
  padding: 24px 20px;
  background: var(--surface);
  border-radius: 10px;
  text-align: center;
}
.artstats__num {
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--red);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.artstats__label {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* --- 常见问题（原生 details，零脚本） --- */
.artfaq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .2s var(--ease);
}
.artfaq__item + .artfaq__item { margin-top: 10px; }
.artfaq__item[open] { border-color: #dcdcdc; }
.artfaq__q {
  position: relative;
  padding: 15px 46px 15px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}
.artfaq__q::-webkit-details-marker { display: none; }
/* 加号 → 展开时转成减号 */
.artfaq__q::before,
.artfaq__q::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 12px;
  height: 2px;
  margin-top: -1px;
  background: var(--ink-3);
  transition: transform .22s var(--ease);
}
.artfaq__q::after { transform: rotate(90deg); }
.artfaq__item[open] .artfaq__q::after { transform: rotate(0); }
.artfaq__a {
  padding: 0 18px 16px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
}
/* --- 文末行动区 --- */
.artcta {
  padding: 30px 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dk));
  border-radius: 12px;
}
.artcta__title {
  font-size: clamp(19px, 1.9vw, 23px);
  font-weight: 600;
  line-height: 1.4;
}
.artcta__text {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #5c4700;
}
.artcta .btn { margin-top: 20px; }

/* --- 分隔线 --- */
.art__body > hr {
  height: 1px;
  margin-top: 44px;
  background: var(--line);
  border: 0;
}

/* --------------------------------------------------------------------------
   5. 相关产品
   -------------------------------------------------------------------------- */
.artrel { padding-block: var(--sec-y); background: var(--surface); }
.artrel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(28px, 3.4vw, 44px);
}
.artrel__card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: box-shadow .22s var(--ease), transform .22s var(--ease), border-color .22s var(--ease);
}
.artrel__card:hover {
  border-color: #dcdcdc;
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.artrel__cat {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--red);
}
.artrel__title {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}
.artrel__desc {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
  /* 摘要长短不一，卡等高靠这里截断 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.artrel__more {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13.5px;
  color: var(--blue-btn);
}
.artrel__card:hover .artrel__more { text-decoration: underline; }

/* --------------------------------------------------------------------------
   6. 上一篇 / 下一篇
   -------------------------------------------------------------------------- */
.artnav { padding-block: clamp(30px, 3.4vw, 46px); }
.artnav__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.artnav__item {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.artnav__item:hover { border-color: #d8d8d8; background: #fafbfc; }
.artnav__item--next { text-align: right; }
.artnav__dir {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.artnav__title {
  margin-top: 6px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.artnav__item:hover .artnav__title { color: var(--blue-btn); }
/* 只有一个方向时，那张卡占满整行会显得很怪，所以让它只占一半 */
.artnav__grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.artnav__grid[data-count="1"] .artnav__item { max-width: 50%; }
.artnav__grid[data-count="1"] .artnav__item--next { justify-self: end; }

/* --------------------------------------------------------------------------
   7. 文章列表卡片（List.aspx 正文用；Detail.aspx 找不到文章时也复用这一段做提示）
   -------------------------------------------------------------------------- */
.artidx { padding-block: clamp(38px, 4.4vw, 64px) clamp(52px, 6vw, 88px); }
.artidx__lead {
  max-width: 720px;
  margin: 16px auto 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  text-align: center;
}
.artidx__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
  margin-top: clamp(30px, 3.6vw, 48px);
}
.artidx__card {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: box-shadow .22s var(--ease), transform .22s var(--ease), border-color .22s var(--ease);
}
.artidx__card:hover {
  border-color: #dcdcdc;
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.artidx__cat {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--red);
}
.artidx__title { margin-top: 8px; font-size: 18px; font-weight: 600; line-height: 1.45; }
.artidx__desc {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.artidx__meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
/* 「没有找到这篇文章」下面那个去列表页的按钮。单独一行居中 ——
   和上面那句 .artidx__lead 一样是居中排的（列表页没有这一行，只有详情页用）。 */
.artidx__act {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 34px);
}

/* --------------------------------------------------------------------------
   8. 响应式
   -------------------------------------------------------------------------- */
/* 原来这里有一条 1080 的断点，管的是「目录折成一条压在正文上方」，
   目录移出后整条断点没有别的内容了，一并删掉。 */
@media (max-width: 860px) {
  .artstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artrel__grid { grid-template-columns: minmax(0, 1fr); }
  .artrel__card { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
  .artrel__more { width: 100%; margin-top: 8px; padding-top: 0; }
  .artidx__grid { grid-template-columns: minmax(0, 1fr); }
  .artnav__grid[data-count="1"] .artnav__item { max-width: none; }
}
@media (max-width: 620px) {
  .artcards { grid-template-columns: minmax(0, 1fr); }
  .artnav__grid { grid-template-columns: minmax(0, 1fr); }
  .artnav__item--next { text-align: left; }
  .artcta { padding: 26px 20px; }
  .artstats { padding: 20px 14px; }
}
