/*
Theme Name: 101DiamTools
Theme URI: https://101diamtools.com
Author: 101DiamTools
Description: 金刚石工具 B2B 询盘获客型独立站主题。Block Theme（Full Site Editing），基于 Twenty Twenty-Five 设计规范。产品为数据、模板为设计。
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 101diamtools
Tags: block-theme, full-site-editing, business, industrial, b2b
*/

/* ============================================================
   0-A. 自托管字体（SIL OFL 1.1 · 见 assets/fonts/README.md）
   ---------------------------------
   不用 Google Fonts / 任何 CDN：
     ① 少一个第三方域名 = 少一次 DNS+TLS，海外首屏更快；
     ② 不把访客 IP 送给第三方（欧盟站点会被合规审查）；
     ③ 国内可访问。
   家族名用主题自己的别名（DT Display / Text / Mono），不是 IBM Plex 原名 ——
   将来换字体只改这一块，模板与 theme.json 都不用动。
   unicode-range 让浏览器只下载当前语言需要的子集：
     英文页只取 latin；俄语页才取 cyrillic；阿语页才取 arabic。
   ============================================================ */

/* ---- 通用子集范围 ---- */
@font-face{
  font-family:"DT Display"; font-style:normal; font-weight:400; font-display:swap;
  src:url("assets/fonts/ibm-plex-sans-condensed-latin-400-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,
    U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"DT Display"; font-style:normal; font-weight:600; font-display:swap;
  src:url("assets/fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,
    U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"DT Display"; font-style:normal; font-weight:700; font-display:swap;
  src:url("assets/fonts/ibm-plex-sans-condensed-latin-700-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,
    U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"DT Text"; font-style:normal; font-weight:400; font-display:swap;
  src:url("assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,
    U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"DT Text"; font-style:normal; font-weight:600; font-display:swap;
  src:url("assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,
    U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"DT Mono"; font-style:normal; font-weight:400; font-display:swap;
  src:url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,
    U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"DT Mono"; font-style:normal; font-weight:500; font-display:swap;
  src:url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,
    U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ---- 西里尔（俄语页才会下载） ---- */
@font-face{
  font-family:"DT Text"; font-style:normal; font-weight:400; font-display:swap;
  src:url("assets/fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face{
  font-family:"DT Text"; font-style:normal; font-weight:600; font-display:swap;
  src:url("assets/fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
/* ---- 阿拉伯（阿语页才会下载；RTL 排版见文末） ---- */
@font-face{
  font-family:"DT Text"; font-style:normal; font-weight:400; font-display:swap;
  src:url("assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,
    U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face{
  font-family:"DT Text"; font-style:normal; font-weight:600; font-display:swap;
  src:url("assets/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,
    U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

/* ============================================================
   0-A2. 备选字体「公路标识 Overpass」（Red Hat · SIL OFL 1.1）
   ---------------------------------
   同样自托管。**只有在后台把字体切成 Overpass 时才会被下载** ——
   声明了 @font-face 但没被任何 font-family 引用，浏览器就不会请求它，
   所以留着它不影响默认页面的体积。
   切换入口：WP 后台 → 外观 → 品牌外观 → 字体。
   ============================================================ */
@font-face{
  font-family:"DT Alt Display"; font-style:normal; font-weight:700; font-display:swap;
  src:url("assets/fonts/overpass-latin-700-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,
    U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"DT Alt Text"; font-style:normal; font-weight:400; font-display:swap;
  src:url("assets/fonts/overpass-latin-400-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,
    U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"DT Alt Text"; font-style:normal; font-weight:700; font-display:swap;
  src:url("assets/fonts/overpass-latin-700-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,
    U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"DT Alt Text"; font-style:normal; font-weight:400; font-display:swap;
  src:url("assets/fonts/overpass-cyrillic-400-normal.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face{
  font-family:"DT Alt Mono"; font-style:normal; font-weight:400; font-display:swap;
  src:url("assets/fonts/overpass-mono-latin-400-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,
    U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ============================================================
   0-B. 令牌别名（引用 theme.json 预设，便于组件层书写）
   ============================================================ */
:root {
  --c-ink: var(--wp--preset--color--ink);
  --c-ink-soft: var(--wp--preset--color--ink-soft);
  --c-muted: var(--wp--preset--color--muted);
  --c-line: var(--wp--preset--color--line);
  --c-surface: var(--wp--preset--color--surface);
  --c-surface-alt: var(--wp--preset--color--surface-alt);
  --c-tint: var(--wp--preset--color--tint);
  --c-brand: var(--wp--preset--color--brand);
  --c-brand-dark: var(--wp--preset--color--brand-dark);
  --c-brand-soft: var(--wp--preset--color--brand-soft);
  --c-brand-tint: var(--wp--preset--color--brand-tint);
  --c-brand-line: var(--wp--preset--color--brand-line);
  --c-line-strong: var(--wp--preset--color--line-strong);
  --c-accent: var(--wp--preset--color--accent);
  --c-accent-ink: var(--wp--preset--color--accent-ink);
  --c-accent-tint: var(--wp--preset--color--accent-tint);
  --c-accent-on-deep: var(--wp--preset--color--accent-on-deep);
  --c-ok: var(--wp--preset--color--ok);
  --c-danger: var(--wp--preset--color--danger);
  --c-deep: var(--wp--preset--color--deep);
  --c-on-deep: var(--wp--preset--color--on-deep);
  --c-on-deep-soft: var(--wp--preset--color--on-deep-soft);

  --r-sm: var(--wp--custom--radius--sm);
  --r-md: var(--wp--custom--radius--md);
  --r-lg: var(--wp--custom--radius--lg);
  --r-pill: var(--wp--custom--radius--pill);

  --sh-sm: var(--wp--custom--shadow--sm);
  --sh-md: var(--wp--custom--shadow--md);

  --w-narrow: var(--wp--custom--container--narrow);
  --w-default: var(--wp--custom--container--default);
  --w-wide: var(--wp--custom--container--wide);

  --f-display: var(--wp--preset--font-family--display);
  --f-sans: var(--wp--preset--font-family--sans);
  --f-mono: var(--wp--preset--font-family--mono);
  --t-fast: var(--wp--custom--transition);
}

/* 禁止浏览器伪造字重：
   DT Display 只提供 400/600/700，DT Text 只提供 400/600。
   请求 500 / 800 时让浏览器就近取真实字重，而不是横向拉伸出一个假粗体 ——
   合成字重在标题上会明显发虚，是「看着不专业」的常见来源。
   （本项目模板与样式里未使用斜体，所以关掉字体合成是安全的。） */
body { font-synthesis: none; }

/* 数据类文字一律用等宽 + 表格数字（tabular nums）：
   型号 D213、尺寸 250 mm、粒度 36#–800# 在同列里必须上下对齐，
   否则规格表会看着「脏」—— 这是工业品站最容易忽略的一个细节。 */
.dt-mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.dt-spec table, .dt-compare table { font-variant-numeric: tabular-nums; }

/* ============================================================
   1. 通用工具类
   ============================================================ */
.dt-container { max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--wp--preset--spacing--50); }
.dt-container--default { max-width: var(--w-default); }
.dt-container--narrow { max-width: var(--w-narrow); }
.dt-muted { color: var(--c-muted); }
.dt-soft { color: var(--c-ink-soft); }
.dt-center { text-align: center; }
.dt-nowrap { white-space: nowrap; }
.dt-visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.dt-hairline { border-top: 1px solid var(--c-line); }

/* 型号 / 产品编码 */
.dt-model {
  display: inline-block; font-family: var(--f-mono); font-size: .82em; font-weight: 600;
  letter-spacing: .02em; color: var(--c-brand-dark); background: var(--c-tint);
  border: 1px solid var(--c-brand-line); border-radius: var(--r-sm); padding: .12em .55em;
}
.dt-model--plain { background: none; border: 0; padding: 0; color: var(--c-brand); }

/* 徽标 */
.dt-badge {
  display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.7;
  border-radius: var(--r-pill); padding: 0 .7em; white-space: nowrap;
}
.dt-badge--patent { background: var(--c-accent-tint); color: var(--c-accent-ink); }
.dt-badge--new { background: color-mix(in srgb, var(--c-ok) 14%, var(--c-surface)); color: var(--c-ok); }
.dt-badge--hot { background: color-mix(in srgb, var(--c-danger) 12%, var(--c-surface)); color: var(--c-danger); }
.dt-badge--tag { background: var(--c-tint); color: var(--c-brand); }

/* ============================================================
   2. 面包屑
   ============================================================ */
.dt-breadcrumb {
  font-size: 12.5px; color: var(--c-muted); margin-block: 0 var(--wp--preset--spacing--40);
}
.dt-breadcrumb a { color: var(--c-muted); text-decoration: none; }
.dt-breadcrumb a:hover { color: var(--c-brand); text-decoration: underline; }
.dt-breadcrumb__sep { margin-inline: .5em; color: var(--c-line-strong); }
.dt-breadcrumb__current { color: var(--c-ink-soft); }

/* ============================================================
   3. 产品卡片（列表 / 关联产品共用）
   ============================================================ */
.dt-card-grid {
  display: grid; gap: var(--wp--preset--spacing--50);
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.dt-card {
  position: relative; display: flex; flex-direction: column; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
/* hover 顶条：强调色从左展开，给卡片一个工业「高亮」信号 */
.dt-card::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: start;
  transition: transform var(--t-fast); z-index: 2;
}
.dt-card:hover { border-color: var(--c-line-strong); box-shadow: var(--sh-md); transform: translateY(-3px); }
.dt-card:hover::before { transform: scaleX(1); }
.dt-card:focus-within { border-color: var(--c-line-strong); }
.dt-card__media { position: relative; aspect-ratio: 1 / 1; background: var(--c-surface-alt); overflow: hidden; }
.dt-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform var(--t-fast); }
.dt-card:hover .dt-card__media img { transform: scale(1.05); }
.dt-card__flag { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; }
.dt-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.dt-card__title { font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0; color: var(--c-brand-dark); }
.dt-card__title a { color: inherit; text-decoration: none; }
.dt-card__title a:hover { color: var(--c-brand); text-decoration: underline; }
/* 卡片关键规格：3 列参数条（标签 / 等宽数值），让技术参数直接参与构图 */
.dt-card__specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 2px 0 0;
  padding: 0; list-style: none; background: var(--c-line);
  border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden;
}
.dt-card__specs li {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; background: var(--c-surface);
}
.dt-card__spec-k { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-muted); }
.dt-card__spec-v { font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--c-brand-dark); font-variant-numeric: tabular-nums; }
.dt-card__mats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.dt-chip {
  font-size: 11px; color: var(--c-muted); background: none;
  border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: 1px 9px;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.dt-chip:hover { color: var(--c-brand); border-color: var(--c-brand-line); background: var(--c-tint); }
.dt-card__actions { display: flex; gap: 10px; align-items: center; padding-top: 12px; }
.dt-card__actions .wp-block-button__link { padding: 9px 16px !important; font-size: 12.5px !important; }
.dt-compare-toggle {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: var(--c-ink-soft); background: none; border: 0; cursor: pointer; padding: 0;
}
.dt-compare-toggle input { accent-color: var(--c-brand); margin: 0; }

/* ============================================================
   3.5 焦点环与微交互（去模板感的关键）
   ---------------------------------
   参考站 47 处过渡动画，我们此前只有 7 处。以下用已有 token 补足：
   ① 统一焦点环（键盘可达性 + 细节感，来自 theme.json 的 custom.focusRing）；
   ② 一系列 hover / 微交互，让「可点」有明确反馈。
   圆角策略：工业站偏锐利，卡片/容器用 --r-md(8px)，控件用 --r-sm(4px)，
   徽标/标签用 --r-pill；大容器（规格表/筛选/询盘）保留 --r-lg(12px) 以容纳内容。
   ============================================================ */
:where(a, button, input, select, textarea, summary, .dt-card, .dt-app):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--c-brand) 30%, transparent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
/* 深色区块上的焦点环（footer / hero）改用浅色，保证可见 */
.dt-footer :where(a, button, input, select, textarea):focus-visible,
.dt-hero :where(a, button, input, select, textarea):focus-visible {
  outline-color: color-mix(in srgb, var(--c-on-deep) 45%, transparent);
}

/* 应用入口卡 hover（抬升 + 浅底）见第 10 节 .dt-app:hover */

/* 文档行 hover */
.dt-docs__row { transition: background var(--t-fast); }
.dt-docs__row:hover { background: var(--c-surface-alt); }

/* FAQ 摘要 hover */
.dt-faq summary { transition: background var(--t-fast); }
.dt-faq summary:hover { background: var(--c-surface-alt); }

/* 关键参数快览条 hover */
.dt-kv__item { transition: background var(--t-fast); }
.dt-kv__item:hover { background: var(--c-surface-alt); }

/* 筛选 chip hover */
.dt-filter__chip { transition: color var(--t-fast), background var(--t-fast); }
.dt-filter__chip:hover { color: var(--c-brand-dark); background: var(--c-brand-tint); }

/* 规格表 / 比较表：行 hover 高亮（细线表的工业感来源） */
.dt-spec tbody tr, .dt-compare tbody tr { transition: background var(--t-fast); }
.dt-spec tbody tr:hover td { background: var(--c-accent-tint); }
.dt-compare tbody tr:hover td { background: var(--c-accent-tint); }

/* 比较勾选 hover */
.dt-compare-toggle { transition: color var(--t-fast); }
.dt-compare-toggle:hover { color: var(--c-brand); }

/* 按钮箭头微交互：带 .dt-arrow 的按钮，hover 时箭头右移 */
.dt-arrow .dt-arrow__icon { display: inline-block; transition: transform var(--t-fast); }
.dt-arrow:hover .dt-arrow__icon { transform: translateX(3px); }

/* ============================================================
   4. 规格表（本项目核心组件）
   ============================================================ */
.dt-spec {
  border: 1px solid var(--c-line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--c-surface); margin: 0;
}
.dt-spec__caption {
  font-size: 13px; font-weight: 600; color: var(--c-brand-dark);
  background: var(--c-tint); padding: 10px 16px; text-align: start;
  border-bottom: 1px solid var(--c-line);
}
.dt-spec table { width: 100%; border-collapse: collapse; margin: 0; }
.dt-spec th, .dt-spec td {
  font-size: 13.5px; padding: 11px 16px; text-align: start;
  border-bottom: 1px solid var(--c-line); vertical-align: top;
}
.dt-spec tr:last-child th, .dt-spec tr:last-child td { border-bottom: 0; }
.dt-spec th {
  width: 38%; font-weight: 500; color: var(--c-muted); background: var(--c-surface);
  font-size: 13px;
}
.dt-spec td { color: var(--c-ink); font-weight: 600; }
.dt-spec td .dt-mono { font-weight: 600; color: var(--c-brand-dark); }
.dt-spec__group th {
  width: 100%; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--c-brand); background: var(--c-brand-tint);
  padding-block: 8px;
}

/* 产品页关键参数快览条 */
.dt-kv {
  display: grid; gap: 1px; background: var(--c-line);
  border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.dt-kv__item { background: var(--c-surface); padding: 14px 16px; }
.dt-kv__k { font-size: 11.5px; color: var(--c-muted); margin: 0 0 3px; }
.dt-kv__v { font-size: 15px; font-weight: 600; color: var(--c-brand-dark); margin: 0; font-family: var(--f-mono); }

/* ============================================================
   5. 筛选栏
   ============================================================ */
.dt-filter {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 18px 20px;
}
.dt-filter__row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; }
.dt-filter__field { display: flex; flex-direction: column; gap: 5px; min-width: 148px; }
.dt-filter__label { font-size: 11.5px; font-weight: 600; color: var(--c-muted); letter-spacing: .02em; }
.dt-filter select, .dt-filter input[type="search"] {
  font-size: 13px; padding: 8px 10px; border: 1px solid var(--c-line);
  border-radius: var(--r-md); background: var(--c-surface); color: var(--c-ink);
  min-width: 0; width: 100%;
}
.dt-filter__actions { display: flex; gap: 10px; margin-inline-start: auto; }
.dt-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dt-filter__chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  background: var(--c-tint); color: var(--c-brand); border-radius: var(--r-pill);
  padding: 3px 12px;
}
.dt-filter__count { font-size: 12.5px; color: var(--c-muted); margin: 0 0 14px; }

/* ============================================================
   6. 比较表
   ============================================================ */
.dt-compare { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface); }
.dt-compare table { border-collapse: collapse; width: 100%; min-width: 620px; margin: 0; }
.dt-compare th, .dt-compare td { font-size: 13px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); text-align: start; }
.dt-compare thead th { background: var(--c-tint); color: var(--c-brand-dark); font-weight: 600; }
.dt-compare tbody th { font-weight: 500; color: var(--c-muted); background: var(--c-tint); width: 30%; }
.dt-compare tbody td { font-weight: 600; }
.dt-compare tbody tr:nth-child(even) td { background: var(--wp--custom--specTableRowAlt); }

/* ============================================================
   7. 文档 / 下载列表
   ============================================================ */
.dt-docs { border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; }
.dt-docs__row {
  display: flex; align-items: center; gap: 14px; padding: 13px 18px;
  border-bottom: 1px solid var(--c-line); background: var(--c-surface); font-size: 13.5px;
}
.dt-docs__row:last-child { border-bottom: 0; }
.dt-docs__name { flex: 1; color: var(--c-ink); }
.dt-docs__type { font-size: 11px; color: var(--c-muted); font-family: var(--f-mono); }

/* ============================================================
   8. 询盘表单（RFQ）
   ============================================================ */
.dt-rfq {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 26px 28px;
}
.dt-rfq__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dt-rfq__field { display: flex; flex-direction: column; gap: 6px; }
.dt-rfq__field--full { grid-column: 1 / -1; }
.dt-rfq label { font-size: 12.5px; font-weight: 600; color: var(--c-ink-soft); }
.dt-rfq label .req { color: var(--c-danger); }
.dt-rfq input, .dt-rfq select, .dt-rfq textarea {
  font-size: 14px; padding: 10px 12px; border: 1px solid var(--c-line);
  border-radius: var(--r-md); background: var(--c-surface); color: var(--c-ink); width: 100%;
}
.dt-rfq input:focus, .dt-rfq select:focus, .dt-rfq textarea:focus {
  outline: 3px solid rgba(15, 76, 129, .18); border-color: var(--c-brand-soft);
}
.dt-rfq__hint { font-size: 12px; color: var(--c-muted); margin: 0; }
.dt-rfq__submit { margin-top: 6px; }
.dt-rfq input[type="file"] { padding: 8px; background: var(--c-surface-alt); }

/* ============================================================
   9. FAQ
   ============================================================ */
.dt-faq { display: grid; gap: 10px; }
.dt-faq details {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 0;
}
.dt-faq summary {
  list-style: none; cursor: pointer; padding: 14px 18px;
  font-size: 14px; font-weight: 600; color: var(--c-brand-dark);
  display: flex; align-items: center; gap: 10px;
}
.dt-faq summary::-webkit-details-marker { display: none; }
.dt-faq summary::after {
  content: "+"; margin-inline-start: auto; font-size: 18px; font-weight: 400;
  color: var(--c-brand-soft); line-height: 1;
}
.dt-faq details[open] summary::after { content: "−"; }
.dt-faq details[open] { border-color: var(--c-brand-soft); }
.dt-faq__body { padding: 0 18px 16px; font-size: 13.5px; color: var(--c-ink-soft); }
.dt-faq__body p:first-child { margin-top: 0; }
.dt-faq__body p:last-child { margin-bottom: 0; }

/* ============================================================
   10. 应用 / 材料入口网格
   ============================================================ */
.dt-app-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.dt-app {
  display: block; padding: 18px 20px; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-lg);
  text-decoration: none; transition: border-color var(--t-fast), background var(--t-fast);
}
.dt-app:hover { border-color: var(--c-brand); background: var(--c-brand-tint); text-decoration: none; }
.dt-app__name { font-size: 14.5px; font-weight: 600; color: var(--c-brand-dark); margin: 0 0 3px; }
.dt-app__en { font-size: 12px; color: var(--c-muted); margin: 0; }

/* ============================================================
   11. 页头 / 页脚
   ============================================================ */
.dt-header {
  background: var(--c-surface); border-bottom: 1px solid var(--c-line);
  position: sticky; top: 0; z-index: 20;
}
.dt-header__bar {
  display: flex; align-items: center; gap: 24px;
  max-width: var(--w-wide); margin-inline: auto;
  padding: 12px var(--wp--preset--spacing--50);
}
.dt-header__brand { display: flex; flex-direction: column; gap: 1px; text-decoration: none; }
.dt-header__brand:hover { text-decoration: none; }
.dt-header__nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; }
.dt-header__nav a {
  font-size: 13.5px; font-weight: 600; color: var(--c-ink-soft); text-decoration: none;
  padding: 8px 12px; border-radius: var(--r-md);
}
.dt-header__nav a:hover, .dt-header__nav .current-menu-item > a {
  color: var(--c-brand); background: var(--c-tint); text-decoration: none;
}
.dt-header__cta { margin-inline-start: 10px; }
.dt-header__cta .wp-block-button__link { padding: 10px 18px !important; font-size: 13px !important; }
.dt-header__inner { display: flex; align-items: center; gap: 20px; max-width: var(--w-wide); margin-inline: auto; }

.dt-footer {
  background: var(--c-brand-dark); color: var(--c-on-deep-soft);
  margin-block-start: var(--wp--preset--spacing--70);
}
.dt-footer a { color: var(--c-on-deep-soft); text-decoration: none; }
.dt-footer a:hover { color: var(--c-on-deep); text-decoration: underline; }
.dt-footer__inner { max-width: var(--w-wide); margin-inline: auto; padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50) var(--wp--preset--spacing--50); }
.dt-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.dt-footer__title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-on-deep-soft); margin: 0 0 12px; }
.dt-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.dt-footer__legal {
  margin-block-start: var(--wp--preset--spacing--50); padding-block-start: var(--wp--preset--spacing--40);
  border-top: 1px solid color-mix(in srgb, var(--c-on-deep) 14%, transparent); font-size: 12.5px; color: var(--c-on-deep-soft);
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
}

/* ============================================================
   12. Hero
   ============================================================ */
.dt-hero { background: var(--c-deep); color: var(--c-on-deep); }
.dt-hero__inner {
  max-width: var(--w-wide); margin-inline: auto;
  padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--50);
  display: grid; gap: 32px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center;
}
.dt-hero h1 { color: var(--c-on-deep); margin: 0 0 14px; }
.dt-hero p { color: var(--c-on-deep-soft); font-size: 16.5px; margin: 0 0 22px; max-width: 52ch; }
.dt-hero__media img { border-radius: var(--r-lg); }
.dt-hero--compact .dt-hero__inner { padding-block: var(--wp--preset--spacing--70); }

/* ============================================================
   13. 章节标题
   ============================================================ */
/* 分区容器宽度统一：
   ① 外层（dt-main / dt-hero / dt-section）背景全宽，抵消 WP 对 default 布局注入的
      contentSize(760px) 约束 —— 否则带背景的模块被压成 760 窄块，出现「宽窄不一」。
   ② 内层内容统一收束到主容器宽度（1240px）并居中，与 header / footer 对齐。 */
.dt-main,
.dt-hero,
.dt-section {
  max-width: none !important;
  width: 100% !important;
  margin-inline: 0 !important;
}
.dt-section > .wp-block-group {
  max-width: var(--w-wide) !important;
  margin-inline: auto !important;
  padding-inline: var(--wp--preset--spacing--50) !important;
}
.dt-section { padding-block: var(--wp--preset--spacing--70); }
.dt-section--alt { background: var(--c-surface); }
.dt-section__head { margin-block-end: var(--wp--preset--spacing--50); }
.dt-section__head h2 { margin: 0 0 6px; }
.dt-section__head p { color: var(--c-muted); font-size: 14px; margin: 0; max-width: 68ch; }

/* ============================================================
   14. 响应式与移动端
   ============================================================ */
@media (max-width: 1024px) {
  .dt-hero__inner { grid-template-columns: 1fr; }
  .dt-hero__media { order: -1; }
}

@media (max-width: 782px) {
  /* 规格表在手机端改为上下堆叠，避免横向滚动 */
  .dt-spec th, .dt-spec td { display: block; width: auto; }
  .dt-spec th { border-bottom: 0; padding-bottom: 2px; padding-top: 12px; }
  .dt-spec td { padding-top: 0; padding-bottom: 12px; }
  .dt-spec tr { border-bottom: 1px solid var(--c-line); }
  .dt-spec tr:last-child { border-bottom: 0; }
  .dt-spec tr:last-child td { border-bottom: 0; }
  .dt-spec__group th { padding-block: 8px; border-bottom: 1px solid var(--c-line); }

  .dt-header__nav { display: none; }
  .dt-card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .dt-card__body { padding: 12px 14px 14px; }
  .dt-card__title { font-size: 13.5px; }
  .dt-filter__field { min-width: 100%; }
  .dt-filter__actions { margin-inline-start: 0; width: 100%; }
  .dt-rfq { padding: 20px 18px; }
  .dt-section { padding-block: var(--wp--preset--spacing--60); }
}

/* 打印：产品规格表便于客户留存/转发 */
@media print {
  .dt-header, .dt-footer, .dt-rfq, .wp-block-buttons { display: none !important; }
  .dt-spec, .dt-compare { border-color: #999; }
  body { background: #fff; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   15. 数字条 + 凭证条（stat-band）
   ---------------------------------
   直接把「数字」做成构图元素，破「零数字」的 AI 味。
   4 个大数值 + 一行标准/专利凭证。
   ============================================================ */
.dt-stat-band {
  display: grid; gap: 1px; background: var(--c-line);
  border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden;
  grid-template-columns: repeat(4, 1fr);
}
.dt-stat {
  display: flex; flex-direction: column; gap: 4px; padding: 22px 22px; background: var(--c-surface);
  transition: background var(--t-fast);
}
.dt-stat:hover { background: var(--c-surface-alt); }
.dt-stat__num {
  font-family: var(--f-display); font-weight: 700; line-height: 1; letter-spacing: -.01em;
  font-size: clamp(28px, 4vw, 40px); color: var(--c-brand-dark); font-variant-numeric: tabular-nums;
}
.dt-stat__num em { font-style: normal; color: var(--c-accent); }
.dt-stat__label { font-size: 12.5px; color: var(--c-muted); margin: 0; }
.dt-creds {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  margin: 18px 0 0; padding: 0; list-style: none;
}
.dt-creds li { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--c-ink-soft); }
.dt-creds li::before {
  content: ""; width: 7px; height: 7px; border-radius: var(--r-pill);
  background: var(--c-accent); flex: none;
}

/* ============================================================
   16. 非对称图文段（feature-split）
   ---------------------------------
   一页至少 3~4 种 section 构成，禁止重复同一种 grid。
   图文面积不等（7:5），图出血到边，文侧挂内联参数列表。
   ============================================================ */
.dt-feature-split { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.dt-feature-split--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.dt-feature-split__media { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--c-surface-alt); }
.dt-feature-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.dt-feature-split:hover .dt-feature-split__media img { transform: scale(1.03); }
.dt-feature-split__index {
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em;
  color: var(--c-accent-ink); margin: 0 0 10px;
}
.dt-feature-split__title { font-size: var(--wp--preset--font-size--xx-large); line-height: 1.2; margin: 0 0 12px; color: var(--c-brand-dark); }
.dt-feature-split__body { font-size: 14.5px; color: var(--c-ink-soft); margin: 0 0 18px; max-width: 52ch; }
.dt-feature-split__list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.dt-feature-split__list li { display: flex; gap: 12px; align-items: baseline; padding: 11px 14px; background: var(--c-surface); font-size: 13.5px; }
.dt-feature-split__list b { font-family: var(--f-mono); font-weight: 600; color: var(--c-brand-dark); min-width: 92px; font-variant-numeric: tabular-nums; }
.dt-feature-split__list span { color: var(--c-ink-soft); }
@media (max-width: 900px) {
  .dt-stat-band { grid-template-columns: repeat(2, 1fr); }
  .dt-feature-split, .dt-feature-split--rev { grid-template-columns: 1fr; gap: 24px; }
  .dt-feature-split__media { order: -1; }
}

/* RTL（阿拉伯语）适配：组件以逻辑属性书写，此处仅补少数例外 */
[dir="rtl"] .dt-faq summary::after { margin-inline-start: auto; }
[dir="rtl"] .dt-filter__actions { margin-inline-start: auto; }
