/* ============ 基础 ============ */
:root {
  --primary: #0b3d91;
  --primary-light: #1a5cd7;
  --accent: #00b4d8;
  --dark: #0a1628;
  --dark-2: #10213d;
  --text: #1c2b3a;
  --text-light: #5a6b7d;
  --bg: #ffffff;
  --bg-gray: #f4f7fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 61, 145, 0.10);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 顶部导航栏为 position: fixed，锚点跳转时留出偏移，避免标题被导航栏遮挡 */
html { scroll-padding-top: 92px; }
section[id], [id^="svc-"] { scroll-margin-top: 92px; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ============ 导航 ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}
.site-header.scrolled { background: rgba(10, 22, 40, 0.95); box-shadow: 0 4px 20px rgba(0,0,0,0.25); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.logo-text {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.65);
}
.logo-text .logo-en {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.78);
  margin-left: 7px;
}

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  padding: 6px 0;
  position: relative;
  transition: var(--transition);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

/* ============ 导航二级下拉 ============ */
.nav-item { position: relative; }
/* 透明桥接区：消除链接与下拉面板之间的空隙，避免鼠标移入时菜单闪断 */
.nav-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 14px;
}
.nav-item > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease;
}
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret,
.nav-item.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  /* 偏移 -7px：caret+间距共 14px 在文字右侧，把面板中心修正回文字中心，保证左右对称 */
  transform: translate(calc(-50% - 7px), 8px);
  width: max-content;
  padding: 8px 0;
  background: rgba(12, 26, 46, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 20;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(calc(-50% - 7px), 0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover {
  color: #fff;
  background: rgba(0, 180, 216, 0.16);
}

/* ============ 头部工具区：Cn/En 语言切换 + 搜索 ============ */
.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.lang-item {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  padding: 2px 1px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.lang-item:hover { color: #fff; }
.lang-item.is-active {
  color: #fff;
  border-bottom-color: var(--accent);
}
.lang-sep { color: rgba(255, 255, 255, 0.45); font-weight: 400; }
.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}
.search-btn:hover { color: var(--accent); background: rgba(255, 255, 255, 0.08); }
.search-btn svg { width: 19px; height: 19px; }

/* ============ 搜索弹层 ============ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 18, 34, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 13vh 20px 0;
}
.search-overlay.open { display: flex; }
.search-panel {
  width: 100%;
  max-width: 620px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  animation: searchIn 0.22s ease;
}
@keyframes searchIn {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid #e6edf4;
}
.search-bar svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--dark);
}
.search-bar input::placeholder { color: #a9b8c9; }
.search-close {
  border: none;
  background: none;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}
.search-close:hover { color: var(--dark); }
.search-results { max-height: 46vh; overflow-y: auto; padding: 8px; }
.search-result {
  display: block;
  padding: 11px 14px;
  border-radius: 9px;
  text-decoration: none;
}
.search-result:hover { background: #f2f7fc; }
.search-result .sr-title { font-size: 14.5px; font-weight: 600; color: var(--dark); }
.search-result .sr-title mark { background: rgba(0, 180, 216, 0.18); color: inherit; padding: 0 1px; }
.search-result .sr-sub { font-size: 12.5px; color: #7a8ba0; margin-top: 2px; }
.search-empty { padding: 24px 16px; text-align: center; color: #94a3b8; font-size: 13.5px; }
.search-hint {
  padding: 9px 18px;
  border-top: 1px solid #eef3f8;
  font-size: 11.5px;
  color: #a9b8c9;
  text-align: right;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: #fff;
  transition: var(--transition);
}

/* ============ 首屏 ============ */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  /* 与子页 page-hero 保持一致的深底，避免切换页面时跳色 */
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  padding: 130px 0 56px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--dark);
}
/* 与 page-hero::after 同款顶部光晕，保持全站横幅观感统一 */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(0,199,190,0.16), transparent 60%);
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 细网格纹理做科技感，深底上用白色低透明线条 */
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  letter-spacing: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--accent), #7ee8fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 860px;
  margin-top: 22px;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.95;
  color: rgba(255,255,255,0.78);
  border-left: 3px solid var(--accent);
}
.hero-actions { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
html[lang="en"] .hero-sub { font-size: 15px; }

.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  /* 按钮文案一律不折行（2026-10-06）：英文首页「Contact Us」在 390px 下
     被挤压成「Contact」/「Us」两行。文案放不下时由 .hero-actions 换行承接。 */
  white-space: nowrap;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,180,216,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,180,216,0.45); }
/* 仅用于深色首屏，故采用白色描边 */
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,255,255,0.06);
}
.btn-full { width: 100%; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
}
.stat span { font-size: 13px; color: rgba(255,255,255,0.6); }

/* ============ 通用 Section ============ */
.section { position: relative; padding: 96px 0; }
/* 板块之间：居中渐隐分隔线，避免相邻同色板块连成一片 */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 78%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(11, 61, 145, 0.10) 22%,
    rgba(11, 61, 145, 0.22) 50%,
    rgba(11, 61, 145, 0.10) 78%,
    transparent 100%
  );
  pointer-events: none;
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-head h2 { font-size: 34px; color: var(--dark); }
/* 标题下渐变短条：统一各板块的标题视觉重心 */
.section-head h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 15px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.section-desc { margin-top: 14px; color: var(--text-light); font-size: 16px; }

/* ============ 关于我们 ============ */
.about { background: var(--bg-gray); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.about-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.about-card:hover { transform: translateY(-6px); }
/* 图标底座：与「技术优势」卡片图标统一为浅蓝圆角块，提升版面质感 */
.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 16px;
  background: #eaf3fd;
  border: 1px solid rgba(11, 61, 145, 0.10);
  transition: var(--transition);
}
.about-icon img { display: block; width: 26px; height: 26px; }
.about-card:hover .about-icon { background: #e2f2fc; border-color: rgba(0, 180, 216, 0.45); }
.about-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--dark); }
.about-card p { font-size: 14px; color: var(--text-light); }

/* ============ 产品与服务 ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.product-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5ecf5;
  border-radius: var(--radius);
  padding: 38px 34px;
  overflow: hidden;
  transition: var(--transition);
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.product-card:hover::before { transform: scaleX(1); }
.product-card--wide { grid-column: 1 / -1; }
.product-card--wide ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 24px;
}
/* 桌面：两列按内容比例分配（左 1 : 右 1.2）。这张卡的 4 条要点两长两短，
   等宽两列会出现「行 1 一条折行、一条单行」，同行的另一列下方空出一整行
   （1280~1366 视口最明显）；按内容比例把宽度让给长条目后，两条长要点同步
   折行 / 同步单行，行内不再出现空洞。
   同时禁止 CJK 任意字断行，折行只落在标点 / 空格处，避免「测试场 / 景」
   「系统 / 板」这类拆词。窄屏不适用：手机端列宽仅约 150px，keep-all 会让
   长清单项无法折行而横向溢出。 */
