/* ============================================================
   物易联传感 官网主样式
   结构：基础重置 → 通用组件 → 页头页脚 → 各区块 → 内页 → 响应式
   ============================================================ */

@import url("variables.css");

/* ------------------------------------------------------------
   基础重置
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

html {
  /* 移动端导航抽屉用 translateX(100%) 藏在屏幕外，会把文档撑宽 330px。
     在 html 上用 clip（不是 hidden）裁掉：clip 不产生滚动容器，
     因此不会破坏页头的 position: sticky。老浏览器不支持时该声明被忽略，
     仍有 body 的 overflow-x: hidden 兜底。 */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 1em; }

a { color: var(--ink); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand); }

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 屏幕阅读器专用（保留可访问性但不占视觉空间） */
.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; top: -60px; left: 0; z-index: var(--z-top);
  padding: 10px 18px; background: var(--brand); color: #fff;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ------------------------------------------------------------
   布局容器
   ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-wide { max-width: var(--wrap-wide); }

.section { padding: var(--sec-py) 0; }
.section-sm { padding: var(--sec-py-sm) 0; }
.section-tint { background: var(--tint-4); }
.section-tint-2 { background: var(--tint-3); }
.section-dark { background: var(--dark-grad); color: rgba(255, 255, 255, 0.78); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

/* ------------------------------------------------------------
   区块标题：英文小标签 + 中文主标题
   ------------------------------------------------------------ */
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head--left { text-align: left; }

.sec-head__label {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.sec-head__label::after {
  content: "";
  display: block;
  width: 34px; height: 2px;
  background: var(--brand);
  margin: 12px auto 0;
}
.sec-head--left .sec-head__label::after { margin-left: 0; }

.sec-head__title {
  font-size: var(--fs-h2);
  margin: 0 0 14px;
  color: var(--ink);
}
.sec-head__desc {
  max-width: 720px;
  margin: 0 auto;
  color: var(--body);
  font-size: var(--fs-base);
}
.sec-head--left .sec-head__desc { margin-left: 0; }
.section-dark .sec-head__title { color: #fff; }
.section-dark .sec-head__desc { color: rgba(255, 255, 255, 0.7); }

/* ------------------------------------------------------------
   按钮
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-base);
  font-weight: 500;
  text-align: center;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow-brand); transform: translateY(-1px); }

.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--brand); color: #fff; }

.btn--ghost { border-color: rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand); color: #fff; }

.btn--sm { padding: 8px 20px; font-size: var(--fs-sm); }
.btn--lg { padding: 15px 40px; font-size: var(--fs-lg); }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; pointer-events: none; }

/* 文字箭头链接 */
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-size: var(--fs-sm); font-weight: 500;
}
.link-more::after { content: "→"; transition: transform var(--dur) var(--ease); }
.link-more:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------
   顶部信息条
   ------------------------------------------------------------ */
.topbar {
  background: var(--dark-1);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-xs);
  line-height: 38px;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { color: rgba(255, 255, 255, 0.72); }
.topbar a:hover { color: var(--brand); }
.topbar__contact { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar__contact span { display: inline-flex; align-items: center; gap: 6px; }
.topbar__right { display: flex; align-items: center; gap: 18px; }

.lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch a { padding: 0 2px; }
.lang-switch a.is-active { color: var(--brand); font-weight: 600; }
.lang-switch .sep { color: rgba(255, 255, 255, 0.28); }

/* ------------------------------------------------------------
   页头与导航
   ------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line-light);
  transition: box-shadow var(--dur) var(--ease);
}
.header.is-stuck { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo img { height: 42px; width: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.logo__name { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: 0.5px; }
.logo__en {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.logo:hover .logo__name { color: var(--brand); }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; margin: 0; }

.nav__link {
  display: block;
  padding: 0 17px;
  line-height: 78px;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 20px;
  width: 0; height: 2px;
  background: var(--brand);
  transform: translateX(-50%);
  transition: width var(--dur) var(--ease);
}
.nav__link:hover, .nav__item.is-active > .nav__link { color: var(--brand); }
.nav__link:hover::after, .nav__item.is-active > .nav__link::after { width: 22px; }

/* 下拉菜单 */
.nav__sub {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 190px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease);
}
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__sub a {
  display: block;
  padding: 9px 20px;
  font-size: var(--fs-sm);
  color: var(--body);
  white-space: nowrap;
}
.nav__sub a:hover { background: var(--tint-3); color: var(--brand); }

/* 手机端导航抽屉里的语言切换（桌面端由顶部信息条承担，故默认隐藏） */
.nav__lang { display: none; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 0; background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  transition: all var(--dur) var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ------------------------------------------------------------
   首页轮播
   ------------------------------------------------------------ */
.hero { position: relative; background: var(--dark-1); }
.hero__swiper { width: 100%; }

.hero__slide {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,28,34,0.72) 0%, rgba(20,28,34,0.38) 52%, rgba(20,28,34,0.12) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 660px; color: #fff; }
.hero__title {
  font-size: 46px;
  line-height: 1.24;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.hero__sub {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__slide--center { text-align: center; justify-content: center; }
.hero__slide--center .hero__content { margin: 0 auto; }
.hero__slide--center .hero__actions { justify-content: center; }
.hero__slide--center::after {
  background: linear-gradient(180deg, rgba(20,28,34,0.55) 0%, rgba(20,28,34,0.68) 100%);
}

.hero__pagination {
  position: absolute;
  bottom: 28px !important;
  left: 50% !important;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 10px;
}
.hero__pagination .swiper-pagination-bullet {
  width: 30px; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.42);
  opacity: 1; margin: 0 !important;
  transition: all var(--dur) var(--ease);
}
.hero__pagination .swiper-pagination-bullet-active { background: var(--brand); width: 46px; }

/* ------------------------------------------------------------
   产品品类（01–05 编号卡片）
   ------------------------------------------------------------ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.cat-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 30px 22px 26px;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.cat-card::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.cat-card:hover::before { transform: scaleX(1); }

.cat-card__code {
  font-family: var(--font-en);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--tint-1);
  letter-spacing: -1px;
  transition: color var(--dur) var(--ease);
}
.cat-card:hover .cat-card__code { color: var(--brand-soft); }

.cat-card__icon { height: 58px; margin: 12px 0 14px; }
.cat-card__icon img { height: 100%; width: auto; object-fit: contain; }

.cat-card__name {
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.cat-card__en {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.cat-card__desc {
  font-size: var(--fs-xs);
  color: var(--body);
  line-height: 1.7;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-card__count {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line-light);
  font-size: var(--fs-xs); color: var(--brand); font-weight: 500;
}

/* ------------------------------------------------------------
   通用卡片网格
   ------------------------------------------------------------ */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ------------------------------------------------------------
   手机端横向滑动区
   用于解决方案、行业应用、公司优势这类「宣传型」卡片：
   竖排 6 张要滑 2.5 屏，横滑只需 0.4 屏，且卡片露出边缘提示可滑动。
   桌面端仍按普通网格排布，互不影响。
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .grid--swipe {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    /* 让卡片能贴到屏幕边缘，滑动时更自然 */
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 14px;
    scrollbar-width: none;
  }
  .grid--swipe::-webkit-scrollbar { display: none; }

  .grid--swipe > * {
    /* 约 2/3 屏宽：露出下一张的边缘，暗示「可以滑」 */
    flex: 0 0 68%;
    max-width: 260px;
    scroll-snap-align: start;
  }

  /* 少量卡片（如 2 张）时不启用滑动，直接并排更省事 */
  .grid--swipe[data-count="2"] > * { flex: 0 0 calc(50% - 6px); }

  /* 滑动提示条 */
  .grid--swipe::after {
    content: "";
    flex: 0 0 1px;
  }
}

.card {
  display: block;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-light);
  transition: all var(--dur) var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tint-4);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }

/* 产品实拍图：留白构图，用 contain 完整显示，裁切会切掉仪表本体 */
.card__media--product { background: #fff; }
.card__media--product img { object-fit: contain; padding: 12px; }
.card:hover .card__media--product img { transform: scale(1.04); }

.card__body { padding: 20px 22px 24px; }
.card__title {
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card__title { color: var(--brand); }
.card__desc {
  font-size: var(--fs-sm);
  color: var(--body);
  line-height: 1.72;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 0;
}
.card__meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line-light);
  font-size: var(--fs-xs); color: var(--muted);
}

/* 方案卡（图上压字） */
.solution-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; }
.solution-card__media { aspect-ratio: 10 / 7; overflow: hidden; background: var(--tint-1); }
.solution-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.solution-card:hover .solution-card__media img { transform: scale(1.07); }
.solution-card__overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 24px 24px;
  background: linear-gradient(180deg, rgba(28,38,46,0) 0%, rgba(28,38,46,0.86) 62%);
  color: #fff;
}
.solution-card__title { color: #fff; font-size: var(--fs-h4); margin-bottom: 6px; }
.solution-card__desc {
  color: rgba(255,255,255,0.76); font-size: var(--fs-xs); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 0;
  max-height: 0; opacity: 0;
  transition: all var(--dur) var(--ease);
}
.solution-card:hover .solution-card__desc { max-height: 60px; opacity: 1; margin-top: 8px; }

/* ------------------------------------------------------------
   公司优势 + 数字
   ------------------------------------------------------------ */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.adv-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: all var(--dur) var(--ease);
}
.adv-card:hover {
  background: rgba(68, 188, 185, 0.12);
  border-color: rgba(68, 188, 185, 0.4);
  transform: translateY(-5px);
}
.adv-card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(68, 188, 185, 0.16);
  color: var(--brand);
  margin-bottom: 18px;
}
.adv-card__icon svg { width: 26px; height: 26px; }
.adv-card__title { font-size: var(--fs-h4); color: #fff; margin-bottom: 10px; }
.adv-card__desc { font-size: var(--fs-sm); color: rgba(255,255,255,0.66); line-height: 1.75; margin: 0; }

/* 数字滚动 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 52px;
  padding-top: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.stat { text-align: center; }
.stat__value {
  font-family: var(--font-en);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -1px;
}
.stat__value .suffix { font-size: 24px; margin-left: 2px; }
.stat__label { font-size: var(--fs-sm); color: rgba(255,255,255,0.62); margin-top: 10px; }

/* ------------------------------------------------------------
   新闻
   ------------------------------------------------------------ */
/* 新闻搜索框。首页那份手机端才出现（见下方媒体查询） */
.news-search {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 28px;
}
.news-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-base);
  font-family: inherit;
}
.news-search input:focus { outline: none; border-color: var(--brand); }
.news-search--home { display: none; }

