/* ==========================================================
   铭志 IDEAL 电气 · 中英双语官网
   色彩沿用小程序 app.wxss 品牌规范：深蓝主色 + RAL1021 幸运黄
   ========================================================== */

:root {
  /* 品牌色（沿用小程序品牌规范，未改） */
  --brand:        #0B2E59;
  --brand-2:      #0E4A73;
  --brand-light:  #1A5FD0;
  --yellow:       #F8D800;
  --yellow-ink:   #5F5000;
  --lime:         #9CCB3B;
  --bg:           #F4F6FA;
  --tint:         #EAF1F8;
  --card:         #FFFFFF;
  --text-1:       #1A2433;
  --text-2:       #3D4757;
  --text-3:       #66717F;
  --border:       #E4EAF2;
  --on-dark-1:    #DCE8FF;
  --on-dark-2:    #AECBFF;

  /* 美化：对比度安全的金色（浅底上 4.5:1+，原黄仅 1.8:1） */
  --gold-ink:     #7A6400;

  /* 美化：字号阶梯，从 11 种收敛为 6 档 */
  --fs-display:   clamp(40px, 5.6vw, 72px);  /* 首屏大标题 */
  --fs-h1:        clamp(30px, 3.4vw, 44px);  /* 区块标题 */
  --fs-h2:        22px;                       /* 三级标题 */
  --fs-h3:        17px;                       /* 卡片标题 */
  --fs-lead:      17px;                       /* 导语 */
  --fs-body:      16px;                       /* 正文 */
  --fs-small:     13px;                       /* 辅助文字（不低于 13） */

  /* 美化：圆角统一为 2 档 */
  --radius:       14px;   /* 卡片 */
  --radius-sm:    9px;    /* 小控件 */

  --shadow-sm:    0 4px 16px rgba(16, 38, 74, .05);
  --shadow-md:    0 12px 36px rgba(16, 38, 74, .09);
  --container:    1180px;
  --header-h:     76px;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--card);
  color: var(--text-2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--text-1); line-height: 1.3; margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

::selection { background: rgba(248, 216, 0, .32); color: var(--brand); }

/* 滚动条（WebKit） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #C3D2E4; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #A8BDD6; }

/* 渐入动画：仅在 JS 就绪（body.js-anim）后启用，无 JS 时内容直接可见 */
body.js-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1); }
body.js-anim .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.js-anim .reveal { opacity: 1; transform: none; transition: none; }
}

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--yellow); color: var(--brand); padding: 10px 18px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------- 通用组件 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-size: var(--fs-body); font-weight: 700; letter-spacing: .01em;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--yellow); color: var(--brand); }
.btn-accent:hover { background: #FFE24D; box-shadow: 0 8px 22px rgba(248, 216, 0, .3); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-primary { background: var(--brand-light); color: #fff; }
.btn-primary:hover { background: #1450B4; box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--brand-light); color: var(--brand-light); }
.btn-outline:hover { background: var(--brand-light); color: #fff; }

.section { padding: 96px 0; }
.section-tint { background: var(--bg); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brand-light); font-size: var(--fs-small); font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px;
}
.kicker::before { content: ""; width: 20px; height: 3px; background: var(--yellow); border-radius: 2px; }
.section-head h2, .about-copy h2 { font-size: var(--fs-h1); letter-spacing: -.02em; line-height: 1.25; }
.section-desc { margin-top: 16px; color: var(--text-3); font-size: var(--fs-lead); max-width: 60ch; }
.subhead { font-size: var(--fs-h2); margin: 64px 0 24px; padding-left: 14px; border-left: 4px solid var(--yellow); }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(11, 46, 89, .08); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; display: block; }
.brand img { width: auto; height: 52px; }
.primary-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.primary-nav a {
  position: relative; font-size: var(--fs-body); font-weight: 600; color: var(--text-2);
  padding: 8px 0; transition: color .18s ease;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--brand-light); }
