/* ============================================================
   数据驱动页面 · 组件样式
   配合 site-data.js / site.js 使用，独立于 main.css
   ============================================================ */

/* ---------- 主视觉轮播 ---------- */
.hero-banner { position: relative; overflow: hidden; background: #062b4a; }
.hero-banner .slide {
  position: relative; display: none; min-height: clamp(420px, 46vw, 560px);
}
.hero-banner .slide.is-active { display: block; animation: fadeIn .6s ease; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.hero-banner .slide > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.slide-overlay {
  position: relative; z-index: 1; max-width: var(--wrap); margin-inline: auto;
  padding: clamp(48px, 7vw, 92px) var(--gutter);
  min-height: clamp(420px, 46vw, 560px); display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  background: linear-gradient(90deg, rgba(5,29,51,.94) 0%, rgba(5,29,51,.84) 38%, rgba(5,29,51,.26) 58%, rgba(5,29,51,0) 76%);
}
.slide-overlay > * { color: #fff; max-width: 620px; }
.slide-kicker {
  display: inline-block; font-size: .82rem; letter-spacing: .12em;
  padding: 6px 14px; border: 1px solid rgba(255,255,255,.4);
  border-radius: 100px; margin-bottom: 22px; color: #cfe6f8;
}
.slide-overlay h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem); margin-bottom: 16px; }
.slide-overlay p { font-size: clamp(1rem, .9rem + .5vw, 1.25rem); color: #dceaf6; margin-bottom: 28px; }
.slide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.slide-actions .btn { display: inline-flex; }
.slide-overlay .btn + .btn { margin-left: 0; }

.banner-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.banner-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); }
.banner-dots i.is-active { background: #fff; width: 22px; border-radius: 6px; }

/* ---------- Hero 文字区 ---------- */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.hero-kicker { color: var(--brand); font-weight: 600; letter-spacing: .08em; font-size: .9rem; margin-bottom: 14px; }
.hero-entity {
  font-size: clamp(1.02rem, .95rem + .35vw, 1.18rem); color: var(--brand-700);
  font-weight: 600; line-height: 1.6; margin-bottom: 16px;
  padding-left: 16px; border-left: 3px solid var(--brand);
}
.hero-lead { font-size: clamp(1rem, .92rem + .4vw, 1.15rem); color: var(--ink-2); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.badge {
  display: inline-block; padding: 7px 14px; border-radius: 100px;
  background: var(--brand-050); color: var(--brand-700); font-size: .85rem; font-weight: 500;
}
.hero-media { position: relative; }
.hero-media::before {
  content: ''; position: absolute; inset: -8% -6%;
  background: radial-gradient(circle at 30% 30%, var(--brand-050), transparent 70%);
  border-radius: 50%; z-index: 0;
}
.hero-media img {
  position: relative; width: 100%; border-radius: var(--radius-lg);
  background: #fff; padding: 6%;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

/* ---------- 通用 section 头 ---------- */
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { text-align: center; }
.section-head h2 { margin-bottom: 12px; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.lead { font-size: clamp(1rem, .94rem + .3vw, 1.12rem); color: var(--muted); max-width: 760px; }
.section-head--center .lead { margin-inline: auto; }
.sec-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); margin: 0 0 14px; }
.sec-text { color: var(--ink-2); max-width: 860px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; }
.card-meta { font-size: .9rem; color: var(--brand-700); margin-top: 10px !important; }
.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand);
  color: #fff; font-size: .85rem; font-weight: 700; margin-bottom: 16px;
}

