/* ============================================================
   LOUVERMACHINING · /capabilities/ 能力页 CSS
   ------------------------------------------------------------
   2026-11-19 重做：页面从 8 段压到 2 段。
   旧版（.capg 四块概览 + 六段 .proc 长文 + .mat 材料清单 + .srow 外协）
   与首页的能力四联重复，用户要求「不要太多内容，整合成一张表，简单点」。
   现在只有：
     1. .cap    工艺参数表（六行：车 / 铣 / 冲 / 焊 / 珩磨 / 检）
     2. .cnote  表下两栏补注（材料与表面 / 外协四步）
   页首 .itop 在 page-common.css，色板与公用件在首页 CSS。
   ============================================================ */

/* 页首与表之间收一档：本页只有两段，留 76px 会把「简单」又撑开 */
#top{padding-bottom:44px}

/* -------- 1. 工艺表 --------
   来源是 Diana 的设备能力表（Process / Equipment / Working range /
   Typical tolerance / Notes 五列），删掉机型与台数，只留「能吃多大、做多准」。
   表头用等宽小标 + 一条细线；行与行只用 1px 线分隔，不加底色不画框。 */
.cap{width:100%;border-collapse:collapse;margin-top:18px;table-layout:fixed}
.cap th{font-family:var(--mono);font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--mute);font-weight:600;text-align:left;vertical-align:bottom;
  padding:0 20px 11px 0;border-bottom:1px solid var(--line)}
.cap th:nth-child(1){width:15%}
.cap th:nth-child(2){width:26%}
.cap th:nth-child(3){width:18%}
.cap th:nth-child(4){width:17%}
.cap th:nth-child(5){width:24%}

.cap td{padding:15px 20px 15px 0;border-top:1px solid var(--line);vertical-align:top;
  font-size:13.5px;line-height:1.58;color:var(--sub)}
.cap tbody tr:first-child td{border-top:0;padding-top:16px}
.cap td:first-child{font-size:14.5px;font-weight:700;color:var(--blue-deep);line-height:1.4}
/* 数值列对齐：一列小数点参差时，tabular 比 proportional 好读 */
.cap td:nth-child(3),.cap td:nth-child(4){font-variant-numeric:tabular-nums}
/* 最右一列是备注，压一档灰度，不和数值抢 */
.cap td:last-child{padding-right:0;color:var(--mute)}

/* -------- 2. 表下补注 --------
   材料与表面、外协四步，是表里放不下但报价时必须交代的两件事。
   两栏并排，各一段；不加卡片不加底色，和上面的表共用同一条基线。 */
.cnote{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,4vw,64px);
  margin-top:44px;padding-top:26px;border-top:1px solid var(--line)}
.cnote .k{font-family:var(--mono);font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--blue);font-weight:600;margin-bottom:9px}
.cnote p{font-size:13.5px;line-height:1.76;color:var(--sub)}

/* ============================================================
   断点
   ============================================================ */
@media(max-width:1024px){
  .cap th{padding-right:14px;font-size:9px}
  .cap td{padding:14px 14px 14px 0;font-size:13px}
  .cnote{grid-template-columns:1fr;gap:24px;margin-top:38px}
}

/* 860 以下：五列表格压不出可读的行宽，整表转成「工艺名 + 四行标签值」的卡片。
   表头隐藏，每个 td 用 data-l 自带的标签名顶上去。 */
@media(max-width:860px){
  .cap,.cap tbody,.cap tr,.cap td{display:block;width:100%}
  .cap thead{display:none}
  .cap tr{padding:15px 0;border-top:1px solid var(--line)}
  .cap tbody tr:first-child{border-top:0;padding-top:2px}
  .cap td{border:0;padding:0 0 6px}
  .cap td:first-child{font-size:15px;margin-bottom:8px}
  .cap td:not(:first-child){display:flex;align-items:baseline;gap:12px;font-size:13px}
  .cap td:not(:first-child)::before{content:attr(data-l);flex:0 0 100px;
    font-family:var(--mono);font-size:9px;letter-spacing:.12em;text-transform:uppercase;
    color:var(--mute);font-weight:600}
}

@media(max-width:680px){
  .cnote p{font-size:13px;line-height:1.72}
  .cap td:not(:first-child)::before{flex:0 0 86px;font-size:8.5px;letter-spacing:.1em}
}