.primary-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; border-radius: 2px; background: var(--yellow);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  min-width: 58px; height: 36px; padding: 0 12px; border-radius: 18px;
  border: 1.5px solid var(--brand); background: transparent;
  color: var(--brand); font-size: var(--fs-small); font-weight: 800; letter-spacing: .04em;
  transition: background .18s ease, color .18s ease;
}
.lang-toggle:hover { background: var(--brand); color: #fff; }
.nav-toggle { display: none; width: 40px; height: 36px; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--brand); margin: 5px 0; border-radius: 2px; }

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(125deg, #0B2E59 0%, #0E4A73 58%, #125A8C 100%);
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -160px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 216, 0, .12), transparent 68%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center;
  min-height: 600px; padding-block: 84px;
}
.hero-copy .eyebrow {
  color: var(--yellow); font-size: var(--fs-small); font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 26px;
}
.hero h1 {
  color: #fff; font-size: var(--fs-display);
  letter-spacing: -.035em; line-height: 1.12; margin-bottom: 20px; max-width: 13em;
}
/* 英文标题更长，单独收敛字号，避免占满首屏高度 */
html[lang="en"] .hero h1 { font-size: clamp(38px, 4.6vw, 60px); max-width: 16em; }
.hero-sub { color: #fff; font-size: var(--fs-lead); font-weight: 600; }
.hero-desc { color: var(--on-dark-1); margin-top: 18px; max-width: 34em; font-size: var(--fs-body); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--on-dark-1); font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  padding: 8px 17px; background: rgba(255, 255, 255, .06);
}
.hero-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.hero-visual { position: relative; }
/* 美化：产品图放大填满右栏，去掉多余光晕装饰 */
.hero-visual-card {
  position: relative; z-index: 1;
  background: transparent; padding: 0;
}
.hero-visual-card img {
  display: block; width: 108%; max-width: none; margin-left: -4%;
  filter: drop-shadow(0 22px 40px rgba(2, 14, 30, .42));
}
.hero-badge {
  position: absolute; z-index: 2; right: 2%; bottom: 6%;
  background: var(--yellow); color: var(--brand);
  font-size: var(--fs-small); font-weight: 900; letter-spacing: .1em;
  padding: 10px 18px; border-radius: var(--radius-sm);
}

/* ---------------- 数据条 ---------------- */
.stats { background: #082444; color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 34px 24px 30px; text-align: center;
  border-left: 1px solid rgba(255, 255, 255, .07);
  transition: background .2s ease;
}
.stat:hover { background: rgba(255, 255, 255, .03); }
.stat:first-child { border-left: 0; }
.stat-n {
  display: block; color: var(--yellow); font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800; line-height: 1.15; letter-spacing: -.01em;
}
.stat-l { display: block; margin-top: 10px; color: #B9D2F0; font-size: var(--fs-small); letter-spacing: .04em; }

/* ---------------- 核心业务 ---------------- */
.business-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.business-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px 30px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.business-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 44px; height: 3px; border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--yellow), #FFE57A);
  transition: width .3s cubic-bezier(.22, .61, .36, 1);
}
.business-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #CBDCF2; }
.business-card:hover::before { width: 100%; }
.business-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.business-num { color: var(--gold-ink); font-size: var(--fs-small); font-weight: 900; letter-spacing: .08em; }
.business-tag { color: var(--text-3); font-size: var(--fs-small); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.business-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); margin: 20px 0 16px;
  background: var(--tint);
  color: var(--brand-light); display: grid; place-items: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.business-card:hover .business-icon {
  background: var(--yellow); color: var(--brand);
  transform: translateY(-2px);
}
.business-card h3 { font-size: var(--fs-h2); margin-bottom: 12px; }
.business-card p { color: var(--text-3); font-size: var(--fs-small); line-height: 1.75; }
.business-bar { width: 36px; height: 3px; background: var(--yellow); border-radius: 2px; margin-top: 22px; transition: width .3s ease; }
.business-card:hover .business-bar { width: 64px; }

