/* ============================================================
   中柏自动化设备官网 · 设计系统
   还原自 Ardot 设计稿（1440 画布 / 120px 页面边距）
   ============================================================ */

:root {
  /* 色彩令牌 */
  --c-bg: #F9F9F9;            /* 页面浅底 */
  --c-surface: #FFFFFF;       /* 卡片 / 白底区块 */
  --c-primary: #014DB2;       /* 品牌深蓝 */
  --c-primary-deep: #013E93;  /* 主色加深（hover） */
  --c-primary-soft: #E9F0FB;  /* 浅蓝底 */
  --c-ink: #0A1628;           /* 主文本 */
  --c-body: #6B7280;          /* 次文本 */
  --c-muted: #8A93A6;         /* 弱文本 */
  --c-line: #EBEBEB;          /* 描边 */
  --c-footer: #0A1628;        /* 页脚深底 */
  --c-footer-line: #1E2A44;   /* 页脚分隔线 */
  --c-footer-sub: #8A93A6;    /* 页脚次级文字 */
  --c-footer-tag: #C7D6EE;    /* CTA 带描述文字 */
  --c-footer-trust: #9FB6D8;  /* CTA 信任信息 */
  --c-danger: #DC2626;
  --grad-cta: linear-gradient(135deg, #004DB2 0%, #001745 100%);

  /* 圆角令牌 */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-2xl: 16px;
  --r-btn: 24px;
  --r-avatar: 32px;

  /* 字体 */
  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-num: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 布局 */
  --page-pad: 120px;
  --nav-h: 72px;
}

/* ============ 基础 ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(20px, 8.33vw, var(--page-pad));
}

/* ============ 导航栏 ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--c-surface);
  transition: box-shadow .25s ease;
}
.site-nav.is-scrolled { box-shadow: 0 1px 0 var(--c-line), 0 8px 24px rgba(10, 22, 40, .06); }

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  flex: none;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-text { font-size: 18px; font-weight: 600; color: var(--c-ink); letter-spacing: .02em; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--c-ink);
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--c-primary); }
.nav-links a.active { color: var(--c-primary); }

.btn-nav {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 20px;
  border-radius: 18px;
  background: var(--c-primary);
  color: #FFFFFF;
  font-size: 14px; font-weight: 500;
  transition: background .2s ease;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--c-primary-deep); }

.nav-toggle { display: none; width: 40px; height: 40px; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--c-ink); }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--r-btn);
  font-size: 16px; font-weight: 500;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--c-primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--c-primary-deep); }

.btn-ghost { background: transparent; color: var(--c-primary); padding: 0 8px; gap: 6px; }
.btn-ghost:hover { color: var(--c-primary-deep); }
.btn-ghost svg { width: 18px; height: 18px; stroke: currentColor; flex: none; }

.btn-white { background: #FFFFFF; color: var(--c-primary); }
.btn-white:hover { background: #EAF1FB; }

.btn-outline-white { border: 1px solid rgba(255, 255, 255, .35); color: #FFFFFF; }
.btn-outline-white:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }

/* ============ 区块 ============ */
.section { padding-block: 88px; }
.section--tight { padding-block: 72px; }
.section--hero { padding-block: 96px; }
.section--pagehead { padding: 72px 0 64px; }
.section--alt { background: var(--c-bg); }
.section--flush-top { padding-top: 0; }

.section-head { display: flex; flex-direction: column; gap: 48px; }
.section-head--compact { gap: 28px; }

.section-title { font-size: 36px; font-weight: 600; line-height: 48px; color: var(--c-ink); }
.section-desc { font-size: 16px; line-height: 26px; color: var(--c-body); }

.page-title { font-size: 44px; font-weight: 600; line-height: 60px; color: var(--c-ink); }
.page-desc { font-size: 17px; line-height: 30px; color: var(--c-body); max-width: 760px; }
.breadcrumb { font-size: 14px; color: var(--c-muted); }

/* ============ 标签 Pill ============ */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 14px;
  border-radius: var(--r-xl);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: 13px; font-weight: 500;
  width: max-content;
}
.pill--plain { padding: 6px 14px; height: auto; }
.pill--dot .pill-dot { width: 8px; height: 8px; border-radius: var(--r-xs); background: var(--c-primary); flex: none; }
.pill--white { background: var(--c-surface); }
.pill--onblue { background: rgba(255, 255, 255, .14); color: #FFFFFF; }

/* ============ 网格 ============ */
.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); }