/* ---------- 产品卡 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.prod-card {
  display: flex; gap: 20px; align-items: center; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: box-shadow .25s ease, transform .25s ease;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prod-card > img { width: 140px; height: 110px; object-fit: contain; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; flex: none; padding: 6px; box-sizing: border-box; }
.prod-body h3 { margin: 8px 0 6px; font-size: 1.1rem; }
.prod-body p { color: var(--muted); font-size: .92rem; margin: 0; }
.tag { color: var(--brand); font-size: .78rem; font-weight: 600; letter-spacing: .05em; }
.table-note { font-size: .88rem; color: var(--muted); margin-top: 18px; }
/* 说明文字内的邮箱入口：品牌色 + 下划线，点击直达「在线留言」表单 */
.table-note__link { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.table-note__link:hover, .table-note__link:focus-visible { color: var(--brand-700); }
/* 从首页说明跳到留言表单时，避开吸顶导航 */
#message { scroll-margin-top: 88px; }

/* ---------- 架构 ---------- */
.arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 14px; color: var(--ink-2); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--brand-050); border: 3px solid var(--brand);
}
.arch-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- 四环闭环 ---------- */
.loop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: loop; }
.loop-step {
  position: relative; padding: 26px 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--brand-025), #fff); border: 1px solid var(--line);
  /* 纵向弹性布局：各卡描述行数不同时，角色标签统一压到底部同一水平线 */
  display: flex; flex-direction: column;
}
.loop-step::after {
  content: '→'; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  color: var(--brand); font-size: 1.4rem; font-weight: 700; z-index: 1;
}
.loop-step:last-child::after { display: none; }
.loop-no { display: block; font-size: .78rem; color: var(--brand); font-weight: 700; letter-spacing: .1em; margin-bottom: 10px; }
.loop-step h3 { margin-bottom: 10px; font-size: 1.06rem; }
.loop-step p { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.loop-who { display: inline-block; font-size: .76rem; padding: 4px 10px; border-radius: 6px; background: var(--brand); color: #fff; max-width: 100%; box-sizing: border-box; line-height: 1.5; align-self: flex-start; margin-top: auto; }
/* 四环标题：段内不断行，只在「→」前换行，避免「人工确认」被拆开 */
.nowrap-seg { white-space: nowrap; }

/* ---------- 九大模板 ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tpl {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 20px; transition: border-color .2s ease, box-shadow .2s ease;
}
.tpl:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.tpl-no { font-size: .75rem; color: var(--brand); font-weight: 700; letter-spacing: .1em; }
.tpl h3 { font-size: 1rem; margin: 8px 0; }
.tpl p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- 客户墙 ---------- */
.cust-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 24px; }
.cust-logos img {
  width: 100%; height: 76px; object-fit: contain; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* ---------- 数据表格 ---------- */
.data-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: .94rem; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; }
.data-table th { background: var(--brand); color: #fff; font-weight: 600; }
.data-table tbody tr:nth-child(even) { background: var(--brand-025); }

/* ---------- 统计条 ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 10px; }
.stat {
  display: inline-block; padding: 8px 16px; border-radius: 100px;
  background: var(--brand-050); color: var(--brand-700); font-weight: 600; font-size: .92rem;
}

/* ---------- 界面截图 ---------- */
.ui-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.ui-card { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.ui-card img { width: 100%; height: 260px; object-fit: cover; object-position: top; background: var(--brand-025); }
.ui-card figcaption { padding: 16px 18px; }
.ui-card figcaption strong { display: block; margin-bottom: 6px; }
.ui-card figcaption span { color: var(--muted); font-size: .9rem; }

/* ---------- 图片组：白框随图片固有比例自适应，消除框大图小的左右白边 ----------
   三张图比例不同（1:1 / 3:2 / 4:3），原先固定 width:100% + height:240px + contain
   会让白框远宽于图片；改为等高自适应、整体居中，所有图片完整显示且不裁切。 */
.img-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 16px; margin-top: 24px; }
.img-row img {
  display: block; width: auto; max-width: 100%; height: auto; max-height: 240px;
  object-fit: contain; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); padding: 10px;
}
/* 四图组（摄像头结构设计）：限高降到 200px 才能在 1160px 容器里排成一行，
   框宽仍随图片比例收缩，不产生横向白边；平板降到 160px，手机恢复正常高度。 */
.img-row--quad { gap: 14px; }
.img-row--quad img { max-height: 200px; }
@media (min-width: 641px) and (max-width: 1150px) { .img-row--quad img { max-height: 160px; } }

/* ---------- 模型标签 ---------- */
.model-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.model-chip {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--brand-025); color: var(--brand-700); font-size: .9rem;
}