/* ---------------- 产品中心 ---------------- */
.product-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; margin-bottom: 20px;
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  border: 1.5px solid var(--border); background: #fff; color: var(--text-2);
  padding: 9px 19px; border-radius: 999px; font-size: var(--fs-small); font-weight: 600;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.tab:hover { border-color: var(--brand-light); color: var(--brand-light); }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab-count { margin-left: 6px; opacity: .7; font-size: var(--fs-small); }
.search-box {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 14px; color: var(--text-3); min-width: 260px;
}
.search-box:focus-within { border-color: var(--brand-light); }
.search-box input {
  border: 0; outline: 0; background: transparent; height: 44px;
  width: 100%; font-size: var(--fs-small); color: var(--text-1);
}
.result-count { color: var(--text-3); font-size: var(--fs-small); margin-bottom: 18px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CBDCF2; }
/* 美化：统一产品图容器——白底留白 + contain，把混杂的实拍/棚拍/图纸风格收进同一画框 */
.product-thumb {
  aspect-ratio: 4 / 3; background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-info { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat { color: var(--brand-light); font-size: var(--fs-small); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.product-name { font-size: var(--fs-h3); margin: 8px 0 8px; line-height: 1.45; }
.product-code {
  color: var(--text-3); font-size: var(--fs-small); font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  word-break: break-all; line-height: 1.5; flex: 1;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.product-link {
  margin-top: 14px; align-self: flex-start; color: var(--brand-light);
  font-size: var(--fs-small); font-weight: 700; border: 0; background: transparent; padding: 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.product-link:hover { color: var(--brand); gap: 10px; }
.product-link::after { content: "→"; }
.more-wrap { display: flex; justify-content: center; margin-top: 34px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--text-3); }

/* ---------------- 关于铭志 ---------------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy > p:not(.kicker):not(.about-quote) { color: var(--text-2); margin-bottom: 14px; font-size: var(--fs-body); max-width: 60ch; }
.about-quote {
  margin-top: 26px; padding-left: 18px; border-left: 3px solid var(--yellow);
  color: var(--brand); font-weight: 700; font-size: var(--fs-lead);
}
.about-visual { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.about-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-visual-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(11, 46, 89, .9));
  color: #fff; font-size: var(--fs-small); font-weight: 600; padding: 34px 20px 16px;
}
.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.milestone {
  border-top: 3px solid var(--brand-light); background: var(--bg);
  padding: 22px 22px 24px; border-radius: 0 0 10px 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.milestone:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.milestone-y { color: var(--brand-light); font-size: var(--fs-small); font-weight: 800; letter-spacing: .04em; }
.milestone h4 { font-size: var(--fs-h3); margin: 6px 0 10px; }
.milestone p { color: var(--text-3); font-size: var(--fs-small); }
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.advantage {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.advantage:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CBDCF2; }
.advantage-icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm); margin-bottom: 16px;
  background: var(--yellow); color: var(--brand);
  display: grid; place-items: center;
}
.advantage h4 { font-size: var(--fs-h3); margin-bottom: 8px; }
.advantage p { color: var(--text-3); font-size: var(--fs-small); line-height: 1.7; }

/* ---------------- ISO9001 证书 ---------------- */
.cert-section { padding: 72px 0; }
.cert-section .section-head { margin-bottom: 28px; }
.cert-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.cert-figure { margin: 0; }
.cert-img {
  display: block; width: 100%; max-width: 320px; height: auto; margin-inline: auto;
  background: #fff; padding: 9px; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(11, 46, 89, .14);
}
.cert-caption { margin-top: 11px; text-align: center; color: var(--text-3); font-size: var(--fs-small); line-height: 1.6; }
.cert-info h3 { font-size: var(--fs-h2); margin-bottom: 14px; }
.cert-dl { margin: 0; }
.cert-dl > div { padding: 10px 0; border-bottom: 1px solid var(--border); }
.cert-dl > div:first-child { border-top: 1px solid var(--border); }
.cert-dl dt { color: var(--brand-light); font-size: var(--fs-small); font-weight: 800; letter-spacing: .04em; margin-bottom: 3px; }
.cert-dl dd { margin: 0; color: var(--text-1); font-size: var(--fs-body); line-height: 1.5; }
.cert-note { margin-top: 13px; color: var(--text-3); font-size: var(--fs-small); line-height: 1.65; }
/* 按页面语言切换证书：中文页显中文证，英文页显英文证 */
.lang-en { display: none; }
html[lang="en"] .lang-zh { display: none; }
html[lang="en"] .lang-en { display: block; }

/* ---------------- 资料下载 ---------------- */
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.resource-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CBDCF2; }
.resource-info { display: flex; flex-direction: column; flex: 1; }
.resource-info .resource-badge { align-self: flex-start; }
.resource-info .btn { margin-top: auto; align-self: flex-start; }
.resource-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(248, 216, 0, .16); color: var(--gold-ink);
  font-size: var(--fs-small); font-weight: 800; padding: 5px 11px; border-radius: 5px; margin-bottom: 12px;
}
.resource-badge::before { content: ""; width: 7px; height: 9px; background: var(--gold-ink); border-radius: 1.5px; }
.resource-info h3 { font-size: var(--fs-h2); margin-bottom: 10px; }
.resource-info p:not(.resource-badge) { color: var(--text-3); font-size: var(--fs-small); margin-bottom: 22px; }
.mini-card {
  background: var(--brand); color: #fff; border-radius: var(--radius);
  padding: 28px 30px; display: flex; gap: 24px; align-items: center;
  justify-content: space-between;
}
.mini-main { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
.mini-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--yellow); color: var(--brand); display: grid; place-items: center; }
.mini-card h3 { color: #fff; font-size: var(--fs-h2); margin-bottom: 10px; }
.mini-card p { color: var(--on-dark-1); font-size: var(--fs-small); line-height: 1.7; }
.mini-tip { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; color: var(--yellow); font-size: var(--fs-small); font-weight: 700; }
.mini-qr { flex: 0 0 auto; background: #fff; border-radius: var(--radius); padding: 10px; }
.mini-qr img { display: block; width: 150px; height: 150px; }
@media (max-width: 640px) {
  .mini-card { flex-direction: column; align-items: center; text-align: center; }
  .mini-main { flex-direction: column; align-items: center; text-align: center; }
}
/* ---- 产品图册横卡 ---- */
.resource-top { margin-bottom: 30px; }
.resource-top .resource-card { max-width: 640px; }
/* ---- 选型手册书架（书本造型，与小程序同款） ---- */
.book-shelf { margin: 4px 0 24px; }
.shelf-label {
  color: var(--text-3); font-size: var(--fs-small); font-weight: 700;
  letter-spacing: .04em; margin-bottom: 18px; padding-left: 2px;
}
.shelf-label::before { content: ""; display: inline-block; width: 18px; height: 3px; background: var(--yellow); border-radius: 2px; vertical-align: middle; margin-right: 9px; }
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.book-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 18px 18px; text-align: center; color: inherit; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #CBDCF2; }
.book-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.book-cover {
  width: 100%; aspect-ratio: 1 / 1; display: grid; place-items: center;
  background: linear-gradient(160deg, #F4F8FD, #E9F1FA); border-radius: 10px;
  padding: 10px; overflow: hidden;
}
.book-cover img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.book-card:hover .book-cover img { transform: translateY(-5px) scale(1.04); }
.book-info { display: flex; flex-direction: column; align-items: center; width: 100%; }
.book-info h3 { font-size: var(--fs-h3); margin: 16px 0 9px; line-height: 1.45; }
.book-info .resource-badge { margin-bottom: 12px; }
.book-download {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-size: var(--fs-small); font-weight: 800;
  padding: 7px 16px; border: 1px solid var(--brand); border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.book-download::after { content: "↓"; font-size: 14px; line-height: 1; }
.book-card:hover .book-download { background: var(--brand); color: #fff; }
/* 资料卡片响应式：仅作用于本栏目，不影响其它区块 */
@media (max-width: 1000px) { .book-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .book-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .book-info h3 { font-size: 14px; } }

/* ---- 印刷版手册：紧凑双语下载条 ---- */
.print-brochure {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--tint);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius-sm); padding: 13px 18px; margin: 0 0 20px;
}
.pb-intro { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pb-icon {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--brand); color: var(--yellow);
  display: grid; place-items: center;
}
.pb-intro h3 { font-size: var(--fs-h3); margin: 0 0 2px; font-weight: 700; }
.pb-intro p { font-size: var(--fs-small); color: var(--text-3); margin: 0; }
.pb-links { display: flex; gap: 8px; flex: 0 0 auto; }
.pb-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.pb-link:hover { background: var(--brand-2); transform: translateY(-1px); }
.pb-lang {
  flex: 0 0 auto; font-size: var(--fs-small); font-weight: 800; line-height: 1;
  background: var(--yellow); color: var(--yellow-ink);
  padding: 5px 7px; border-radius: 5px;
}
.pb-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.pb-text strong { font-size: var(--fs-small); font-weight: 700; white-space: nowrap; }
.pb-text small { font-size: var(--fs-small); color: rgba(255,255,255,.78); white-space: nowrap; }
.pb-arrow { font-size: 17px; font-weight: 600; opacity: .9; }
/* 语言分流：中文页只显示中文版印刷手册，英文页只显示英文版 */
.pb-en { display: none; }
html[lang="en"] .pb-zh { display: none; }
html[lang="en"] .pb-en { display: inline-flex; }
@media (max-width: 860px) {
  .print-brochure { flex-direction: column; align-items: stretch; gap: 16px; }
  .pb-links { width: 100%; }
  .pb-link { flex: 1; justify-content: center; }
}
@media (max-width: 480px) {
  .pb-links { flex-direction: column; }
  .pb-link { justify-content: flex-start; }
}

/* ---------------- 联系我们 ---------------- */
.contact { background: linear-gradient(140deg, #0B2E59, #0E4A73); color: #fff; }
.section-head-light .kicker { color: var(--yellow); }
.section-head-light h2 { color: #fff; }
.section-head-light .section-desc { color: var(--on-dark-1); }
.contact-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 56px; align-items: start; }
.contact-item {
  display: grid; grid-template-columns: 130px 1fr; gap: 20px;
  padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.contact-label { color: var(--on-dark-2); font-size: var(--fs-small); }
.contact-value {
  color: #fff; font-size: var(--fs-body); display: flex; flex-wrap: wrap;
  align-items: center; gap: 12px; word-break: break-word;
}
.contact-hint { color: var(--on-dark-2); font-size: var(--fs-small); font-weight: 400; }
.tel-nums { display: inline-flex; align-items: center; gap: 5px; }
.tel-link { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.45); transition: color .2s ease, border-color .2s ease; }
.tel-link:hover { color: var(--yellow); border-color: var(--yellow); }
.copy-btn {
  background: transparent; border: 1px solid rgba(255, 255, 255, .4); color: var(--on-dark-1);
  font-size: var(--fs-small); padding: 3px 11px; border-radius: var(--radius-sm); line-height: 1.6;
}
.copy-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.contact-cta { margin-top: 30px; }
.contact-qr { text-align: center; }
.qr-panel {
  display: inline-block; padding: 16px 20px 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
}
.qr-panel-head { margin-bottom: 12px; line-height: 1.35; }
.qr-panel-head strong { display: block; color: var(--yellow); font-size: var(--fs-small); letter-spacing: .04em; }
.qr-panel-head span { display: block; color: var(--on-dark-2); font-size: var(--fs-small); margin-top: 2px; }
.qr-pair { display: flex; gap: 10px; justify-content: center; align-items: flex-start; }
.contact-qr img {
  width: 132px; height: 132px; background: #fff;
  border-radius: 9px; padding: 7px; box-sizing: border-box;
  transition: transform .2s ease;
}
.contact-qr img:hover { transform: translateY(-2px); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #071D38; color: var(--on-dark-2); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-logo { width: auto; height: 48px; background: #fff; border-radius: 6px; padding: 4px 8px; }
.footer-line { margin-top: 14px; font-size: var(--fs-small); color: var(--on-dark-1); }
.footer-meta { text-align: right; font-size: var(--fs-small); }
.footer-meta p { margin-bottom: 4px; }
.footer-meta a { color: var(--yellow); font-weight: 700; display: inline-block; margin-top: 8px; }
.footer-meta a:hover { text-decoration: underline; }
.footer-beian { margin-top: 6px; }
.footer-beian a { color: var(--on-dark-2); font-weight: 400; font-size: var(--fs-small); margin-top: 0; }
.footer-beian a:hover { color: var(--yellow); text-decoration: underline; }

/* ---------------- 产品详情弹层 ---------------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 20, 40, .68); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; z-index: 1; width: min(920px, 100%); max-height: min(88dvh, 860px);
  overflow-y: auto; background: #fff; border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--brand);
  font-size: 26px; line-height: 1; display: grid; place-items: center;
}
.modal-close:hover { background: var(--yellow); }
.modal-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; }
.modal-img { background: #F4F6FA; padding: 34px; display: grid; place-items: center; }
.modal-img img { width: 100%; border-radius: 8px; box-shadow: var(--shadow-sm); }
.modal-content { padding: 38px 36px 34px; }
.modal-cat { color: var(--brand-light); font-size: var(--fs-small); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.modal-content h2 { font-size: var(--fs-h1); margin: 10px 0 8px; padding-right: 34px; }
.modal-code { color: var(--text-3); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: var(--fs-small); word-break: break-all; }
.modal-h { font-size: var(--fs-h3); margin: 24px 0 10px; padding-left: 10px; border-left: 3px solid var(--yellow); }
.modal-summary { color: var(--text-2); font-size: var(--fs-body); line-height: 1.8; }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.spec-table th, .spec-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; color: var(--text-3); font-weight: 600; background: #F7F9FC; }
.spec-table td { color: var(--text-1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--tint); color: var(--brand); font-size: var(--fs-small); padding: 5px 12px; border-radius: 999px; }
.modal-note { color: var(--text-3); font-size: var(--fs-small); margin-top: 18px; }
.modal-cta { margin-top: 24px; }

/* ---------------- 复制提示 ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 36px; z-index: 400;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--brand); color: #fff; padding: 10px 22px; border-radius: 22px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-md);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .primary-nav { gap: 18px; }
  .primary-nav a { font-size: var(--fs-small); }
  .business-grid, .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 34px; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .container { width: min(calc(100% - 36px), var(--container)); }
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: var(--shadow-md); padding: 10px 18px 18px;
    border-bottom: 1px solid var(--border);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .primary-nav a.is-active::after { display: none; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-block: 56px 64px; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .hero-badge { right: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .about-grid, .contact-grid, .resource-grid, .cert-layout { grid-template-columns: 1fr; gap: 32px; }
  .cert-img { max-width: 300px; }
  .cert-section { padding: 56px 0; }
  .milestones { grid-template-columns: 1fr; }
  .contact-qr { text-align: center; }
  .qr-pair { justify-content: flex-start; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-img { padding: 22px; max-height: 300px; }
  .modal-img img { max-height: 260px; object-fit: contain; }
  .modal-content { padding: 26px 24px 30px; }
  .section { padding: 68px 0; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .business-grid, .advantage-grid, .product-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .product-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
  .contact-item { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 46px); }
  html[lang="en"] .hero h1 { font-size: clamp(30px, 8vw, 40px); }
  .hero-visual-card img { width: 100%; margin-left: 0; }
  .section { padding: 56px 0; }
  .subhead { margin-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