.news-list { display: flex; flex-direction: column; gap: 2px; background: var(--line-light); border-radius: var(--radius-lg); overflow: hidden; }

.news-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  align-items: center;
  background: #fff;
  padding: 18px 24px;
  transition: background var(--dur) var(--ease);
}
.news-row:hover { background: var(--tint-4); }
.news-row__media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--tint-4); }
.news-row__media img { width: 100%; height: 100%; object-fit: cover; }
.news-row__title {
  font-size: var(--fs-lg); font-weight: 700; color: var(--ink);
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.news-row:hover .news-row__title { color: var(--brand); }
.news-row__desc {
  font-size: var(--fs-sm); color: var(--body); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-row__date {
  font-family: var(--font-en);
  font-size: var(--fs-sm);
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}
.news-row__date .day { display: block; font-size: 22px; font-weight: 700; color: var(--brand); line-height: 1.1; }

/* 新闻卡片（列表页用） */
.news-card__date {
  position: absolute; left: 0; top: 0;
  background: var(--brand); color: #fff;
  padding: 6px 14px;
  font-family: var(--font-en); font-size: 12px; letter-spacing: 0.5px;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--brand-soft);
  color: var(--brand-darker);
}
.tag--top { background: var(--brand); color: #fff; }

/* ------------------------------------------------------------
   合作伙伴
   ------------------------------------------------------------ */
.partner-swiper { padding-bottom: 8px; }
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  height: 84px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: all var(--dur) var(--ease);
}
.partner-logo img {
  max-height: 100%; max-width: 100%;
  filter: grayscale(1); opacity: 0.62;
  transition: all var(--dur) var(--ease);
}
.partner-logo:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.partner-logo:hover img { filter: none; opacity: 1; }

/* ------------------------------------------------------------
   留言表单
   ------------------------------------------------------------ */
.inquiry { background: var(--dark-grad); color: rgba(255,255,255,0.75); }
.inquiry__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }

/* 深色底上的标题与描述必须提亮，否则 #333 的默认标题色会沉进深蓝背景里 */
.inquiry h1, .inquiry h2, .inquiry h3, .inquiry h4 { color: #fff; }
.inquiry .sec-head__desc { color: rgba(255, 255, 255, 0.72); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.62);
  font-weight: 500;
}
.form-field label .req { color: var(--brand); margin-left: 3px; }

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: var(--fs-sm);
  transition: all var(--dur) var(--ease);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255, 255, 255, 0.34); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.1);
}
.form-field textarea { resize: vertical; min-height: 104px; }
.form-field select option { color: var(--ink); background: #fff; }

/* 浅色背景下的表单（内页用） */
.form-light .form-field label { color: var(--body); }
.form-light .form-field input,
.form-light .form-field textarea,
.form-light .form-field select {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.form-light .form-field input::placeholder,
.form-light .form-field textarea::placeholder { color: var(--muted); }
.form-light .form-field input:focus,
.form-light .form-field textarea:focus,
.form-light .form-field select:focus { border-color: var(--brand); }

/* 蜜罐字段：对用户隐藏，机器人会填 */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-msg { margin-top: 14px; font-size: var(--fs-sm); min-height: 22px; }
.form-msg.is-ok { color: var(--brand); }
.form-msg.is-err { color: #ff9a96; }

/* ------------------------------------------------------------
   页脚
   ------------------------------------------------------------ */
.footer { background: var(--dark-1); color: rgba(255, 255, 255, 0.6); padding-top: 62px; font-size: var(--fs-sm); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 46px;
  padding-bottom: 48px;
}
.footer h4 {
  color: #fff; font-size: var(--fs-h4); margin-bottom: 20px;
  position: relative; padding-bottom: 12px;
}
.footer h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; background: var(--brand);
}
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 11px; }
.footer__links a { color: rgba(255, 255, 255, 0.6); font-size: var(--fs-sm); }
.footer__links a:hover { color: var(--brand); padding-left: 4px; }

.footer__contact { list-style: none; padding: 0; margin: 0; }
.footer__contact li { display: flex; gap: 10px; margin-bottom: 13px; line-height: 1.65; }
.footer__contact .ico { color: var(--brand); flex-shrink: 0; width: 16px; }

.footer__qr { display: flex; gap: 20px; margin-top: 20px; }
.footer__qr figure { margin: 0; text-align: center; }
.footer__qr img {
  width: 88px; height: 88px;
  background: #fff; padding: 5px;
  border-radius: var(--radius);
}
.footer__qr figcaption { font-size: 12px; margin-top: 7px; color: rgba(255,255,255,0.5); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.42);
}
.footer__bottom a { color: rgba(255, 255, 255, 0.42); }
.footer__bottom a:hover { color: var(--brand); }

