/* ============================================================
   液压密封件企业官网 - 主样式表
   纯手写 CSS，无框架依赖，移动端优先响应式
   2核2G 服务器可轻松承载
   ============================================================ */

:root {
  /* ===== 品牌主色（蓝）——白底页面上的标题、页头、深色区块 ===== */
  --brand: #0e4b7a;         /* 主品牌蓝：页头文字、图标描边 */
  --brand-2: #12729f;       /* 亮一档的品牌蓝：输入框聚焦、次要链接 */
  --brand-dark: #0a3352;    /* 深品牌蓝：深色区块背景（页头栏、数据条、页脚） */

  /* ===== 强调色（辅助色）——改这一组，全站按钮/图标/数字同步变 ===== */
  --accent: #136cb4;        /* 主强调色：白底上的按钮、图标、数字（取自 LOGO 蓝） */
  --accent-dark: #0f568f;   /* 强调色悬停态：比主色深一档 */
  --accent-light: #7fc4f5;  /* 深色背景上的强调色：深底必须用浅色才看得清 */
  --accent-light-soft: #b9ddf8;  /* 深色背景上的次要强调色 */
  --accent-tint: #eef6fd;   /* 强调色浅底：提示框背景 */
  --accent-tint-line: #c9e2f7;   /* 强调色浅底的描边 */

  /* ===== 中性色（正文、边框、底色）——一般不用改 ===== */
  --ink: #1b2733;           /* 标题深灰 */
  --text: #3c4a58;          /* 正文灰 */
  --muted: #7c8b9a;         /* 次要说明文字 */
  --line: #e3e9ef;          /* 分隔线、卡片描边 */
  --bg-soft: #f4f7fa;       /* 浅色区块底色 */
  --white: #ffffff;

  /* ===== 结构与圆角 ===== */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(16, 42, 67, .06);
  --shadow: 0 4px 16px rgba(16, 42, 67, .08);
  --shadow-lg: 0 14px 40px rgba(16, 42, 67, .13);
  --wrap: 1180px;           /* 内容最大宽度 */
}

* { box-sizing: border-box; }

/* ------------------------------------------------------------
   强调色机制：HTML 里的内联 SVG 图标直接写死了旧颜色，
   下面两条规则让它们自动跟随 :root 里的 --accent，
   以后改配色只需要改 :root 那一组变量，不用动 HTML。
   ------------------------------------------------------------ */
[stroke="#e2611a"] { stroke: var(--accent); }
[fill="#e2611a"] { fill: var(--accent); }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
               "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--brand-dark);
  color: #c8dbea;
  font-size: 13px;
  line-height: 1;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 36px; gap: 16px; flex-wrap: wrap;
}
.topbar-l { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 13px; height: 13px; flex: none; opacity: .8; }

/* ---------- 页头导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo svg { width: 38px; height: 38px; flex: none; }
/* 公司 LOGO 图片：把 images/logo/logo.png 换成自己的图即可，尺寸会自动缩放到 42px */
.logo-img { width: 42px; height: 42px; flex: none; object-fit: contain; }
.logo-txt strong {
  display: block; font-size: 18px; color: var(--brand-dark);
  letter-spacing: .5px; font-weight: 700; line-height: 1.25;
}
.logo-txt small {
  display: block; font-size: 10.5px; color: var(--muted);
  letter-spacing: 1.6px; text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 15px; font-size: 15px; border-radius: 6px;
  color: var(--text); transition: .18s;
}
.nav a:hover { color: var(--brand); background: var(--bg-soft); }
.nav a.on { color: var(--brand); font-weight: 700; }
.header-cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: var(--white); border-radius: 6px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.burger i { width: 18px; height: 2px; background: var(--ink); display: block; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 24px; border-radius: 6px; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: .2s;
  font-family: inherit; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a3352 0%, #0e4b7a 52%, #12729f 100%);
  color: #fff; padding: 86px 0 96px;
}
.hero::after {
  content: ""; position: absolute; right: -160px; top: -120px;
  width: 620px; height: 620px; border-radius: 50%;
  border: 78px solid rgba(255, 255, 255, .05); pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; right: 60px; bottom: -210px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 52px solid rgba(19, 108, 180, .16); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; max-width: 780px; }
