/* ==========================================================================
   Wedo Mould — 全站样式
   原则：零外部依赖（旧站引了 bootstrap/gsap/matter.js + 高德地图共 13 个脚本），
        一个文件、无阻塞、图片全部预留尺寸以避免 CLS。
   ========================================================================== */

:root {
  --color-text: #1f2937;
  --color-heading: #0f172a;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-dark: #0f172a;
  --color-primary: #0b6bcb;
  --color-primary-dark: #084f97;
  --color-ok: #15803d;
  --color-todo: #b45309;
  --color-err: #b91c1c;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1200px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 4px 12px rgba(15, 23, 42, .08), 0 20px 48px rgba(15, 23, 42, .10);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* --- 基础 ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--color-heading); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

code { font-family: var(--font-mono); font-size: .875em; background: var(--color-bg-soft);
  padding: .1em .35em; border-radius: 4px; word-break: break-all; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-primary); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }

.center { text-align: center; }
.empty { color: var(--color-muted); padding: 32px 0; }
.link-more { font-weight: 600; }

/* --- 正文排版 ------------------------------------------------------------ */

.prose { max-width: 78ch; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.prose a { text-decoration: underline; }

/* --- 按钮 ---------------------------------------------------------------- */

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2; border: 1px solid transparent;
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); }
.btn--ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,.22); }

/* --- 页头 ---------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(180%) blur(8px);
}

.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }

.site-logo img { width: auto; height: 31px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--color-border); border-radius: 8px;
}
.nav-toggle__bar { display: block; height: 2px; background: var(--color-heading); margin: 4px 0; }

.site-nav { flex: 1; }
.site-nav__list { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav__item { position: relative; }

.site-nav__link {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--color-heading); font-weight: 600; font-size: .93rem; white-space: nowrap;
}
.site-nav__link:hover { background: var(--color-bg-soft); text-decoration: none; }
.site-nav__item.is-active > .site-nav__link { color: var(--color-primary); }

.site-nav__sub {
  position: absolute; left: 0; top: 100%; min-width: 240px;
  list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.site-nav__item.has-children:hover .site-nav__sub,
.site-nav__item.has-children:focus-within .site-nav__sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav__sub-link { display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--color-text); font-size: .9rem; }
.site-nav__sub-link:hover { background: var(--color-bg-soft); text-decoration: none; }

.site-header__aside { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.lang-switch { display: flex; gap: 2px; border: 1px solid var(--color-border); border-radius: 999px; padding: 3px; }
.lang-switch__link { padding: 5px 12px; border-radius: 999px; font-size: .85rem; color: var(--color-muted); white-space: nowrap; }
.lang-switch__link:hover { text-decoration: none; color: var(--color-heading); }
.lang-switch__link.is-current { background: var(--color-primary); color: #fff; }

/* 语言名用全称还是短标签，由屏幕宽度决定（见文末媒体查询） */
.lang-switch__short { display: none; }

/* --- 面包屑 --------------------------------------------------------------- */

.breadcrumb { border-bottom: 1px solid var(--color-border); background: var(--color-bg-soft); }
.breadcrumb__list {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  list-style: none; margin: 0; padding: 10px 0; font-size: .82rem; color: var(--color-muted);
}
.breadcrumb__item + .breadcrumb__item::before { content: "/"; margin-right: 6px; color: var(--color-border); }
.breadcrumb__item a { color: var(--color-muted); }
.breadcrumb__item a:hover { color: var(--color-primary); }

/* --- 首屏轮播 ------------------------------------------------------------ */

.hero-carousel {
  position: relative; background: var(--color-dark); overflow: hidden;
  min-height: 560px; display: flex; align-items: center;
}
.hero-carousel__track { position: absolute; inset: 0; display: flex; transition: transform .5s ease; }
.hero-slide { position: relative; flex: 0 0 100%; }
.hero-slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-carousel__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 14, 30, .86) 0%, rgba(6, 14, 30, .62) 55%, rgba(6, 14, 30, .30) 100%);
}