/* 回到顶部 */
.to-top {
  position: fixed; right: 24px; bottom: 28px;
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-brand);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all var(--dur) var(--ease);
  z-index: var(--z-header);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-dark); }

/* 移动端底部快捷条 */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: var(--z-header);
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(44,56,68,0.08);
}
.mobile-bar a {
  flex: 1;
  padding: 9px 4px;
  text-align: center;
  font-size: 11px;
  color: var(--body);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.mobile-bar a svg { width: 19px; height: 19px; color: var(--brand); }
.mobile-bar a.is-primary { background: var(--brand); color: #fff; }
.mobile-bar a.is-primary svg { color: #fff; }

/* 当前页高亮：顶部指示条 + 品牌色图标文字。
   刻意不用背景填充，以免和实心的「咨询」按钮混淆。 */
.mobile-bar a:not(.is-primary) { position: relative; color: var(--muted); }
.mobile-bar a:not(.is-primary) svg { color: var(--muted); }
.mobile-bar a.is-active { color: var(--brand); font-weight: 600; }
.mobile-bar a.is-active svg { color: var(--brand); }
.mobile-bar a.is-active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--brand);
}

/* 点击反馈：手指按下时立即可见，避免「点了没反应」的错觉 */
.mobile-bar a:active { background: var(--tint-3); }
.mobile-bar a.is-primary:active { background: var(--brand-dark); }

/* ------------------------------------------------------------
   内页：页头横幅与面包屑
   ------------------------------------------------------------ */
.page-banner {
  position: relative;
  padding: 84px 0;
  background: var(--dark-grad);
  color: #fff;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 30%, rgba(68,188,185,0.22) 0%, transparent 52%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 68px);
}
.page-banner__inner { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: var(--fs-h1); margin-bottom: 10px; }
.page-banner p { color: rgba(255,255,255,0.68); max-width: 660px; margin: 0; }
.page-banner--image { background-size: cover; background-position: center; }
.page-banner--image::before { background: rgba(28,38,46,0.66); }

.breadcrumb { background: var(--tint-4); border-bottom: 1px solid var(--line-light); font-size: var(--fs-xs); }
.breadcrumb ol {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 13px 0;
}
.breadcrumb li { margin: 0; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

/* ------------------------------------------------------------
   内页通用
   ------------------------------------------------------------ */
.layout-side { display: grid; grid-template-columns: 264px 1fr; gap: 40px; align-items: start; }

.side-nav {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  position: sticky; top: 96px;
}
.side-nav__head {
  background: var(--brand); color: #fff;
  padding: 17px 22px;
  font-size: var(--fs-h4); font-weight: 700;
}
.side-nav__list { list-style: none; margin: 0; padding: 0; }
.side-nav__list li { margin: 0; border-bottom: 1px solid var(--line-light); }
.side-nav__list li:last-child { border-bottom: 0; }
.side-nav__list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  font-size: var(--fs-sm);
  color: var(--body);
  transition: all var(--dur) var(--ease);
}
.side-nav__list a::after { content: "›"; color: var(--line); font-size: 17px; }
.side-nav__list a:hover { background: var(--tint-3); color: var(--brand); padding-left: 27px; }
.side-nav__list li.is-active a { background: var(--tint-2); color: var(--brand); font-weight: 600; border-left: 3px solid var(--brand); }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 42px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--body);
  background: #fff;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .is-disabled { opacity: 0.4; pointer-events: none; }

.empty {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--tint-4);
  border-radius: var(--radius-lg);
}

/* 富文本内容排版 */
.rich { font-size: var(--fs-base); line-height: 1.9; color: var(--body); }
.rich h2 { font-size: 22px; margin: 1.6em 0 0.6em; padding-left: 14px; border-left: 4px solid var(--brand); }
.rich h3 { font-size: 18px; margin: 1.5em 0 0.55em; color: var(--ink); }
.rich h4 { font-size: 16px; margin: 1.3em 0 0.5em; }
.rich p { margin: 0 0 1.1em; }
.rich ul, .rich ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.rich li { margin-bottom: 0.5em; }
.rich img { border-radius: var(--radius); margin: 1em 0; }
.rich blockquote {
  margin: 1.2em 0; padding: 14px 20px;
  background: var(--tint-4);
  border-left: 4px solid var(--brand);
  color: var(--body);
}
.rich table { margin: 1.2em 0; border: 1px solid var(--line); }
.rich th, .rich td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.rich th { background: var(--tint-4); color: var(--ink); font-weight: 600; }
.rich a { color: var(--brand); text-decoration: underline; }