.hero-tag {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  background: rgba(19, 108, 180, .2); border: 1px solid rgba(19, 108, 180, .55);
  color: var(--accent-light-soft); font-size: 13px; margin-bottom: 22px; letter-spacing: .5px;
}
.hero h1 { color: #fff; font-size: 40px; line-height: 1.3; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero p.lead { font-size: 17px; color: #cfe1ef; max-width: 620px; margin-bottom: 34px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 数据条 ---------- */
.stats { background: var(--brand-dark); color: #fff; padding: 0; }
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255, 255, 255, .12);
}
.stat { background: var(--brand-dark); padding: 26px 20px; text-align: center; }
.stat b {
  display: block; font-size: 27px; font-weight: 700; color: var(--accent-light); line-height: 1.2;
}
.stat span { font-size: 13px; color: #a9c4d8; }

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.sec-head .kicker {
  display: inline-block; font-size: 12.5px; letter-spacing: 2.5px;
  color: var(--accent); font-weight: 700; margin-bottom: 12px;
}
.sec-head h2 { font-size: 30px; margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 15.5px; margin: 0; }
.sec-head.left { text-align: left; margin-left: 0; }

/* ---------- 产品卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: .22s; position: relative; overflow: hidden;
}
.pcard::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--accent); transition: .25s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0ee; }
.pcard:hover::after { width: 100%; }
.pcard .ico { width: 52px; height: 52px; margin-bottom: 18px; }
/* 首页核心产品卡配图（media.js 的 homeCards 配了照片时启用；未配则显示上面的 svg 简图） */
.pcard .card-img {
  display: block; width: 100%; height: 168px; object-fit: contain;
  margin-bottom: 16px; border-radius: 8px; background: #fff;
}
.pcard h3 { font-size: 18px; margin-bottom: 9px; }
.pcard p { font-size: 14.5px; color: var(--text); margin-bottom: 12px; }
.pcard .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard .tags span {
  font-size: 12px; padding: 3px 9px; border-radius: 4px;
  background: #eef4f9; color: var(--brand);
}

/* ---------- 优势列表 ---------- */
.feature { display: flex; gap: 15px; align-items: flex-start; }
.feature .no {
  flex: none; width: 36px; height: 36px; border-radius: 8px;
  background: #eef4f9; color: var(--brand); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.feature h4 { font-size: 16.5px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- 应用领域 ---------- */
.apps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.app {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 10px; text-align: center; transition: .2s;
}
.app:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.app svg { width: 30px; height: 30px; margin: 0 auto 10px; }
.app span { font-size: 13.5px; color: var(--ink); }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.about-media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: var(--bg-soft);
}
.about-media svg { width: 100%; height: auto; display: block; }
.check-list li {
  position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 15px;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 9px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- 资质 ---------- */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert {
  border: 1px dashed #cfdae4; border-radius: var(--radius); background: #fff;
  padding: 26px 12px; text-align: center; color: var(--muted); font-size: 13px;
}
.cert b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 4px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
thead th {
  background: #f1f6fa; color: var(--brand-dark); font-size: 14px;
  padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 13px 16px; border-bottom: 1px solid #eef2f6; color: var(--text); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfe; }
td.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; color: var(--brand); }

/* ---------- 询价 / 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; font-size: 15px; font-family: inherit;
  border: 1px solid #d8e0e8; border-radius: 6px; color: var(--ink);
  background: #fff; transition: .18s; outline: none;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(18, 114, 159, .12);
}
.form-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.form-msg {
  display: none; margin-top: 14px; padding: 11px 14px; border-radius: 6px;
  font-size: 14px; background: var(--accent-tint); border: 1px solid var(--accent-tint-line); color: #14639f;
}
.form-msg.show { display: block; }

.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.info-item { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.info-item:last-child { border-bottom: 0; padding-bottom: 0; }
.info-item:first-child { padding-top: 0; }
.info-item svg { width: 20px; height: 20px; flex: none; margin-top: 4px; }
.info-item dt { font-size: 13px; color: var(--muted); margin-bottom: 3px; }
.info-item dd { margin: 0; font-size: 15px; color: var(--ink); font-weight: 700; word-break: break-all; }
.info-item dd.small { font-weight: 400; font-size: 14.5px; color: var(--text); }

/* ---------- 页脚 ---------- */
.footer { background: #12202c; color: #93a7b7; padding: 54px 0 0; font-size: 14px; }
.footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; }
.footer a:hover { color: var(--accent-light); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; }
.footer .logo-txt strong { color: #fff; }
.footer .logo-txt small { color: #6c8298; }
.footer-brand p { font-size: 13.5px; color: #7f95a8; margin: 16px 0 0; max-width: 300px; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer-bottom {
  margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0; font-size: 13px; color: #6c8298;
}
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- 内页头部 ---------- */
.page-head {
  background: linear-gradient(135deg, #0a3352 0%, #0e4b7a 100%);
  color: #fff; padding: 56px 0;
}
.page-head h1 { color: #fff; font-size: 32px; margin-bottom: 10px; }
.page-head p { color: #bed4e6; margin: 0; font-size: 15px; }
.crumb { font-size: 13.5px; color: #8fb0c9; margin-bottom: 16px; }
.crumb a:hover { color: #fff; }

/* ---------- 产品详情行 ---------- */
.prod-row {
  display: grid; grid-template-columns: 344px 1fr; gap: 36px;
  padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.prod-row:last-child { border-bottom: 0; }
.prod-fig {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; text-align: center;
}
.prod-fig svg { width: 130px; height: 130px; margin: 0 auto; }
.prod-body h3 { font-size: 21px; margin-bottom: 8px; }
.prod-body > p { font-size: 15px; color: var(--text); }
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; margin: 16px 0 0; }
.spec-list li { font-size: 14.5px; padding-left: 16px; position: relative; }
.spec-list li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.spec-list b { color: var(--ink); font-weight: 700; }

/* ---------- 产品小类（浮动油封 DO/DF、泛塞轴用/孔用、V 型系列等） ---------- */
.prod-row.family { grid-template-columns: 1fr; }   /* 大类行无左图列，占满整行 */
.sub-block { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.sub-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sub-head b { font-size: 15.5px; color: var(--ink); }
.sub-head span { font-size: 13px; color: var(--muted); }
.sub-grid { display: grid; gap: 16px; }
.sub-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.sub-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.sub-card { margin: 0; }
.sub-fig {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; text-align: center;
  min-height: 130px; display: flex; align-items: center; justify-content: center;
}
.sub-fig .media-img { width: auto; height: auto; max-width: 100%; max-height: 242px; margin: 0 auto; }
.sub-card figcaption { margin-top: 8px; font-size: 14px; text-align: center; color: var(--text); font-weight: 600; }
.sub-fig .fig-ph {
  width: 100%; max-width: 250px; height: 120px;
  flex-direction: row; flex-wrap: wrap; gap: 8px; line-height: 1.5;
}

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(#cfe0ee, #eef4f9);
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  border: 3px solid var(--accent);
}
.tl-item time { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: .5px; }
.tl-item h4 { font-size: 16.5px; margin: 5px 0 6px; }
.tl-item p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- 提示条 ---------- */
.tip {
  background: var(--accent-tint); border: 1px solid var(--accent-tint-line); border-left: 4px solid var(--accent);
  border-radius: 6px; padding: 16px 20px; font-size: 14.5px; color: #14568c;
}
.tip b { color: #0f4571; }
.ph { color: #b8443c; background: #fdf0ef; padding: 1px 5px; border-radius: 3px; font-size: .92em; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .apps { grid-template-columns: repeat(3, 1fr); }
  .certs { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 0 68px; }
  .hero h1 { font-size: 29px; }
  .section { padding: 56px 0; }
  .sec-head h2 { font-size: 24px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 10px 20px 18px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid #f1f5f8; }
  .burger { display: flex; }
  .header-cta .btn { display: none; }
  .prod-row { grid-template-columns: 1fr; gap: 20px; }
  .prod-fig svg { width: 100px; height: 100px; }
  .sub-grid[data-cols="4"] { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-4, .apps { grid-template-columns: repeat(2, 1fr); }
  .form-row, .spec-list { grid-template-columns: 1fr; }
  .sub-grid[data-cols="2"], .sub-grid[data-cols="4"] { grid-template-columns: 1fr; }
  .topbar-l span:nth-child(3) { display: none; }
}

/* ========== 语言切换按钮（页头 EN / 中文） ========== */
.lang-btn {
  font: inherit;
  font-size: 13.5px;
  line-height: 1;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--brand);
  cursor: pointer;
  transition: .2s;
}
.lang-btn:hover { border-color: var(--brand); background: #f4f7fa; }

/* 上线开关：content.js 里把 hideTips 改成 true，所有黄色提示框自动消失 */
body.hide-tips .tip { display: none !important; }

/* 询价表单的隐藏字段（防机器人用，正常访客看不到） */
input.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 提交过程中按钮置灰 */
button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }

/* ========== 图片配置中心（js/media.js） ========== */
/* 由 media.js 插入的图片统一走 .media-img，自动适应容器宽度 */
.media-img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* 产品中心页左栏照片：
   图片已在 tools/normalize_product_images.py 里统一尺度（横图宽 300 / 竖图高 242），
   这里只需按原尺寸居中显示、容器放不下时等比缩小——切勿写 width:100%，
   否则会强制拉伸：横图变细条、竖图被撑成长条。 */
.prod-fig .media-img { width: auto; height: auto; max-width: 100%; max-height: 242px; margin: 0 auto; }

/* 新增产品暂无照片时的占位框 */
.fig-ph {
  width: 130px; height: 130px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed #cfdae4; border-radius: 10px;
  color: var(--muted); font-size: 12.5px;
}

/* 首页 / 关于页的大图位：铺满圆角卡片 */
.about-media .media-img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* 联系页静态地图 */
/* 厂区位置地图（联系我们页，高德地图 iframe 嵌入） */
.map-embed {
  position: relative; width: 100%; height: 360px;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff;
}
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .map-embed { height: 260px; } }

/* 资质证书：已上传图片的卡片改为实线边框 */
.cert.has-img { border-style: solid; padding: 12px 10px; margin: 0; }
.cert.has-img .media-img {
  border-radius: 6px; margin-bottom: 10px; border: 1px solid var(--line);
  display: block; width: 100%; height: 150px; object-fit: contain; background: #fff;
}
.cert.has-img b { color: var(--ink); }

/* 车间与设备图集（关于我们页底部，media.js 配了图片才显示） */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: .2s;
}
.gallery figure:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 200px; object-fit: cover; display: block; }
.gallery figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--text); }

@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .prod-fig .media-img { max-width: 220px; }
}
