/* ==========================================================================
   陕西华禹管业工程有限公司 · 官网
   视觉参考：联塑管道官网风格 —— 全屏大图、大字、英文副标题、斜切分隔
   品牌色沿用华禹 LOGO 绿
   ========================================================================== */

:root {
  --brand: #04813F;
  --brand-d: #036B34;
  --brand-x: #024F27;
  --brand-l: #E9F6EF;
  --brand-l2: #F4FBF7;
  --lime: #8CC63F;

  --ink: #14181C;
  --ink-2: #333B42;
  --body: #59636B;
  --mut: #8B959C;
  --line: #E7EBE9;
  --line-2: #F0F3F1;
  --soft: #F5F7F6;
  --dark: #10161499;
  --white: #fff;

  --shadow: 0 10px 40px rgba(16, 30, 22, .10);
  --shadow-lg: 0 26px 70px rgba(16, 30, 22, .22);

  --wrap: 1240px;
  --hd: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: 'HuayuSans', "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
          "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 10px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding: 0; list-style: none; }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; font-weight: 700; line-height: 1.28; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.5rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

/* 英文副标题 */
.en { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mut); font-weight: 600; margin: 0 0 .9rem; }
.kicker {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .16em;
  color: var(--brand); text-transform: uppercase; margin: 0 0 1rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--brand);
}
.kicker-light { color: var(--lime); border-color: var(--lime); }
.en-light { color: rgba(255, 255, 255, .55); }

/* 按钮 */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600;
  font-size: .94rem; padding: .72rem 1.6rem; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease),
              transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pill-lg { padding: .92rem 2.1rem; font-size: 1rem; }