/* ------------------------------------------------------------
   产品详情
   ------------------------------------------------------------ */
.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }

.gallery__main {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--tint-4);
  aspect-ratio: 1 / 1;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery__thumb {
  width: 76px; height: 76px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tint-4);
  padding: 0;
  transition: border-color var(--dur) var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active, .gallery__thumb:hover { border-color: var(--brand); }

.product-info h1 { font-size: 30px; margin-bottom: 6px; }
.product-info__model {
  font-family: var(--font-en);
  font-size: var(--fs-lg);
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.product-info__summary { color: var(--body); line-height: 1.85; margin-bottom: 22px; }

.key-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.key-spec {
  background: var(--tint-4);
  border-radius: var(--radius);
  padding: 13px 15px;
  border-left: 3px solid var(--brand);
}
.key-spec dt { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.key-spec dd { margin: 0; font-size: var(--fs-sm); color: var(--ink); font-weight: 600; line-height: 1.5; }

/* 参数表 */
.spec-table { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.spec-table table { margin: 0; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { padding: 12px 18px; border-bottom: 1px solid var(--line-light); text-align: left; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th {
  width: 220px;
  background: var(--tint-4);
  color: var(--ink);
  font-weight: 600;
}
.spec-table tr:hover td, .spec-table tr:hover th { background: var(--tint-3); }

/* 内容选项卡 */
.tabs__nav { display: flex; gap: 4px; border-bottom: 2px solid var(--line-light); margin-bottom: 28px; flex-wrap: wrap; }
.tabs__btn {
  padding: 13px 28px;
  border: 0; background: transparent;
  font-size: var(--fs-lg); font-weight: 600; color: var(--body);
  position: relative;
  transition: color var(--dur) var(--ease);
}
.tabs__btn::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--brand);
  transform: scaleX(0); transition: transform var(--dur) var(--ease);
}
.tabs__btn:hover { color: var(--brand); }
.tabs__btn.is-active { color: var(--brand); }
.tabs__btn.is-active::after { transform: scaleX(1); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: fadeUp 0.4s var(--ease); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 特点/应用要点列表 */
.dot-list { list-style: none; padding: 0; margin: 0; }
.dot-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  line-height: 1.75;
}
.dot-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

/* ------------------------------------------------------------
   产品选型工具
   ------------------------------------------------------------ */
.sel-step { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.sel-step__num {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--font-en); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  align-self: center;
}
.sel-step__title { margin: 0; font-size: var(--fs-h3); }
.sel-step__hint { color: var(--muted); font-size: var(--fs-sm); }

/* 测量类型选择 */
.sel-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sel-cat {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  padding: 22px 14px 18px;
  background: #fff;
  border: 2px solid var(--line-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: all var(--dur) var(--ease);
}
.sel-cat:hover { border-color: var(--brand-lighter); transform: translateY(-3px); }
.sel-cat.is-active {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(68, 188, 185, 0.18);
}
.sel-cat__code {
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  color: var(--brand); letter-spacing: 1px;
}
.sel-cat__img { height: 76px; display: flex; align-items: center; }
.sel-cat__img img { max-height: 100%; width: auto; object-fit: contain; }
.sel-cat__name { font-size: var(--fs-base); font-weight: 700; color: var(--ink); }
.sel-cat__en {
  font-family: var(--font-en); font-size: 10.5px;
  letter-spacing: 0.6px; color: var(--muted); text-transform: uppercase;
}
.sel-cat.is-active .sel-cat__name { color: var(--brand); }

/* 面板 + 结果 两栏 */
.sel-layout { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }

.sel-panel {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  position: sticky; top: 96px;
  overflow: hidden;
}
.sel-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-light);
  background: var(--tint-4);
  font-size: var(--fs-sm);
}
.sel-reset {
  border: 0; background: transparent;
  color: var(--brand); font-size: var(--fs-xs); cursor: pointer;
  font-family: inherit; padding: 0;
}
.sel-reset:hover { text-decoration: underline; }
.sel-panel__body { padding: 18px; }

/* 手机端才出现：把筛选区收起来，避免一屏全是输入项 */
.sel-panel__toggle { display: none; }
.sel-panel__count {
  margin-left: auto;
  margin-right: 10px;
  font-size: 12px;
  color: #fff;
  background: var(--brand);
  border-radius: 20px;
  padding: 2px 9px;
  font-weight: 600;
}

.sel-group { margin-bottom: 20px; }
.sel-group:last-child { margin-bottom: 0; }
.sel-label {
  display: block;
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--body); margin-bottom: 9px;
}
.sel-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.sel-range { display: flex; align-items: center; gap: 8px; }
.sel-range input {
  width: 100%; min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
}
.sel-range input:focus { outline: none; border-color: var(--brand); }
.sel-range__sep { color: var(--muted); flex-shrink: 0; }
.sel-range__unit { font-size: var(--fs-xs); color: var(--muted); flex-shrink: 0; white-space: nowrap; }

/* 选项标签 */
.sel-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sel-chip { position: relative; cursor: pointer; margin: 0; }
.sel-chip input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.sel-chip span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: var(--fs-xs);
  color: var(--body);
  background: #fff;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.sel-chip:hover span { border-color: var(--brand-lighter); color: var(--brand); }
.sel-chip input:checked + span {
  background: var(--brand); border-color: var(--brand);
  color: #fff; font-weight: 500;
}
.sel-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 结果栏 */
.sel-results__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--tint-4);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
}
.sel-results__bar strong {
  font-family: var(--font-en); font-size: 26px;
  color: var(--brand); line-height: 1;
}
.sel-results__label { font-size: var(--fs-sm); color: var(--body); margin-left: 6px; }
.sel-active { font-size: var(--fs-xs); color: var(--muted); text-align: right; }