.hero-carousel__caption { position: relative; color: #fff; padding-top: 88px; padding-bottom: 88px; }
.hero-slide__title { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.4rem); letter-spacing: .01em; margin-bottom: .15em; }
.hero-slide__headline { display: block; font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 700;
  color: #93c5fd; margin-bottom: .15em; letter-spacing: .04em; }
.hero-slide__subtitle { font-size: 1.05rem; font-weight: 600; color: #e2e8f0; margin-bottom: .4em; }
.hero-slide__desc { max-width: 56ch; color: #cbd5e1; }
.hero-slide__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-carousel__dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex;
  gap: 8px; justify-content: center; z-index: 3; }
.hero-carousel__dot {
  width: 30px; height: 4px; border: 0; padding: 0; border-radius: 2px;
  background: rgba(255,255,255,.4); cursor: pointer;
}
.hero-carousel__dot.is-active { background: #fff; }

/* --- 区块 ---------------------------------------------------------------- */

.section { padding: 68px 0; }
.section--alt { background: var(--color-bg-soft); }
.section--intro { border-bottom: 1px solid var(--color-border); }
.section--cta { background: var(--color-dark); color: #e2e8f0; text-align: center; }
.section--cta .section__title { color: #fff; }

.section__title { margin-bottom: .35em; }
.section__desc { color: var(--color-muted); max-width: 62ch; margin-bottom: 1.6em; }
.section__lead { font-size: 1.08rem; max-width: 68ch; color: #374151; }

/* --- 头图 ---------------------------------------------------------------- */

.page-hero { padding: 64px 0; background: var(--color-bg-soft); border-bottom: 1px solid var(--color-border); }
.page-hero--image { background-size: cover; background-position: center; position: relative; color: #fff; }
.page-hero--image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,14,30,.82), rgba(6,14,30,.45));
}
.page-hero--image .container { position: relative; }
.page-hero--image .page-hero__title { color: #fff; }
.page-hero--image .page-hero__subtitle,
.page-hero--image .page-hero__desc { color: #dbeafe; }

.page-hero__eyebrow { color: var(--color-primary); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 10px; }
.page-hero--image .page-hero__eyebrow { color: #93c5fd; }
.page-hero__title { margin-bottom: 8px; }
.page-hero__subtitle { font-size: 1.1rem; font-weight: 600; color: #374151; margin-bottom: 8px; }
.page-hero__desc { max-width: 70ch; color: var(--color-muted); margin: 0; }

/* --- 事实数字 ------------------------------------------------------------ */

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px; margin: 32px 0 24px; padding: 0;
}
.facts__item {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 18px 20px;
}
.section--alt .facts__item { background: #fff; }
.facts__value { font-size: 1.5rem; font-weight: 700; color: var(--color-heading); margin: 0; }
.facts__label { margin: 4px 0 0; font-size: .82rem; color: var(--color-muted); }

/* --- 卡片网格 ------------------------------------------------------------ */

.card-grid {
  display: grid; gap: 22px; padding: 0; margin: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: #cbd5e1; }

.card__link { display: block; color: inherit; padding: 0 0 20px; height: 100%; }
.card__link:hover { text-decoration: none; }

.card__media { display: block; aspect-ratio: 3 / 2; background: var(--color-bg-soft); overflow: hidden; }
.card__media--square { aspect-ratio: 1 / 1; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }

.card__title { font-size: 1.05rem; margin: 16px 20px 6px; }
.card__text { margin: 0 20px; font-size: .9rem; color: var(--color-muted); }
.card__more { display: block; margin: 12px 20px 0; font-size: .85rem; font-weight: 600; color: var(--color-primary); }

.card--plain .card__title { margin-top: 14px; }
.card--compact { padding: 20px; }
.card--compact .card__link { padding: 0; }
.card--compact .card__title { margin: 0 0 6px; }
.card--compact .card__text { margin: 0; }

/* --- 链接列表 ------------------------------------------------------------ */

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list__item { border-bottom: 1px solid var(--color-border); }
.link-list__item a { display: block; padding: 12px 0; font-weight: 600; }
.link-list__item a:hover { text-decoration: none; color: var(--color-primary-dark); }

/* --- 标签 ---------------------------------------------------------------- */

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.tag { background: #eef2ff; border-radius: 999px; }
.tag a { display: block; padding: 4px 14px; font-size: .82rem; font-weight: 600; color: #3730a3; }
.tag a:hover { text-decoration: none; background: #e0e7ff; border-radius: 999px; }

/* --- 画廊 ---------------------------------------------------------------- */

.gallery { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery__figure { margin: 0; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden; height: 100%; }
.gallery__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__caption { padding: 12px 16px; font-size: .86rem; color: var(--color-muted); }
.gallery__label { display: block; color: var(--color-heading); font-size: .95rem; margin-bottom: 4px; }

/* --- 堆叠块（招聘页锚点小节） --------------------------------------------- */

.stack { display: grid; gap: 32px; }
.stack__item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px; }
.stack__title { margin-bottom: .5em; }
.stack__body { display: grid; gap: 22px; grid-template-columns: 1fr; }
.stack__media { width: 100%; aspect-ratio: 14 / 9; object-fit: cover; border-radius: var(--radius); }
.stack__text p:last-child { margin-bottom: 0; }

@media (min-width: 760px) {
  .stack__body { grid-template-columns: 300px 1fr; align-items: start; }
}

/* --- 产品详情 ------------------------------------------------------------ */

.product-hero { padding: 52px 0; background: var(--color-bg-soft); border-bottom: 1px solid var(--color-border); }
.product-hero__inner { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }

@media (min-width: 900px) {
  .product-hero__inner { grid-template-columns: 1.1fr 1fr; }
}

.product-hero__media { background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden; }
.product-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.product-hero__model { font-size: .82rem; color: var(--color-muted); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: 8px; }
.product-hero__title { margin-bottom: 12px; }
.product-hero__desc { color: #374151; max-width: 60ch; }
.product-hero__actions { margin-top: 24px; }

.spec-table-wrapper { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; max-width: 720px; background: #fff; }
.spec-table th, .spec-table td { border: 1px solid var(--color-border); padding: 11px 16px; text-align: left; font-size: .92rem; }
.spec-table th { background: var(--color-bg-soft); width: 40%; font-weight: 600; white-space: nowrap; }

/* --- 联系页 -------------------------------------------------------------- */

.contact-grid { display: grid; gap: 44px; grid-template-columns: 1fr; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
}

.contact-list { margin: 24px 0 0; }
.contact-list__item { margin-bottom: 16px; }
.contact-list__item dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--color-muted); margin-bottom: 2px; }
.contact-list__item dd { margin: 0; font-weight: 600; color: var(--color-heading); }

/* --- 表单 ---------------------------------------------------------------- */

.inquiry-form {
  max-width: 760px; margin: 0 auto; padding: 32px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
.section > .container > .inquiry-form { margin-top: 8px; }
.inquiry-form__title { margin-bottom: .2em; }
.inquiry-form__desc { color: var(--color-muted); margin-bottom: 1.6em; }
.inquiry-form__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 20px; }

.field { display: block; }
.field--full { grid-column: 1 / -1; }
.field__label { display: block; font-size: .85rem; font-weight: 600; color: var(--color-heading); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; font: inherit; font-size: .95rem;
  border: 1px solid var(--color-border); border-radius: 8px; background: #fff; color: var(--color-text);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--color-primary); outline: none;
  box-shadow: 0 0 0 3px rgba(11, 107, 203, .15); }

/* 字段级错误 */
.field--error input, .field--error textarea { border-color: var(--color-error, #c0392b); }
.field__error { display: block; margin-top: 5px; font-size: .82rem; color: var(--color-error, #c0392b); }

/* 提交失败的汇总提示 */
.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; font-size: .9rem; }
.alert--error { background: #fdf1f0; border: 1px solid #f0c4bf; color: #8c2b21; }
.alert__title { font-weight: 600; margin: 0; }
.alert__detail { margin: 8px 0 0; }
.alert__hint { margin: 6px 0 0; font-size: .85rem; opacity: .85; }

/* --- 询盘附件 ------------------------------------------------------------- */

.attach { border: 1px dashed var(--color-border); border-radius: 10px; padding: 14px; background: #fbfcfe; transition: border-color .15s; }
.attach:focus-within { border-color: var(--color-primary); }
.field--error .attach { border-color: var(--color-error, #c0392b); background: #fdf7f6; }

/* 原生 file 控件在英文/中文下的按钮文案不一致、样式也没法统一，
   所以视觉上换成自己的按钮，原生 input 保留可聚焦但不可见 */
.attach__input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.attach__picker {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  border: 1px solid var(--color-primary); color: var(--color-primary); background: #fff;
}
.attach__picker:hover { background: var(--color-primary); color: #fff; }
.attach__input:focus-visible + .attach__picker { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.attach__picker-icon { font-size: 1.05em; line-height: 1; }

.attach__hint { margin: 10px 0 0; font-size: .82rem; color: var(--color-muted); }
.attach__hint--warn { color: var(--color-error, #c0392b); font-weight: 600; }

.attach__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.attach__item {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 8px; background: #fff;
  border: 1px solid var(--color-border); font-size: .85rem;
}
.attach__item.is-invalid { border-color: var(--color-error, #c0392b); background: #fdf7f6; }
.attach__name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; color: var(--color-heading); }
.attach__size { flex: 0 0 auto; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.attach__warn { flex: 1 1 100%; color: var(--color-error, #c0392b); font-size: .8rem; }

/* 蜜罐：不能 display:none（有些机器人会跳过），用视觉隐藏 */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- 分页 ---------------------------------------------------------------- */

.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 40px; }
.pager__link {
  min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--color-border); color: var(--color-heading); font-size: .9rem; font-weight: 600;
}
.pager__link:hover { text-decoration: none; border-color: var(--color-primary); }
.pager__link.is-current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pager__total { margin-left: auto; font-size: .82rem; color: var(--color-muted); }

/* --- 搜索 ---------------------------------------------------------------- */

.search-form { display: flex; gap: 10px; max-width: 560px; margin-top: 20px; }
.search-form input {
  flex: 1; padding: 11px 16px; font: inherit; font-size: .95rem;
  border: 1px solid var(--color-border); border-radius: 999px;
}
.search-meta { color: var(--color-muted); margin-bottom: 28px; }

/* --- 感谢页 -------------------------------------------------------------- */

.thanks__icon {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  background: #dcfce7; color: var(--color-ok); font-size: 2rem; line-height: 64px; font-weight: 700;
}

/* --- 错误页 --------------------------------------------------------------- */

.error-page { padding: 96px 0; text-align: center; }
.error-page__code { font-size: 4.5rem; font-weight: 800; color: var(--color-primary); margin: 0; line-height: 1; }
.error-page__title { margin: 12px 0 10px; }
.error-page__desc { color: var(--color-muted); max-width: 60ch; margin: 0 auto 24px; }
.error-page__detail { margin-bottom: 24px; }
.error-page__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --- 自检面板（debug） ----------------------------------------------------- */

.panel { padding: 56px 0; border-bottom: 1px solid var(--color-border); }
.panel__title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.panel__meta { color: var(--color-muted); font-size: .875rem; margin-top: 16px; }

.badge { font-size: .7rem; font-weight: 600; background: #eef2ff; color: #3730a3;
  border-radius: 999px; padding: 3px 10px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.table caption { text-align: left; font-weight: 700; color: var(--color-heading); padding: 0 0 10px; }
.table th, .table td { border: 1px solid var(--color-border); padding: 9px 12px; text-align: left; vertical-align: top; }
.table th { background: var(--color-bg-soft); font-weight: 600; white-space: nowrap; }
.table--compact th, .table--compact td { padding: 6px 10px; }
.table tfoot th { background: var(--color-bg-soft); }

/* 宽表格（如 Equipment List 的设备清单）在窄屏横向滚动，不撑破容器 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.6em; }
.table-scroll > .table { min-width: 520px; }

/* 正文里的分节标题（设备清单按机台分组） */
.prose h3 { margin: 2em 0 .7em; font-size: 1.05rem; color: var(--color-heading); }
.prose h3:first-child { margin-top: 0; }

.ok { color: var(--color-ok); font-weight: 600; }
.todo { color: var(--color-todo); font-weight: 600; }
.err { color: var(--color-err); font-weight: 600; }

/* --- 页脚 ---------------------------------------------------------------- */

.site-footer { background: var(--color-dark); color: #cbd5e1; }
.site-footer a { color: #e2e8f0; }
.site-footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px;
  padding-top: 56px; padding-bottom: 40px;
}
.site-footer__title { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer__desc { font-size: .9rem; color: #94a3b8; }
.site-footer__cert { font-size: .9rem; color: #7dd3fc; font-weight: 600; }
.site-footer__list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.site-footer__list li { margin-bottom: 6px; }
.site-footer__address { font-style: normal; font-size: .9rem; color: #94a3b8; }
.site-footer__address p { margin-bottom: 6px; }

.site-footer__bottom { border-top: 1px solid rgba(148, 163, 184, .2); }
.site-footer__bottom-inner {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px; font-size: .82rem; color: #94a3b8;
}
.site-footer__bottom-inner p { margin: 0; }

/* --- 响应式 --------------------------------------------------------------- */

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--color-border);
    padding: 10px 20px 20px; display: none;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; }
  .site-nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 16px;
  }
  /* 页头在窄屏的排布。
     390px 视口（iPhone 6.1"）下：可用 350px = 20px 内边距 ×2 之外的全部。
     logo 173 + 间隔 40 + 汉堡 44 = 257px，只剩 93px 给语言切换器，
     而 "English" + "简体中文" 全称约 162px —— 会溢出，被 body{overflow-x:hidden} 裁掉。
     所以窄屏改用短标签（EN / 中文，约 87px），同时把 logo 和间隔收小。 */
  .site-header__inner { gap: 12px; min-height: 64px; }

  /* 空间不够时该谁让位：logo 是装饰性的，可以缩；语言切换是功能性控件，不能被裁。
     手机上图省事让所有 flex 子项平均压缩，结果就是语言切换器被挤出屏幕。 */
  .site-logo { flex: 0 1 auto; min-width: 0; }
  .site-logo img { height: 26px; max-width: 100%; }
  .nav-toggle { flex: 0 0 auto; width: 40px; height: 40px; }
  .site-header__aside { flex: 0 0 auto; margin-left: 0; }

  .lang-switch__full { display: none; }
  .lang-switch__short { display: inline; }
  .lang-switch__link { padding: 5px 10px; font-size: .8rem; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-slide { min-height: 420px; }
  .section { padding: 48px 0; }
  .inquiry-form { padding: 22px; }
}

/* 超窄屏（320~360px，如 iPhone SE 一代）：再收一档，
   320px 视口可用 280px，按上面的尺寸约需 297px，仍会溢出 17px */
@media (max-width: 360px) {
  .site-header__inner { gap: 8px; }
  .site-logo img { height: 22px; }
  .lang-switch__link { padding: 5px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero-carousel__track { transition: none; }
}