/* ---------- 步骤 ---------- */
.step-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 24px; }
.step { padding: 24px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin-top: 24px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { font-weight: 600; cursor: pointer; color: var(--ink); list-style-position: inside; }
.faq-item summary::-webkit-details-marker { color: var(--brand); }
.faq-item p { margin: 14px 0 0; color: var(--muted); padding-left: 18px; }

/* ---------- 合规边界提示 ---------- */
.note-box {
  margin-top: 22px; padding: 16px 20px; border-left: 3px solid var(--brand);
  background: var(--brand-025); color: var(--brand-700); font-size: .92rem; border-radius: 0 8px 8px 0;
}
.note-box--warn { background: #fff7ed; border-left-color: #d97706; color: #92400e; }

/* ---------- 关于我们列表 ---------- */
/* 与简介段同为 900px 宽，右边界对齐；中文两端对齐，消除右侧参差 */
.about-list { max-width: 900px; margin-top: 28px; }
.about-list li {
  position: relative; padding-left: 26px; margin-bottom: 20px; font-size: 1.03rem;
  line-height: 1.9; color: var(--ink-2);
  text-align: justify; text-justify: inter-ideograph;
}
.about-list li::before {
  content: ''; position: absolute; left: 0; top: 13px; width: 8px; height: 8px;
  background: var(--brand); border-radius: 2px;
}
/* 标签随正文行内跟随，不加等宽列——等宽列会在「定位：」后留出一段空白 */
.about-list__label { display: inline; font-weight: 600; color: var(--brand-700); }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid, .arch-grid { grid-template-columns: 1fr; }
  .loop-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .loop-step::after { display: none; }
  .tpl-grid, .grid--3, .ui-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .cust-logos { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .prod-grid, .tpl-grid, .ui-grid,
  .step-grid, .form-grid, .loop-grid { grid-template-columns: 1fr; }
  .img-row img { max-height: 200px; }
  .cust-logos { grid-template-columns: repeat(2, 1fr); }
  .slide-actions { flex-direction: column; align-items: stretch; }
  .slide-actions .btn { width: 100%; }
}

/* ---------- 手机 / 平板竖屏：Banner 整图完整显示 ----------
   桌面 Banner 是 1600x640 宽幅图，用 cover 铺满横向容器；窄屏下容器变成接近方形，
   cover 只保留原图中间约 1/3，右侧产品卡、四环、驾驶舱界面全被裁掉
   —— 即用户反馈的「手机屏幕上显示不完全」。
   小屏改为：图片按宽度等比完整呈现（不裁切、不拉伸），文案独立成深色文字块置于图下方，
   轮播圆点回到 Banner 内部底部。桌面 ≥901px 的构图与 V21/V25 逐像素一致，
   未改动任何图片文件，也未新增移动端专用图。 */
@media (max-width: 900px) {
  /* 4 帧叠放在同一网格单元：容器高度取最高帧，轮播切换时下方内容不再上下跳动。
     不用 display:none 是因为隐藏帧不占高度，会导致每帧高度随文字/按钮数量变化。 */
  .hero-banner { display: grid; }
  .hero-banner .slide {
    grid-area: 1 / 1; min-height: 0;
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; pointer-events: none;
  }
  .hero-banner .slide.is-active {
    display: flex; opacity: 1; visibility: visible; pointer-events: auto;
    animation: fadeIn .6s ease;
  }
  .hero-banner .slide > img {
    position: static; inset: auto; display: block;
    width: 100%; height: auto; object-fit: contain; object-position: center;
    background: #062b4a;
  }
  .slide-overlay {
    flex: 1; min-height: 0; padding: 24px var(--gutter) 56px;
    background: linear-gradient(180deg, #062b4a 0%, #0b3d68 100%);
  }
  .slide-overlay > * { max-width: 100%; }
  .slide-kicker { margin-bottom: 14px; font-size: .74rem; }
  .slide-overlay h2 { font-size: clamp(1.4rem, 1.05rem + 2.6vw, 1.85rem); margin-bottom: 12px; }
  .slide-overlay p { font-size: .95rem; margin-bottom: 20px; }
  .banner-dots { bottom: 18px; }
}

/* ---------- 减少动效（无障碍） ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 内页头部 ---------- */
.page-hero {
  padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 70px);
  background: linear-gradient(135deg, var(--brand-025), #fff 62%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 18px; }
.page-hero .hero-entity { margin-bottom: 16px; }
.page-hero .lead { margin-bottom: 0; }
.sub-title { font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); color: var(--brand-700); font-weight: 600; margin: 0 0 14px; }

/* ---------- 尾部 CTA ---------- */
.cta-band {
  padding: clamp(48px, 6vw, 80px) 0;
  background: linear-gradient(120deg, var(--brand-900), var(--brand-700));
  color: #fff;
}
.cta-band .container { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 0; max-width: 720px; }
.cta-band .btn { background: #fff; color: var(--brand-700); }
.cta-band .btn:hover { background: var(--brand-050); color: var(--brand-700); }

/* ---------- 页脚补充 ---------- */
/* 仅列表型链接块化；段落/联系方式内的行内链接不再被强制换行 */
.footer-links a { color: rgba(255, 255, 255, .66); }
.footer-links h4 { margin-bottom: 16px; color: #fff; }
.footer-links p { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }

/* ---------- 全站图片与版式统一优化（第十轮） ---------- */
.cust-logos img:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }

/* 界面截图为顶部预览，点击可查看完整长图 */
.ui-shot-link {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: border-color .2s ease;
}
.ui-shot-link:hover { border-color: var(--brand); }
.ui-card .ui-shot-link img { height: 300px; }
.ui-card figcaption::after {
  content: '点击查看完整界面 ↗'; display: block; margin-top: 6px;
  font-size: .76rem; font-weight: 400; color: var(--brand);
}

/* 产品页主图统一为白底卡片，避免拉伸与视觉零散 */
main figure > img[src*="edge-box"],
main figure > img[src*="trainer-station"] {
  display: block; border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; background: #fff; object-fit: contain;
}

/* 深色区说明文字：加宽并平衡换行，消除孤字 */
.section--ink .section-head { max-width: 940px; }
.section--ink .lead { text-wrap: balance; }

/* ---------- 产品页首屏：左文字 + 右产品主图（补齐遗漏的图位） ---------- */
.page-hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 64px); align-items: center;
}
/* 白底圆角框即图片元素本身，尺寸随图片固有比例收缩，避免「框大图小」的左右白边。
   适用于全部产品页 / 解决方案页（含 install-3、install-4、edge-box、trainer-station 等）。 */
.page-hero__media { margin: 0; display: flex; justify-content: center; align-items: center; }
.page-hero__media img {
  display: block; width: auto; max-width: 100%; height: auto; max-height: 400px; object-fit: contain;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-lg);
}

/* 产品构成 / 核心能力：左文右图，消除单图右侧空白 */
.detail-split {
  display: grid; grid-template-columns: 1fr .9fr;
  gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: 22px;
}
.detail-split figure { margin: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.detail-split figure img {
  display: block; width: auto; max-width: 100%; height: auto; max-height: 340px; object-fit: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px;
}
.detail-split figcaption {
  margin-top: 10px; width: 100%; font-size: .82rem; color: var(--muted); text-align: center;
}
@media (max-width: 900px) {
  .page-hero__grid, .detail-split { grid-template-columns: 1fr; }
  .page-hero__media img { max-height: 320px; }
}

/* ---------- 页脚品牌栏重排（英文副标不再夹在中文中间） ----------
   原 .footer-brand 是横向 flex（为 logo+品牌名设计），把 strong/span/p 挤成三列；
   这里改为纵向层级：品牌名 → 英文 tagline → 品牌色短线 → 说明文字。 */
.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 0;
  max-width: 360px;
}
.site-footer .footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.35;
}
.site-footer .footer-brand span {
  display: block;
  margin-top: 7px;
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #6fc3ff;
}
.site-footer .footer-brand p {
  position: relative;
  margin: 20px 0 0;
  padding-top: 17px;
  max-width: 340px;
  font-size: .84rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, .58);
}
.site-footer .footer-brand p::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
@media (max-width: 640px) {
  .site-footer .footer-brand { max-width: 100%; }
  .site-footer .footer-brand p { max-width: 100%; }
}