.sel-list { display: flex; flex-direction: column; gap: 14px; }

.sel-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: all var(--dur) var(--ease);
}
.sel-card:hover { border-color: var(--brand-lighter); box-shadow: var(--shadow); }

.sel-card__media {
  display: flex; align-items: center; justify-content: center;
  background: var(--tint-4);
  border-radius: var(--radius);
  aspect-ratio: 1;
  overflow: hidden;
}
.sel-card__media img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; padding: 10px;
}
.sel-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.sel-card__model {
  font-family: var(--font-en); font-size: var(--fs-lg); font-weight: 700;
  color: var(--brand);
}
.sel-card__match {
  font-size: 11px; padding: 2px 9px; border-radius: 20px;
  background: var(--brand-soft); color: var(--brand-darker); font-weight: 600;
}
.sel-card__name { font-size: var(--fs-h4); margin: 0 0 6px; }
.sel-card__desc {
  font-size: var(--fs-sm); color: var(--body); line-height: 1.7;
  margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sel-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sel-badge {
  font-size: 11.5px; padding: 3px 9px; border-radius: 3px;
  background: var(--tint-4); color: var(--body);
  border: 1px solid var(--line-light);
}
.sel-badge--soft { color: var(--muted); }
.sel-badge--ok { background: var(--brand-soft); color: var(--brand-darker); border-color: transparent; font-weight: 600; }

.sel-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 无结果 */
.sel-empty {
  text-align: center;
  padding: 56px 24px;
  background: var(--tint-4);
  border-radius: var(--radius-lg);
}
.sel-empty__icon { color: var(--line); margin-bottom: 14px; }
.sel-empty__icon svg { width: 48px; height: 48px; }
.sel-empty h3 { margin-bottom: 8px; }
.sel-empty p { color: var(--body); margin-bottom: 20px; }
.sel-empty__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 配套附件 */
.sel-acc { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-light); }
.sel-acc__title { font-size: var(--fs-h4); margin-bottom: 14px; }
.sel-acc__list { display: flex; flex-wrap: wrap; gap: 12px; }
.sel-acc__item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--ink);
  background: #fff;
  transition: all 0.18s var(--ease);
}
.sel-acc__item:hover { border-color: var(--brand); color: var(--brand); }
.sel-acc__item img {
  width: 42px; height: 42px; object-fit: contain;
  background: var(--tint-4); border-radius: 3px;
}
.sel-acc__item small { color: var(--muted); font-size: 12.5px; }

@media (max-width: 992px) {
  .sel-cats { grid-template-columns: repeat(2, 1fr); }
  .sel-layout { grid-template-columns: 1fr; gap: 22px; }
  .sel-panel { position: static; }
  .sel-active { text-align: left; }

  /* 筛选区默认收起：手机上展开的筛选面板要占好几屏，
     用户第一眼应该先看到结果，需要时再展开细化。 */
  .sel-panel__toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    padding: 6px 10px;
    font-size: 13px;
    font-family: inherit;
    color: var(--brand);
    cursor: pointer;
  }
  .sel-panel__toggle svg { transition: transform var(--dur) var(--ease); }
  .sel-panel.is-open .sel-panel__toggle svg { transform: rotate(180deg); }

  .sel-panel__body { display: none; }
  .sel-panel.is-open .sel-panel__body { display: block; }

  .sel-panel__head { flex-wrap: wrap; gap: 8px; }
  .sel-reset { margin-left: auto; padding: 8px 10px; min-height: 36px; }

  /* 字号下限：10–11px 在手机上难辨读 */
  .sel-cat__en { font-size: 12px; }
  .sel-card__match { font-size: 12px; padding: 3px 10px; }
  .sel-badge { font-size: 12px; }
  .sel-cat__code { font-size: 13px; }
}

