/* ==========================================================================
   v1.3 版式落地（2026-11-19）
   只覆盖，不删除原规则。回滚：从 functions.php 摘掉本文件即可。
   ========================================================================== */

/* ---- 1. 背景压暗：内页碳纤维纹理 ---- */
body:not(.home)::before {
  background:
    linear-gradient(180deg, rgba(10,13,18,.76) 0%, rgba(10,13,18,.84) 100%),
    #0b0e12 url("../img/hero/hero-weave.webp") center top / cover no-repeat;
}
/* 首页背景不动（第十四部分：首页冻结） */

/* ---- 2. 页脚收紧 ---- */
.site-footer { padding: 56px 0 0; }
.site-footer .footer-top { gap: 36px; padding-bottom: 36px; }
.site-footer .footer-col__title { font-size: 15px; margin: 0 0 12px; }
.site-footer .footer-col li { margin-bottom: 7px; }
.site-footer .footer-bottom { padding: 18px 0; }
.site-footer .footer-word { font-size: min(9vw, 132px); color: rgba(255,255,255,.04); }

/* ---- 3. 去 AI 味：卡片变硬（2px 圆角、无阴影、hover 只改边框） ---- */
.case-card, .product-card, .ui-tile, .constraint-card, .cert-grid__item,
.capability-band__item, .pv3-card {
  border-radius: var(--r-card);
  box-shadow: none;
  transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.case-card:hover, .product-card:hover, .constraint-card:hover, .pv3-card:hover {
  transform: none;
  box-shadow: none;
  border-color: #3a4048;
}

/* ---- 4. 动效收敛：去掉长时、只留 120–240ms ---- */
/* 2026-11-20：这里原来有一条 `* { transition-duration }`，没写 property，
   默认就是 all —— JS 给下拉面板设 position:fixed + top/left 时，浏览器把
   top/left 从 0,0 动画到目标位置，看上去就是"从页面左下角飞上去"。
   已删除。全局只用下面的显式属性列表。 */
a, button, .btn { transition: color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out); }

/* 禁用滚动出现 / 视差 / 长淡入 */
[data-reveal], .reveal, .fade-in-up, .scroll-reveal { animation: none !important; opacity: 1 !important; transform: none !important; }

/* 无障碍：尊重系统设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---- 5. 一屏一个蓝：去掉发光与渐变按钮 ---- */
.btn--accent, .btn {
  background-image: none;
  box-shadow: none;
}
.btn--accent:hover { box-shadow: none; }

/* 蓝色描边堆叠：卡片内标签只保留一层 */
.case-tag { border-color: rgba(74,158,255,.45); }

/* ---- 6. 表单：边框与 placeholder 对比度 ---- */
.field input, .field textarea, .field select,
input[type="text"], input[type="email"], input[type="tel"], textarea {
  background: var(--bg-input);
  border: 1px solid var(--line-input);
  border-radius: var(--r-btn);
  color: var(--ink);
  font-size: var(--fs-ui);
}
.field input::placeholder, .field textarea::placeholder,
input::placeholder, textarea::placeholder { color: var(--ink-placeholder); }
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(74,158,255,.35);
  outline-offset: 1px;
}

/* ---- 7. 焦点环：所有可交互元素 ---- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

/* ---- 8. 标题对齐：技术文档语气（左对齐、sentence case 由内容控制） ---- */
.page-hero__title, .article-header__title { text-align: left; }

/* ---- 9. CTA：底改 band、标题 36 ---- */
.cta-section { background: var(--bg-band); border-top: 1px solid var(--line); padding: 72px 0; }
.cta-section h2 { font-size: var(--fs-h2); font-weight: 600; }

/* ---- 10. 表格：表头 13/600、单元 15、行线 line-soft ---- */
.data-table th { font-size: var(--fs-meta); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); background: var(--bg-card); }
.data-table td { font-size: var(--fs-small); color: var(--ink-body); }
.data-table th, .data-table td { border-bottom: 1px solid var(--line-soft); }
.data-table tr:last-child td { border-bottom: 0; }

/* ---- 11. 移动抽屉品牌：文字改图 ---- */
.mobile-drawer__logo { height: 28px; width: auto; display: block; }
.mobile-drawer__brand { display: flex; align-items: center; }


/* ---- 12. 下拉面板：禁止任何位置过渡（根因已删，这里是第二道锁） ---- */
.nav-drop, .nav-drop__panel, .primary-nav .nav-drop, [class*="nav-drop"] {
  transition: opacity var(--dur-3) var(--ease-out), visibility var(--dur-3) var(--ease-out) !important;
}