@media (min-width: 769px) {
  .product-card--wide ul li { word-break: keep-all; }
}
/* 列宽比只在 ≥1024 生效：再窄时两列内容宽都不足 350px，让宽反而会把短条目
   挤到折行（900px 实测由齐变不齐），等宽两列更稳。 */
@media (min-width: 1024px) {
  .product-card--wide ul { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
/* 标题类均衡换行（2026-10-06 手机端「不要孤字/孤行」）：
   手机端卡片标题常出现「末行只剩 1~2 个字」——新闻卡「…稳定交付」的「交付」、
   企业文化页「…服务伙伴」的「伴」、英文产品卡「Wafer Sort Test Services (CP)」的「(CP)」。
   balance 把两行拉匀，规范上不增加行数；Chrome 114+ / Safari 17.5+ 生效，
   其余浏览器降级为普通换行（无副作用）。 */
.product-card h3,
.case-card h3,
.news-card h3,
.mv-card h3,
.footer-tagline { text-wrap: balance; }

.product-num {
  font-size: 44px;
  font-weight: 800;
  color: #eaf1fa;
  position: absolute;
  top: 18px; right: 26px;
  line-height: 1;
}
.product-card h3 { font-size: 21px; color: var(--dark); margin-bottom: 12px; }
.product-card > p { font-size: 14.5px; color: var(--text-light); margin-bottom: 16px; }
.product-card ul li {
  font-size: 13.5px;
  color: var(--primary);
  padding: 5px 0 5px 20px;
  position: relative;
  /* 要点为清单式文本，balance 均衡两行、避免末行只剩「制造。」这类孤字。
     不能加 word-break:keep-all——手机端卡片内是两列布局（可用宽约 150px），
     keep-all 会让长清单项无法折行而向右溢出（390/320 实测越界）。 */
  text-wrap: balance;
}
.product-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============ 技术优势 ============ */
.strength {
  position: relative;
  overflow: hidden;
  /* 浅色纯底（原为深色渐变，与首屏连成两片深色显得压抑） */
  background: #ffffff;
  color: var(--text);
  /* 顶部收紧：标题整体上移，靠近板块分隔线 */
  padding: 68px 0 88px;
}
/* 关于我们页：各板块标题与内容间距统一收紧，版面更紧凑 */
.about .section-head,
.strength .section-head,
.life .section-head { margin-bottom: 44px; }
.strength .section-head h2 { color: var(--dark); }
.strength .section-desc { color: var(--text-light); }
.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.strength-item {
  position: relative;
  text-align: center;
  padding: 36px 22px;
  border: 1px solid rgba(11, 61, 145, 0.10);
  border-radius: var(--radius);
  background: #f7fafd;
  box-shadow: 0 8px 24px rgba(11, 61, 145, 0.06);
  overflow: hidden;
  transition: var(--transition);
}
/* 卡片顶部品牌色高光条 */
.strength-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.45;
  transition: var(--transition);
}
.strength-item:hover {
  background: #fff;
  border-color: rgba(0, 180, 216, 0.45);
  box-shadow: 0 16px 34px rgba(11, 61, 145, 0.14);
  transform: translateY(-6px);
}
.strength-item:hover::before { opacity: 1; }
.strength-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  border-radius: 18px;
  font-size: 30px;
  margin-bottom: 18px;
  background: #eaf3fd;
  border: 1px solid rgba(11, 61, 145, 0.10);
  transition: var(--transition);
}
.strength-icon img { display: block; width: 30px; height: 30px; }
.strength-item:hover .strength-icon {
  transform: scale(1.06);
  background: #e2f2fc;
  border-color: rgba(0, 180, 216, 0.45);
}
.strength-item h3 { font-size: 17px; margin-bottom: 10px; color: var(--dark); }
.strength-item p { font-size: 13.5px; color: var(--text-light); }

/* ============ 交付流程（五步概览） ============ */
/* 顶部浅色过渡：与全站板块交界一致（线 + 底色台阶），避免与核心业务之间形成“纯白夹一条线”的孤立观感 */
.delivery { background: linear-gradient(180deg, #f4f8fd 0%, #ffffff 46%); }
.process-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}
.flow-step {
  position: relative;
  flex: 1;
  max-width: 190px;
  background: #fff;
  border: 1px solid rgba(11, 61, 145, 0.08);
  border-radius: var(--radius);
  padding: 30px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
/* 顶部品牌色高光条，与流程推进感呼应 */
.flow-step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.55;
  transition: var(--transition);
}
.flow-step:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 180, 216, 0.35);
  box-shadow: 0 16px 34px rgba(11, 61, 145, 0.16);
}
.flow-step:hover::before { opacity: 1; }
.flow-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(0, 150, 200, 0.28);
}
.flow-step h4 { font-size: 16px; color: var(--dark); margin-bottom: 8px; }
.flow-step p { font-size: 13px; color: var(--text-light); }
.flow-arrow {
  align-self: center;
  color: rgba(11, 61, 145, 0.32);
  font-size: 22px;
  font-weight: 700;
}

/* ============ 流程管理（检查点 + 阶段箭头带 + 阶段任务） ============ */
.process { background: #f4f7fb; }
.pm-board { max-width: 1080px; margin: 0 auto; }
.pm-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* —— 检查点卡片（可交付成果） —— */
.pm-checkpoints {
  align-items: end;
  margin-bottom: 54px;
}
.pm-check {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #edf4fd 100%);
  border: 1px solid rgba(47, 123, 245, 0.22);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(11, 61, 145, 0.08);
  padding: 14px 15px 12px;
  transition: var(--transition);
}
.pm-check:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 123, 245, 0.4);
  box-shadow: 0 14px 28px rgba(11, 61, 145, 0.14);
}
.pm-check h5 {
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 6px;
}
.pm-check-label {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.pm-check ul { list-style: none; }
.pm-check li {
  position: relative;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text);
  padding-left: 13px;
  margin-bottom: 4px;
}
.pm-check li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
/* 卡片指向流程带的向上箭头：一体成形的尖锐箭头（尖三角 + 窄杆） */
.pm-check::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -52px;
  transform: translateX(-50%);
  width: 20px;
  height: 34px;
  background: var(--primary);
  clip-path: polygon(50% 0, 100% 52%, 70% 52%, 70% 100%, 30% 100%, 30% 52%, 0 52%);
}

