/* ==========================================================
   汕头市嘉祥塑料制品厂有限公司 企业官网样式
   品牌色取自画册：主红 #d8232a，深蓝 #1c2b3a，辅助蓝 #0080c0
   ========================================================== */
:root {
  --primary: #d8232a;
  --primary-dark: #b21820;
  --dark: #1c2b3a;
  --blue: #0080c0;
  --txt: #333a45;
  --muted: #6b7684;
  --line: #e7ecf1;
  --bg: #f6f8fa;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(28, 43, 58, .08);
}

/* ---------- 自托管 Roboto Condensed 字体（同参考站，用于滚动字带大字；子集仅含拉丁字符） ---------- */
@font-face { font-family: 'Roboto Condensed'; src: url('../fonts/roboto-condensed-bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto Condensed'; src: url('../fonts/roboto-condensed-light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: var(--txt);
  font-size: 16px;
  line-height: 1.7;
  background: #fff;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: 1400px; max-width: 92vw; margin: 0 auto; } /* 大屏内容区加宽，图片随容器同比变大，两侧留白更均衡 */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 11px 30px; border-radius: 30px;
  font-size: 15px; border: 2px solid transparent; cursor: pointer;
  transition: all .25s; line-height: 1.4;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--txt); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--primary); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--dark); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90; background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; height: 84px; gap: 30px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 52px; height: 52px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, var(--primary), #f0554d);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(216, 35, 42, .3);
}
.logo-img { height: 52px; width: auto; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.25; }
.logo-txt b { font-size: 19px; color: var(--dark); }
.logo-txt i { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .5px; }

.main-nav { flex: 1; }
.main-nav ul { display: flex; justify-content: flex-end; gap: 4px; }
.main-nav li { position: relative; }
.main-nav li > a {
  display: block; padding: 10px 18px; font-size: 16px; color: var(--dark);
  border-radius: 8px; font-weight: 500;
}
.main-nav li:hover > a, .main-nav li.on > a { color: var(--primary); }
.main-nav li.on > a { font-weight: 700; }
.sub-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; min-width: 170px; border-radius: 10px; box-shadow: var(--shadow);
  padding: 8px; opacity: 0; visibility: hidden; transition: all .25s; z-index: 5;
}
.has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.sub-menu a {
  display: block; padding: 9px 14px; font-size: 14px; color: var(--txt);
  border-radius: 6px; white-space: nowrap;
}
.sub-menu a:hover { background: var(--bg); color: var(--primary); }

