/* ============================================================
   上海英润泰材料科技有限公司 — 企业官网
   设计稿转应用 · 严格还原 Ardot 设计稿的布局/配色/圆角/间距
   设计令牌（取自画布读取）：
   主蓝 #0056B3 · 可持续绿 #27AE60 · 深色 #1A1A2E
   Hero 蒙版 #001A3A · 浅底 #FAFAFB · 卡片描边 #E8EAED
   正文灰 #5D6D7E · 弱化 #A0AEC0 · 页脚版权 #718096
   ============================================================ */

:root{
  --blue:#0056B3;
  --blue-dark:#00468f;
  --green:#27AE60;
  --ink:#1A1A2E;
  --hero-overlay:#001A3A;
  --bg-soft:#FAFAFB;
  --card-border:#E8EAED;
  --text-body:#5D6D7E;
  --text-muted:#A0AEC0;
  --footer-copy:#718096;
  --text-profile:#4A5568;
  --on-blue:#E8F4FD;
  --hero-sub:#EAEAED;
  --input-bg:#F7FAFC;
  --input-border:#E2E9F1;
  --maxw:1440px;
  --content:1280px;
  --side:80px;
  --header-h:80px;
  --radius-card:16px;
  --radius-lg:20px;
  --radius-pill:10px;
}

*{box-sizing:border-box;margin:0;padding:0;}

/* 固定顶栏高 80px：页内所有滚动定位（下拉菜单、CTA 按钮）统一预留 96px，
   避免目标区块标题被顶栏盖住。用 scroll-padding 而非逐个区块写 scroll-margin，避免叠加 */
html{scroll-behavior:smooth;scroll-padding-top:96px;}