/* —— 阶段箭头带 —— */
.pm-stages { gap: 6px; margin-bottom: 20px; }
.pm-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 8px 14px 8px 24px;
  background: linear-gradient(180deg, #4a80d6, #3c6fc4);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  transition: var(--transition);
}
.pm-stage--first {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
  padding-left: 14px;
}
.pm-stage:hover { background: linear-gradient(180deg, #3a72cc, #2c5fb8); }

/* —— 各阶段任务清单 —— */
.pm-subs { align-items: start; }
.pm-sub {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pm-sub li {
  background: #d8e5f8;
  border: 1px solid rgba(76, 128, 208, 0.28);
  color: #24457e;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  padding: 7px 10px;
  border-radius: 5px;
}

/* —— 手机端：桌面是「检查点行 / 箭头带行 / 任务行」三段横排，窄屏压成单列后
   会把同一阶段的三个要素拆到三处，读者无法对应。这里改成「一阶段一卡」的纵向时间轴：
   ① 让三个 .pm-row 退掉外层（display:contents），其子项成为同一网格的兄弟节点；
   ② 用 order 把「阶段带 / 检查点 / 任务」按阶段交错成一组（阶段头 → 可交付成果 → 关键任务）；
   ③ 组内三段分别只保留外圈圆角与左右边框，视觉上拼成一张完整卡片；
   ④ 卡片之间用竖向箭头衔接（桌面向上箭头的纵向版）。桌面规则一条未动。 */
@media (max-width: 900px) {
  .pm-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 560px;
    counter-reset: pm;
  }
  .pm-board .pm-row { display: contents; }

  /* 交错顺序：1 阶段头 / 2 检查点 / 3 关键任务 */
  .pm-stages > :nth-child(1) { order: 1; }
  .pm-checkpoints > :nth-child(1) { order: 2; }
  .pm-subs > :nth-child(1) { order: 3; }
  .pm-stages > :nth-child(2) { order: 4; }
  .pm-checkpoints > :nth-child(2) { order: 5; }
  .pm-subs > :nth-child(2) { order: 6; }
  .pm-stages > :nth-child(3) { order: 7; }
  .pm-checkpoints > :nth-child(3) { order: 8; }
  .pm-subs > :nth-child(3) { order: 9; }
  .pm-stages > :nth-child(4) { order: 10; }
  .pm-checkpoints > :nth-child(4) { order: 11; }
  .pm-subs > :nth-child(4) { order: 12; }
  .pm-stages > :nth-child(5) { order: 13; }
  .pm-checkpoints > :nth-child(5) { order: 14; }
  .pm-subs > :nth-child(5) { order: 15; }

  /* ① 阶段头：蓝底标题条 + 序号圆标（替代桌面箭头带） */
  .pm-stage {
    clip-path: none;
    justify-content: flex-start;
    gap: 10px;
    min-height: 0;
    padding: 13px 16px;
    margin-bottom: 0;
    border-radius: 14px 14px 0 0;
    font-size: 15.5px;
    letter-spacing: 0.3px;
    text-align: left;
    counter-increment: pm;
  }
  .pm-stage::before {
    content: counter(pm, decimal-leading-zero);
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
  }
  .pm-stage--first { padding-left: 16px; }

  /* ② 检查点 / 可交付成果（卡片中段） */
  .pm-check {
    margin: 0;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    box-shadow: none;
  }
  .pm-check:hover { transform: none; }
  .pm-check::before { display: none; }
  .pm-check h5 {
    display: inline-block;
    vertical-align: middle;
    margin: 0 7px 0 0;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(47, 123, 245, 0.1);
    color: #2c5fb8;
    font-size: 12.5px;
  }
  .pm-check-label {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    font-size: 12px;
  }
  .pm-check ul { margin-top: 8px; }

  /* ③ 关键任务（卡片末段：小胶囊横排自动换行） */
  .pm-sub {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 34px;
    padding: 12px 16px 16px;
    background: #ffffff;
    border-radius: 0 0 14px 14px;
    border: 1px solid rgba(47, 123, 245, 0.22);
    border-top: none;
    box-shadow: 0 8px 20px rgba(11, 61, 145, 0.08);
  }
  .pm-subs > :last-child { margin-bottom: 0; }
  .pm-sub::before {
    content: "关键任务：";
    flex: 0 0 100%;
    font-size: 12px;
    color: var(--text-light);
    border-top: 1px dashed rgba(47, 123, 245, 0.25);
    padding-top: 10px;
  }
  :lang(en) .pm-sub::before { content: "Key tasks:"; }
  .pm-sub li { font-size: 12.5px; }

  /* 卡片之间的衔接箭头 */
  .pm-subs > :not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -26px;
    transform: translateX(-50%);
    width: 20px;
    height: 22px;
    background: rgba(47, 123, 245, 0.45);
    clip-path: polygon(50% 100%, 0 48%, 30% 48%, 30% 0, 70% 0, 70% 48%, 100% 48%);
  }
}

/* ============ 公司业务 ============ */
/* 与上方深色首屏之间为直线切分（原曲线过渡已移除） */
.business { background: #ffffff; }
.business-img {
  display: block;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid #e5ecf5;
  box-shadow: 0 14px 40px rgba(11, 61, 145, 0.10);
}
/* 公司业务：网页版环形图 + 能力卡（替代整图） */
.biz-web {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
/* 一站式服务环形图（原始设计图直出） */
.biz-ring-img {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.biz-info { display: grid; gap: 24px; }
.biz-block { padding: 0; }
.biz-block h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #2b6bd8;
  margin-bottom: 12px;
}
/* 剪贴板样式小图标（仿附件） */
.biz-block h3::before {
  content: '';
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background-color: #2b6bd8;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff);
  background-size: 12px 2px, 12px 2px, 12px 2px;
  background-position: 5px 6px, 5px 10px, 5px 14px;
  background-repeat: no-repeat;
}
.biz-panel {
  background: linear-gradient(100deg, #d9e8fb 0%, #eaf3fd 55%, #fbfdff 100%);
  border-radius: 12px;
  padding: 17px 22px;
}
.biz-panel ul { padding-left: 18px; }
.biz-panel li {
  font-size: 14px;
  line-height: 1.8;
  color: #33475e;
}
.biz-panel li::marker { color: #2b6bd8; }
.biz-panel li + li { margin-top: 12px; }
/* 英文文案更长，正文略收一号，使右栏高度贴近左栏环形图 */
:lang(en) .biz-panel li { font-size: 13.5px; line-height: 1.75; }

/* 核心能力：2×2 图标能力卡（首页公司业务板块；详情已由产品页/案例页承载，此处只做标签化呈现） */
.biz-caps {
  display: grid;
  /* 列宽必须容得下最长的卡标题（英文 "ATE Program Development" 约 184px + 图标与内边距）。
     两列所需容器约 552px；容器再窄就自动降为单列，卡片变宽后标题仍能单行显示，
     避免在 993~1180px 这类窄桌面视口下标题被压成两行。 */
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}
.biz-cap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f5f9fe;
  border: 1px solid #e2ecf8;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.biz-cap:hover {
  background: #eef5fd;
  border-color: #cfe2f7;
  transform: translateY(-2px);
}
.biz-cap-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #dbe7f6;
}
.biz-cap-icon img { display: block; width: 22px; height: 22px; }
.biz-cap-txt { min-width: 0; }
.biz-cap-txt strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
  color: #1b4f86;
  margin-bottom: 3px;
}
.biz-cap-txt span {
  display: block;
  font-size: 12.5px;
  line-height: 1.55;
  color: #4a6484;
  /* 平台清单较长，换行时自动均衡行宽，避免末行只剩一两个词 */
  text-wrap: balance;
  /* 中文默认可在任意字间断行，会把「加强筋」拆成「加 / 强筋」跨行；
     keep-all 使其只在顿号、斜杠、空格处断行（清单里这些分隔符足够多，不会撑宽卡片） */
  word-break: keep-all;
}
:lang(en) .biz-cap-txt span { font-size: 12px; }
/* 英文卡标题天然更长（"ATE Program Development"），14.5px 时约 198px、超出两列布局下
   的 192px 可用宽而折行；收 1px 后可单行显示。大写拉丁字母 x-height 偏大，14.5px 中文
   与 13.5px 英文标题视觉重量相当，两版观感一致。 */
:lang(en) .biz-cap-txt strong { font-size: 13.5px; }
@media (max-width: 992px) {
  .biz-web { grid-template-columns: 1fr; gap: 28px; }
  .biz-ring-img { max-width: 420px; }
}
@media (max-width: 768px) {
  .biz-web { gap: 22px; }
  .biz-ring-img { max-width: 340px; }
  .biz-panel { padding: 14px 14px; }
  .biz-panel li { font-size: 13px; }
  .biz-caps { grid-template-columns: 1fr; gap: 10px; }
}

/* ============ 核心业务（前端重绘版式） ============ */
/* 极淡冷色渐变：与相邻白底板块拉开层次，又自然过渡回白 */
.key-business { background: linear-gradient(180deg, #f4f8fd 0%, #ffffff 62%); }
.keybiz {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 30px;
  align-items: stretch;
}
/* 左：测试实景照片墙 */
.keybiz-media {
  background: linear-gradient(155deg, #1d5fc7 0%, #16386f 100%);
  border-radius: 18px;
  padding: 16px 16px 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
  box-shadow: 0 16px 40px rgba(29, 95, 199, 0.20);
}
.kb-photo {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 3;
}
.kb-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.kb-photo:hover img { transform: scale(1.07); }
/* 竖版/非 4:3 图块：完整显示不裁切（白底衬底，与照片卡片一致） */
.kb-photo--fit { background: #fff; }
.kb-photo--fit img { object-fit: contain; }
.kb-media-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding-top: 2px;
  flex-wrap: wrap;
  text-align: center;
  line-height: 1.5;
}
/* 右：三大核心能力（2×2 排布，与左侧照片墙高度协调） */
.keybiz-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-content: start;
}
.kb-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e5ecf5;
  border-radius: 14px;
  padding: 18px 16px;
  transition: var(--transition);
}
.kb-item:hover {
  border-color: #c9dcf5;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.kb-num {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef4fb;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kb-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.kb-body p { font-size: 13.5px; line-height: 1.65; color: var(--text-light); }
.kb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kb-tags span {
  font-size: 11px;
  color: var(--primary);
  background: #eef4fb;
  border-radius: 999px;
  padding: 2px 9px;
  line-height: 1.6;
}
@media (max-width: 992px) {
  .keybiz { grid-template-columns: 1fr; }
  /* 堆叠时限制照片墙宽度，避免图块过大过高 */
  .keybiz-media { grid-template-columns: repeat(6, 1fr); max-width: 780px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .keybiz { gap: 20px; }
  .keybiz-media { grid-template-columns: repeat(3, 1fr); max-width: 520px; padding: 12px; gap: 8px; border-radius: 14px; }
  .keybiz-list { grid-template-columns: 1fr; }
  .kb-item { padding: 20px 18px; gap: 14px; border-radius: 14px; }
  .kb-num { flex-basis: 38px; height: 38px; font-size: 14px; }
  .kb-body h3 { font-size: 17px; }
  .kb-body p { font-size: 14px; }
  .kb-media-foot { font-size: 12px; }
}

/* ============ 新闻动态 ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
/* 分页/筛选靠 JS 控制显隐，用 hidden 属性；此处必须显式声明，
   否则 .news-card 的 display:flex 会盖掉浏览器默认的 [hidden]{display:none} */
.news-card[hidden] { display: none; }
.news-card {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid #e5ecf5;
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  transition: var(--transition);
}
/* 顶部渐变细线：悬停时从左向右展开，给静态卡片一点“被激活”的反馈 */
.news-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: #d8e4f5; }
.news-card:hover::before { transform: scaleX(1); }
.news-card:hover .news-body h3 { color: var(--primary-light); }
/* 日期做成日历块，比纯文字更有视觉重量 */
.news-date {
  flex: 0 0 62px;
  align-self: flex-start;
  text-align: center;
  padding: 10px 6px 8px;
  border-radius: 12px;
  border: 1px solid #e2ecf8;
  background: linear-gradient(180deg, #f5f9fe 0%, #e8f1fb 100%);
}
.news-date strong {
  display: block;
  font-size: 25px;
  color: var(--primary-light);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.news-date span { font-size: 12px; color: var(--text-light); }
.news-body { min-width: 0; }
.news-cat {
  display: inline-block;
  margin-bottom: 9px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: #e8f0ff;
  color: var(--primary-light);
}
.news-card[data-cat="industry"] .news-cat { background: #e0f7fb; color: #0a8fb0; }
.news-card[data-cat="event"] .news-cat { background: #eaebfb; color: #4b5bd6; }
.news-card[data-cat="tech"] .news-cat { background: #e4f6f1; color: #0f8a78; }
.news-body h3 {
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.55;
  transition: color 0.25s ease;
}
.news-body p { font-size: 13.5px; color: var(--text-light); line-height: 1.75; }
.news-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--text-light);
  font-size: 14px;
}
.news-empty[hidden] { display: none; }

/* 分类筛选 */
.news-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.news-filter button {
  padding: 9px 26px;
  border-radius: 999px;
  border: 1px solid #d7e0ea;
  background: #fff;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.news-filter button:hover { border-color: var(--primary-light); color: var(--primary-light); }
.news-filter button.is-active {
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(26, 92, 215, 0.24);
}
.news-count {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 34px;
}

/* 分页 */
.news-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.news-pager[hidden] { display: none; }
.pg-btn {
  min-width: 96px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #d7e0ea;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.pg-btn:hover:not(:disabled) { border-color: var(--primary-light); color: var(--primary-light); background: #f5f9ff; }
.pg-btn:disabled { opacity: 0.42; cursor: not-allowed; }
.pg-nums { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pg-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #dde4ee;
  background: #fff;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.pg-num:hover:not(.is-active) { border-color: var(--primary-light); color: var(--primary-light); }
.pg-num.is-active {
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(26, 92, 215, 0.28);
}

/* ============ 联系我们 ============ */
/* 略深于上方板块，向页脚的深色自然过渡 */
.contact { background: #eef4fb; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  gap: 40px;
  align-items: stretch;
  justify-content: center;
}
.contact-form {
  position: relative;
  background: #fff;
  border: 1px solid rgba(11, 61, 145, 0.08);
  border-radius: 18px;
  padding: 38px 40px 30px;
  box-shadow: 0 20px 50px rgba(11, 61, 145, 0.13);
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.contact-form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light) 60%, var(--accent));
}
.cf-head { margin-bottom: 26px; }
.contact-form h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}
.contact-form h3::before {
  content: "";
  width: 4px;
  height: 19px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  flex: none;
}
.cf-sub { font-size: 14px; color: var(--text-light); margin: 0; line-height: 1.7; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-field { margin-bottom: 16px; }
.cf-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 7px;
  letter-spacing: .2px;
}
.cf-label i { color: #e5484d; font-style: normal; margin-left: 2px; }

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #dde6f0;
  border-radius: 11px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fafcff;
  transition: var(--transition);
  resize: vertical;
  box-sizing: border-box;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #a9b8c9; }
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5l5-5' stroke='%237b8ca3' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}

/* 联系电话软提示（位数可能不对时提醒，但不拦截提交） */
.cf-hint {
  display: none;
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #8a5a00;
}
.cf-hint.is-on { display: block; }
.cf-hint__main { display: inline; }
.cf-hint__sub { display: block; margin-top: 3px; color: #a8832f; font-size: 12px; }
.cf-hint.is-on::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  border-radius: 50%;
  background: #eaa72b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: -2px;
}
.contact-form input.is-warn,
.contact-form input.is-warn:focus {
  border-color: #eaa72b;
  background: #fffdf6;
  box-shadow: 0 0 0 3px rgba(234,167,43,.16);
}

/* 蜜罐字段：对访客隐藏，仅用于拦截机器人 */
.cf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.cf-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cf-submit {
  position: relative;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #fff;
  padding: 13px 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 10px 24px rgba(11, 61, 145, 0.26);
  transition: var(--transition);
}
.cf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(11, 61, 145, 0.32);
}
.cf-submit:disabled { cursor: default; opacity: .78; transform: none; }
.cf-submit__spin { display: none; }
.cf-submit.is-loading .cf-submit__spin {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 9px;
  vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cfspin .7s linear infinite;
}
@keyframes cfspin { to { transform: rotate(360deg); } }
.cf-note { font-size: 12.5px; color: #8496ab; margin: 0; line-height: 1.6; }

.form-tip {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  min-height: 20px;
}
.form-tip.is-ok { color: #12924f; }
.form-tip.is-err { color: #c62828; }
/* 结果未确认：请求已发出、但服务器回应无法解析（BOM / PHP 警告等），不能误报失败让访客重复提交 */
.form-tip.is-warn { color: #8a5a00; }

.cf-direct {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid #eef2f7;
  font-size: 13.5px;
  color: #64748b;
  text-align: center;
}
.cf-direct a { color: var(--primary); font-weight: 600; text-decoration: none; }
.cf-direct a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .contact-form { padding: 28px 22px 24px; border-radius: 16px; }
  .contact-form h3 { font-size: 19px; }
  .form-row { grid-template-columns: 1fr; }
  .cf-submit { width: 100%; }
}

/* ============ 页脚 ============ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  /* 默认 4 栏（子页页脚）：品牌 + 三个链接栏，品牌栏加宽以容纳单行简介 */
  grid-template-columns: 1.9fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
/* 首页页脚含「新闻中心」共 5 栏时，启用 5 列布局 */
.footer-grid:has(.footer-col:nth-child(5)) {
  grid-template-columns: 2fr 1.05fr 0.85fr 0.85fr 0.85fr;
}
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-brand-row { display: flex; align-items: center; gap: 14px; }
.footer-brand-row .logo-mark-img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  margin-bottom: 0;
}
.footer-brand-text { min-width: 0; }
.footer-name { color: #fff; font-weight: 700; font-size: 15px; line-height: 1.4; white-space: nowrap; }
:lang(en) .footer-name { font-size: 13px; letter-spacing: 0; }
.footer-slogan {
  font-size: 11px;
  color: rgba(255,255,255,0.48);
  margin-top: 5px;
  line-height: 1.5;
  letter-spacing: 1.6px;
  text-wrap: balance;
}
:lang(en) .footer-slogan { letter-spacing: 0.4px; }
.footer-col--brand .footer-brand-row {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  position: relative;
}
.footer-col--brand .footer-brand-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(0,180,216,0));
  border-radius: 2px;
}
.footer-tagline {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 10px;
}
.footer-tagline span {
  background: linear-gradient(90deg, var(--accent), #4fd8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.footer-intro {
  font-size: 12px;
  color: rgba(255,255,255,0.58);
  line-height: 1.7;
  max-width: 460px;
  white-space: nowrap;
}
.footer-contact {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 28px 0 30px;
}
.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 2px 28px;
}
.footer-contact-item:first-child { padding-left: 0; }
.fc-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  white-space: nowrap;
}
.fc-value {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
}
.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 1024px) {
  .footer-grid,
  .footer-grid:has(.footer-col:nth-child(5)) { grid-template-columns: repeat(3, 1fr); }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-contact { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
}
@media (max-width: 768px) {
  .footer-grid,
  .footer-grid:has(.footer-col:nth-child(5)) { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-contact { grid-template-columns: 1fr; gap: 18px; }
  .footer-contact-item { padding-left: 0; }
  .footer-intro { white-space: normal; }
  /* 英文页脚公司名较长（Shanghai Platinum Test Semiconductor Technology Co., Ltd.），
     桌面端靠 nowrap 保持单行；窄屏必须允许换行 —— 否则该文本的最小内容宽度会
     顶大整个页脚的 grid 轨道，把文档撑到 ~474px，手机上出现横向滚动。 */
  .footer-name { white-space: normal; overflow-wrap: anywhere; }
  :lang(en) .footer-name { font-size: 12.5px; }
}

/* ============ 入场动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* 左右分栏内容：分别从两侧淡入，强化板块内部的层次感 */
.reveal[data-reveal="left"] { transform: translateX(-40px); }
.reveal[data-reveal="right"] { transform: translateX(40px); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-reveal="left"].visible,
.reveal[data-reveal="right"].visible { transform: translate(0, 0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .about-grid, .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .process-flow { flex-wrap: wrap; }
  .flow-arrow { display: none; }
  .flow-step { max-width: none; flex: 1 1 40%; }
}

/* 必须排在 1024 断点之后：同为 0,1,0 特异性时后出现的规则生效 */
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-filter button { padding: 8px 18px; font-size: 13px; }
  .pg-btn { min-width: 84px; padding: 8px 14px; font-size: 13px; }
  .pg-num { width: 34px; height: 34px; font-size: 13px; }
}

/* 窄屏（≤480px，覆盖 390/414/430 等主流手机）：关于页 4 卡与核心优势 4 卡改单列。
   两列时每列内容宽度仅约 115px（卡片内边距 32px 26px / 36px 22px），中文每行只有 7~8 字、
   英文每行 4~5 个词，读起来非常憋；单列后每行 20 字以上。顺带也消除了 320px 屏的横向撑宽。 */
@media (max-width: 480px) {
  .about-grid,
  .strength-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    /* 移动端菜单用不透明底色：半透明会让页面内容透出来，子菜单在亮内容上读不清 */
    background: #0a1628;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    padding: 12px 0;
    /* 展开较长的子菜单时菜单可能超过一屏，允许菜单自身纵向滚动 */
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 6%; }
  .header-tools { gap: 10px; }
  .lang-toggle { font-size: 14px; gap: 6px; }
  .search-btn { width: 32px; height: 32px; }
  .search-overlay { padding-top: 9vh; }

  /* 移动端：下拉改为点击展开的折叠面板，不再悬浮显示 */
  .nav-item { width: 100%; }
  .nav-item::after { display: none; }
  .nav-item > .nav-link {
    display: flex;
    justify-content: space-between;
    padding: 14px 6%;
  }
  /* 选择器统一加 .main-nav 前缀提升特异性：桌面端 .nav-item.open .nav-dropdown
     的 transform: translate(calc(-50% - 7px)) 优先级更高，不加前缀会在移动端把
     折叠面板整体推出屏幕左侧，只剩一块看不清的暗色方块 */
  .main-nav .nav-dropdown,
  .main-nav .nav-item:hover .nav-dropdown,
  .main-nav .nav-item:focus-within .nav-dropdown,
  .main-nav .nav-item.open .nav-dropdown {
    position: static;
    transform: none;
    min-width: 0;
    width: auto;
    max-width: 100%;
    padding: 0;
    background: rgba(0, 180, 216, 0.1);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.28s ease;
  }
  .main-nav .nav-item.open .nav-dropdown {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-dropdown a {
    padding: 11px 6% 11px 10%;
    font-size: 14px;
    white-space: normal;
    color: rgba(255, 255, 255, 0.82);
  }
  .nav-dropdown a:hover { background: rgba(0, 180, 216, 0.12); }

  .products-grid, .contact-grid, .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .section { padding: 72px 0; }
  .section-head h2 { font-size: 27px; }

  /* 移动端改回纵向入场：.reveal 的 translateX(±40px) 在首屏未触发动画前
     会把文档撑宽（首页实测 +24px），手机上表现为页面可以左右拖动。
     纵向位移不产生横向溢出，动画观感不变。 */
  .reveal[data-reveal="left"],
  .reveal[data-reveal="right"] { transform: translateY(28px); }
  .reveal[data-reveal="left"].visible,
  .reveal[data-reveal="right"].visible { transform: translateY(0); }
}

/* ============ 移动端页头 Logo 文字块：两行、每行单行（2026-10-06 王老师截图要求）============
   原先 18px/12px/10px 的三行结构在手机上放不下：390px 时「铂测 Platinum」/「Test」/「芯片测试全链路服务伙伴」
   被拆成 3~4 行并溢出 72px 高的页头、压到首屏上（320px 时多达 6 行）。
   可用宽 = 容器宽 − 图标 − gap − 右侧控件(语言/搜索) − 汉堡按钮，实测 390px 下只剩 117px，
   而中文品牌行自然宽 121px、标语行 132px，故必须同时「收窄字体」与「给右侧控件减重」。
   目标：≥360px 视口下 = 品牌行 + 标语行共 2 行，每行单行不折。 */
@media (max-width: 768px) {
  .site-header .container { width: 95%; }      /* 页头单独放宽（页面正文仍 92%），多让出约 11px */
  .logo { gap: 8px; }
  .logo .logo-mark-img { width: 38px; height: 38px; border-radius: 9px; }
  .logo-text { font-size: 15px; }
  .logo-text .logo-en { font-size: 10.5px; margin-left: 5px; letter-spacing: 0.2px; }
  .logo-text small { font-size: 8.5px; letter-spacing: 0.4px; }   /* 桌面 10px/字距 2px，手机上收紧 */
  .nav-toggle { padding: 6px; }
  .nav-toggle span { width: 20px; }
}
/* 英文侧标语 35 字符（Full-Chain Chip Test Service Partner）比中文 12 字长得多：
   再小一档并去掉字距，才能在 350px 起与中文一样单行显示 */
@media (max-width: 768px) {
  :lang(en) .logo-text small { font-size: 7.5px; letter-spacing: 0; }
}
/* ≤400px（主流手机）：右侧语言切换 / 搜索小幅收紧，给 Logo 让出宽度（点击区仍 ≥28px） */
@media (max-width: 400px) {
  .header-tools { gap: 6px; }
  .lang-toggle { font-size: 11.5px; gap: 5px; letter-spacing: 0.2px; }
  .search-btn { width: 28px; height: 28px; }
}
/* ≤340px（iPhone SE1 等窄屏）：中英再收一档字号。中文标语保留；
   英文标语此时确实放不下，整行隐去，只留「Platinum Test」单行，不做二次折行。 */
@media (max-width: 340px) {
  .logo-text { font-size: 13px; }
  .logo-text .logo-en { font-size: 9.5px; }
  .logo-text small { font-size: 8px; letter-spacing: 0.3px; }
  :lang(en) .logo-text small { display: none; }
}
/* ≤300px（折叠屏外屏等极端窄屏兜底）：只留品牌行 */
@media (max-width: 300px) {
  .logo-text small { display: none; }
  .logo-text { font-size: 11px; }
  .logo-text .logo-en { font-size: 8px; }
}

/* ============ 企业文化页 ============ */
.section--alt { background: #f4f8fb; }
/* 人才招聘：拆分为多个板块后收紧纵向节奏，分隔线沿用全站统一风格 */
.careers-sec { padding: 76px 0; }
/* 招聘岗位板块：底部留白收紧，分隔线随之上移靠近内容 */
.careers-sec.section--alt { padding-bottom: 44px; }
/* 岗位备注（以上岗位信息以最新沟通为准…）字号缩小、更轻量 */
.careers-sec .cases-note { margin-top: 28px; font-size: 12.5px; }
.page-hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 158px 0 72px;
  text-align: center;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(0,199,190,0.16), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 700; margin: 14px 0 12px; }
.page-hero-sub { color: rgba(255,255,255,0.72); font-size: 16px; text-wrap: balance; }

/* 关于我们页：顶部横幅内嵌关键数据条（复用首页 hero-stats 的视觉语言，保持全站一致） */
.page-hero--stats { padding-bottom: 88px; }
.page-hero--stats .hero-stats { max-width: 880px; margin: 46px auto 0; }
.page-hero--stats .stat { text-align: center; }
.page-hero--stats .stat strong { font-size: 32px; }
.page-hero--stats .stat span { display: block; margin-top: 2px; }
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.mv-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 36px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
.mv-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
}
.mv-card h3 { font-size: 22px; margin: 14px 0 12px; color: var(--dark); }
.mv-card p { color: var(--text-light); font-size: 14.5px; line-height: 1.9; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(10,30,60,0.12); }
.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #0d7ea8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
/* 仅统一块级显示，尺寸交由 HTML 的 width/height 控制（避免影响 careers 页既有图标） */
.value-icon img { display: block; }
.value-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--dark); }
.value-card p { font-size: 13.5px; color: var(--text-light); line-height: 1.85; }
.culture-quote {
  /* 原为近黑深色底，与全站浅色系不统一；改为浅蓝灰纯色 */
  background: #eef4fb;
  color: var(--text);
  padding: 76px 0;
  text-align: center;
  border-top: 1px solid rgba(11, 61, 145, 0.08);
}
.quote-text {
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.9;
  font-weight: 600;
  color: var(--dark);
}
.quote-from { margin-top: 20px; color: var(--primary-light); font-size: 14px; letter-spacing: 2px; }
.about-more { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
/* 页面收尾引导区（关于我们页底部）：分隔线已去掉，加大顶部留白让按钮区呼吸感更好 */
.about-more-section { padding-top: 56px; }
/* 收尾引导区只有一组按钮，非独立内容板块；且其上已有「浅灰蓝→白」色阶分层，
   紧贴按钮显局促，故隐藏 */
.section.about-more-section::before { display: none; }
.about-more-section .about-more { margin-top: 0; }
.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(0,180,216,0.45);
  padding: 12px 33px;
}
.btn-outline:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,180,216,0.18); }

@media (max-width: 768px) {
  .page-hero { padding: 130px 0 56px; }
  .mv-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-sub { padding-left: 16px; font-size: 14.5px; }
  .hero-sub br { display: none; }
}

/* ============ 案例展示 ============ */
.case-toolbar {
  position: sticky;
  top: 86px;
  z-index: 6;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 10px 0;
  background: #fff;
}
.case-toolbar a {
  padding: 9px 24px;
  border-radius: 999px;
  border: 1px solid #d7e0ea;
  background: #fff;
  color: var(--text-light);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}
.case-toolbar a:hover, .case-toolbar a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.case-dropdown {
  position: relative;
  display: inline-block;
}
.case-dropdown__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid #d7e0ea;
  background: #fff;
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.case-dropdown__btn:hover,
.case-dropdown.open .case-dropdown__btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.case-dropdown__caret {
  font-size: 12px;
  line-height: 1;
  transition: transform .2s;
}
.case-dropdown.open .case-dropdown__caret {
  transform: rotate(180deg);
}
.case-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: #fff;
  border: 1px solid #e6ecf3;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(20, 40, 80, .16);
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
}
.case-dropdown.open .case-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.case-dropdown__menu li a {
  display: block;
  padding: 10px 16px;
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.case-dropdown__menu li a:hover {
  background: #f1f6fc;
}
.case-dropdown__menu li a.active {
  color: var(--accent);
  font-weight: 600;
  background: #f6faff;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(10,30,60,0.12); }
.case-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #10243e, #1c3a5e);
}
.case-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 案例图完整显示不裁切（白底衬底，与首页照片墙一致） */
.case-media--fit { background: #fff; }
.case-media--fit img { object-fit: contain; }
.case-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  letter-spacing: 2px;
}
.case-info { padding: 20px 22px 24px; }
.case-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.case-info h3 { font-size: 16px; color: var(--dark); margin-bottom: 6px; }
.case-info p { font-size: 13.5px; color: var(--text-light); line-height: 1.8; }
.cases-note { margin-top: 36px; text-align: center; font-size: 14px; color: var(--text-light); }
.cases-note a { color: var(--primary); font-weight: 700; text-decoration: none; }
.cases-note a:hover { color: #1d5fc7; text-decoration: none; }

/* 案例按大类分组展示 */
html { scroll-behavior: smooth; }
.case-groups { display: flex; flex-direction: column; gap: 48px; }
.case-group { scroll-margin-top: 150px; }
.case-group__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e7edf3;
}
.case-group__index {
  flex: none;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #2a9fe0);
  color: #fff; font-weight: 700; font-size: 16px;
}
.case-group__head h3 { font-size: 20px; color: var(--dark); margin-bottom: 4px; }
.case-group__head p { font-size: 13.5px; color: var(--text-light); line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cases-grid { grid-template-columns: 1fr; }
}

/* ============ 合作伙伴 ============ */
.partners { background: #ffffff; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
}
.partner-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 14px;
  background: #fbfdff;
  border: 1px solid rgba(11, 61, 145, 0.10);
  border-radius: 10px;
  overflow: hidden;
  opacity: 1;
  transition: var(--transition);
}
.partner-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 92, 215, 0.10), rgba(0, 180, 216, 0.10));
  opacity: 0;
  transition: var(--transition);
}
.partner-tile img {
  max-width: 82%;
  max-height: 62%;
  object-fit: contain;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.partner-tile:hover {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(11, 61, 145, 0.16);
  transform: translateY(-3px);
}
.partner-tile:hover::before {
  opacity: 1;
}
.partner-tile:hover img {
  transform: scale(1.06);
}
/* 联系表单下方 CTA 带：一句宣传 + 渐变胶囊跳转按钮 */
.contact-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  text-align: center;
}
.cc-slogan {
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}
.cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  padding: 13px 34px;
  border-radius: 999px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.cc-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(11, 61, 145, 0.30);
}
.cc-arrow { font-style: normal; transition: transform var(--transition); }
.cc-btn:hover .cc-arrow { transform: translateX(4px); }
@media (max-width: 768px) {
  .contact-cta { flex-direction: column; gap: 10px; }
  .cc-slogan { font-size: 13px; }
  .cc-btn { width: 100%; justify-content: center; }
}
@media (max-width: 992px) {
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .partner-tile { height: 76px; }
}