/* ---------- 页脚四栏统一垂直节奏 ----------
   .footer-links 原为 display:grid，四栏被 stretch 成等高后，只有 2 个子元素的
   「产品中心 / 快速导航」栏标题行被拉到 127px，标题下方出现约 100px 空白。
   改为 flex 纵列 + 顶部对齐，并统一标题间距、链接/文本颜色与行高。 */
.site-footer .footer-grid { align-items: start; }
.site-footer .footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
}
.site-footer .footer-links h4 { margin: 0 0 16px; }
.site-footer .footer-links > div > a,
.site-footer .footer-links > a {
  display: block;
  margin: 0 0 9px;
  color: rgba(255, 255, 255, .66);
  font-size: .86rem;
  line-height: 1.55;
}
.site-footer .footer-links > div > a:last-child,
.site-footer .footer-links > a:last-child { margin-bottom: 0; }
.site-footer .footer-links p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .58);
  font-size: .86rem;
  line-height: 1.7;
}
.site-footer .footer-links p:last-child { margin-bottom: 0; }
.site-footer .footer-links p a { color: rgba(255, 255, 255, .74); }

/* ---------- 联系方式栏：结构化标签 + 值 ---------- */
.site-footer .contact-list { display: flex; flex-direction: column; gap: 14px; }
.site-footer .contact-row { display: flex; flex-direction: column; gap: 3px; }
.site-footer .contact-label {
  color: rgba(255, 255, 255, .5);
  font-size: .74rem; letter-spacing: .08em; line-height: 1.4;
}
.site-footer .footer-links .contact-value {
  display: inline;
  color: rgba(255, 255, 255, .82);
  font-size: .88rem; line-height: 1.65;
  word-break: break-word;
}
.site-footer .footer-links a.contact-value:hover { color: #fff; }

/* ---------- 全站排版：消除末行孤字 / 孤行 ---------- */
p, .sec-text, .lead, .card-meta, .contact-value, .slide-overlay p,
.note-box, .table-note, .ui-shot figcaption { text-wrap: balance; }
h1, h2, h3, h4, .sec-title, .sub-title { text-wrap: balance; }

/* ---------- 工作站页配图：仅微调首屏主图高度 ----------
   「白框随图片自适应」已上移为 .page-hero__media / .detail-split figure 的全局规则，
   这里只保留该页 1:1 主图（trainer-station.jpg）的高度上限，保持与核心能力图的视觉平衡。 */
body[data-page="trainer"] .page-hero__media img { max-height: 380px; }

/* ============================================================
   联系我们页：快捷卡 / 表单两栏 / 侧栏 / 移动端联系栏
   ============================================================ */

/* 表单之外的第一备选路径：电话 / 邮箱 / 地址 */
.quick-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.quick-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; text-decoration: none;
  box-shadow: 0 2px 10px rgba(15, 35, 56, .04);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.quick-card:hover, .quick-card:focus-visible {
  border-color: var(--brand); transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 112, 192, .10);
}
.quick-card__label { font-size: .76rem; letter-spacing: .08em; color: var(--muted); }
.quick-card__value { font-size: .97rem; color: var(--ink); line-height: 1.55; word-break: break-word; }
.quick-card__note { font-size: .8rem; color: var(--brand); }