@media (max-width: 560px) {
  .sel-card { grid-template-columns: 1fr; gap: 14px; }
  .sel-card__media { aspect-ratio: 16 / 10; }
  .sel-card__media img { padding: 6px; }
  .sel-cat__img { height: 58px; }
  .sel-step { gap: 10px; }
}

/* ------------------------------------------------------------
   关于我们
   ------------------------------------------------------------ */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.profile-grid img { border-radius: var(--radius-lg); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
  transition: all var(--dur) var(--ease);
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.contact-card__icon {
  width: 54px; height: 54px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--tint-2); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.contact-card__label { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 7px; }
.contact-card__value { font-size: var(--fs-lg); color: var(--ink); font-weight: 600; word-break: break-all; }

/* ------------------------------------------------------------
   弹窗工具（原生 dialog）
   ------------------------------------------------------------ */
dialog.modal {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 620px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow-lg);
  color: var(--body);
}
dialog.modal::backdrop { background: rgba(24, 32, 40, 0.55); backdrop-filter: blur(2px); }
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-light);
}
.modal__head h3 { margin: 0; font-size: var(--fs-h4); }
.modal__close {
  border: 0; background: transparent; font-size: 26px; line-height: 1;
  color: var(--muted); padding: 0 4px;
}
.modal__close:hover { color: var(--danger); }
.modal__body { padding: 24px; max-height: 68vh; overflow-y: auto; }

/* 单位换算工具 */
.convert-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; margin-bottom: 16px; }
.convert-row .form-field label { color: var(--body); }
.convert-row .form-field input, .convert-row .form-field select {
  background: #fff; border-color: var(--line); color: var(--ink); padding: 10px 13px;
}
.convert-eq { padding-bottom: 11px; color: var(--brand); font-size: 19px; }

/* ------------------------------------------------------------
   滚动淡入（无 JS 时内容完整可见 —— 隐藏类由 JS 添加）
   ------------------------------------------------------------ */