.pill-brand { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(4, 129, 63, .26); }
.pill-brand:hover { background: var(--brand-d); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(4, 129, 63, .32); }
.pill-line { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.pill-line:hover { background: #fff; color: var(--brand); border-color: #fff; }
.pill-block { width: 100%; }

.more {
  display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0; padding: 0;
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--brand); cursor: pointer;
}
.more span { transition: transform .28s var(--ease); }
.more:hover span { transform: translateX(5px); }

.head { max-width: 820px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.head-center { margin-inline: auto; text-align: center; }
.head-tight { margin-bottom: 1.6rem; }
.head-lead { font-size: 1.04rem; color: var(--body); margin: 0; }
.head .en { margin-bottom: 1rem; }
.muted { color: var(--mut); }
.small { font-size: .88rem; }
.mt { margin-top: 2rem; }

/* ==================== 顶部导航 ==================== */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.hd-in { display: flex; align-items: center; gap: 1.5rem; height: var(--hd); }

.hd:not(.solid) .brand strong, .hd:not(.solid) .nav a, .hd:not(.solid) .hd-tel strong, .hd:not(.solid) .hd-tel em { color: #fff; }
.hd:not(.solid) .brand em { color: rgba(255, 255, 255, .6); }
.hd:not(.solid) .nav a::after { background: #fff; }
.hd:not(.solid) .burger { border-color: rgba(255, 255, 255, .5); }
.hd:not(.solid) .burger span { background: #fff; }

.hd.solid { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 6px 30px rgba(16, 30, 22, .08); border-bottom-color: var(--line); }
.hd.solid .brand strong { color: var(--ink); }
.hd.solid .brand em { color: var(--mut); }
.hd.solid .nav a { color: var(--ink-2); }
.hd.solid .nav a::after { background: var(--brand); }
.hd.solid .hd-tel strong { color: var(--brand); }
.hd.solid .hd-tel em { color: var(--mut); }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.brand span { display: flex; flex-direction: column; line-height: 1.18; }
.brand strong { font-size: 1.08rem; letter-spacing: .02em; white-space: nowrap; transition: color .3s var(--ease); }
.brand em { font-style: normal; font-size: .58rem; letter-spacing: .2em; transition: color .3s var(--ease); }

.nav { display: flex; align-items: center; gap: 1.9rem; margin-inline: auto; }
.nav a { position: relative; font-size: .96rem; font-weight: 500; padding: .4rem 0; transition: color .3s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; border-radius: 2px; transition: right .3s var(--ease); }
.nav a:hover::after, .nav a.on::after { right: 0; }

.hd-act { display: flex; align-items: center; gap: 1rem; }
.hd-tel { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.hd-tel em { font-style: normal; font-size: .64rem; letter-spacing: .14em; transition: color .3s var(--ease); }
.hd-tel strong { font-size: 1.04rem; font-weight: 700; letter-spacing: .01em; transition: color .3s var(--ease); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .28s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==================== 首屏 ==================== */
.hero { position: relative; min-height: min(94vh, 900px); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hd) + 3.5rem) 0 0; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: #0A1810; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%; opacity: 0;
  transition: opacity 1.1s var(--ease);
}
img.hero-img.on { opacity: 1; animation: kenburns 9s ease-out forwards; }
video.hero-img.on { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.07); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { img.hero-img.on { animation: none; } }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 26, 16, .90) 0%, rgba(6, 26, 16, .72) 42%, rgba(6, 26, 16, .28) 78%, rgba(6, 26, 16, .12) 100%),
    linear-gradient(180deg, rgba(6, 26, 16, .45), rgba(6, 26, 16, .12) 40%);
}
.hero-in { position: relative; z-index: 2; color: #fff; max-width: 780px; padding-bottom: 3rem; }
.hero .kicker { color: var(--lime); border-color: var(--lime); }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 span { color: var(--lime); }
.hero-sub { color: rgba(255, 255, 255, .86); font-size: 1.08rem; max-width: 34em; margin-bottom: 2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-foot {
  position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; border-top: 1px solid rgba(255, 255, 255, .22); padding: 1.4rem 0 5.6rem; margin-top: auto;
}
.hero-facts { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.hero-facts li { display: flex; flex-direction: column; color: #fff; padding-right: 1rem; }
.hero-facts strong { font-size: clamp(1.35rem, 2.3vw, 1.95rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.hero-facts strong em { font-style: normal; font-size: .58em; font-weight: 600; margin-left: .15em; }
.hero-facts span { font-size: .84rem; color: rgba(255, 255, 255, .72); }

.hero-dots { display: flex; align-items: center; gap: .55rem; padding-bottom: .45rem; }
.hero-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .42); transition: width .3s var(--ease), background .3s var(--ease);
}
.hero-dots button:hover { background: rgba(255, 255, 255, .75); }
.hero-dots button.on { width: 28px; border-radius: 999px; background: var(--lime); }

.hero-arrow {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 6;
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 1.6rem; line-height: 1; backdrop-filter: blur(4px);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.hero-arrow:hover { background: rgba(255, 255, 255, .3); border-color: #fff; }
.hero-prev { left: 1.4rem; }
.hero-next { right: 1.4rem; }
.hero-wedge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 68px; z-index: 1;
  background: #fff; clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ==================== 应用领域 ==================== */
.fields { padding: clamp(2.5rem, 4.5vw, 4rem) 0 clamp(1rem, 2vw, 1.5rem); }
.field-row { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.field-row::before {
  content: ""; position: absolute; top: 42px; left: 8%; right: 8%; height: 0;
  border-top: 1px dashed #D2DCD6; z-index: 0;
}
.field-row li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.fi {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(16, 30, 22, .07);
  margin-bottom: 1rem; transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.fi svg { width: 32px; height: 32px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.field-row li:hover .fi { transform: translateY(-6px); background: var(--brand); border-color: var(--brand); }
.field-row li:hover .fi svg { stroke: #fff; }
.field-row strong { font-size: 1.02rem; color: var(--ink); font-weight: 700; }
.field-row em { font-style: normal; font-size: .8rem; color: var(--mut); }

/* ==================== 管道系统 ==================== */
.sys { padding: clamp(3rem, 7vw, 6.5rem) 0 0; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.5rem; }
.tags li { font-size: .85rem; color: var(--brand-d); background: var(--brand-l); border-radius: 999px; padding: .34rem .9rem; }
.tags-wide li { background: var(--soft); color: var(--ink-2); }

/* ==================== 产品中心 ==================== */
.prod { padding: clamp(3rem, 7vw, 6.5rem) 0; background: var(--soft); }
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.pcard { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 10px rgba(16, 30, 22, .05); transition: transform .4s var(--ease), box-shadow .4s var(--ease); display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard-pic { overflow: hidden; }
.pcard-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); cursor: zoom-in; }
.pcard:hover .pcard-pic img { transform: scale(1.05); }
.pcard-txt { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.pcard-txt h3 { font-size: 1.14rem; margin-bottom: .25rem; }
.pcard-txt .en { margin-bottom: .8rem; font-size: .7rem; letter-spacing: .16em; }
.pcard-spec { font-size: .88rem; color: var(--mut); margin-bottom: 1.1rem; }
.pcard .more { margin-top: auto; }

.also { margin-top: 2rem; background: #fff; border-radius: 4px; padding: 1.8rem 2rem; box-shadow: 0 2px 10px rgba(16, 30, 22, .05); }
.also h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.also .tags { margin: 0; }

/* ==================== 字体（思源黑体子集，见 assets/fonts） ==================== */
@font-face {
  font-family: 'HuayuSans';
  src: url('../fonts/noto-sans-sc-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ==================== 管道系统 · 整幅大图带 ==================== */
.bands { display: grid; }
.band {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  min-height: clamp(440px, 64vh, 660px); background: #0A1810;
}
.band > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 1.4s var(--ease);
}
.band:hover > img { transform: scale(1.05); }
.band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(94deg, rgba(5, 22, 13, .94) 0%, rgba(5, 22, 13, .76) 40%, rgba(5, 22, 13, .12) 100%);
}
.band-alt::after {
  background: linear-gradient(266deg, rgba(5, 22, 13, .94) 0%, rgba(5, 22, 13, .76) 40%, rgba(5, 22, 13, .12) 100%);
}
.band-in {
  position: relative; z-index: 2; width: min(var(--wrap), 100% - 3rem); margin-inline: auto;
  padding: clamp(2.6rem, 5vw, 4.5rem) 0;
}
.band-box { max-width: 640px; color: #fff; }
.band-alt .band-box { margin-left: auto; }
.band-no {
  display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .18em;
  color: var(--lime); margin-bottom: .7rem; padding-bottom: .35rem;
  border-bottom: 2px solid var(--lime);
}
.band h3 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: .2rem 0 .3rem; }
.band .en { color: rgba(255, 255, 255, .5); margin-bottom: 1rem; }
.band-txt { color: rgba(255, 255, 255, .86); font-size: 1rem; max-width: 44em; }
.tags-dark li { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.more-light { color: var(--lime); }
.more-light:hover { color: #fff; }

/* ==================== 品质细节：留白 / 微交互 ==================== */
.head { margin-bottom: clamp(2.6rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.85rem); letter-spacing: -.02em; }
.head-lead { font-size: 1.06rem; line-height: 1.85; }

.prod, .wall, .certs, .factory, .faq { padding: clamp(3.6rem, 8vw, 7.5rem) 0; }
.sys { padding-top: clamp(3.6rem, 8vw, 7rem); }

/* 卡片：更细腻的悬浮反馈 */
.pcard { box-shadow: 0 1px 2px rgba(16, 30, 22, .04), 0 8px 24px rgba(16, 30, 22, .05); }
.pcard:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(16, 30, 22, .16); }
.pcard-txt h3 { transition: color .3s var(--ease); }
.pcard:hover .pcard-txt h3 { color: var(--brand); }
.pcard .more span { transition: transform .3s var(--ease); }
.pcard:hover .more span { transform: translateX(5px); }

.cert-card { box-shadow: 0 1px 2px rgba(16, 30, 22, .04), 0 8px 24px rgba(16, 30, 22, .05); }
.field-row li:hover .fi { box-shadow: 0 14px 32px rgba(4, 129, 63, .22); }
.wall-item { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.wall-item:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(16, 30, 22, .18); }

.pill { position: relative; overflow: hidden; }
.pill::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 70%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.pill:hover::after { opacity: 1; }

.factory .gal figure, .cert-card, .wall-item, .pcard { will-change: transform; }

/* ==================== 数据条 ==================== */
.nums { position: relative; background: var(--brand-x); color: #fff; padding: clamp(2.6rem, 5vw, 4rem) 0 clamp(3.6rem, 6vw, 5rem); }
.nums::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 54px;
  background: var(--soft); clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.nums-in { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }

/* ==================== 工厂实景照片墙 ==================== */
.wall { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--soft); overflow: hidden; }
.wall-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.wall-rail { display: flex; gap: 1rem; width: max-content; padding: .6rem 0; animation: wallmove 80s linear infinite; }
.wall:hover .wall-rail, .wall-rail:focus-within { animation-play-state: paused; }
@keyframes wallmove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wall-item {
  flex: 0 0 auto; margin: 0; width: clamp(250px, 25vw, 360px); border-radius: 8px;
  overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; background: #fff;
}
.wall-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.wall-item:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .wall-rail { animation: none; } }

/* ==================== 服务流程（深色） ==================== */
.steps-sec { position: relative; background: #0E1512; color: #C9D6CE; padding: clamp(3.6rem, 8vw, 7.5rem) 0; }
.steps-sec h2 { color: #fff; }
.steps-sec .en { color: rgba(255, 255, 255, .45); }
.steps-sec .kicker { color: var(--lime); border-color: var(--lime); }
.steps-sec .head-lead { color: rgba(255, 255, 255, .72); }
.steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2rem; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 8%; right: 8%;
  border-top: 2px dashed rgba(255, 255, 255, .16); z-index: 0;
}
.steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-ico {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin-bottom: .9rem;
  background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .14);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.step-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s var(--ease); }
.steps li:hover .step-ico { transform: translateY(-5px); background: var(--brand); border-color: var(--brand); box-shadow: 0 14px 34px rgba(4, 129, 63, .38); }
.steps li:hover .step-ico svg { stroke: #fff; }
.steps em { font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--lime); }
.steps h3 { font-size: 1.02rem; margin: .25rem 0 .35rem; color: #fff; }
.steps p { font-size: .86rem; color: rgba(255, 255, 255, .6); margin: 0; line-height: 1.6; }

/* ==================== 产品筛选 ==================== */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.filters button {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; padding: .55rem 1.3rem;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--body);
  transition: all .28s var(--ease);
}
.filters button:hover { border-color: var(--brand); color: var(--brand); }
.filters button.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(4, 129, 63, .22); }
.pcard.hide { display: none; }
.nums-in > div { display: flex; flex-direction: column; align-items: center; text-align: center; border-right: 1px solid rgba(255, 255, 255, .14); }
.nums-in > div:last-child { border-right: 0; }
.nums-in strong { font-size: clamp(1.5rem, 2.7vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; color: #fff; }
.nums-in span { font-size: .85rem; color: rgba(255, 255, 255, .66); }

/* ==================== 资质证书 ==================== */
.certs { padding: clamp(3rem, 7vw, 6rem) 0; }
.cert-rail-wrap { position: relative; margin-top: .5rem; }
.cert-rail {
  --rail-pad: max(1.5rem, calc((100vw - var(--wrap)) / 2));
  display: flex; align-items: stretch; gap: 1.2rem; overflow-x: auto; scroll-behavior: smooth;
  padding: .5rem var(--rail-pad) 1.6rem; scroll-padding-inline: var(--rail-pad);
  scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x proximity;
}
.cert-rail::-webkit-scrollbar { display: none; }
.cert-card {
  flex: 0 0 clamp(220px, 22vw, 268px); scroll-snap-align: start; background: #fff;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden; cursor: zoom-in;
  padding: 0; font: inherit; text-align: left;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand); }
.cert-pic { position: relative; display: block; aspect-ratio: 3 / 4; background: #F7F9F8; overflow: hidden; }
/* 绝对定位给出确定宽高，object-fit 才生效，否则竖版证书会被裁切 */
.cert-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .6rem; }
.cert-name { display: block; padding: .8rem 1rem; border-top: 1px solid var(--line-2); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.rail-btn {
  position: absolute; top: 50%; transform: translateY(-70%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .96);
  color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgba(16, 30, 22, .12);
  display: grid; place-items: center; transition: background .25s var(--ease), color .25s var(--ease);
}
.rail-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.rail-prev { left: max(.6rem, calc((100vw - var(--wrap)) / 2 - 24px)); }
.rail-next { right: max(.6rem, calc((100vw - var(--wrap)) / 2 - 24px)); }
.cert-foot { margin-top: 1rem; font-size: .92rem; color: var(--body); background: var(--brand-l2); border-left: 3px solid var(--brand); border-radius: 4px; padding: 1.1rem 1.4rem; }
.cert-foot strong { color: var(--ink); }

/* ==================== 制造实力 ==================== */
.factory { padding: clamp(3rem, 7vw, 6.5rem) 0; background: var(--soft); }
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.gal figure { margin: 0; position: relative; overflow: hidden; border-radius: 4px; background: #fff; }
.gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.gal figure:hover img { transform: scale(1.05); }
.gal figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .9rem .7rem; font-size: .82rem; color: #fff;
  background: linear-gradient(0deg, rgba(8, 26, 16, .82), transparent);
}

.fac-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.6rem, 3vw, 3rem); align-items: start; }
.fac-main h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.16rem; margin: 1.9rem 0 .5rem; }
.fac-main h3:first-child { margin-top: 0; }
.fac-main h3 span { font-size: .74rem; font-weight: 800; letter-spacing: .06em; color: var(--brand); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .2rem .48rem; }
.fac-main p { color: var(--body); }

.flow { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.flow li { position: relative; font-size: .86rem; font-weight: 500; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .45rem .9rem; }
.flow li::after { content: "→"; position: absolute; right: -.62rem; top: 50%; transform: translateY(-50%); color: var(--mut); font-size: .78rem; }
.flow li:last-child::after, .flow li.ok::after, .flow li.ng::after { content: none; }
.flow li.ok { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.flow li.ng { background: #FFF3F0; border-color: #F3D3C9; color: #A4482A; }

.staff { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 1.2rem; }
.staff li { flex: 1 1 130px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .9rem 1rem; display: flex; flex-direction: column; align-items: center; }
.staff strong { font-size: 1.5rem; color: var(--brand); line-height: 1.1; }
.staff span { font-size: .82rem; color: var(--mut); }

.fac-side { background: #fff; border-radius: 4px; padding: 1.5rem; box-shadow: 0 2px 10px rgba(16, 30, 22, .05); }
.fac-side h3 { font-size: 1rem; }
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; margin: .8rem 0 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th, .tbl td { padding: .55rem .8rem; text-align: left; border-bottom: 1px solid var(--line-2); }
.tbl thead th { background: var(--brand-l2); color: var(--brand-d); font-weight: 600; font-size: .8rem; letter-spacing: .02em; white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--brand-l2); }
.tbl td:last-child { color: var(--ink); }
.tbl-index td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ==================== 服务中心 ==================== */
.service { position: relative; color: #fff; overflow: hidden; }
.service-media { position: absolute; inset: 0; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service::after { content: ""; position: absolute; inset: 0; background: linear-gradient(96deg, rgba(4, 68, 34, .95) 0%, rgba(4, 68, 34, .88) 45%, rgba(4, 68, 34, .55) 100%); }
.service-in { position: relative; z-index: 2; padding: clamp(3rem, 7vw, 6.5rem) 0; }
.service-txt { max-width: 720px; }
.service h2 { color: #fff; }
.service .en { color: rgba(255, 255, 255, .55); }
.service-txt > p { color: rgba(255, 255, 255, .82); max-width: 46em; }
.svc-list { margin: 1.6rem 0 2rem; display: grid; gap: 1.1rem; }
.svc-list li { display: grid; grid-template-columns: 4.2em 1fr; gap: 1rem; align-items: start; }
.svc-list strong { color: var(--lime); font-size: 1rem; }
.svc-list span { color: rgba(255, 255, 255, .82); font-size: .96rem; }
.svc-nums { display: flex; flex-wrap: wrap; gap: 2.6rem; margin-bottom: 2rem; }
.svc-nums div { display: flex; flex-direction: column; }
.svc-nums strong { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; color: #fff; line-height: 1.15; }
.svc-nums strong em { font-style: normal; font-size: .5em; margin-left: .15em; font-weight: 600; }
.svc-nums span { font-size: .84rem; color: rgba(255, 255, 255, .62); }

/* ==================== 常见问题 / 产品速查 ==================== */
.faq { padding: clamp(3rem, 7vw, 6rem) 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  position: relative; cursor: pointer; list-style: none; padding: 1.05rem 2.6rem 1.05rem 0;
  font-weight: 600; color: var(--ink); font-size: 1rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.acc details[open] summary { color: var(--brand); }
.acc p { margin: 0 0 1.2rem; font-size: .95rem; color: var(--body); }

/* ==================== 联系我们 ==================== */
.contact { position: relative; background: #0E1512; color: #C9D6CE; padding: clamp(4rem, 8vw, 7rem) 0; }
.contact::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 46px;
  background: #fff; clip-path: polygon(0 0, 100% 0, 0 100%);
}
.contact-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact h2 { color: #fff; }
.contact-txt > p { color: rgba(255, 255, 255, .7); max-width: 40em; }
.ct-list { display: grid; gap: 1.2rem; margin: 2rem 0 0; }
.ct-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ct-list i { flex: 0 0 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); }
.ct-list svg { width: 21px; height: 21px; fill: none; stroke: var(--lime); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ct-list em { display: block; font-style: normal; font-size: .76rem; letter-spacing: .12em; color: #7E9587; margin-bottom: .1rem; }
.ct-list a, .ct-list span { color: #EAF2ED; font-size: 1.04rem; }
.ct-list a:hover { color: var(--lime); }

.wechat {
  margin-top: 1.9rem; display: flex; align-items: center; gap: 1.1rem;
  background: #fff; border-radius: 6px; padding: 1rem 1.2rem; max-width: 380px;
  box-shadow: var(--shadow);
}
.wechat img { flex: 0 0 104px; width: 104px; height: 104px; object-fit: contain; border-radius: 4px; background: #fff; }
.wechat strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: .3rem; }
.wechat span { font-size: .84rem; color: var(--mut); line-height: 1.65; }

.form { background: #fff; border-radius: 6px; padding: 1.9rem; box-shadow: var(--shadow-lg); }
.form h3 { margin-bottom: 1.3rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fld { display: block; margin-bottom: 1rem; }
.fld > span { display: block; font-size: .86rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; }
.fld i { color: #D9534F; font-style: normal; }
.fld input, .fld select, .fld textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); padding: .72rem .85rem;
  border: 1px solid var(--line); border-radius: 4px; background: #FBFCFB; transition: border-color .2s, box-shadow .2s, background .2s;
}
.fld textarea { resize: vertical; min-height: 92px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(4, 129, 63, .1); }
.fld.err input, .fld.err select { border-color: #D9534F; background: #FFF8F7; }
.fld-msg { display: block; color: #C0392B; font-size: .8rem; margin-top: .25rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hint { font-size: .82rem; color: var(--mut); margin: .8rem 0 0; }
.status { margin-top: .8rem; font-size: .92rem; }
.status.ok { color: var(--brand); font-weight: 600; }
.status.err { color: #C0392B; font-weight: 600; }
.fb { font-size: .88rem; color: var(--body); background: var(--brand-l2); border-radius: 4px; padding: .8rem 1rem; margin: .8rem 0 0; }

/* ==================== 页脚 ==================== */
.ft { background: #0A110E; color: #8FA398; padding: 3rem 0 1.4rem; }
.ft-top { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.ft-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.ft-brand img { height: 62px; width: auto; background: #fff; border-radius: 8px; padding: 5px; }
.ft-brand span { font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: .04em; }
.ft-slogan { margin: 0; font-size: .92rem; color: #7E9587; letter-spacing: .06em; }
.ft-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 2.2rem 0; }
.ft-cols h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.ft-cols a { display: block; color: #8FA398; font-size: .89rem; padding: .22rem 0; }
.ft-cols a:hover { color: var(--lime); }
.ft-cols p { margin: 0; font-size: .89rem; }
.ft-addr { line-height: 1.65; color: #7E9587; margin-top: .5rem !important; }
.ft-bot { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .09); }
.ft-bot p { margin: 0; font-size: .82rem; color: #6E8578; }
.ft-hot { margin-left: auto !important; }
.ft-hot strong { color: var(--lime); font-size: 1rem; letter-spacing: .04em; }

.to-top {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1.15rem;
  box-shadow: 0 10px 26px rgba(4, 129, 63, .34); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-d); color: #fff; }

/* ==================== 弹窗 / 灯箱 ==================== */
.modal, .lb { position: fixed; inset: 0; z-index: 200; display: grid; }
.modal-bd, .lb-bd { position: absolute; inset: 0; background: rgba(6, 22, 14, .66); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; z-index: 1; margin: auto; width: min(780px, 100% - 2rem); max-height: min(88vh, 940px);
  background: #fff; border-radius: 6px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column;
  animation: pop .3s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; top: .7rem; right: .7rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal-x:hover { background: var(--brand-l); }
.modal-body { padding: 2.1rem 2.2rem 2.4rem; overflow-y: auto; }
.modal-body h3 { font-size: 1.45rem; padding-right: 2.6rem; }
.modal-body h4 { margin: 1.5rem 0 .45rem; color: var(--brand); font-size: .95rem; letter-spacing: .02em; }
.modal-body ul { padding-left: 1.1rem; list-style: disc; }
.modal-body li { font-size: .95rem; color: var(--body); margin: .3rem 0; }
.modal-body p { color: var(--body); }
.modal-body .muted { font-size: .88rem; background: var(--brand-l2); border-radius: 4px; padding: .7rem .9rem; }

.lb { place-items: center; }
.lb-fig { position: relative; z-index: 1; margin: 0; max-width: min(92vw, 1000px); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lb-fig img { max-width: 100%; max-height: 78vh; border-radius: 4px; background: #fff; box-shadow: var(--shadow-lg); }
.lb-fig figcaption { color: #E7F2EB; font-size: .95rem; text-align: center; }
.lb-nav, .lb-x { position: absolute; z-index: 2; border: 0; background: rgba(255, 255, 255, .16); color: #fff; border-radius: 50%; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); }
.lb-nav { width: 52px; height: 52px; font-size: 1.8rem; top: 50%; transform: translateY(-50%); }
.lb-p { left: 1.6rem; }
.lb-n { right: 1.6rem; }
.lb-x { width: 44px; height: 44px; font-size: 1.5rem; top: 1.3rem; right: 1.3rem; }
.lb-nav:hover, .lb-x:hover { background: rgba(255, 255, 255, .32); }

/* ==================== 动效 ==================== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==================== 响应式 ==================== */
@media (max-width: 1120px) {
  .nav { gap: 1.3rem; }
  .hd-tel { display: none; }
  .cert-card { flex-basis: clamp(200px, 26vw, 250px); }
}

@media (max-width: 1024px) {
  :root { --hd: 72px; }
  .wrap { width: min(var(--wrap), 100% - 2.4rem); }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--hd) 0 auto 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.3rem 1.2rem;
    box-shadow: var(--shadow); transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { color: var(--ink-2) !important; padding: .85rem 0; border-bottom: 1px solid var(--line-2); }
  .nav a::after { display: none; }

  .field-row { grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1rem; }
  .field-row::before { display: none; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .fac-grid, .faq-grid, .contact-in { grid-template-columns: 1fr; }
  .nums-in { grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1rem; }
  .nums-in > div:nth-child(3n) { border-right: 0; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 1.3rem; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem 0; }
  .hero-dots { justify-content: flex-start; }
  .hero-arrow { width: 42px; height: 42px; font-size: 1.35rem; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.9rem 1rem; }
  .steps::before { display: none; }
  .ft-cols { grid-template-columns: repeat(2, 1fr); }
  .rail-btn { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero { min-height: auto; padding-top: calc(var(--hd) + 3rem); }
  .hero-veil { background: linear-gradient(180deg, rgba(6, 26, 16, .82) 0%, rgba(6, 26, 16, .78) 55%, rgba(6, 26, 16, .9) 100%); }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-arrow { display: none; }
  .hero-dots button { width: 12px; height: 12px; }
  .hero-dots button.on { width: 30px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.7rem 1rem; }
  .wall-item { width: 76vw; }
  .filters { gap: .45rem; }
  .filters button { padding: .45rem 1rem; font-size: .86rem; }
  .hero-in { padding-bottom: 2rem; }
  .hero-btns .pill { flex: 1; }
  .field-row { grid-template-columns: repeat(2, 1fr); }
  .fi { width: 70px; height: 70px; }
  .prod-grid { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr; }
  .nums-in { grid-template-columns: repeat(2, 1fr); }
  .nums-in > div { border-right: 0; }
  .row2 { grid-template-columns: 1fr; }
  .form { padding: 1.4rem; }
  .modal-body { padding: 1.6rem 1.3rem 1.8rem; }
  .ft-cols { grid-template-columns: 1fr; gap: 1.6rem; }
  .ft-hot { margin-left: 0 !important; }
  .lb-p { left: .5rem; }
  .lb-n { right: .5rem; }
  .brand em { display: none; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: .95rem; }
  .hd-act .pill-brand { padding: .55rem 1.05rem; font-size: .86rem; }
  .hd-act { gap: .6rem; }
  .cert-rail { --rail-pad: 1.2rem; }
}

@media print {
  .hd, .to-top, .hero-media, .hero-veil, .form, .modal, .lb, .rail-btn { display: none !important; }
  body { color: #000; }
  .hero { min-height: auto; padding: 1rem 0; }
  .hero-in, .hero-facts { color: #000; }
}