/* 左表单 + 右侧栏 */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-form-col .form-grid { max-width: none; }
.form-subtitle { margin: -4px 0 22px; font-size: .95rem; color: var(--muted); }
.form-field .req { color: #E24C4C; font-style: normal; }
/* 输入框不小于 16px：避免 iOS Safari 聚焦时自动放大页面 */
.form-field input, .form-field select, .form-field textarea { font-size: 16px; }
.form-field input.is-invalid, .form-field select.is-invalid, .form-field textarea.is-invalid { border-color: #E24C4C; }
.form-field input.is-invalid:focus, .form-field select.is-invalid:focus, .form-field textarea.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(226, 76, 76, .14);
}
.field-error { margin: 0; font-size: .8rem; color: #E24C4C; line-height: 1.5; }
.field-error:empty { display: none; }
.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.form-success {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 8px;
  background: #EAF7EF; border: 1px solid #BFE3CC; color: #1B7A44; font-size: .9rem;
}

/* 侧栏三块 */
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.side-block { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.side-block--soft { background: var(--brand-025); border-color: #DCE9F6; }
.side-block h3 { margin: 0 0 12px; font-size: .95rem; color: var(--brand-700); }
.side-contact { display: flex; flex-direction: column; gap: 10px; }
.side-contact__row { display: flex; flex-direction: column; gap: 2px; }
.side-contact__label { font-size: .76rem; letter-spacing: .06em; color: var(--muted); }
.side-contact a { font-size: .92rem; color: var(--ink); text-decoration: none; word-break: break-word; }
.side-contact a:hover, .side-contact a:focus-visible { color: var(--brand); }
.side-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.side-list li { position: relative; padding-left: 16px; font-size: .88rem; line-height: 1.65; color: var(--ink-2); }
.side-list li::before {
  content: ''; position: absolute; left: 0; top: .64em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .55;
}

/* 移动端底部固定联系栏 */
.mobile-contact-bar { display: none; }

/* ---------- 产品构成：一句总述 + 三条编号要点 ---------- */
.compose-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.compose-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.compose-no { padding-top: 1px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--brand); }
.compose-body strong { display: block; margin-bottom: 4px; font-size: .95rem; color: var(--ink); }
.compose-body p { margin: 0; font-size: .88rem; line-height: 1.7; color: var(--muted); }

/* ---------- 对比表：表头浅蓝、目标列加粗、表上导语 ---------- */
.table-intro { margin: 14px 0 0; font-size: .92rem; color: var(--ink-2); }
.data-table th { background: #E8F1FC; color: var(--brand-700); }
.data-table td.is-target { font-weight: 600; color: var(--brand-700); }
.data-table td:last-child { width: 62%; }

/* ---------- 联系页响应式 ---------- */
@media (max-width: 1200px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-side .side-block--soft { grid-row: span 2; }
}
@media (max-width: 820px) {
  .quick-cards { grid-template-columns: 1fr; gap: 12px; }
  .contact-side { grid-template-columns: 1fr; }
  .contact-side .side-block--soft { grid-row: auto; }
  .mobile-contact-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(15, 35, 56, .08);
  }
  .mcb-item {
    padding: 6px 0; text-align: center; font-size: .84rem;
    color: var(--brand-700); font-weight: 600; text-decoration: none;
  }
  .mcb-item:active { background: var(--brand-025); border-radius: 8px; }
  body[data-page="contact"] { padding-bottom: 68px; }
}

/* ---------- 关于我们：公司简介段 ---------- */
.about-intro {
  max-width: 900px; margin: 0 0 26px; font-size: 1rem; line-height: 1.95; color: var(--ink-2);
  text-align: justify; text-justify: inter-ideograph;
}

@media (max-width: 767px) {
  /* 窄栏下两端对齐会把中文撑出字符间隙，改回左对齐 */
  .about-intro, .about-list li { text-align: left; }
}
