/* ================================================================
   editorial.css — 服务叙事层（首页 / 产品中心 / 品类页 / 品牌页）
   与 site.css 共用同一套色板，不覆盖任何旧站类名。
   ================================================================ */

.ed-sect { padding: 56px 0; border-top: 1px solid var(--line); }
.ed-sect.alt { background: var(--bg); }
.ed-sect.tight { padding: 40px 0; }

.ed-head { margin-bottom: 26px; }
.ed-head h2 {
  font-size: 26px; line-height: 1.25; color: var(--blue-d);
  letter-spacing: -.2px; font-weight: 800;
}
.ed-head h2 em { font-style: normal; color: var(--blue); }
.ed-head .sub { margin-top: 7px; font-size: 14px; color: var(--muted); max-width: 900px; }
.ed-head.center { text-align: center; }
.ed-head.center .sub { margin-left: auto; margin-right: auto; }

.ed-eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); background: var(--blue-t);
  padding: 4px 10px; border-radius: 12px; margin-bottom: 10px;
}

/* ---------- 数字条 ---------- */
.kbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kbar > div { background: #fff; padding: 18px 20px; }
.kbar b { display: block; font-size: 26px; font-weight: 800; color: var(--blue-d); letter-spacing: -.5px; line-height: 1.1; }
.kbar span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ---------- 服务卡 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 22px 18px; transition: .16s; position: relative;
}
.svc-card:hover { border-color: var(--blue); box-shadow: 0 8px 22px rgba(18,60,120,.10); transform: translateY(-2px); }
.svc-ico {
  width: 38px; height: 38px; border-radius: 9px; background: var(--blue-t);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.svc-ico svg { width: 20px; height: 20px; fill: var(--blue); }
.svc-card h3 { font-size: 16px; color: var(--blue-d); font-weight: 700; margin-bottom: 7px; line-height: 1.35; }
.svc-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.svc-card ul { list-style: none; margin: 11px 0 0; padding: 0; }
.svc-card li { font-size: 12.5px; color: #3d4653; padding-left: 17px; position: relative; line-height: 1.55; margin-bottom: 4px; }
.svc-card li:before { content: ""; position: absolute; left: 3px; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); opacity: .55; }
.svc-card .more { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--blue); }