/* ============ 图标 ============ */
.icon-tile {
  width: 44px; height: 44px;
  border-radius: var(--r-lg);
  background: var(--c-primary-soft);
  display: grid; place-items: center;
  flex: none;
}
.icon-tile svg { width: 22px; height: 22px; stroke: var(--c-primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile--sm { width: 40px; height: 40px; border-radius: var(--r-md); }
.icon-tile--sm svg { width: 20px; height: 20px; }

/* ============ 卡片 ============ */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2xl);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: 0 12px 32px rgba(10, 22, 40, .08); transform: translateY(-2px); }
.card--pad32 { padding: 32px; }
.card-title { font-size: 18px; font-weight: 600; color: var(--c-ink); }
.card-title--lg { font-size: 20px; }
.card-desc { font-size: 14px; line-height: 24px; color: var(--c-body); }

/* 文字链接 + 箭头 */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--c-primary);
  transition: gap .2s ease;
  width: max-content;
}
.link-arrow:hover { gap: 10px; }
.link-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; background: var(--c-surface); }
.hero-glow {
  position: absolute; top: 40px; right: 0;
  width: 620px; height: 560px;
  background: radial-gradient(closest-side, rgba(1, 77, 178, .10), rgba(1, 77, 178, 0) 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 64px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-title { font-size: 56px; font-weight: 600; line-height: 72px; color: var(--c-ink); letter-spacing: .01em; }
.hero-sub { font-size: 17px; line-height: 30px; color: var(--c-body); max-width: 560px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-media {
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 52 / 46;
  background: var(--c-primary-soft);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============ 客户标识栏 ============ */
.logos-bar { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.logos-bar .logos-label { font-size: 14px; color: var(--c-body); }
.logos-bar .logos-name { font-size: 16px; font-weight: 500; color: var(--c-muted); white-space: nowrap; }

/* ============ 数据成绩 ============ */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-value { font-family: var(--font-num); font-size: 48px; font-weight: 600; line-height: 56px; color: var(--c-primary); letter-spacing: -.01em; }
.stat-label { font-size: 14px; color: var(--c-body); }

/* ============ 案例卡片 ============ */
.case-card { padding: 0; overflow: hidden; gap: 0; }
/* 案例数量不定（1 条或 N 条）时都居中，避免少量案例偏左留大片空白 */
#caseList, #casePageList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 380px));
  justify-content: start;
}
/* 仅有 1 条案例时限制卡宽，避免在宽屏上孤零零拉出一整行 */
#caseList:has(> :only-child), #casePageList:has(> :only-child) {
  grid-template-columns: minmax(0, 720px);
}
.case-card:hover { transform: translateY(-2px); }
.case-media { height: 220px; overflow: hidden; background: var(--c-primary-soft); position: relative; }
.case-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- 客户现场案例卡 ---- */
/* 物料角标：压在实拍图上，访客第一眼看到"灌的是什么料" */
.case-tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(15, 32, 61, .82);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  max-width: calc(100% - 28px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 还没传现场照片时的占位 */
.case-nophoto {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--c-primary-soft), #CFDEF5);
}
.case-nophoto svg {
  width: 44px; height: 44px;
  stroke: var(--c-primary); fill: none;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.case-nophoto i { font-style: normal; font-size: 12px; color: var(--c-primary); }

.case-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.case-client { font-size: 13px; font-weight: 600; color: var(--c-primary); }
.case-industry {
  font-size: 12px; color: var(--c-muted);
  padding: 2px 8px; border: 1px solid var(--c-line); border-radius: 4px;
}
.case-spec { font-size: 13px; color: var(--c-muted); margin: 0; }
.case-result {
  display: flex; align-items: flex-start; gap: 7px; width: 100%; margin: 0;
  padding: 10px 12px; border-radius: var(--r-sm); background: var(--c-primary-soft);
  font-size: 14px; font-weight: 600; line-height: 22px; color: var(--c-ink);
}
.case-result svg {
  width: 16px; height: 16px; flex: none; margin-top: 3px;
  stroke: var(--c-primary); fill: none;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.case-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.case-title { font-size: 18px; font-weight: 600; line-height: 28px; color: var(--c-ink); }

/* ---- 区块底部「查看全部」入口 ---- */
.section-more { display: flex; justify-content: center; margin-top: 40px; }
.section-more[hidden] { display: none; }
.section-more .btn { display: inline-flex; align-items: center; gap: 8px; }
.section-more svg {
  width: 18px; height: 18px; flex: none;
  stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- 案例页 ---- */
.cases-stat { margin: 14px 0 0; font-size: 14px; color: var(--c-muted); }
.case-empty { grid-column: 1 / -1; text-align: left; padding: 32px; }
.case-empty b { display: block; font-size: 16px; color: var(--c-ink); margin-bottom: 8px; }
.case-empty p { line-height: 26px; }
.case-empty a { color: var(--c-primary); text-decoration: underline; }

/* ============ 客户评价 ============ */
.testimonial { display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; }
.testimonial-quote { font-size: 24px; font-weight: 600; line-height: 40px; color: var(--c-ink); max-width: 880px; }
.testimonial-sign { display: inline-flex; align-items: center; gap: 16px; }
.avatar {
  width: 48px; height: 48px; border-radius: var(--r-avatar);
  background: var(--c-primary-soft);
  display: grid; place-items: center;
  font-size: 18px; font-weight: 600; color: var(--c-primary);
  flex: none;
}
.testimonial-name { font-size: 15px; font-weight: 500; color: var(--c-ink); }

/* ============ 服务页 ============ */
.svc-row {
  display: grid;
  grid-template-columns: 540px 1fr;
  gap: 64px;
  align-items: center;
}
.svc-row--rev .svc-media { order: 2; }
.svc-media {
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 27 / 19;
  background: var(--c-primary-soft);
}
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-copy { display: flex; flex-direction: column; gap: 20px; align-items: stretch; }
.svc-copy > .pill,
.svc-copy > .btn { align-self: flex-start; }
.svc-title { font-size: 28px; font-weight: 600; line-height: 40px; color: var(--c-ink); }
.svc-desc { font-size: 16px; line-height: 28px; color: var(--c-body); }
.svc-points { display: flex; flex-direction: column; gap: 12px; }
.svc-point { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--c-ink); }
.svc-point svg { width: 18px; height: 18px; stroke: var(--c-primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 流程步骤 */
.step-num { font-family: var(--font-num); font-size: 32px; font-weight: 600; line-height: 1.2; color: var(--c-primary); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 28px; max-width: 880px; }
.faq-item { display: flex; flex-direction: column; gap: 8px; }
.faq-q { font-size: 17px; font-weight: 600; color: var(--c-ink); }
.faq-a { font-size: 15px; line-height: 26px; color: var(--c-body); }

/* ============ 关于页 ============ */
.intro-row {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 64px;
  align-items: center;
}
.intro-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.intro-title { font-size: 28px; font-weight: 600; line-height: 40px; color: var(--c-ink); }
.intro-para { font-size: 16px; line-height: 28px; color: var(--c-body); }
.intro-points { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.intro-points .svc-point { font-size: 15px; }

.about-media {
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 13 / 10;
  background: var(--c-primary-soft);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* 发展历程 */
.timeline { display: flex; flex-direction: column; gap: 40px; }
.tl-row { display: flex; gap: 32px; align-items: flex-start; }
.tl-year { font-family: var(--font-num); font-size: 22px; font-weight: 600; color: var(--c-primary); width: 72px; flex: none; line-height: 28px; }
.tl-title { font-size: 18px; font-weight: 600; color: var(--c-ink); line-height: 28px; flex: none; max-width: 420px; }
.tl-desc { font-size: 14px; line-height: 24px; color: var(--c-body); flex: 1; min-width: 0; padding-top: 2px; }

/* 团队卡片 */
.member-card { align-items: center; text-align: center; gap: 14px; }
.member-avatar {
  width: 64px; height: 64px; border-radius: var(--r-avatar);
  background: var(--c-primary-soft);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 600; color: var(--c-primary);
}
.member-name { font-size: 18px; font-weight: 600; color: var(--c-ink); }
.member-bio { font-size: 13px; line-height: 22px; color: var(--c-body); }

/* ============ 联系页 ============ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.form-card { gap: 20px; }
.form-title { font-size: 20px; font-weight: 600; color: var(--c-ink); }
.form-note-top { font-size: 14px; color: var(--c-body); margin-top: -12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#contactForm { display: flex; flex-direction: column; gap: 16px; }
#contactForm .btn-submit { margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 14px; font-weight: 500; color: var(--c-ink); }
.input {
  width: 100%;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--c-bg);
  border: 1px solid transparent;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  color: var(--c-ink);
  transition: border-color .2s ease, background .2s ease;
  outline: none;
}
textarea.input { height: 96px; padding: 12px 14px; resize: vertical; line-height: 24px; }
.input:focus { border-color: var(--c-primary); background: var(--c-surface); }
.input.error { border-color: var(--c-danger); background: #FEF2F2; }
.field-error { font-size: 12px; color: var(--c-danger); display: none; }
.field.has-error .field-error { display: block; }

.btn-submit { width: 100%; }
.form-note { font-size: 12px; color: var(--c-muted); }

.form-success {
  display: none;
  background: var(--c-primary-soft);
  border: 1px solid rgba(1, 77, 178, .18);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 22px;
  color: var(--c-primary);
}
.form-success.show { display: block; }

.info-col { display: flex; flex-direction: column; gap: 16px; }
.info-item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex; align-items: center; gap: 14px;
  transition: box-shadow .25s ease;
}
.info-item:hover { box-shadow: 0 12px 32px rgba(10, 22, 40, .08); }
.info-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.info-title { font-size: 13px; color: var(--c-muted); }
.info-value { font-size: 16px; font-weight: 500; color: var(--c-ink); word-break: break-all; }
a.info-item .info-value { transition: color .2s ease; }
a.info-item:hover .info-value { color: var(--c-primary); }

/* 办公地点 */
.office-card { gap: 12px; }
.office-city { font-size: 20px; font-weight: 600; color: var(--c-ink); display: flex; align-items: center; gap: 12px; }
.office-tag {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 12px;
  border-radius: var(--r-lg);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: 12px; font-weight: 500;
}
.office-line { font-size: 14px; line-height: 24px; color: var(--c-body); }

/* ============ CTA 带 ============ */
.cta-band { background: var(--grad-cta); padding-block: 88px; }
.cta-inner { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.cta-title { font-size: 36px; font-weight: 600; line-height: 48px; color: #FFFFFF; }
.cta-desc { font-size: 16px; line-height: 28px; color: var(--c-footer-tag); max-width: 640px; text-align: center; }
.cta-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cta-trust { font-size: 13px; color: var(--c-footer-trust); }

/* ============ 页脚 ============ */
.site-footer { background: var(--c-footer); padding-block: 72px 40px; color: var(--c-footer-sub); }
.footer-top { display: flex; gap: 64px; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; width: 420px; flex: none; }
.footer-logo-row { display: inline-flex; align-items: center; gap: 10px; }
.footer-logo-row .logo-text { color: #FFFFFF; }
.footer-manifesto { font-size: 26px; font-weight: 600; line-height: 38px; color: #FFFFFF; }
.footer-tagline { font-size: 14px; color: var(--c-footer-sub); }
.footer-cols { display: flex; gap: 48px; flex: 1; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-size: 13px; font-weight: 500; color: #FFFFFF; }
.footer-col a, .footer-col span { font-size: 14px; color: var(--c-footer-sub); line-height: 22px; transition: color .2s ease; }
.footer-col a:hover { color: #FFFFFF; }
.footer-divider { height: 1px; background: var(--c-footer-line); margin-block: 48px; }
.footer-bottom { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--c-footer-sub); }
.footer-beian { color: #cdd6e4; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.footer-beian:hover { opacity: 1; }

/* ============ 滚动显现动画（渐进增强：仅 JS 可用时启用） ============ */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-media { max-width: 520px; }
  .svc-row { grid-template-columns: 1fr; gap: 40px; }
  .svc-row--rev .svc-media { order: 0; }
  .svc-media { max-width: 540px; }
  .intro-row { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 520px; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .info-col { display: grid; grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; gap: 48px; }
  .footer-brand { width: 100%; }
}

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--c-surface);
    flex-direction: column; align-items: flex-start; gap: 20px;
    padding: 20px clamp(20px, 8.33vw, var(--page-pad)) 28px;
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 16px 32px rgba(10, 22, 40, .06);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: grid; }
  .btn-nav { display: none; }
  .section-head { gap: 28px; }
  .hero-title { font-size: 40px; line-height: 54px; }
  .page-title { font-size: 34px; line-height: 46px; }
  .section-title, .cta-title { font-size: 28px; line-height: 38px; }
  .stat-value { font-size: 40px; line-height: 48px; }
  .testimonial-quote { font-size: 20px; line-height: 34px; }
  .tl-row { flex-direction: column; gap: 8px; }
  .tl-title { max-width: none; }
  .footer-cols { flex-direction: column; gap: 32px; }
  .footer-divider { margin-block: 32px; }
}

@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .section--hero { padding-block: 64px; }
  .section--pagehead { padding: 48px 0 40px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .info-col { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .logos-bar { gap: 16px 32px; }
  .hero-glow { width: 380px; height: 380px; }
}

/* ============ 产品中心页（机型详情） ============ */
/* 锚点跳转时为吸顶导航留出空间，避免标题/参数表被压在导航下 */
.section[id], section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.svc-detail {
  display: grid;
  grid-template-columns: 540px 1fr;
  gap: 64px;
  align-items: center;
}
.svc-detail--reverse .svc-media { order: 2; }
/* 细节图标题：弱化降一级层级，小字 + 左侧竖线，不再与参数表标题抢视线 */
.svc-subtitle {
  font-size: 14px; font-weight: 600; color: var(--c-muted);
  padding: 0 0 12px 11px; margin: 0 0 14px;
  border-left: 3px solid var(--c-primary);
  border-bottom: none;
  display: block;
}

/* 技术参数：折叠条（默认收起，置于图文区下方，保持区块清爽） */
.svc-specs {
  width: 100%; max-width: 1440px; margin: 28px auto 0;
  padding-inline: clamp(20px, 8.33vw, var(--page-pad));
}
.svc-specs__toggle {
  display: flex; align-items: center; gap: 12px;
  width: fit-content; padding: 11px 20px;
  border: 1px solid #D8E4F7; border-radius: 999px;
  background: var(--c-primary-soft); cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 600; color: var(--c-ink);
  box-shadow: 0 2px 8px rgba(1, 77, 178, .06);
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.svc-specs__toggle::-webkit-details-marker { display: none; }
.svc-specs__toggle:hover {
  border-color: var(--c-primary); color: var(--c-primary);
  background: #DDE8FA;
  box-shadow: 0 6px 18px rgba(10, 22, 40, .12);
}
.svc-specs__icon { display: flex; width: 18px; height: 18px; color: var(--c-primary); }
.svc-specs__icon svg { width: 100%; height: 100%; }
.svc-specs__meta {
  font-size: 13px; font-weight: 500; color: var(--c-muted);
  padding-left: 2px;
}
.svc-specs__hint {
  font-size: 13px; font-weight: 500; color: var(--c-primary);
}
.svc-specs__hint::after { content: "展开"; }
.svc-specs[open] .svc-specs__hint::after { content: "收起"; }
.svc-specs__arrow {
  width: 8px; height: 8px; margin-left: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.svc-specs[open] .svc-specs__arrow { transform: rotate(-135deg) translateY(-2px); }
.svc-specs[open] .svc-specs__toggle { margin-bottom: 14px; }
.svc-specs .spec-table { max-width: 900px; margin-left: 0; }

/* 技术参数表 */
.spec-table {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  border: 1px solid var(--c-line); border-radius: var(--r-lg);
  overflow: hidden; background: #FFFFFF;
}
.spec-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
}
.spec-row:nth-child(odd) { background: var(--c-surface); }
.spec-row:nth-last-child(-n+2) { border-bottom: none; }
.spec-k { flex: none; width: 92px; color: var(--c-muted); }
.spec-v { flex: 1; color: var(--c-ink); font-weight: 500; }

/* 细节实拍图组 */
.svc-gallery {
  width: 100%; max-width: 1440px; margin: 30px auto 0;
  padding-inline: clamp(20px, 8.33vw, var(--page-pad));
}
/* 轻卡片容器：把「标题 + 单行图」整体收纳，消除散图感 */
.svc-gallery__card {
  background: var(--c-surface, #FBFCFE);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg, 16px);
  padding: 20px 22px 22px;
}
.dg-grid {
  /* 桌面始终单行排布：列数 = 图片张数，不折行 */
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: 12px;
}
/* 图片多于 6 张时恢复自动换行，避免单行挤成细条 */
.dg-grid:has(> :nth-child(7)) {
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.dg-item {
  position: relative; padding: 0; border: 1px solid var(--c-line);
  border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in;
  background: var(--c-surface); transition: transform .2s ease, box-shadow .2s ease;
}
.dg-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10, 22, 40, .12); }
.dg-item img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.dg-cap {
  display: block; padding: 7px 10px;
  font-size: 12px; line-height: 1.4; color: var(--c-body); text-align: left;
  border-top: 1px solid var(--c-line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 缩略图压暗一点，避免车间图过跳；鼠标悬停恢复 */
.dg-item img { filter: saturate(.94); transition: filter .2s ease; }
.dg-item:hover img { filter: none; }

/* 大图查看（灯箱） */
.dg-lightbox__box { width: min(1000px, 100%); }
.dg-stage { background: #000; display: flex; align-items: center; justify-content: center; }
.dg-stage img { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #000; }
.dg-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
}
.dg-nav {
  border: none; background: rgba(255, 255, 255, .12); color: #FFFFFF;
  padding: 7px 16px; border-radius: 999px; font-size: 14px; cursor: pointer;
  transition: background .2s ease;
}
.dg-nav:hover { background: rgba(255, 255, 255, .26); }
.dg-count { color: rgba(255, 255, 255, .72); font-size: 13px; }

/* 参数表 / 细节图：窄屏降级 */
@media (max-width: 900px) {
  .spec-table { grid-template-columns: minmax(0, 1fr); }
  .spec-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--c-line); }
  .spec-row:last-child { border-bottom: none; }
  /* 窄屏才允许折行：3 列 */
  .dg-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dg-stage img { max-height: 62vh; }
}
@media (max-width: 560px) {
  .dg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-gallery__card { padding: 14px 14px 16px; }
  .svc-subtitle { margin-bottom: 12px; }
}
@media (max-width: 480px) {
  .dg-item img { aspect-ratio: 1 / 1; }
  .dg-cap { font-size: 12px; padding: 8px 10px; }
}

.svc-points li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 26px;
  color: var(--c-ink);
}
.svc-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--c-primary);
  border-bottom: 2px solid var(--c-primary);
  transform: rotate(-45deg);
}

/* ============ 内页头图区 ============ */
.page-hero { padding-top: 132px; padding-bottom: 8px; }

/* ============ 缺图机型占位 ============ */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(135deg, #E9F0FB 0%, #CFDEF5 100%);
  color: var(--c-primary);
}
.img-placeholder svg { width: 76px; height: 76px; opacity: .5; }
.img-placeholder span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
  opacity: .75;
}

/* ============ 发展历程 ============ */
.timeline { display: flex; flex-direction: column; max-width: 880px; }
.timeline-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--c-line);
}
.timeline-row:last-child { border-bottom: none; }
.timeline-year {
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-primary);
}
.timeline-body { display: flex; flex-direction: column; gap: 8px; }
.timeline-title { font-size: 18px; font-weight: 600; color: var(--c-ink); }
.timeline-desc { font-size: 15px; line-height: 26px; color: var(--c-body); }

/* ============ 公司介绍媒体 ============ */
.intro-media {
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 27 / 19;
  background: var(--c-primary-soft);
}
.intro-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============ FAQ（原生折叠） ============ */
.faq-item { border-bottom: 1px solid var(--c-line); padding: 4px 0; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--c-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  transition: transform .25s ease, background .25s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--c-primary);
  transform: translate(-50%, -50%);
  transition: opacity .25s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--c-primary); }
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: #FFFFFF; }
.faq-body {
  padding: 0 42px 18px 0;
  font-size: 15px;
  line-height: 27px;
  color: var(--c-body);
}

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .svc-detail { grid-template-columns: 1fr; gap: 32px; }
  .svc-detail--reverse .svc-media { order: 0; }
  .intro-row { grid-template-columns: 1fr; gap: 32px; }
  .timeline-row { grid-template-columns: 72px 1fr; gap: 20px; }
}

/* 首页产品中心 · 全系列 CTA 卡 */
.case-media--series {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(135deg, var(--c-primary-soft), #CFDEF5);
}
.case-media--series svg {
  width: 64px; height: 64px;
  stroke: var(--c-primary); fill: none;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.series-pill {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  color: var(--c-primary);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(1, 77, 178, .18);
  padding: 5px 16px; border-radius: 999px;
}

/* ============ 产品视频入口（site-config.js 配置后显示） ============ */
[data-video] { display: none !important; }
[data-video].is-ready { display: inline-flex !important; }

.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.svc-video-btn {
  border: 1.5px solid var(--c-primary);
  background: #FFFFFF;
  color: var(--c-primary);
  padding: 0 24px;
}
.svc-video-btn:hover {
  background: var(--c-primary-soft);
  border-color: var(--c-primary-deep);
  color: var(--c-primary-deep);
}
.svc-video-btn svg { width: 14px; height: 14px; fill: currentColor; flex: none; }

/* 首页产品卡视频角标 */
.case-media { position: relative; }
.video-badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  align-items: center; gap: 7px;
  padding: 7px 15px 7px 12px;
  border: none; border-radius: 999px;
  background: rgba(9, 20, 40, .78);
  color: #FFFFFF;
  font-size: 13px; font-weight: 600; line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.video-badge:hover { background: var(--c-primary); transform: translateY(-1px); }
.video-badge svg { width: 11px; height: 11px; fill: currentColor; flex: none; }

/* ============ 视频弹窗播放器 ============ */
.video-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(7, 16, 32, .8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
  opacity: 0;
  transition: opacity .28s ease;
}
.video-modal.show { opacity: 1; }
.video-modal__box {
  width: min(960px, 100%);
  background: #0B1220;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .55);
  transform: translateY(14px) scale(.985);
  transition: transform .28s ease;
}
.video-modal.show .video-modal__box { transform: none; }
.video-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 14px 13px 20px;
}
.video-modal__title {
  flex: 1; min-width: 0;
  color: #FFFFFF; font-size: 15px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.video-modal__close {
  width: 34px; height: 34px; flex: none;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #FFFFFF; font-size: 20px; line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.video-modal__close:hover { background: rgba(255, 255, 255, .26); }
.video-modal__video {
  display: block; margin: 0 auto;
  width: 100%; height: auto; max-height: 74vh;
  object-fit: contain;            /* 横屏/竖屏都按原始比例播放，不会被拉伸 */
  background: #000;
}
body.modal-open { overflow: hidden; }

/* ============ 轻提示 toast ============ */
.site-toast {
  position: fixed; left: 50%; bottom: 40px; z-index: 300;
  transform: translateX(-50%) translateY(14px);
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(10, 22, 44, .94);
  color: #FFFFFF; font-size: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.site-toast.show { opacity: 1; transform: translateX(-50%); }

/* ============ 微信入口（button 版 info-item） ============ */
button.info-item {
  border: 1px solid var(--c-line);
  font: inherit;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.info-item--wechat:hover { box-shadow: 0 12px 32px rgba(10, 22, 40, .08); }

@media (max-width: 640px) {
  .video-modal { padding: 0; }
  .video-modal__box { border-radius: 0; }
  .video-modal__video { max-height: 60vh; }
}