body{
  font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

img{display:block;max-width:100%;}
a{color:inherit;text-decoration:none;}

/* ---------------- Header ---------------- */
.site-header{
  position:sticky;top:0;z-index:200;
  background:#fff;
  border-bottom:1px solid var(--card-border);
}
.header-inner{
  max-width:var(--maxw);margin:0 auto;
  height:var(--header-h);
  padding:0 var(--side);
  display:flex;align-items:center;justify-content:space-between;
}
.brand{display:flex;align-items:center;gap:12px;}
.brand .brand-mark{height:48px;width:auto;}
.brand .brand-text-img{height:38px;width:auto;display:block;}
.brand .brand-text{display:flex;flex-direction:column;justify-content:center;align-items:stretch;line-height:1.15;width:92px;}
/* 组合标：中文在上（深蓝渐变）、英文在下（银色金属渐变） */
.brand .brand-cn{display:flex;justify-content:space-between;width:100%;font-size:21px;font-weight:900;white-space:nowrap;font-family:"Source Han Sans SC","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;background:linear-gradient(180deg,#0A3D91 0%,#1A66C6 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#0A3D91;}
.brand .brand-en{display:flex;justify-content:space-between;width:100%;font-size:13px;font-weight:900;white-space:nowrap;font-family:"Arial Black",Arial,"Segoe UI",system-ui,sans-serif;background:linear-gradient(180deg,#f2f5f9 0%,#a9b1bb 38%,#5c646e 62%,#c9cfd7 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#5c646e;}
.main-nav{display:flex;align-items:center;gap:clamp(16px,1.8vw,40px);}
.main-nav > a,
.main-nav > .nav-item{white-space:nowrap;}
.main-nav a{
  font-size:15px;font-weight:400;color:var(--ink);
  transition:color .2s ease;
}
.main-nav a:hover{color:var(--blue);}
.main-nav a.active{color:var(--blue);font-weight:500;}
/* 中文导航标签较短，单独加大项间距，避免在中间聚拢过紧 */
html[lang="zh-CN"] .main-nav{gap:clamp(26px,2.6vw,58px);}

/* ---------------- Header dropdown ---------------- */
.has-dropdown{position:relative;display:inline-flex;align-items:center;}
.has-dropdown > a{display:inline-flex;align-items:center;gap:7px;}
.has-dropdown > a::after{
  content:"";
  width:6px;height:6px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  transition:transform .2s ease;
  opacity:.7;
}
.has-dropdown:hover > a::after{transform:rotate(225deg) translateY(-1px);}
.dropdown{
  position:absolute;top:calc(100% + 16px);left:50%;
  transform:translateX(-50%) translateY(8px);
  min-width:236px;
  background:#fff;
  border:1px solid var(--card-border);
  border-radius:var(--radius-card);
  box-shadow:0 18px 42px rgba(0,26,58,.14);
  padding:8px;
  opacity:0;visibility:hidden;
  transition:opacity .2s ease, transform .2s ease, visibility .2s;
  z-index:300;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{
  opacity:1;visibility:visible;
  transform:translateX(-50%) translateY(0);
}
.dropdown li{list-style:none;}
.dropdown a{
  display:block;
  padding:11px 14px;
  font-size:14.5px;
  color:var(--ink);
  border-radius:10px;
  white-space:nowrap;
  transition:background .15s ease,color .15s ease;
}
.dropdown a:hover{background:var(--bg-soft);color:var(--blue);}
.dropdown::before{
  content:"";position:absolute;top:-7px;left:50%;transform:translateX(-50%) rotate(45deg);
  width:12px;height:12px;background:#fff;
  border-left:1px solid var(--card-border);border-top:1px solid var(--card-border);
}
.header-cta{
  background:var(--blue);color:#fff;
  font-size:14px;font-weight:500;
  padding:12px 24px;border-radius:8px;
  transition:background .2s ease;
}
.header-cta:hover{background:var(--blue-dark);}

/* ---------------- 移动端导航开关与面板 ---------------- */
/* 桌面端隐藏；≤860px 主导航收起后，这里是唯一的导航入口 */
.nav-toggle{
  display:none;
  appearance:none;-webkit-appearance:none;
  width:44px;height:44px;flex:0 0 auto;
  border:1px solid var(--card-border);background:#fff;border-radius:10px;
  cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  transition:border-color .2s ease;
}
.nav-toggle:hover{border-color:#C3D7EA;}
.nav-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:2px;}
.nav-toggle-bar{display:block;width:18px;height:2px;background:var(--ink);border-radius:2px;transition:transform .22s ease,opacity .22s ease;}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2){opacity:0;}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

.mobile-nav{
  display:none;
  position:absolute;left:0;right:0;top:100%;
  background:#fff;border-bottom:1px solid var(--card-border);
  box-shadow:0 14px 30px rgba(26,26,46,.14);
  padding:6px var(--side) 16px;
  max-height:70vh;                                   /* 不支持 dvh 的浏览器回退 */
  max-height:calc(100dvh - var(--header-h));overflow-y:auto;
}
.mobile-nav a{
  display:block;padding:14px 2px;
  font-size:16px;font-weight:600;color:var(--ink);line-height:1.4;
  border-bottom:1px solid var(--card-border);
}
.mobile-nav a:last-child{border-bottom:none;}
.mobile-nav a:active{background:var(--bg-soft);}
/* 二级项：缩进 + 弱化，层级一眼可辨 */
.mobile-nav a.mobile-nav-sub{
  padding-left:20px;font-size:14.5px;font-weight:500;color:var(--text-body);
}

.header-right{display:flex;align-items:center;gap:clamp(14px,1.4vw,28px);}

/* ---------------- Language switcher ---------------- */
.lang-switch{position:relative;}
.lang-btn{
  display:inline-flex;align-items:center;gap:6px;
  background:#f2f5f9;color:var(--ink);
  font-size:14px;font-weight:500;
  padding:10px 14px;border-radius:8px;border:1px solid var(--card-border);
  cursor:pointer;transition:background .2s ease,border-color .2s ease;
}
.lang-btn:hover{background:#e9eef5;border-color:var(--blue);}
.lang-caret{font-size:10px;color:var(--text-muted);}
.lang-flag{width:20px;height:13px;border-radius:2px;overflow:hidden;flex:0 0 auto;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.14);background:#eef1f5;}
.lang-flag svg{display:block;width:100%;height:100%;}
.lang-text{line-height:1;}
.lang-menu{
  position:absolute;top:calc(100% + 8px);right:0;
  min-width:152px;
  background:#fff;border:1px solid var(--card-border);border-radius:10px;
  box-shadow:0 12px 30px rgba(20,40,80,.12);
  padding:6px;list-style:none;margin:0;
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s;
  z-index:300;
}
.lang-menu.open{opacity:1;visibility:visible;transform:translateY(0);}
.lang-menu li{
  display:flex;align-items:center;gap:10px;
  padding:9px 12px;border-radius:7px;font-size:14px;color:var(--ink);
  cursor:pointer;transition:background .15s ease;
}
.lang-menu li:hover{background:#f2f5f9;}
.lang-menu li.active{background:var(--blue);color:#fff;}

/* ---------------- RTL (Arabic) ---------------- */
[dir="rtl"] .lang-menu{right:auto;left:0;}
[dir="rtl"] .header-right{margin-left:0;margin-right:auto;}

/* ---------------- Page switching ---------------- */
.page{display:none;}
.page.active{display:block;}

/* ---------------- Hero ---------------- */
.hero{
  position:relative;
  min-height:680px;
  display:flex;align-items:center;
  background-size:cover;background-position:center;
  overflow:hidden;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(0,26,58,0.65) 0%,rgba(0,26,58,0.28) 55%,rgba(0,26,58,0.05) 100%);
}
.hero-content{
  position:relative;z-index:1;
  max-width:960px;
  padding:120px var(--side);
  width:100%;
}
.hero-badge{
  display:inline-flex;align-items:center;
  border:1px solid #fff;border-radius:20px;
  padding:8px 16px;
  color:#fff;font-size:14px;font-weight:500;
  margin-bottom:24px;
}
.hero-title{
  font-size:56px;font-weight:700;line-height:1.2;
  color:#fff;letter-spacing:0;
  margin-bottom:20px;
}
.hero-sub{
  font-size:20px;font-weight:400;line-height:1.6;
  color:var(--hero-sub);
  max-width:720px;margin-bottom:36px;
}
.btn-green{
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--green);color:#fff;
  font-size:16px;font-weight:500;
  padding:16px 36px;border-radius:var(--radius-pill);
  border:none;cursor:pointer;
  transition:background .2s ease;
}
.btn-green:hover{background:#1f9452;}

/* ---------------- Generic section ---------------- */
.section{padding:100px var(--side);}
.section--soft{background:var(--bg-soft);}
/* ---------------- 添加剂产品系列 ---------------- */
.additive-hero{
  display:grid;grid-template-columns:.88fr 1.12fr;gap:48px;align-items:center;
  max-width:var(--content);margin:0 auto 46px;
}
.additive-hero-media{
  position:relative;border-radius:var(--radius-lg);overflow:hidden;
  background:#0C1726;
  box-shadow:0 28px 54px -28px rgba(12,23,38,.55);
}
.additive-hero-media img{display:block;width:100%;height:auto;}
.additive-hero-media::after{
  content:'';position:absolute;inset:0;border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.09);pointer-events:none;
}
.additive-hero-body{max-width:600px;}
.additive-hero-body h3{
  font-size:26px;font-weight:700;color:var(--ink);line-height:1.45;
  letter-spacing:-.2px;
}
.additive-hero-body p{font-size:16px;line-height:1.9;color:var(--text-body);margin-top:16px;}
.additive-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:26px;}
.additive-fact{
  background:var(--bg-soft);border:1px solid var(--card-border);
  border-radius:12px;padding:16px 10px;text-align:center;
}
.additive-fact b{display:block;font-size:25px;font-weight:700;color:var(--blue);line-height:1.15;}
.additive-fact span{display:block;font-size:12.5px;color:var(--text-muted);margin-top:7px;line-height:1.4;}

.additive-note{
  max-width:var(--content);margin:22px auto 0;
  font-size:13.5px;line-height:1.8;color:var(--text-muted);text-align:center;
}

/* 添加剂明细表：定宽列，产品名/化学名自动换行 */
.spec-table.is-additive{table-layout:fixed;min-width:900px;}
.spec-table.is-additive thead th{white-space:normal;}
.spec-table.is-additive .prod-name{white-space:normal;word-break:break-word;}
.spec-table.is-additive td{word-break:break-word;}
.spec-table.is-additive tbody tr:hover{background:#F4F8FD;}

.section-head{text-align:center;margin-bottom:48px;}
.section-head h2{font-size:40px;font-weight:700;color:var(--ink);}
.section-head p{
  font-size:18px;font-weight:400;line-height:1.6;
  color:var(--text-body);margin-top:12px;
}

/* ---------------- Value cards (3-up) ---------------- */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-width:var(--content);margin:0 auto;}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:32px;max-width:var(--content);margin:0 auto;}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;max-width:var(--content);margin:0 auto;}

.card{
  background:#fff;border:1px solid var(--card-border);
  border-radius:var(--radius-card);
  padding:32px;
}
.value-card{display:flex;flex-direction:column;gap:16px;}
.icon-chip{
  width:56px;height:56px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
}
.icon-chip svg{width:28px;height:28px;}
.chip-blue{background:#E8F4FC;color:var(--blue);}
.chip-amber{background:#FEF3E2;color:#E08A1E;}
.chip-green{background:#E9F7EF;color:var(--green);}
.chip-violet{background:#F0ECFB;color:#7C5CD6;}
.value-card h3{font-size:22px;font-weight:700;color:var(--ink);}
.value-card p{font-size:15px;font-weight:400;line-height:1.6;color:var(--text-body);}

/* ---------------- Product cards ---------------- */
.product-card{
  background:var(--bg-soft);
  border:1px solid var(--card-border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  display:flex;flex-direction:column;
}
.product-card .card-img{width:100%;height:260px;object-fit:cover;}
.product-card.category .card-img{height:180px;}
/* 首页 MINI 零排放方案卡片：方案图为示意图，用 contain 完整展示 */
.product-card--solution .card-img{height:240px;object-fit:contain;background:#F7FAFC;padding:16px;}
.product-body{padding:32px;display:flex;flex-direction:column;gap:12px;}
.product-body h3{font-size:24px;font-weight:700;color:var(--ink);}
.product-body p{font-size:15px;font-weight:400;line-height:1.6;color:var(--text-body);}
.product-body.category{padding:24px;gap:10px;}
.product-body.category h3{font-size:20px;}
.product-body.category p{font-size:14px;}
.link-more{
  font-size:15px;font-weight:500;color:var(--blue);
  display:inline-flex;align-items:center;gap:4px;
  margin-top:4px;cursor:pointer;
  transition:color .2s ease,transform .2s ease;
}
.link-more:hover{color:var(--blue-dark);transform:translateX(3px);}
.product-body.category .link-more{font-size:14px;}

/* ---------------- About: profile two-column ---------------- */
.profile-grid{
  max-width:var(--content);margin:0 auto;
  display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;
}
.profile-text p{
  font-size:16px;line-height:1.8;color:var(--text-profile);
}
.profile-text p + p{margin-top:20px;}

/* CN-INDENT-BEGIN: 中文正文段落首行缩进两字符（仅中文版） */
html[lang="zh-CN"] .profile-text p,
html[lang="zh-CN"] .additive-hero-body p,
html[lang="zh-CN"] .bd-text p,
html[lang="zh-CN"] .bd-lead{text-indent:2em;}
/* CN-INDENT-END */
.profile-img{width:100%;height:360px;object-fit:cover;border-radius:12px;}

/* ---------------- Core value 4-up (about) ---------------- */
.core-card{background:var(--bg-soft);border:1px solid var(--card-border);border-radius:var(--radius-card);padding:28px;display:flex;flex-direction:column;gap:16px;}
.core-card h3{font-size:18px;font-weight:700;color:var(--ink);}
.core-card p{font-size:14px;line-height:1.6;color:var(--text-body);}

/* ---------------- 生产基地首页卡片 (about) ---------------- */
.base-grid{
  max-width:var(--content);margin:0 auto;
  display:grid;grid-template-columns:repeat(2,1fr);gap:28px;
}
.base-tile{
  background:#fff;border:1px solid var(--card-border);
  border-radius:var(--radius-lg);overflow:hidden;cursor:pointer;
  display:flex;flex-direction:column;
  box-shadow:0 4px 20px rgba(26,26,46,.05);
  transition:box-shadow .25s ease,transform .25s ease,border-color .25s ease;
}
.base-tile:hover{box-shadow:0 12px 30px rgba(26,26,46,.1);transform:translateY(-3px);border-color:#cdd7e3;}
.base-tile:focus-visible{outline:2px solid var(--blue);outline-offset:3px;}
.base-tile-media{position:relative;overflow:hidden;background:var(--bg-soft);}
.base-tile-media img{display:block;width:100%;height:230px;object-fit:cover;transition:transform .4s ease;}
.base-tile:hover .base-tile-media img{transform:scale(1.04);}
.base-tile-loc{
  position:absolute;top:16px;left:16px;
  display:inline-flex;align-items:center;gap:6px;
  background:rgba(255,255,255,.94);color:var(--blue);
  font-size:12.5px;font-weight:700;letter-spacing:.3px;
  padding:6px 14px;border-radius:var(--radius-pill);
  box-shadow:0 2px 10px rgba(0,0,0,.12);
}
.base-tile-loc svg{width:14px;height:14px;flex:0 0 auto;}
.base-tile-body{padding:26px 28px 24px;display:flex;flex-direction:column;gap:10px;flex:1;}
.base-tile-body h3{font-size:22px;font-weight:700;color:var(--ink);line-height:1.3;}
.base-tile-sub{font-size:13.5px;font-weight:600;color:var(--blue);line-height:1.5;}
.base-tile-stats{
  display:flex;margin-top:6px;padding:14px 0 12px;
  border-top:1px solid var(--card-border);border-bottom:1px solid var(--card-border);
}
.base-tile-stat{flex:1;display:flex;flex-direction:column;gap:4px;padding-right:12px;}
.base-tile-stat + .base-tile-stat{border-left:1px solid var(--card-border);padding-left:16px;}
.base-tile-stat b{font-size:21px;font-weight:700;color:var(--ink);line-height:1.2;letter-spacing:-.3px;}
.base-tile-stat span{font-size:12.5px;color:var(--text-body);line-height:1.4;}
.base-tile-summary{font-size:14px;line-height:1.75;color:var(--text-body);margin-top:2px;}
.base-tile-body .link-more{margin-top:auto;padding-top:8px;}

/* ---------------- 生产基地详情页 ---------------- */
.bd-hero{display:grid;grid-template-columns:1.05fr 1fr;gap:36px;align-items:center;margin-bottom:44px;}
.bd-hero-media{margin:0;border-radius:var(--radius-lg);overflow:hidden;background:var(--bg-soft);}
.bd-hero-media img{display:block;width:100%;height:320px;object-fit:cover;}
.bd-hero-body{display:flex;flex-direction:column;align-items:flex-start;gap:10px;}
.bd-loc{
  display:inline-flex;align-items:center;gap:7px;
  font-size:13px;font-weight:700;color:var(--blue);
  background:var(--bg-soft);border:1px solid var(--card-border);
  padding:6px 14px;border-radius:var(--radius-pill);
}
.bd-sub{font-size:16px;font-weight:600;color:var(--blue);line-height:1.5;}
.bd-lead{font-size:15px;line-height:1.85;color:var(--text-body);}

.bd-section{margin-bottom:42px;}
.bd-title{
  font-size:22px;font-weight:700;color:var(--ink);line-height:1.35;
  padding-left:14px;border-left:4px solid var(--blue);margin-bottom:20px;
}
.bd-text p{font-size:15px;line-height:1.85;color:var(--text-body);}
.bd-text p + p{margin-top:14px;}

.bd-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.bd-metric{
  background:var(--bg-soft);border:1px solid var(--card-border);
  border-radius:var(--radius-card);padding:22px 16px;
  display:flex;flex-direction:column;gap:6px;text-align:center;
}
.bd-metric b{font-size:23px;font-weight:700;color:var(--ink);line-height:1.25;letter-spacing:-.3px;}
.bd-metric span{font-size:13px;color:var(--text-body);line-height:1.5;}

.bd-items{display:grid;gap:14px;}
.bd-items--two{grid-template-columns:repeat(2,1fr);}
.bd-item{background:#fff;border:1px solid var(--card-border);border-radius:var(--radius-card);padding:20px 22px;}
.bd-item h3{font-size:16px;font-weight:700;color:var(--ink);line-height:1.5;}
.bd-item p{font-size:13.5px;line-height:1.7;color:var(--text-body);margin-top:6px;}
.bd-items--check .bd-item{border-left:3px solid var(--green);}

.spec-table.is-base th,.spec-table.is-base td{padding:14px 18px;}
.spec-table.is-base .cap-k{font-weight:700;color:var(--ink);white-space:nowrap;}
.spec-table.is-base .cap-v{font-weight:700;color:var(--blue);white-space:nowrap;}

.bd-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.bd-gallery figure{margin:0;position:relative;border-radius:12px;overflow:hidden;background:var(--bg-soft);}
.bd-gallery img{display:block;width:100%;height:200px;object-fit:cover;transition:transform .35s ease;}
.bd-gallery figure:hover img{transform:scale(1.04);}
.bd-gallery figcaption{
  position:absolute;left:0;right:0;bottom:0;
  padding:30px 14px 11px;font-size:13px;font-weight:600;color:#fff;
  text-shadow:0 1px 3px rgba(0,0,0,.45);
  background:linear-gradient(to top,rgba(12,22,36,.86),rgba(12,22,36,.35) 55%,rgba(12,22,36,0));
}
/* 只有一个基地尚未提供多张实景图时，单图铺满整行，避免缩在三分之一栏里 */
.bd-gallery figure:only-child{grid-column:1 / -1;}
.bd-gallery figure:only-child img{height:300px;}
/* 收尾恰好只剩一张时（张数为 3n+1）同样铺满整行，避免末行孤零零缩在一角 */
.bd-gallery figure:last-child:nth-child(3n+1){grid-column:1 / -1;}
.bd-gallery figure:last-child:nth-child(3n+1) img{height:300px;}

/* 详情底部导航：上一个 / 返回 / 下一个 */
.bd-nav{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  margin-top:52px;padding-top:30px;border-top:1px solid var(--card-border);
}
.bd-nav-btn{
  appearance:none;-webkit-appearance:none;cursor:pointer;background:#fff;
  border:1px solid var(--card-border);border-radius:var(--radius-pill);
  padding:11px 20px;display:inline-flex;align-items:center;gap:10px;
  font-family:inherit;font-size:14px;color:var(--text-body);
  transition:border-color .2s ease,color .2s ease,box-shadow .2s ease;
}
.bd-nav-btn:hover{border-color:#C3D7EA;color:var(--blue);box-shadow:0 4px 14px rgba(26,26,46,.07);}
.bd-nav-btn:focus-visible{outline:2px solid var(--blue);outline-offset:2px;}
.bd-nav-dir{font-size:16px;color:var(--blue);flex:0 0 auto;}
.bd-nav-text{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;}
.bd-nav-btn--next .bd-nav-text{align-items:flex-end;}
.bd-nav-cap{font-size:11.5px;font-weight:600;color:var(--text-muted);letter-spacing:.3px;}
.bd-nav-label{font-size:14px;font-weight:600;color:var(--ink);line-height:1.4;}
.bd-back{flex:0 0 auto;}

/* RTL：章节引导线与标签方向随阿拉伯语翻转 */
[dir="rtl"] .bd-title{border-left:none;border-right:4px solid var(--blue);padding-left:0;padding-right:14px;}
[dir="rtl"] .bd-items--check .bd-item{border-left:none;border-right:3px solid var(--green);}
[dir="rtl"] .base-tile-loc{left:auto;right:16px;}
[dir="rtl"] .base-tile-stat + .base-tile-stat{border-left:none;border-right:1px solid var(--card-border);}
[dir="rtl"] .base-tile-stat{padding-right:0;padding-left:12px;}

/* ---------------- Contact cards ---------------- */
.contact-card{background:#fff;border:1px solid var(--card-border);border-radius:var(--radius-card);padding:28px;display:flex;flex-direction:column;gap:12px;}
.contact-card .label{font-size:14px;color:var(--text-body);}
.contact-card .value{font-size:18px;font-weight:700;color:var(--ink);line-height:1.4;}
.contact-card .value-sub-label{display:inline-block;font-size:13px;font-weight:600;color:var(--blue);margin-right:6px;}
.contact-card .value--muted{font-size:16px;font-weight:600;color:var(--text-muted);}
.contact-card.address .value{font-size:15px;}
/* 社交媒体卡片：链接待补充，当前仅展示图标与平台名，图标与其他卡片顶部对齐 */
.contact-card--social{gap:14px;}
.contact-card--social .label{font-size:15px;font-weight:600;color:var(--ink);}

/* ---------------- Contact: form + image ---------------- */
.consult-grid{
  max-width:var(--content);margin:0 auto;
  display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:stretch;
}
.form-card{
  background:#fff;border:1px solid var(--card-border);
  border-radius:var(--radius-card);padding:40px;
  display:flex;flex-direction:column;gap:20px;
}
.form-card h3{font-size:24px;font-weight:700;color:var(--ink);}
.field{display:flex;flex-direction:column;gap:8px;}
.field label{font-size:14px;font-weight:500;color:var(--text-profile);}
.field input,.field textarea{
  font-family:inherit;font-size:14px;color:var(--ink);
  background:var(--input-bg);
  border:1px solid var(--input-border);
  border-radius:8px;padding:14px 16px;
  outline:none;transition:border-color .2s ease,box-shadow .2s ease;
}
.field textarea{resize:vertical;min-height:120px;padding:12px 16px;}
.field input::placeholder,.field textarea::placeholder{color:var(--text-muted);}
/* 邮箱可留空；填写后格式有误才描红提示。此规则须在 :focus 之前，保证聚焦时仍以蓝色为主 */
.field input[aria-invalid="true"]{border-color:#D93025;background:#FFF7F6;}
.field-error{font-size:12.5px;color:#D93025;line-height:1.5;}
.field input:focus,.field textarea:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(0,86,179,.12);
}
.btn-submit{
  background:var(--blue);color:#fff;border:none;cursor:pointer;
  font-size:16px;font-weight:500;
  border-radius:10px;height:52px;
  transition:background .2s ease;
}
.btn-submit:hover{background:var(--blue-dark);}
/* 咨询表单的提交按钮占满整行：桌面端不至于缩在左侧，手机端也更好点按 */
#consultForm .btn-submit{width:100%;margin-top:4px;}
.form-success{
  margin-top:8px;padding:14px 16px;border-radius:8px;
  background:#E9F7EF;color:var(--green);font-size:14px;font-weight:500;
}
/* 咨询表单：必填项缺失时的提示弹窗 */
.modal-overlay{
  position:fixed;inset:0;z-index:1000;
  display:none;align-items:center;justify-content:center;
  background:rgba(26,26,46,.55);padding:20px;
}
.modal-box{
  width:100%;max-width:420px;
  background:#fff;border-radius:14px;
  padding:28px 28px 24px;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  animation:modalPop .18s ease-out;
}
@keyframes modalPop{from{opacity:0;transform:translateY(8px) scale(.98);}to{opacity:1;transform:none;}}
.modal-box h3{margin:0 0 14px;font-size:18px;font-weight:700;color:var(--ink);}
.modal-box ul{margin:0 0 20px;padding-left:20px;}
.modal-box ul li{margin:7px 0;color:#444;font-size:14.5px;line-height:1.5;}
.modal-box ul li::marker{color:var(--blue);}
.modal-box .btn-submit{width:100%;}
.consult-img{width:100%;height:100%;min-height:460px;object-fit:cover;border-radius:12px;}

/* ---------------- CTA section ---------------- */
.cta-section{
  background:var(--blue);
  padding:100px var(--side);
  text-align:center;
}
.cta-section h2{font-size:40px;font-weight:700;color:#fff;}
.cta-section p{font-size:18px;line-height:1.6;color:var(--on-blue);margin:16px auto 32px;max-width:640px;}
/* 联系我们页：页内已有在线咨询表单，页尾再放「立即联系我们」是自我重复，整段隐藏
   （只藏按钮会留下标题+副标题却无行动入口，反而像残缺区块） */
.page[data-page="contact"] .cta-section{display:none;}
.btn-white{
  display:inline-flex;align-items:center;justify-content:center;
  background:#fff;color:var(--blue);
  font-size:16px;font-weight:500;
  padding:16px 36px;border-radius:var(--radius-pill);
  border:none;cursor:pointer;transition:opacity .2s ease;
}
.btn-white:hover{opacity:.9;}

/* ---------------- Footer ---------------- */
.site-footer{background:var(--ink);padding:60px var(--side);color:#fff;}
.footer-inner{max-width:var(--content);margin:0 auto;}
.footer-top{display:flex;justify-content:space-between;gap:80px;}
.footer-brand{width:360px;}
.footer-logo{display:flex;align-items:center;gap:14px;margin-bottom:18px;}
.footer-logo .brand-mark{height:58px;width:auto;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35));}
.footer-logo .brand-text-img{height:46px;width:auto;display:block;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45));}
.footer-logo .brand-text{display:flex;flex-direction:column;justify-content:center;align-items:stretch;line-height:1.15;width:96px;}
/* 深色页脚下的组合标：中文白蓝渐变、英文浅银渐变 */
.footer-logo .brand-cn{display:flex;justify-content:space-between;width:100%;font-size:22px;font-weight:900;white-space:nowrap;font-family:"Source Han Sans SC","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;background:linear-gradient(180deg,#FFFFFF 0%,#9CC6F0 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#fff;}
.footer-logo .brand-en{display:flex;justify-content:space-between;width:100%;font-size:14px;font-weight:900;white-space:nowrap;font-family:"Arial Black",Arial,"Segoe UI",system-ui,sans-serif;background:linear-gradient(180deg,#f4f6f9 0%,#a9b1bb 38%,#8b939d 62%,#dde2e8 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#cfd5dd;}
.footer-brand .tagline{font-size:14px;line-height:1.7;color:var(--text-muted);white-space:pre-line;}
.footer-col{width:160px;}
.footer-col.contact{width:360px;}
.footer-col h4{font-size:16px;font-weight:700;color:#fff;margin-bottom:16px;}
.footer-col a,.footer-col p{display:block;font-size:14px;color:var(--text-muted);margin-bottom:12px;line-height:1.5;}
.footer-col.contact p{line-height:1.6;}
.footer-divider{height:1px;background:#2D3748;margin:40px 0;}
.footer-copy{font-size:13px;color:var(--footer-copy);}
.footer-copy .footer-beian{margin-left:2px;}
.footer-copy a{color:var(--footer-copy);text-decoration:none;}
.footer-copy a:hover{color:var(--blue);text-decoration:underline;}

/* ---------------- Product Service: series overview ---------------- */
/* 滚动定位的顶栏偏移统一由 html 的 scroll-padding-top 处理（见文件顶部），
   这里不再单独写 scroll-margin-top，否则两者叠加会导致偏移翻倍 */
.series-card{
  background:#fff;border:1px solid var(--card-border);
  border-radius:var(--radius-lg);overflow:hidden;
  display:flex;flex-direction:column;
}
.series-card .card-img{width:100%;height:200px;object-fit:cover;}
.series-body{padding:32px;display:flex;flex-direction:column;gap:12px;flex:1;}
.series-body h3{font-size:24px;font-weight:700;color:var(--ink);}
.series-body p{font-size:15px;line-height:1.6;color:var(--text-body);flex:1;}

/* 产品分类四栏：卡片更窄，收紧内边距与字号，避免标题折行 */
#seriesOverview .series-card .card-img{height:170px;}
#seriesOverview .series-body{padding:22px 20px 24px;gap:10px;}
#seriesOverview .series-body h3{font-size:19px;line-height:1.4;}
#seriesOverview .series-body p{font-size:13.5px;line-height:1.7;}
#seriesOverview .link-more{font-size:13.5px;}

/* 产品分类：三卡居中成组，与首页产品系列视觉一致 */
#seriesOverview{
  grid-template-columns:repeat(3,1fr);
  max-width:1000px;margin:0 auto;
}
@media (max-width:860px){
  #seriesOverview{grid-template-columns:1fr;max-width:100%;}
}

/* 首页产品系列四栏：卡片变窄，同步压低图高与字号，保持原有的横向图片比例 */
#homeSeriesGrid .product-card .card-img{height:200px;}
#homeSeriesGrid .product-body{padding:26px 22px 28px;gap:10px;}
#homeSeriesGrid .product-body h3{font-size:20px;line-height:1.4;}
#homeSeriesGrid .product-body p{font-size:13.5px;line-height:1.75;}
#homeSeriesGrid .link-more{font-size:13.5px;}

/* 首页产品系列：三卡整体居中成组，三张外观一致 */
#homeSeriesGrid{
  grid-template-columns:repeat(3,1fr);
  max-width:1000px;margin:0 auto;
}
@media (max-width:860px){
  #homeSeriesGrid{grid-template-columns:1fr;max-width:100%;}
}

/* ---------------- Product Service: category grid ---------------- */
.cat-grid{
  max-width:var(--content);margin:0 auto;
  display:grid;grid-template-columns:repeat(3,1fr);gap:24px;
}
.cat-card{
  background:#fff;border:1px solid var(--card-border);
  border-radius:var(--radius-card);padding:28px;
  display:flex;flex-direction:column;gap:10px;cursor:pointer;
  position:relative;transition:box-shadow .2s ease,transform .2s ease,border-color .2s ease;
}
.cat-card:hover{box-shadow:0 8px 24px rgba(26,26,46,.08);transform:translateY(-2px);border-color:#cdd7e3;}
.cat-index{font-size:13px;font-weight:700;color:var(--blue);letter-spacing:1px;}
.cat-card h3{font-size:19px;font-weight:700;color:var(--ink);line-height:1.4;}
.cat-card p{font-size:14px;color:var(--text-body);flex:1;}

/* ---------------- Product detail page ---------------- */
.detail-wrap{max-width:var(--content);margin:0 auto;padding:60px var(--side) 100px;}
.breadcrumb{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px;color:var(--text-body);margin-bottom:32px;}
.breadcrumb a{color:var(--blue);cursor:pointer;}
.breadcrumb a:hover{text-decoration:underline;}
.breadcrumb .sep{color:var(--text-muted);}
.breadcrumb .current{color:var(--ink);font-weight:500;}
.detail-title{font-size:34px;font-weight:700;color:var(--ink);margin-bottom:8px;}
.detail-lead{font-size:16px;color:var(--text-body);line-height:1.8;margin-bottom:40px;max-width:880px;padding:16px 20px;background:var(--bg-soft);border-left:3px solid var(--blue);border-radius:0 10px 10px 0;}
.detail-empty{font-size:15px;color:var(--text-body);background:var(--bg-soft);border:1px solid var(--card-border);border-radius:12px;padding:20px 24px;}

/* ---------------- Manual-like product tables ---------------- */
.sub-block{margin-bottom:48px;}
.sub-block h3{
  font-size:22px;font-weight:700;color:var(--blue);margin-bottom:16px;
  padding-left:14px;border-left:4px solid var(--blue);
}
.table-scroll{overflow-x:auto;border:1px solid var(--card-border);border-radius:12px;}
.spec-table{border-collapse:collapse;width:100%;min-width:760px;font-size:14px;background:#fff;}
.spec-table th,.spec-table td{
  padding:12px 16px;border:1px solid var(--card-border);
  text-align:left;vertical-align:top;line-height:1.5;color:var(--text-profile);
}
.spec-table thead th{background:var(--bg-soft);color:var(--ink);font-weight:700;white-space:nowrap;}
.spec-table tbody tr:nth-child(even){background:#FBFCFE;}
.spec-table .prod-name{font-weight:700;color:var(--ink);white-space:nowrap;}
.spec-table .rating{color:#E0A100;white-space:nowrap;letter-spacing:1px;}

/* 金属加工产品表：定宽列布局——加宽「产品介绍」，压缩其余列宽，整体降低表格高度 */
.spec-table.is-metal{table-layout:fixed;}
/* 润滑脂 / 特种润滑脂等超宽参数表：定宽列布局
   —— 加宽「产品名称」、保持文字密集列较宽、压缩其余参数列，以降低行高 */
.spec-table.is-wide{table-layout:fixed;min-width:1500px;}
.spec-table.is-wide col.col-prod{width:160px;}
.spec-table.is-wide col.col-text{width:210px;}
.spec-table.is-wide col.col-mid{width:100px;}
.spec-table.is-wide col.col-narrow{width:84px;}
/* 表头排版：中文按字换行；字号略减贴合宽表；非中文长词按音节连字符换行，避免从单词中间断开 */
.spec-table.is-wide thead th{
  white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:auto;
  font-size:12px;line-height:1.32;padding:10px 10px;
}
/* 按语种微调表头字号：拉丁/西里尔/阿拉伯字形宽度不同 */
html[lang="en"] .spec-table.is-wide thead th{font-size:11px;}
html[lang="ru"] .spec-table.is-wide thead th{font-size:10.5px;} /* 西里尔字形较宽，再缩一号 */
html[lang="ar"] .spec-table.is-wide thead th{font-size:11px;direction:rtl;text-align:right;}
.spec-table.is-wide tbody td{white-space:normal;word-break:break-word;vertical-align:top;}
.spec-table.is-wide .prod-name{white-space:normal;word-break:break-word;font-weight:700;color:var(--ink);}
.spec-table.is-metal col.col-intro{width:46%;}
.spec-table.is-metal col.col-name{width:16%;}
.spec-table.is-metal thead th{white-space:normal;}
.spec-table.is-metal .prod-name{white-space:normal;}
.spec-table.is-metal td,.spec-table.is-metal th{word-break:break-word;}
.detail-back{margin-top:48px;}

.series-card--solution .card-img{object-fit:contain;background:#F7FAFC;padding:16px;}

/* ---------------- Solution detail page (image-based diagram) ---------------- */
.mini-diagram{
  margin:32px 0 48px;
  border:1px solid var(--card-border);border-radius:var(--radius-lg);
  overflow:hidden;background:#fff;padding:16px;
}
.mini-diagram-title{
  text-align:center;font-size:1.25rem;font-weight:400;color:#4b5563;
  margin-bottom:12px;letter-spacing:.3px;line-height:1.5;
}
.mini-title-prefix,.mini-title-suffix{color:#4b5563;}
.mini-title-highlight{
  color:#1d4ed8;font-weight:700;
}
[dir="rtl"] .mini-diagram-title{direction:rtl;text-align:center;}
.mini-diagram-img{
  display:block;width:100%;height:auto;max-width:100%;
}
.solution-highlights{
  display:grid;grid-template-columns:repeat(3,1fr);gap:24px;
  max-width:var(--content);margin:0 auto;
}
.highlight-card{
  background:var(--bg-soft);border:1px solid var(--card-border);
  border-radius:var(--radius-card);padding:28px;
  display:flex;flex-direction:column;gap:14px;
}
.highlight-card h3{font-size:20px;font-weight:700;color:var(--blue);}
.highlight-card ul{list-style:disc;padding-left:18px;display:flex;flex-direction:column;gap:10px;}
.highlight-card li{font-size:15px;line-height:1.6;color:var(--text-body);}

/* ---------------- Responsive ---------------- */
@media (max-width:1080px){
  :root{--side:40px;}
  .hero-title{font-size:44px;}
  .grid-4{grid-template-columns:repeat(2,1fr);}
  .cat-grid{grid-template-columns:repeat(2,1fr);}
  .brand .brand-mark{height:42px;}
  .brand .brand-text-img{height:34px;}
  .header-cta{padding:10px 18px;font-size:13px;}
  .main-nav{gap:clamp(12px,1.4vw,24px);}
}
/* 桌面导航仍显示的最窄区间（861–960px）：俄文等长语言菜单最易拥挤，进一步收紧 */
@media (max-width:960px){
  .brand .brand-mark{height:38px;}
  .brand .brand-text-img{height:30px;}
  .header-cta{padding:8px 14px;font-size:12.5px;}
  .main-nav{gap:12px;}
  .main-nav a{font-size:14px;}
}
@media (max-width:860px){
  .main-nav{display:none;}
  .nav-toggle{display:flex;}
  .mobile-nav.open{display:block;}
  /* 触摸设备：输入框字号 ≥16px，避免 iOS Safari 聚焦时整页放大 */
  .field input,.field textarea{font-size:16px;}
  .bd-nav-btn{min-height:44px;}
  .hero{min-height:560px;}
  .hero-content{padding:80px var(--side);}
  .hero-title{font-size:36px;}
  .hero-sub{font-size:17px;}
  .section{padding:64px var(--side);}
  .section-head h2{font-size:30px;}
  .cta-section h2{font-size:30px;}
  .grid-3,.grid-2,.grid-4{grid-template-columns:1fr;}
  .base-grid{grid-template-columns:1fr;gap:22px;}
  .base-tile-media img{height:200px;}
  .base-tile-body{padding:22px 22px 20px;}
  .base-tile-body h3{font-size:20px;}
  .bd-hero{grid-template-columns:1fr;gap:20px;margin-bottom:32px;}
  .bd-hero-media img{height:220px;}
  .bd-title{font-size:19px;margin-bottom:16px;}
  .bd-metrics{grid-template-columns:repeat(2,1fr);gap:12px;}
  .bd-metric{padding:18px 12px;}
  .bd-metric b{font-size:20px;}
  .bd-items--two{grid-template-columns:1fr;}
  .bd-item{padding:16px 18px;}
  .bd-gallery{grid-template-columns:1fr;gap:12px;}
  .bd-gallery img{height:180px;}
  .bd-nav{flex-direction:column;align-items:stretch;gap:12px;margin-top:36px;padding-top:24px;}
  .bd-nav-btn{justify-content:flex-start;}
  .additive-hero{grid-template-columns:1fr;gap:26px;}
  .additive-hero-body{max-width:none;}
  .additive-hero-body h3{font-size:21px;}
  .additive-hero-body p{font-size:15px;}
  .additive-facts{grid-template-columns:repeat(3,1fr);gap:10px;}
  .additive-fact{padding:12px 6px;}
  .additive-fact b{font-size:20px;}
  .additive-fact span{font-size:11.5px;}
  .profile-grid,.consult-grid{grid-template-columns:1fr;gap:32px;}
  .footer-top{flex-direction:column;gap:40px;}
  .footer-brand,.footer-col,.footer-col.contact{width:100%;}
  .product-card .card-img{height:200px;}
  .cat-grid{grid-template-columns:1fr;}
  .solution-highlights{grid-template-columns:1fr;}
  .series-card--solution .card-img{height:auto;min-height:180px;}
  .brand .brand-mark{height:40px;}
  .brand .brand-text{width:80px;}
  .brand .brand-cn{font-size:18px;}
  .brand .brand-en{font-size:12px;}
  .footer-logo .brand-mark{height:48px;}
  .footer-logo .brand-text{width:84px;}
  .footer-logo .brand-cn{font-size:19px;}
  .footer-logo .brand-en{font-size:13px;}
}
/* 手机：进一步收紧边距与字号，并把按钮组、图库、详情间距压到一屏可读的范围 */
@media (max-width:640px){
  :root{--side:24px;--header-h:68px;}
  .hero{min-height:470px;}
  .hero-content{padding:64px var(--side);}
  .hero-title{font-size:32px;}
  .hero-sub{font-size:16px;}
  .hero-badge{font-size:12px;}
  .section{padding:52px var(--side);}
  .section-head h2{font-size:26px;}
  .section-head p{font-size:15px;}
  .cta-section{padding:72px var(--side);}
  .cta-section h2{font-size:26px;}
  .cta-section p{font-size:16px;margin-bottom:26px;}
  .detail-wrap{padding:36px var(--side) 72px;}
  .detail-title{font-size:26px;}
  .detail-lead{padding:14px 16px;font-size:15px;margin-bottom:28px;}
  .bd-hero{margin-bottom:26px;}
  .bd-hero-media img{height:190px;}
  .bd-metrics{grid-template-columns:1fr;}
  .bd-section{margin-bottom:32px;}
  .bd-gallery img{height:160px;}
  .spec-table.is-base{min-width:520px;}
  .base-tile-media img{height:180px;}
  .contact-card{padding:22px;}
  .form-card{padding:26px 22px;}
  .profile-img{height:260px;}
  .consult-img{min-height:300px;}
  .site-footer{padding:48px var(--side);}
}
@media (max-width:560px){
  /* 窄屏优先保证导航可用：隐藏重复的头部分类 CTA（页尾仍有完整 CTA 区块） */
  .header-cta{display:none;}
  .header-right{gap:16px;}
}
@media (max-width:480px){
  :root{--side:18px;}
  .hero{min-height:430px;}
  .hero-title{font-size:28px;}
  .additive-facts{grid-template-columns:repeat(3,1fr);gap:6px;}
  .additive-fact b{font-size:18px;}
  .additive-fact span{font-size:10.5px;}
  .footer-col,.footer-col.contact{width:100%;}
  .contact-card .value,.contact-card.address .value{overflow-wrap:anywhere;}
}