.reveal-init { opacity: 0; transform: translateY(22px); }
.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-init { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ------------------------------------------------------------
   响应式
   ------------------------------------------------------------ */
@media (max-width: 1200px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid, .stats, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 992px) {
  .header__inner { min-height: 66px; }
  .logo img { height: 36px; }
  .logo__name { font-size: 17px; }

  /* 移动端导航抽屉 */
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    width: min(330px, 86vw);
    height: 100vh;
    background: #fff;
    box-shadow: -6px 0 30px rgba(0,0,0,0.14);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    overflow-y: auto;
    padding: 74px 0 40px;
    z-index: var(--z-dropdown);
    display: block;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line-light); }
  .nav__link { line-height: 1.6; padding: 15px 24px; }
  .nav__link::after { display: none; }
  .nav__item.is-active > .nav__link { background: var(--tint-3); border-left: 3px solid var(--brand); }
  .nav__sub {
    position: static;
    transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border-radius: 0;
    background: var(--tint-4);
    padding: 0; min-width: 0;
  }
  .nav__sub a { padding: 11px 38px; }

  /* 手机端：语言切换做成两个大按钮放在抽屉底部，手指好点 */
  .nav__lang {
    display: flex;
    gap: 10px;
    padding: 20px 24px 32px;
    border-top: 1px solid var(--line-light);
    margin-top: 6px;
  }
  .nav__lang a {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    color: var(--body);
  }
  .nav__lang a.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
  }

  .hero__slide { min-height: 440px; }
  .hero__title { font-size: 30px; }
  .hero__sub { font-size: 15px; }

  .layout-side { grid-template-columns: 1fr; gap: 28px; }
  .side-nav { position: static; }
  .side-nav__list { display: grid; grid-template-columns: repeat(2, 1fr); }

  .product-top { grid-template-columns: 1fr; gap: 28px; }
  .profile-grid { grid-template-columns: 1fr; gap: 28px; }
  .inquiry__inner { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-card { padding: 22px 16px 20px; }
  .cat-card__code { font-size: 26px; }
  .cat-card__icon { height: 44px; }
  .cat-card__desc { min-height: 0; -webkit-line-clamp: 3; }

  /* 手机端产品卡保持两列：单列会让「产品中心」从 20 屏涨到 30 屏，
     而 390px 宽下两张卡各约 170px，缩略图与型号仍清晰可辨。 */
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* 两列下卡片内宽约 130px，标题 17px 时 8 个汉字会折成「…变送 / 器」，
     降到 15px 刚好一行放得下常见的产品名 */
  .card__title { font-size: 15px; line-height: 1.4; }
  .card__body { padding: 14px 14px 16px; }
  .card__desc { font-size: 12.5px; -webkit-line-clamp: 2; }
  .card__meta { margin-top: 10px; padding-top: 9px; font-size: 12px; }
  .grid--2 { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats { gap: 26px; margin-top: 34px; padding-top: 30px; }
  .stat__value { font-size: 34px; }

  /* 首页新闻区：手机端不铺列表，只留一个搜索入口。
     6 条新闻竖排约占 3 屏，而手机用户的诉求多是「查某条」而非「逐条读」，
     搜索入口比一长列更实用。列表仍在 DOM 里，搜索引擎照常抓取。
     注意只作用于首页 —— 搜索结果页也用 .news-list，不能一起隐藏。 */
  .page-home .news-search--home { display: flex; }
  .page-home .news-list { display: none; }

  /* 新闻详情等页面的列表仍走小行样式（缩略图在左） */
  .news-row {
    grid-template-columns: 92px 1fr;
    gap: 4px 12px;
    padding: 12px;
    align-items: center;
  }
  .news-row__media {
    grid-row: span 2;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
  }
  .news-row__title { font-size: 15px; -webkit-line-clamp: 2; margin-bottom: 3px; }
  .news-row__desc { -webkit-line-clamp: 2; font-size: 12.5px; }
  .news-row__date { text-align: left; display: flex; gap: 6px; font-size: 12px; }
  .news-row__date .day { font-size: 13px; color: var(--brand); }

  .form-grid { grid-template-columns: 1fr; }
  .key-specs { grid-template-columns: 1fr; }

  /* 参数表转成「卡片式」：390px 宽下左标签右值的两栏排版太挤，
     改成标签在上、值在下，阅读更顺。 */
  .spec-table { border: 0; border-radius: 0; }
  .spec-table table, .spec-table tbody, .spec-table tr,
  .spec-table th, .spec-table td { display: block; width: auto; }
  .spec-table tr {
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
  }
  .spec-table tr:last-child { margin-bottom: 0; }
  .spec-table th {
    border-bottom: 0;
    padding: 7px 13px;
    font-size: 12.5px;
    background: var(--tint-4);
  }
  .spec-table td { border-bottom: 0; padding: 10px 13px; }
  .spec-table tr:hover td, .spec-table tr:hover th { background: inherit; }
  .spec-table tr:hover td { background: var(--tint-3); }

  .side-nav__list { grid-template-columns: 1fr; }
  .tabs__btn { padding: 11px 18px; font-size: var(--fs-base); flex: 1; text-align: center; }

  /* ---------- 触摸目标 ----------
     手指点 19px 高的链接很容易点错。可点区域一律撑到 44px 以上。 */
  .footer__links a { display: block; padding: 10px 0; }
  .footer__links li { margin-bottom: 0; }
  .footer h4 { margin-bottom: 10px; }
  /* 电话与邮箱是移动端转化率最高的入口，点按区域给足 */
  .footer__contact a { display: inline-block; padding: 8px 0; }
  .footer__contact li { margin-bottom: 14px; }
  .footer__qr img { width: 104px; height: 104px; }
  .breadcrumb ol { padding: 4px 0; }
  .breadcrumb a { display: inline-block; padding: 9px 2px; }
  .pager a, .pager span { min-width: 44px; height: 44px; }
  .sel-chip span { padding: 9px 14px; }
  /* 选型结果的按钮并排时高度偏小 */
  .sel-card__actions .btn { padding: 9px 18px; }

  .footer { padding-top: 44px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 8px; }
  .to-top { right: 14px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }

  /* iPhone X 及以后的底部有 Home 指示条，固定底栏会被它压住一部分，
     导致按钮下半截点不动。用 safe-area-inset-bottom 把内容顶上来。 */
  .mobile-bar {
    display: flex;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .page-banner { padding: 44px 0; }
  .page-banner p { font-size: 13.5px; }

  dialog.modal { width: calc(100% - 20px); }
  .convert-row { grid-template-columns: 1fr; }
  .convert-eq { text-align: center; padding: 0; }

  /* ---------- 字号下限 ----------
     10–11px 在实际手机上难以辨读，统一抬到 12px。 */
  .logo__en { font-size: 12px; letter-spacing: 1.2px; }
  .cat-card__en { font-size: 12px; }
  .sec-head__label { font-size: 12px; }
  .mobile-bar a { font-size: 12px; padding: 7px 4px 9px; }
  .footer__bottom, .footer__qr figcaption { font-size: 12px; }
}

@media (max-width: 480px) {
  .hero__slide { min-height: 380px; }
  .hero__title { font-size: 24px; }
  .hero__actions .btn { padding: 11px 22px; font-size: var(--fs-sm); }
  /* 产品大类保持两列：5 张卡竖排会多出约 1.5 屏，而两列下每张仍有 ~165px 宽 */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .btn { padding: 11px 24px; }
  .sec-head { margin-bottom: 28px; }
  .section { padding: 40px 0; }
}

/* ------------------------------------------------------------
   打印
   ------------------------------------------------------------ */
@media print {
  .header, .topbar, .footer, .to-top, .mobile-bar, .inquiry, .side-nav { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