.header-tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--line); border-radius: 20px; padding: 6px 15px;
  font-size: 13.5px; color: var(--dark); font-weight: 600;
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--dark); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 80vh; min-height: 520px; overflow: hidden; background: var(--dark); } /* 原满屏 100vh 按用户要求降为 80%；「关于我们」仍在首屏保险线(82vh)之下，滚动滑入动画不受影响 */
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s; display: flex; align-items: center;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 24, 35, .68) 0%, rgba(15, 24, 35, .25) 60%, transparent);
}
.hero-slide.on { opacity: 1; z-index: 1; }
.hero-cap { position: relative; z-index: 2; color: #fff; }
/* banner 文字从下方滑入（同参考站 wordmove 机制）：绑定在 .on 帧上，轮播切帧时类名切换自动重播，三元素错峰上浮 */
.hero-slide.on .hero-cap > * { opacity: 0; animation: hero-cap-up .7s ease forwards; }
.hero-slide.on .hero-cap > :nth-child(2) { animation-delay: .15s; }
.hero-slide.on .hero-cap > :nth-child(3) { animation-delay: .3s; }
@keyframes hero-cap-up { from { opacity: 0; transform: translate3d(0, 46px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.hero-sub { font-size: 17px; letter-spacing: 2px; opacity: .92; margin-bottom: 14px; }
.hero-title { font-size: clamp(28px, 4.5vw, 52px); font-weight: 800; line-height: 1.25; margin-bottom: 30px; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dot { width: 34px; height: 4px; border-radius: 2px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: .3s; }
.hero-dot.on { background: var(--primary); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; font-size: 18px; transition: .3s;
}
.hero-arrow:hover { background: var(--primary); }
.hero-arrow.prev { left: 26px; }
.hero-arrow.next { right: 26px; }

/* ---------- 通用 Section ---------- */
.sec { padding: 76px 0; }
.eyebrow { color: var(--primary); font-weight: 700; letter-spacing: 3px; font-size: 15px; }
.sec-title { font-size: clamp(26px, 3.2vw, 40px); color: var(--dark); font-weight: 800; margin: 6px 0 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 38px; gap: 20px; flex-wrap: wrap; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.sec-head.light .sec-title, .sec-head.light .sec-sub { color: #fff; }
.sec-head.light .eyebrow { color: #ffd; }
.sec-sub { color: rgba(255,255,255,.85); margin-top: 10px; }
.more-link { color: var(--primary); font-size: 14.5px; font-weight: 600; }
.more-link:hover { text-decoration: underline; }

/* ---------- 关于我们（首页） ---------- */
.sec-about { overflow: hidden; } /* 滚动滑入位移幅度大，防止出现横向滚动条 */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; } /* 图区约 60%、文字区 40%，同参考站；文字列与左侧两图顶部对齐 */
.about-imgs { display: flex; align-items: flex-start; gap: 4%; } /* 两图并排不重叠，同参考站 */
.ab-card {
  border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); /* 大圆角卡片，悬停时内部图片放大（参考站同款） */
}
.ab-card img {
  display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .8s; backface-visibility: hidden;
}
.ab-card1 { width: 42%; } /* 左小图，同参考站 42% */
.ab-card2 { width: 54%; } /* 右大图与左图顶部对齐，同参考站 */
.ab-card2 img { aspect-ratio: 10/11; } /* 右图竖版，形成左小横、右大竖的层次 */
.ab-card:hover img { transform: scale(1.1); transition-duration: .6s; }
.about-name { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; color: var(--dark); line-height: 1.3; margin: 0 0 18px; } /* 右列公司名大标题，同参考站黑色加粗 */
.about-head { margin-bottom: 42px; } /* 标题行压在图区上方，同参考站 e_container-51 */
.about-head .eyebrow { color: #000; font-family: 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif; font-size: 30px; font-weight: 400; letter-spacing: normal; line-height: 1; margin-bottom: 10px; } /* 同参考站 ABOUT US：30px 细体窄体字纯黑 */
.about-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.3; color: var(--primary); }
.about-brief { color: var(--muted); margin-bottom: 26px; }
.about-brief p { margin-bottom: 10px; }

/* ---------- 分类速览（首页悬停滑动展开大图） ---------- */
.sec-catshow { padding-top: 0; }
.catshow-list { display: flex; gap: 14px; height: 400px; border-radius: var(--radius); overflow: hidden; }
.catshow-item {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; display: block;
  transition: flex-grow .5s ease; /* 悬停时 flex-grow 变大 → 平滑“滑动展开”，另一张自动收窄 */
}
.catshow-item:hover { flex-grow: 2.6; }
.catshow-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.catshow-item:hover img { transform: scale(1.05); }
/* 未被悬停的一张加暗，突出当前项 */
.catshow-item::after { content: ""; position: absolute; inset: 0; background: rgba(20, 32, 46, .35); opacity: 0; transition: opacity .5s; pointer-events: none; }
.catshow-list:hover .catshow-item:not(:hover)::after { opacity: 1; }
.catshow-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 46px 26px 22px; background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}
.catshow-name { color: #fff; font-size: 26px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.catshow-more { color: rgba(255, 255, 255, .9); font-size: 13px; opacity: 0; transform: translateY(6px); transition: all .35s .1s; }
.catshow-item:hover .catshow-more { opacity: 1; transform: none; }

/* ---------- 定制服务（4 张定制能力图） ---------- */
.sec-custom .sec-head { margin-bottom: 34px; }
.sec-custom .sec-sub { color: var(--muted); } /* .sec-sub 默认白字（暗色区块用），此处亮底覆盖为灰 */
.cus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cus-item { text-align: center; }
.cus-img {
  display: block; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 1/1; background: #f6f8fa;
}
.cus-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; backface-visibility: hidden; }
.cus-item:hover .cus-img img { transform: scale(1.06); } /* 悬停微放大，移开恢复 */
.cus-cap { display: block; margin-top: 14px; font-size: 16px; font-weight: 600; color: var(--dark); }

/* ---------- 品牌滚动字带（完全复刻参考站：单份文字、70s 一循环、循环瞬间回跳、区块滚动到位时从下方淡入） ---------- */
.sec-marquee { padding: 0; }
.marquee-band { position: relative; min-height: 220px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 4% 0; } /* 高度由内容自适应：原固定高封顶 300px + overflow hidden，在 ≥ 1770px 宽屏上内容超高导致标题被切/错位；必须 flex-start：stretch 会把轨道宽鉗到视口宽 */
.marquee-track { flex: none; display: flex; width: max-content; white-space: nowrap; animation: marquee-loop 70s linear infinite; will-change: transform; } /* 同参考站：单份 JIAXIANG PLASTIC，向右平移自身宽度后回跳；同款窄体字体下实测 ≈ 1.04vw/s，70s 一组词 */
.marquee-words { flex: none; font-family: 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif; font-size: clamp(48px, 10vw, 200px); line-height: .8; font-weight: 700; color: #e6e8e8; text-transform: uppercase; }
@keyframes marquee-loop { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(100%, 0, 0); } } /* 同参考站 wordsLoop：向右平移 100% 自身宽后瞬间回跳 */
.marquee-title { margin-top: 20px; } /* 字号/字重/颜色由 sec-title 提供，与「产品展示」标题完全一致；包在 .container 里左边界对齐 */
.sec-marquee .container { flex: none; align-self: center; } /* flex 列容器里恢复 .container 的居中（对齐其他区块）；flex:none 防被压缩 */

/* ---------- 产品 ---------- */
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-tab {
  padding: 8px 20px; border-radius: 20px; font-size: 14px;
  border: 1.5px solid var(--line); color: var(--txt);
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.prod-grid.col3 { grid-template-columns: repeat(3, 1fr); }
.prod-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: all .3s; display: block;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.prod-img { display: block; aspect-ratio: 1/1; overflow: hidden; background: var(--bg); }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prod-card:hover .prod-img img { transform: scale(1.06); }
.prod-name { display: block; padding: 13px 16px 3px; font-size: 16px; color: var(--dark); font-weight: 600; }
.prod-card:hover .prod-name { color: var(--primary); }
.prod-cat { display: block; padding: 0 16px 13px; font-size: 13.5px; color: var(--muted); }

/* ---------- 滚动滑入动画：初始隐藏态由 JS 注入（无 JS 时直接可见），进入视口加 .in 播关键帧动画（同参考站 saf-fadeInLeft 机制；animation 比 transition 可靠，加载时已在视口内也会完整播放） ---------- */
.rv { opacity: 0; }
.rv.in { opacity: 1; animation: rv-left .8s ease both; }
.rv-up.in { animation-name: rv-up; }
.rv-down.in { animation-name: rv-down; }
.rv-right.in { animation-name: rv-right; }
@keyframes rv-left { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes rv-up { from { opacity: 0; transform: translate3d(0, 46px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes rv-down { from { opacity: 0; transform: translate3d(0, -46px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes rv-right { from { opacity: 0; transform: translate3d(80px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }

/* ---------- 首页产品轮播（横向滑动 + 左右箭头） ---------- */
.prod-carousel { position: relative; }
.prod-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 6px 2px 12px; /* 预留悬停上浮空间 */
}
.prod-track::-webkit-scrollbar { display: none; }
.prod-track .prod-card { flex: 0 0 calc((100% - 72px) / 4); scroll-snap-align: start; position: relative; }
.prod-track .prod-img { aspect-ratio: 1/1; padding: 18px; } /* 产品照居中展示，同参考站 */
.prod-track .prod-img img { object-fit: contain; }
.prod-track .prod-name { text-align: center; padding: 14px 12px 2px; }
.prod-track .prod-cat { text-align: center; padding: 0 12px 14px; }
.prod-view {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 20px; transition: all .3s;
}
.prod-track .prod-card:hover .prod-view { background: var(--primary); border-color: var(--primary); color: #fff; }
.pc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(216, 35, 42, .12); color: var(--primary); font-size: 17px;
  display: flex; align-items: center; justify-content: center; transition: all .3s;
}
.pc-arrow:hover { background: var(--primary); color: #fff; }
.pc-arrow.prev { left: -21px; }
.pc-arrow.next { right: -21px; }

/* ---------- 企业优势 ---------- */
.sec-adv {
  background-color: var(--dark); background-size: cover; background-position: center;
  background-blend-mode: multiply; position: relative;
}
.sec-adv::before { content: ""; position: absolute; inset: 0; background: rgba(20, 32, 46, .82); }
.sec-adv .container { position: relative; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 30px 24px; color: #fff; transition: .3s;
}
.adv-card:hover { background: #fff; color: var(--txt); transform: translateY(-6px); }
.adv-card:hover h3 { color: var(--primary); }
.adv-ico { display: inline-flex; color: var(--primary); margin-bottom: 16px; }
.adv-ico svg { filter: drop-shadow(0 2px 6px rgba(216,35,42,.25)); }
.adv-card h3 { font-size: 19px; margin-bottom: 10px; }
.adv-card p { font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.8; }
.adv-card:hover p { color: var(--muted); }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.news-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #fff; transition: .3s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg); }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 16px 18px 20px; display: block; }
.news-date { font-size: 12.5px; color: var(--primary); font-weight: 600; }
.news-body h3 {
  font-size: 16px; color: var(--dark); margin: 7px 0 8px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card:hover h3 { color: var(--primary); }
.news-body p {
  font-size: 14px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary), #f0554d); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-inner h3 { font-size: 28px; margin-bottom: 6px; }
.cta-inner p { opacity: .9; font-size: 15px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.72); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding: 60px 0 44px; }
.f-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.f-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2.5px; background: var(--primary); border-radius: 2px; }
.f-col ul li { margin-bottom: 10px; font-size: 13.5px; }
.f-col ul a:hover { color: #fff; }
.f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.f-logo b { color: #fff; font-size: 18px; }
.f-about p { font-size: 13.5px; margin-bottom: 8px; }
.f-slogan { color: rgba(255,255,255,.5); }
.f-contact li { display: flex; gap: 8px; }
.f-contact i { font-style: normal; color: rgba(255,255,255,.45); flex-shrink: 0; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 13px; }
.footer-bar .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-bar a:hover { color: #fff; }

/* ---------- 侧边悬浮 ---------- */
.side-bar { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 80; display: flex; flex-direction: column; }
.side-item {
  width: 52px; padding: 12px 0; background: var(--dark); color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 11px; border-bottom: 1px solid rgba(255,255,255,.12); transition: .25s;
  overflow: hidden;
}
.side-item:hover { background: var(--primary); }
.side-item span { max-width: 48px; text-align: center; word-break: break-all; line-height: 1.3; }
.side-top { border-bottom: 0; }

/* ---------- 内页 Banner ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--dark) 30%, #34506e);
  color: #fff; padding: 52px 0; text-align: center;
}
.page-banner h1 { font-size: 30px; font-weight: 800; }
.crumb { font-size: 13.5px; opacity: .75; margin-top: 8px; }
.crumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- 关于我们内页 ---------- */
.about-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 84px; z-index: 50; }
.about-nav .container { display: flex; gap: 6px; overflow-x: auto; }
.about-nav a { padding: 15px 20px; font-size: 14.5px; color: var(--txt); white-space: nowrap; border-bottom: 2.5px solid transparent; }
.about-nav a:hover { color: var(--primary); border-color: var(--primary); }
.about-block { border-bottom: 1px solid var(--line); }
.about-block:nth-child(even) { background: var(--bg); }
.ab-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.about-block.rev .ab-inner { direction: rtl; }
.about-block.rev .ab-info { direction: ltr; }
.ab-media { display: grid; gap: 16px; }
.ab-media img { display: block; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; } /* 去掉原 max-height:430px 封顶：4:3 偏方的图（如企业荣誉 1600x1200）会被 cover 上下裁掉约 75px；现按图片原始比例完整显示（cover 仅在双图行高拉伸时兜底防变形） */
.ab-media:has(.ab-m1) { grid-template-columns: 1fr 1fr; }
.ab-info .eyebrow { letter-spacing: 2px; }
.ab-info .sec-title { margin-bottom: 18px; }
.rich { color: var(--txt); line-height: 1.95; }
.rich p { margin-bottom: 12px; }
.rich img { border-radius: 8px; margin: 10px 0; max-width: 100%; }

/* ---------- 关于我们：数据概览（数字统计，进入视口滚动增长） ---------- */
.about-block.stat-strip { background: var(--bg); } /* 底色与页面灰底一致，不用白色 */
.stat-strip .ab-inner { display: block; } /* 覆盖两列图文网格，统计条独占整行 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-fig { font-size: 46px; font-weight: 800; color: var(--primary); line-height: 1.15; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat-fig i { font-style: normal; font-size: 20px; font-weight: 700; margin-left: 4px; } /* 数字右上角小单位（+/㎡） */
.stat-label { font-size: 16px; color: var(--txt); }

/* ---------- 产品列表：分类大横幅 + 横向分类条 + 全宽网格 ---------- */
.pban {
  aspect-ratio: 16/5; min-height: 220px; background-size: cover; background-position: center;
  display: flex; align-items: center; position: relative;
} /* 高度按横幅图 16:5 比例（1920×600）随宽度等比缩放，任何屏宽下图片完整不裁切；原固定 320px 高在 1920/2560 全屏下被 cover 上下裁掉 280~480px；窄窗/移动端由 min-height 保底 */
.pban::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,32,.55), rgba(15,23,32,.08)); }
.pban-cap { position: relative; z-index: 1; color: #fff; }
.pban-cap h1 { font-size: 38px; font-weight: 800; letter-spacing: 1px; }
.pban-cap .crumb { opacity: .85; }
.pban-wide { aspect-ratio: 16/5; min-height: 260px; } /* 关于我们页长横幅：高度随宽幅图比例（1920×600）自适应，同参考站 */
/* 镜头拉远效果：背景图经 ::after 层渲染（inherit 复制内联背景），加载时从 1.2 倍缓缩至原大（同参考站 bannerimg 动画） */
.pban-wide { overflow: hidden; }
.pban-wide::after { content: ''; position: absolute; inset: 0; z-index: 0; background: inherit; background-size: cover; background-position: center; animation: pban-zoomout 2.4s ease-out both; }
.pban-wide::before { z-index: 1; } /* 渐变遮罩压在背景图之上 */
.pban-wide .pban-cap { z-index: 2; } /* 标题层保持在遮罩与背景图之上 */
@keyframes pban-zoomout { from { transform: scale(1.2); } to { transform: scale(1); } }
.catbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 84px; z-index: 50; }
.catbar-in { display: flex; gap: 6px; overflow-x: auto; }
.catbar a {
  padding: 17px 26px; font-size: 16px; color: var(--txt);
  white-space: nowrap; border-bottom: 3px solid transparent; transition: .25s;
}
.catbar a:hover { color: var(--primary); }
.catbar a.on { color: var(--primary); border-color: var(--primary); font-weight: 700; }
.sec-list .prod-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pgrid .prod-img { background: #fff; padding: 20px; } /* 产品照留白居中展示，同参考站 */
.pgrid .prod-img img { object-fit: contain; }
.pgrid .prod-name { text-align: center; padding: 14px 14px 16px; }

/* ---------- 列表页布局 ---------- */
.list-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 110px; }
.side-nav h3 { background: var(--dark); color: #fff; font-size: 17px; padding: 16px 22px; }
.side-nav ul li a { display: block; padding: 13px 22px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.side-nav ul li.on a, .side-nav ul li a:hover { color: var(--primary); background: var(--bg); }
.side-contact { padding: 20px 22px; background: var(--bg); }
.side-contact p { font-size: 13px; color: var(--muted); }
.side-contact a { font-size: 20px; font-weight: 800; color: var(--primary); }
.cat-intro { background: var(--bg); border-left: 4px solid var(--primary); padding: 13px 18px; border-radius: 0 8px 8px 0; color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; font-size: 14px; padding: 0 10px;
}
.pager a.on, .pager a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 产品详情 ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.gallery-main {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 1/1; background: var(--bg);
}
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: .3s; padding: 12px; }
.gallery-main img.on { opacity: 1; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.g-thumb { width: 74px; height: 74px; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; padding: 3px; }
.g-thumb img { width: 100%; height: 100%; object-fit: contain; }
.g-thumb.on { border-color: var(--primary); }
.detail-title { font-size: 28px; color: var(--dark); font-weight: 800; }
.detail-cat { color: var(--muted); font-size: 14px; margin: 10px 0 18px; }
.detail-desc { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 26px; color: var(--muted); }
.detail-actions { display: flex; gap: 14px; margin-bottom: 26px; }
.detail-contact p { font-size: 14.5px; margin-bottom: 6px; }
.detail-contact a { color: var(--primary); font-weight: 600; }
.sec-related { background: var(--bg); }

/* ---------- 新闻列表/详情 ---------- */
.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-item {
  display: flex; gap: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; transition: .3s; align-items: center;
}
.news-item:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateX(4px); }
.news-date-box {
  flex-shrink: 0; width: 74px; text-align: center; border-right: 1px solid var(--line); padding-right: 18px;
}
.news-date-box b { display: block; font-size: 30px; color: var(--primary); line-height: 1.1; }
.news-date-box i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.news-item-body { flex: 1; }
.news-item-body h3 { font-size: 17px; color: var(--dark); margin-bottom: 8px; }
.news-item:hover h3 { color: var(--primary); }
.news-item-body p { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.news-item-img { flex-shrink: 0; width: 170px; border-radius: 8px; overflow: hidden; }
.news-item-img img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }

.article-wrap { max-width: 860px; }
.article-title { font-size: 28px; color: var(--dark); line-height: 1.5; }
.article-meta { color: var(--muted); font-size: 13.5px; margin: 14px 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); display: flex; gap: 24px; flex-wrap: wrap; }
.article-body { font-size: 16px; }
.article-pn { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.article-pn a { color: var(--muted); }
.article-pn a:hover { color: var(--primary); }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contact-list { margin-top: 26px; }
.contact-list li { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-list i {
  width: 46px; height: 46px; border-radius: 12px; background: var(--bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-list b { display: block; color: var(--dark); font-size: 15px; }
.contact-list p { color: var(--muted); font-size: 14px; }
.contact-form { background: var(--bg); border-radius: var(--radius); padding: 36px; }
.contact-form h3 { font-size: 20px; color: var(--dark); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 15px;
  font-size: 14px; font-family: inherit; background: #fff; outline: none; transition: .2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { margin-bottom: 16px; resize: vertical; }
.form-tip { margin-top: 12px; font-size: 13.5px; }
.form-tip.ok { color: #1e9e58; }
.form-tip.err { color: var(--primary); }
.captcha-row { display: flex; gap: 14px; align-items: stretch; }
.captcha-row input { flex: 1; }
.captcha-img {
  width: 120px; height: 44px; flex: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
}
.captcha-tip { margin: 8px 0 14px; font-size: 12.5px; color: var(--muted); }

/* ---------- 全站提示弹窗 ---------- */
.jx-modal-mask {
  position: fixed; inset: 0; z-index: 9999; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(28, 43, 58, .55); opacity: 0; transition: opacity .25s;
}
.jx-modal-mask.show { opacity: 1; }
.jx-modal {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  width: 380px; max-width: 100%; padding: 38px 30px 30px; text-align: center;
  transform: translateY(14px) scale(.96); transition: transform .25s;
}
.jx-modal-mask.show .jx-modal { transform: none; }
.jx-modal-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.jx-modal-icon.ok  { background: rgba(30, 158, 88, .1); color: #1e9e58; }
.jx-modal-icon.err { background: rgba(216, 35, 42, .08); color: var(--primary); }
.jx-modal-title { font-size: 18px; font-weight: bold; color: var(--dark); margin-bottom: 8px; }
.jx-modal-msg { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; word-break: break-word; }
.jx-modal .btn { min-width: 132px; }
.map-band { padding-top: 0; }
.map-frame {
  position: relative; height: 0; padding-bottom: 57.5%; /* 按高德地图 800x460 比例自适应 */
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .sec-list .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-track .prod-card { flex-basis: calc((100% - 48px) / 3); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .ab-inner, .detail-layout, .contact-grid { grid-template-columns: 1fr; }
  .catshow-list { height: 320px; }
  .cus-grid { grid-template-columns: repeat(2, 1fr); }
  .about-block.rev .ab-inner { direction: ltr; }
  .list-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-inner { height: 66px; gap: 12px; }
  .logo-txt i { display: none; }
  .logo-txt b { font-size: 16px; }
  .logo-mark { width: 44px; height: 44px; font-size: 13px; }
  .nav-toggle { display: block; }
  /* 移动端导航脱离 flex 流（fixed），用 margin-left:auto 把语言切换和菜单按钮推到最右 */
  .header-tools { margin-left: auto; }
  .main-nav {
    position: fixed; top: 66px; left: 0; right: 0; background: #fff;
    box-shadow: var(--shadow); padding: 10px; display: none; max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li > a { padding: 13px 16px; border-bottom: 1px solid var(--line); }
  /* 移动端子菜单用 max-height 展开而非 display 切换，且不加过渡动画：部分手机内核切换 display 不重绘、max-height 过渡动画会卡在第 0 帧，导致列表看不见但能点 */
  .sub-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; padding: 0 0 0 18px; display: block; max-height: 0; overflow: hidden; transition: none; }
  .has-sub.open .sub-menu { max-height: 500px; }
  /* 抵消桌面 hover 规则的 transform（其特异性更高）：否则悬停/触屏点击时子菜单被平移 -50% 推出面板，看不见但能点 */
  .main-nav .has-sub:hover .sub-menu { transform: none; }
  .hero { height: 62vh; min-height: 360px; }
  .hero-arrow { display: none; }
  .sec { padding: 52px 0; }
  /* 关于我们两图移动端仍并排顶对齐，圆角收窄 */
  .ab-card { border-radius: 18px; }
  .prod-grid, .prod-grid.col3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .sec-list .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* 产品列表页移动端：横幅收窄、分类条贴住移动导航 */
  .pban { min-height: 220px; }
  .pban-wide { aspect-ratio: 16/9; min-height: 200px; } /* 手机端长横幅改用更高比例，避免过矮 */
  .pban-cap h1 { font-size: 26px; }
  .catbar { top: 66px; }
  .catbar a { padding: 13px 16px; font-size: 15px; }
  /* 产品轮播移动端：一屏 2 张，隐藏箭头（靠触摸滑动，scroll-snap 自动对齐） */
  .prod-track { gap: 14px; }
  .prod-track .prod-card { flex-basis: calc((100% - 14px) / 2); }
  .pc-arrow { display: none; }
  .adv-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-item { flex-wrap: wrap; }
  .news-item-img { width: 100%; order: -1; }
  .news-date-box { width: auto; padding-right: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 30px; }
  .side-bar { top: auto; bottom: 0; transform: none; flex-direction: row; right: 0; left: auto; }
  .side-item { width: 52px; padding: 9px 0; }
  .side-item span { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .map-frame { padding-bottom: 70%; } /* 手机端地图略增高，便于操作 */
  .about-nav { top: 66px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  /* 分类速览移动端上下堆叠，取消悬停伸缩 */
  .catshow-list { flex-direction: column; height: auto; gap: 12px; }
  .catshow-item { flex: none; height: 200px; }
  .catshow-name { font-size: 19px; }
  /* 定制服务移动端：2×2 小图 */
  .cus-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cus-cap { font-size: 14px; margin-top: 10px; }
  /* 数据概览移动端：2×2 */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stat-fig { font-size: 34px; }
}