/* ---------- 流程 ---------- */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; position: relative; }
.step:before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: Consolas, monospace; font-size: 12px; font-weight: 700;
  color: #fff; background: var(--blue); border-radius: 4px; padding: 2px 7px;
  display: inline-block; margin-bottom: 10px;
}
.step h3 { font-size: 14.5px; color: var(--blue-d); margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- 证明 ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proof { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; border-left: 3px solid var(--blue); }
.proof b { display: block; font-size: 22px; font-weight: 800; color: var(--blue-d); line-height: 1.15; letter-spacing: -.4px; }
.proof h3 { font-size: 14px; color: var(--txt); margin: 6px 0 5px; font-weight: 700; }
.proof p { font-size: 12.8px; color: var(--muted); line-height: 1.6; }

/* ---------- 表格 ---------- */
.ed-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.ed-table caption { caption-side: top; text-align: left; font-size: 12.5px; color: var(--muted); padding-bottom: 8px; }
.ed-table th, .ed-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; line-height: 1.55; }
.ed-table th { background: #f2f6fc; color: var(--blue-d); font-weight: 700; font-size: 13px; white-space: nowrap; }
.ed-table tr:nth-child(even) td { background: #fafbfd; }
.ed-table td:first-child { font-weight: 600; color: #2b3441; }
.ed-table-wrap { overflow-x: auto; border-radius: 8px; }

.kv { max-width: 100%; }
.kv td:first-child { width: 210px; background: #f7f9fc; }

/* ---------- 子类型卡 ---------- */
.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sub-card { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 16px 18px; }
.sub-card h4 { font-size: 14px; color: var(--blue-d); margin-bottom: 5px; }
.sub-card p { font-size: 12.8px; color: var(--muted); line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); background: #fff; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 42px 16px 18px; position: relative;
  font-size: 14.5px; font-weight: 700; color: var(--blue-d); line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--blue); line-height: 1;
}
.faq details[open] summary:after { content: "–"; }
.faq details[open] summary { background: #f7fafd; }
.faq .a { padding: 0 42px 18px 18px; font-size: 13.5px; color: #3d4653; line-height: 1.72; }
.faq .a p + p { margin-top: 9px; }

/* ---------- CTA 带 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dd), var(--blue-d) 55%, var(--blue) 100%);
  border-radius: 12px; padding: 34px 38px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 23px; font-weight: 800; letter-spacing: -.3px; line-height: 1.3; }
.cta-band p { margin-top: 8px; font-size: 13.5px; color: #cfe0f7; line-height: 1.65; max-width: 720px; }
.cta-band .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .b1 { background: #f07c00; color: #fff; padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.cta-band .b1:hover { background: #d96f00; }
.cta-band .b2 { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.38); color: #fff; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.cta-band .b2:hover { background: rgba(255,255,255,.2); }

/* ---------- 跳转锚 ---------- */
.jump { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 9px 16px; border: 1px solid var(--blue-t2); background: var(--blue-t); color: var(--blue-d); border-radius: 20px; font-size: 13px; font-weight: 700; }
.jump:hover { background: var(--blue-t2); }
.jump svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- 品类/品牌页头 ---------- */
.ed-hero { background: #fff; padding: 30px 0 26px; border-bottom: 1px solid var(--line); }
.ed-hero .lede { font-size: 15px; color: #2f3846; line-height: 1.75; max-width: 980px; }
.ed-hero .lede strong { color: var(--blue-d); }

/* 品类/品牌页头里替换掉通用描述的定义段。
   所有 .pagehead 都是深蓝渐变底（见 page-styles.json），文字必须是浅色，
   否则 #2f3846 落在 #0a1f3c 上等于隐形。 */
.pagehead .ed-def { font-size: 15px; color: #d3e3f7; line-height: 1.75; max-width: 1020px; margin: 8px 0 0; }
.pagehead .ed-def strong, .pagehead .ed-def b { color: #fff; }
.pagehead .ed-def a { color: #ffe0b2; text-decoration: underline; }
#cDesc[hidden] { display: none; }
.ed-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ed-meta span { font-size: 12px; color: var(--blue-d); background: var(--blue-t); border: 1px solid var(--blue-t2); border-radius: 14px; padding: 4px 11px; font-weight: 600; }

.brand-hero-row { display: flex; gap: 22px; align-items: flex-start; }
.brand-logo-box { flex: 0 0 150px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; display: flex; align-items: center; justify-content: center; min-height: 92px; }
.brand-logo-box img { max-width: 122px; max-height: 62px; width: auto; height: auto; object-fit: contain; }

/* ---------- 品牌总览卡 ---------- */
.bgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bcard { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; transition: .16s; }
.bcard:hover { border-color: var(--blue); box-shadow: 0 8px 22px rgba(18,60,120,.10); }
.bcard .lg { flex: 0 0 104px; height: 66px; display: flex; align-items: center; justify-content: center; border: 1px solid #eef1f6; border-radius: 8px; }
.bcard .lg img { max-width: 88px; max-height: 44px; }
.bcard h3 { font-size: 15.5px; color: var(--blue-d); margin-bottom: 4px; }
.bcard h3 .n { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-left: 7px; }
.bcard p { font-size: 12.8px; color: var(--muted); line-height: 1.6; }
.bcard .pos { display: inline-block; margin-top: 7px; font-size: 11.5px; font-weight: 700; color: var(--blue); background: var(--blue-t); padding: 2px 8px; border-radius: 10px; }

/* ---------- 应用条 ---------- */
.app-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.app-strip a { font-size: 12.5px; color: var(--blue-d); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 7px 14px; font-weight: 600; }
.app-strip a:hover { border-color: var(--blue); background: var(--blue-t); }

/* ---------- 产品中心：品类格 ---------- */
.catx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.catx { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 15px; transition: .16s; }
.catx:hover { border-color: var(--blue); box-shadow: 0 8px 22px rgba(18,60,120,.10); transform: translateY(-2px); }
.catx h3 { font-size: 15px; color: var(--blue-d); margin-bottom: 5px; line-height: 1.35; }
.catx .n { font-size: 12px; color: var(--blue); font-weight: 700; font-family: Consolas, monospace; letter-spacing: .2px; }
.catx p { font-size: 12.6px; color: var(--muted); line-height: 1.6; margin: 7px 0 10px; }
.catx .go { font-size: 12.5px; font-weight: 700; color: var(--blue); }

.brandx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.brandx { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }
.brandx:hover { border-color: var(--blue); background: #fbfdff; }
.brandx img { width: 56px; height: 32px; object-fit: contain; flex: 0 0 56px; }
.brandx b { display: block; font-size: 13.5px; color: var(--blue-d); }
.brandx span { font-size: 11.5px; color: var(--muted); }

/* ---------- 两栏正文 ---------- */
.ed-two { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: start; }
.ed-side { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.ed-side h3 { font-size: 14.5px; color: var(--blue-d); margin-bottom: 10px; }
.ed-side ul { list-style: none; padding: 0; }
.ed-side li { font-size: 13px; color: #3d4653; padding: 7px 0; border-top: 1px dashed #e6ebf2; display: flex; justify-content: space-between; gap: 10px; }
.ed-side li:first-child { border-top: 0; }
.ed-side li b { color: var(--blue-d); }

.note-box { background: var(--blue-t); border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; padding: 14px 18px; font-size: 13px; color: #2f3846; line-height: 1.7; }
.note-box b { color: var(--blue-d); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .svc-grid, .proof-grid, .sub-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-two { grid-template-columns: 1fr; }
  .bgrid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ed-sect { padding: 38px 0; }
  .ed-head h2 { font-size: 21px; }
  .kbar { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .proof-grid, .sub-grid, .step-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 24px; }
  .cta-band h2 { font-size: 19px; }
  .brand-hero-row { flex-direction: column; }
  .brand-logo-box { width: 100%; flex: none; }
  .ed-table, .ed-table th, .ed-table td { font-size: 12.5px; }
  .kv td:first-child { width: 130px; }
}

/* ===================================================================
   文章页结构化升级（h2 层级 / In short 摘要 / 技术内链块）
   文章页的版式样式是页面内联的，这里只补它没有的选择器。
   =================================================================== */
.art-wrap h2 {
  font-size: 22px; line-height: 1.3; color: var(--blue-dd);
  margin: 36px 0 13px; padding-bottom: 9px;
  border-bottom: 1px solid var(--line); font-weight: 800; letter-spacing: -.25px;
  scroll-margin-top: calc(var(--hdh, 132px) + 22px);
}
.faq > h2 {
  margin: 0; padding: 15px 22px;
  background: linear-gradient(180deg, #f7fafe, #eef5fd);
  border: 0; border-bottom: 1px solid var(--line);
  font-size: 16.5px; color: var(--blue-dd); font-weight: 800; letter-spacing: -.1px;
  scroll-margin-top: calc(var(--hdh, 132px) + 22px);
}
.faq .qa h3 {
  margin: 0; padding: 15px 0 6px; font-size: 15.5px; line-height: 1.5;
  font-weight: 800; color: #17222f;
}

/* In short：AI 摘录点，放在正文第一段之前 */
.art-tldr {
  margin: 0 0 24px; padding: 16px 20px 15px;
  background: #f4f8fe; border: 1px solid var(--line);
  border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0;
}
.art-tldr span {
  display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--blue-d); margin-bottom: 6px;
}
.art-tldr p { margin: 0 !important; padding: 0 !important; font-size: 15px; line-height: 1.7; color: #1f2c3d; }

/* 技术内链块：把 33 个参数页接进 120 篇文章 */
.art-guides {
  margin: 30px 0 8px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.art-guides b {
  display: block; font-size: 12px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--blue-dd); margin-bottom: 10px;
}
.art-guides ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.art-guides li { margin: 0; }
.art-guides a {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue-d);
  background: var(--blue-t, #eef5fd); border: 1px solid var(--line);
  border-radius: 16px; padding: 7px 14px;
}
.art-guides a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

@media (max-width: 640px) {
  .art-wrap h2 { font-size: 20px; margin-top: 30px; }
  .art-guides ul { flex-direction: column; }
  .art-guides a { display: block; }
}


/* === WHITE THEME v2 / RAPID TONE (appended overlay; rollback = remove) === */

/* === WHITE THEME v1 — editorial layer ===
   Component-level polish appended after the original editorial.css rules.
   Colours come from the :root override in site.css; this layer handles the
   typography / spacing that makes the white canvas feel spacious. */

.ed-sect.alt{background:var(--bg);}
.kbar{border-color:var(--line);border-radius:14px;}
.kbar>div{padding:22px 24px;}
.kbar span{font-size:13px;}

.svc-grid,.proof-grid,.step-grid,.sub-grid{gap:18px;}
.svc-card,.step,.proof,.sub-card{border-color:var(--line);}
.svc-card{padding:26px 24px 22px;}
.svc-card h3{font-size:17px;}
.svc-card p{font-size:14px;line-height:1.75;}
.svc-ico{background:#FBE7D7;border-radius:10px;}
.svc-ico svg{fill:var(--accent);}

.step{padding:24px;}
.step h3{font-size:15.5px;}
.proof{padding:24px 26px;border-left:3px solid var(--accent);}
.proof h3{font-size:15px;}

.ed-table{font-size:14px;}
.ed-table th{background:var(--bg);border-color:var(--line);}
.ed-table th,.ed-table td{border-color:var(--line);padding:11px 14px;}
.ed-table tr:nth-child(even) td{background:#FBFBFB;}
.ed-table td:first-child{color:#303030;}
.kv td:first-child{background:var(--bg);}

.faq summary{font-size:15.5px;padding:18px 46px 18px 20px;}
.faq details[open] summary{background:var(--bg);}
.faq .a{font-size:14px;}

.jump{background:#fff;border:1px solid var(--line);border-radius:22px;}
.jump:hover{background:#FBE7D7;border-color:var(--accent);}
.ed-meta span,.bcard .pos,.p-card .tag{background:#F6F6F6;border-color:var(--line);}

.ed-hero{padding:40px 0 34px;border-bottom:1px solid var(--line);}
.ed-hero .lede{font-size:16px;max-width:76ch;}
.brand-logo-box,.bcard .lg,.ed-side{border-color:var(--line);}
.bcard,.catx{padding:20px 22px;}
.bcard h3,.catx h3{font-size:16px;}
.app-strip a{background:#fff;border-color:var(--line);border-radius:18px;}
.app-strip a:hover{background:#FBE7D7;border-color:var(--accent);}

.art-wrap h2{font-size:clamp(23px,2vw,28px);margin:44px 0 15px;border-bottom:1px solid var(--line);}
.faq>h2{font-size:18px;}
.art-tldr{padding:20px 24px;}
.art-tldr span{color:var(--accent);}
.art-guides{padding:22px 24px;border-color:var(--line);}
.art-guides b{color:#161616;}