/* ---- 13. 文件选择按钮（span 改 label 后，补 cursor 与 hover） ---- */
.file-drop__btn { cursor: pointer; }
.file-drop__btn:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* ---- 14. 联系页背景：单独回调，不跟内页 .76/.84 同值 ----
   原 .90/.95/.97 只透 3–10%，等于纯色。目标：看得到纹、读得清字。 */
.contact-lite::before {
  background: linear-gradient(180deg,
    rgba(10,12,15,.84) 0%,
    rgba(10,12,15,.90) 55%,
    rgba(10,12,15,.94) 100%) !important;
}

/* ==========================================================================
   15. 知识页右栏重做（2026-11-20）
   目标：1440 下一屏看完右栏；读者能扫到本节；不被 CTA 压住。
   原来：无标题目录（含 H3 十几条）+ 一张比正文还高的 CTA 卡。
   现在：卡1 本文目录（只 H2，≤8 条，限高滚动，当前节高亮）
         卡2 相关文章 3 条（标题 + 一行说明）
         CTA 移到正文末尾一行
   ========================================================================== */
.article-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
.article-aside { top: calc(205px + 24px); gap: 20px; }

/* 卡 1：本文目录 */
.aside-toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
  max-height: calc(100vh - 280px);
  overflow: auto;
}
.aside-toc > summary {
  list-style: none;
  cursor: default;
  pointer-events: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  margin: 0 0 10px;
}
.aside-toc > summary::-webkit-details-marker { display: none; }
.aside-toc > summary::marker { content: ""; }

.article-toc { display: block; }
.article-toc a {
  display: block;
  padding: 6px 0 6px 12px;
  border: 0;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-mute);
  text-decoration: none;
}
.article-toc a:hover { color: #fff; }
.article-toc a.is-on { color: #fff; border-left-color: var(--accent-text); }

/* 卡 2：相关文章 */
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.related-list li:first-child { border-top: 0; padding-top: 0; }
.related-list a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
}
.related-list a:hover { color: var(--accent-text); }
.related-list span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-mute);
}

/* 正文末尾的一行 CTA（替代侧栏大卡） */
.article-endcta {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-body);
}
.article-endcta a {
  margin-left: 8px;
  color: var(--accent-text);
  font-weight: 500;
  text-decoration: none;
}
.article-endcta a:hover { text-decoration: underline; }

@media (max-width: 1023px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; top: auto; }
  .aside-toc { max-height: none; }
  .aside-toc > summary { pointer-events: auto; cursor: pointer; }
  .aside-toc > summary::after { content: "+"; float: right; color: var(--ink-mute); }
  .aside-toc[open] > summary::after { content: "−"; }
}

/* ==========================================================================
   16. 法律 3 页改 D 类单栏（2026-11-20）
   客户定：法律页跟联系页一样，直接文案即可，本来不需要 CTA。
   无侧栏、无 CTA、单栏 860。
   ========================================================================== */
.legal-layout { display: block; }
.legal-layout .legal-doc { max-width: 860px; }

/* ==========================================================================
   17. 页头变体：compact + 蓝线（2026-11-20）
   standard = 产品总览（44/42 留白），compact = 4 个形状归档（48/56 留白）。
   两者都补 2px 蓝线 —— 原来只有 page-hero 有，归档页没有，两套页头不一致。
   ========================================================================== */
.pcat-head h1 { position: relative; }
.pcat-head h1::after {
  content: "";
  display: block;
  width: 266px;
  max-width: 60%;
  height: 2px;
  margin-top: 22px;
  background: var(--accent);
}

.pcat-head--compact { padding: 261px 0 56px; }   /* 205 导航 + 56 留白 */
.pcat-head--compact .pcat-crumb { font-size: 13px; }
.pcat-head--compact .pcat-crumb { margin-bottom: 26px; }
.pcat-head--compact h1 { font-size: clamp(38px, 4vw, 48px); }
.pcat-head--compact h1::after { width: 180px; margin-top: 20px; }
.pcat-head--compact .pcat-lede { margin-top: 20px; }

@media (max-width: 1023px) {
  .pcat-head--compact { padding: 190px 0 40px; }
  .pcat-head--compact h1 { font-size: 34px; }
}

/* 右栏文章图：保持完整比例，不裁切。
   2026-11-20：此前写了 max-height:220 + object-fit:cover，竖构图的产品图被裁掉一半——
   图是客户拍的实物，裁一半等于废掉。宁可右栏长一点，也要整张。 */
.article-aside__figure img { max-height: none; height: auto; object-fit: contain; border-radius: var(--r-card); }

/* 案例筛选：hidden 在 grid 子项上可能被 display 规则盖掉，强制生效 */
.case-card[hidden] { display: none !important; }