/* ============ 图片防另存为（缓解层，非绝对防护） ============ */
/* 浏览器必须下载图片才能显示，故无法 100% 阻止保存；
   以下仅阻止右键"图片另存为"、拖拽保存与移动端长按保存。 */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ============ 人才招聘 ============ */
.tab-toolbar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.tab-toolbar button {
  padding: 11px 34px;
  border-radius: 999px;
  border: 1px solid #d7e0ea;
  background: #fff;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tab-toolbar button:hover, .tab-toolbar button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
/* 与首页同规则：板块底色深浅交替，使每条分隔线都伴随色调台阶，不出现“纯白夹一条线” */
.life { background: var(--bg-gray); }
.life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.life-photos { margin-top: 40px; }
.job-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.job-card {
  background: var(--bg);
  border: 1px solid rgba(11, 61, 145, 0.12);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: var(--transition);
}
.job-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.job-head h3 { font-size: 17px; color: var(--primary); }
.job-loc {
  font-size: 13px;
  color: var(--text-light);
  background: var(--bg-gray);
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.job-card p { font-size: 14.5px; color: var(--text-light); }
.hr-contact {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(11, 61, 145, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.hr-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background: var(--bg);
}
.hr-item + .hr-item { border-top: 1px solid var(--bg-gray); }
.hr-label {
  flex: 0 0 110px;
  font-size: 13px;
  color: var(--text-light);
}
.hr-value { font-size: 15px; font-weight: 600; color: var(--text); }
a.hr-value:hover { color: var(--accent); }
@media (max-width: 768px) {
  .life-grid { grid-template-columns: 1fr; }
  .job-card { padding: 18px 20px; }
  .hr-label { flex-basis: 92px; }
  /* 英文页 HR 联系方式：标签是「Resume Submission」「Subject Format」这类长词组，
     92px 列宽放不下会折成两行、连值列也被挤压折行。
     英文页改为上下堆叠（标签一行 + 值一行），中英各自的标签都是一行。 */
  html[lang="en"] .hr-item { flex-direction: column; align-items: flex-start; gap: 3px; }
  html[lang="en"] .hr-label { flex: 0 0 auto; }
}

/* ============ 右侧悬浮工具栏（圆形图标组） ============ */
.side-toolbar {
  position: fixed;
  right: 22px;
  bottom: 90px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.st-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3a7bd5, #2a9fe0);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 6px 16px rgba(42, 159, 224, 0.32);
  transition: var(--transition);
  padding: 0;
}
.st-btn:hover { background: linear-gradient(135deg, #1a5cd7, #00b4d8); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(26, 92, 215, 0.36); }
.st-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.st-btn svg.ic-fill { fill: currentColor; stroke: none; }
.wx-pop {
  position: absolute;
  right: 62px;
  bottom: 8px;
  width: 190px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(11, 61, 145, 0.18);
  padding: 14px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: var(--transition);
}
.wx-pop.show { opacity: 1; visibility: visible; transform: none; }
.wx-pop img { width: 100%; border-radius: 8px; margin-top: 8px; }
.wx-pop p { font-size: 12.5px; color: var(--text-light); line-height: 1.6; }
.tel-pop {
  position: absolute;
  right: 62px;
  bottom: 112px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(11, 61, 145, 0.18);
  padding: 12px 18px;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: var(--transition);
}
.tel-pop.show { opacity: 1; visibility: visible; transform: none; }
.tel-pop .tp-label { font-size: 12.5px; color: var(--text-light); margin-bottom: 2px; }
.tel-pop .tp-num { font-size: 18px; font-weight: 700; color: var(--primary); letter-spacing: 0.5px; }
.tel-pop .tp-num:hover { color: var(--accent); }
@media (max-width: 768px) {
  .side-toolbar { right: 12px; bottom: 70px; gap: 10px; }
  .st-btn { width: 44px; height: 44px; }
  .st-btn svg { width: 19px; height: 19px; }
  .wx-pop, .tel-pop { right: 54px; }
}

/* 产品与服务：标题 + 服务链路面板 + 导航 + 卡片指标徽章 */
.svc-top {
  background: linear-gradient(135deg, #f4f9fe 0%, #e9f1fb 100%);
  border: 1px solid #e0eaf6;
  border-radius: 16px;
  padding: 26px 26px 28px;
  margin-bottom: 16px;
  text-align: center;
}
.svc-chain__title { font-size: 14px; color: var(--text-light); margin-bottom: 18px; }
.svc-chain__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px; }
.svc-chain__node {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dfe9f5;
  box-shadow: 0 2px 8px rgba(11, 61, 145, 0.06);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
.svc-chain__node:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 6px 16px rgba(11, 61, 145, 0.14); }
span.svc-chain__node { cursor: default; }
.svc-chain__node:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  color: #a9c2e0;
  font-size: 14px;
}
.svc-nav {
  position: sticky;
  top: 86px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  padding: 10px 0;
  background: #fff;
}
.svc-nav a {
  padding: 7px 14px;
  border: 1px solid #e5ecf5;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}
.svc-nav a:hover { color: var(--primary); border-color: var(--primary); background: #f3f8fd; }
.product-card { scroll-margin-top: 130px; }
.product-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.product-head h3 { margin-bottom: 0; }
.product-icon { width: 38px; height: 38px; flex: none; padding: 7px; box-sizing: border-box; border-radius: 10px; background: #f3f8fd; }
.product-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.product-badges span {
  font-size: 12px;
  color: var(--primary);
  background: #eef4fc;
  border: 1px solid #dbe7f6;
  border-radius: 6px;
  padding: 4px 10px;
}
.product-more { margin-top: 16px; }
.product-more a { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; }
.product-more a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .svc-top { padding: 20px 16px 22px; }
  .svc-nav { position: static; margin-bottom: 24px; }
  .product-card { scroll-margin-top: 90px; }
  .case-toolbar { position: static; padding: 0; }
  .case-group { scroll-margin-top: 92px; }

  /* —— 服务链路图：手机上一折行，行尾的「→」就悬空指向空处（链条断裂），
     改为纵向链条：节点竖排、箭头朝下，链式关系完整保留。 */
  .svc-chain__row {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 21px;
  }
  .svc-chain__node { padding: 7px 18px; }
  .svc-chain__node:not(:last-child)::after {
    content: "↓";
    left: 50%;
    right: auto;
    top: auto;
    bottom: -18px;
    transform: translateX(-50%);
    line-height: 1;
    font-size: 15px;
  }

  /* —— 案例分类导航：长标签 white-space:nowrap 会让每项各占一行，
     变成一堆宽度不一的居中按钮（英文页高达 323px），改为整齐网格。
     ⚠️ 2026-10-06 二次修正：等宽两列（每列内容宽仅 148px）谁也装不下最长标签——
     中文「高速 PCB / 产品板 / EVB 板」自然宽 174.7px、英文「High-Speed PCB / Product Board / EVB board」250px，
     都会把末字挤成孤行。改用 auto-fit + minmax(280px)：手机上自动降为**单列**（每项一行），
     620px 以上才回到两列（此时每列内容宽 ≥259px，仍能一行放下）。 */
  .case-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    justify-content: initial;
    margin-bottom: 24px;
  }
  .case-toolbar a {
    white-space: normal;
    padding: 9px 12px;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
  }
}
