/* =====================================================
   金华众辉薄膜官网 v3 — 简洁大气 · 工业实景
   参考：同行 B2B 官网版式（全屏大图 + 规整栅格 + 大留白）
   ===================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #0e2136;        /* 深墨蓝：标题 / 深色底 */
  --ink-2: #16324e;
  --blue: #1859a8;       /* 主蓝：按钮 / 链接 */
  --blue-d: #12406f;
  --gold:#e52028;       /* 品牌红（客户Logo取色 #e52028） */
  --text: #333c46;
  --muted: #7a838e;
  --line: #e7eaee;
  --bg: #f6f7f9;
  --container: 1200px;
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text); background: #fff; line-height: 1.8; font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 通用 ---------- */
.btn { display: inline-block; padding: 13px 36px; font-size: 15px; border-radius: 3px; font-weight: 600; letter-spacing: 1px; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-line { border: 1px solid rgba(255,255,255,.65); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold); }

/* 滚动渐显 */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* ---------- 顶栏 / 导航 ---------- */
.topbar { background: var(--ink); color: #93a5ba; font-size: 12.5px; }
.topbar .wrap { display: flex; justify-content: space-between; padding: 8px 24px; }
.topbar a { color: #fff; font-weight: 600; }
header.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
header.nav.scrolled { box-shadow: 0 4px 20px rgba(14,33,54,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark {
  width: 46px; height: 46px; border-radius: 10px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16.5px; font-weight: 700; letter-spacing: 1px; flex: 0 0 auto; position: relative;
}
.logo .mark::after { content: ""; position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.logo .mark::before { content: ""; position: absolute; top: 13px; right: 4px; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: .7; }
.logo .lt b { display: block; font-size: 20px; color: var(--ink); letter-spacing: 2px; line-height: 1.3; }
.logo .lt i { font-style: normal; font-size: 10.5px; color: var(--muted); letter-spacing: 3.5px; }
nav.menu { display: flex; }
nav.menu a { display: block; padding: 29px 22px; font-size: 15.5px; color: var(--text); font-weight: 500; position: relative; }
nav.menu a::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 20px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
nav.menu a:hover { color: var(--ink); }
nav.menu a:hover::after, nav.menu a.active::after { transform: scaleX(1); }
nav.menu a.active { color: var(--ink); font-weight: 700; }
/* 移动端汉堡按钮：纯 CSS 复选框驱动，无 JS 也能弹出菜单 */
.nav-cb { display: none; }
.nav-toggle {
  display: none; width: 46px; height: 46px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 3px; background: #fff;
  cursor: pointer; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; transition: border-color .2s, background .2s;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  position: relative; transition: transform .25s, top .25s, background .2s;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle:active { background: #f2f4f7; }
@keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; background: var(--ink) url("../img/hero.jpg") center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,22,37,.82) 0%, rgba(9,22,37,.55) 45%, rgba(9,22,37,.18) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 40px; padding-bottom: 110px; }
.hero .kicker { color: var(--gold); }
.hero h1 { font-size: clamp(28px, 4vw, 44px); color: #fff; line-height: 1.35; letter-spacing: 1px; margin-bottom: 18px; max-width: 640px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: rgba(255,255,255,.82); max-width: 560px; font-size: 15.5px; margin-bottom: 34px; }
.hero .btns .btn { margin-right: 14px; margin-bottom: 10px; }

/* 数据卡（叠压 Hero 底部） */
.stats-card { position: relative; z-index: 5; margin-top: -76px; background: #fff; box-shadow: 0 20px 50px rgba(14,33,54,.12); border-top: 3px solid var(--gold); display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font-size: 34px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .n i { font-style: normal; font-size: 16px; color: var(--blue); font-weight: 600; }
.stat .t { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Section ---------- */
.sec { padding: 88px 0; }
.sec.gray { background: var(--bg); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 46px; }
.sec-head h2 { font-size: 30px; color: var(--ink); letter-spacing: 1px; line-height: 1.3; }
.sec-head .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.sec-head .more { flex: 0 0 auto; color: var(--blue); font-size: 14px; font-weight: 600; padding-bottom: 4px; }
.sec-head .more:hover { color: var(--blue-d); }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
.about-img { position: relative; }
.about-img img { width: 100%; border-radius: 4px; }
.about-img::after { content: ""; position: absolute; right: -16px; bottom: -16px; width: 55%; height: 55%; border: 2px solid var(--gold); border-radius: 4px; z-index: -1; }
.about-txt h3 { font-size: 24px; color: var(--ink); margin-bottom: 16px; letter-spacing: 1px; }
.about-txt p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.checklist { margin: 18px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.checklist li { list-style: none; font-size: 14px; color: var(--text); padding-left: 26px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }

/* ---------- 产品 ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; }
.pcard:hover { box-shadow: 0 18px 40px rgba(14,33,54,.12); transform: translateY(-5px); border-color: transparent; }
.pcard .pimg { aspect-ratio: 4/3; overflow: hidden; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pimg img { transform: scale(1.05); }
.pcard .pbody { padding: 20px 22px 24px; }
.pcard h3 { font-size: 16.5px; color: var(--ink); margin-bottom: 6px; }
.pcard:hover h3 { color: var(--blue); }
.pcard p { font-size: 13px; color: var(--muted); }
.pcard .tag { display: inline-block; font-size: 11px; color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; text-transform: uppercase; }

/* ---------- 质控流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.flow-item { padding: 26px 20px; background: #fff; border: 1px solid var(--line); border-radius: 4px; transition: box-shadow .25s, transform .25s; }
.flow-item:hover { box-shadow: 0 14px 32px rgba(14,33,54,.1); transform: translateY(-4px); }
.flow-item .no { font-size: 26px; font-weight: 800; color: #d8dee6; font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 14px; }
.flow-item h4 { font-size: 15.5px; color: var(--ink); margin-bottom: 6px; }
.flow-item p { font-size: 12.5px; color: var(--muted); }

/* ---------- 实景图带 ---------- */
.imgband { position: relative; padding: 96px 0; background: var(--ink) url("../img/warehouse.jpg") center/cover no-repeat; }
.imgband::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(9,22,37,.72), rgba(9,22,37,.72)); }
.imgband .wrap { position: relative; z-index: 1; text-align: center; }
.imgband h2 { color: #fff; font-size: 30px; letter-spacing: 2px; margin-bottom: 12px; }
.imgband p { color: rgba(255,255,255,.75); font-size: 15px; margin-bottom: 28px; }

/* ---------- 新闻 ---------- */
.ngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ncard { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: box-shadow .25s, transform .25s; display: flex; flex-direction: column; }
.ncard:hover { box-shadow: 0 18px 40px rgba(14,33,54,.12); transform: translateY(-5px); }
.ncard .nimg { aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.ncard .nimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ncard:hover .nimg img { transform: scale(1.05); }
.ncard .nbody { padding: 22px 24px 26px; flex: 1; }
.ncard time { font-size: 12.5px; color: var(--gold); font-weight: 600; letter-spacing: 1px; }
.ncard h3 { font-size: 16.5px; color: var(--ink); line-height: 1.55; margin: 8px 0 10px; }
.ncard h3 a:hover { color: var(--blue); }
.ncard p { font-size: 13.5px; color: var(--muted); }

/* ---------- 联系 CTA ---------- */
.cta { background: linear-gradient(120deg, var(--ink) 0%, #17395c 100%); color: #fff; padding: 72px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { font-size: 26px; letter-spacing: 1px; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.65); font-size: 14.5px; }
.cta .phone { display: inline-block; font-size: 30px; font-weight: 800; color: var(--gold); letter-spacing: 1px; -webkit-tap-highlight-color: transparent; }
.cta .phone:active { opacity: .75; }
.cta .right { text-align: right; }
.cta .right p { margin-bottom: 14px; }

/* ---------- 页脚 ---------- */
footer { background: #0a1826; color: #7f92a8; font-size: 13.5px; }
.foot-top { padding: 56px 0 44px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.foot-top h4 { color: #fff; font-size: 15.5px; letter-spacing: 1px; margin-bottom: 16px; }
.foot-top h4 span { color: var(--gold); margin-right: 8px; font-size: 12px; }
.foot-top a { display: block; padding: 3.5px 0; color: #7f92a8; transition: color .2s; }
.foot-top a:hover { color: #fff; }
.foot-tel { display: inline !important; color: #fff !important; font-weight: 600; border-bottom: 1px dashed rgba(255,255,255,.45); padding-bottom: 1px; }
.foot-tel:hover { border-bottom-color: var(--gold); color: var(--gold) !important; }
.foot-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-logo .mark { width: 38px; height: 38px; border-radius: 8px; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13.5px; letter-spacing: 1px; position: relative; }
.foot-logo .mark::after { content: ""; position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.foot-logo b { color: #fff; font-size: 17px; letter-spacing: 2px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 18px 0; font-size: 12.5px; color: #5b6e83; }

/* ---------- 内页 Banner ---------- */
.banner { position: relative; height: 300px; background: var(--ink) url("../img/workshop.jpg") center/cover no-repeat; display: flex; align-items: center; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,22,37,.8), rgba(9,22,37,.35)); }
.banner .wrap { position: relative; z-index: 1; width: 100%; }
.banner h1 { color: #fff; font-size: 32px; letter-spacing: 2px; margin-bottom: 8px; }
.banner .en { color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: 4px; text-transform: uppercase; }
.crumb { background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.crumb .wrap { padding: 13px 24px; }
.crumb a:hover { color: var(--blue); }
.crumb b { color: var(--ink); font-weight: 600; }

/* ---------- 文章 ---------- */
.article { max-width: 860px; margin: 0 auto; }
.article h1 { font-size: 26px; color: var(--ink); line-height: 1.5; margin-bottom: 12px; }
.article .meta { color: var(--muted); font-size: 13px; padding-bottom: 20px; margin-bottom: 30px; border-bottom: 1px solid var(--line); display: flex; gap: 22px; }
.article .meta span::before { color: var(--gold); }
.article h2 { font-size: 19px; color: var(--ink); margin: 34px 0 14px; padding-left: 12px; border-left: 3px solid var(--gold); line-height: 1.5; }
.article p, .article li { color: #414b57; font-size: 15px; margin-bottom: 12px; }
.article ul, .article ol { padding-left: 24px; }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.article th, .article td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.article th { background: var(--bg); color: var(--ink); font-weight: 600; }
.article img { border-radius: 4px; margin: 14px 0; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { font-size: 15.5px; color: var(--ink); margin-bottom: 6px; display: flex; gap: 10px; align-items: baseline; }
.faq-item h3::before { content: "Q"; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 3px; background: var(--ink); color: var(--gold); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; transform: translateY(3px); }
.faq-item p { font-size: 14px; color: var(--muted); padding-left: 34px; }

/* ---------- 新闻列表页 / 分页 ---------- */
.news-row { display: flex; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.news-row .rimg { flex: 0 0 260px; aspect-ratio: 16/10; overflow: hidden; border-radius: 4px; }
.news-row .rimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-row:hover .rimg img { transform: scale(1.04); }
.news-row h3 { font-size: 18px; color: var(--ink); line-height: 1.55; margin: 4px 0 10px; }
.news-row h3 a:hover { color: var(--blue); }
.news-row .rmeta { font-size: 12.5px; color: var(--gold); font-weight: 600; letter-spacing: 1px; }
.news-row p { font-size: 13.5px; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 3px; font-size: 14px; color: var(--text); }
.pager span.cur { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pager a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- 联系页 ---------- */
.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 30px 24px; text-align: center; transition: box-shadow .25s, transform .25s; }
.ccard:hover { box-shadow: 0 14px 32px rgba(14,33,54,.1); transform: translateY(-4px); }
.ccard .ic { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 4px; background: var(--ink); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.ccard h3 { font-size: 16.5px; color: var(--ink); margin-bottom: 8px; }
.ccard p { font-size: 14px; color: var(--muted); }
.ccard p b { color: var(--blue); font-size: 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .pgrid, .ngrid, .cgrid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-img::after { display: none; }
}
@media (max-width: 860px) {
  nav.menu {
    display: none; position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 6px 18px 16px;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,0,0,.1);
    max-height: calc(100vh - 78px); overflow-y: auto;
  }
  /* 展开态：复选框选中（纯 CSS，不依赖 JS）；.open 兼容旧版脚本 */
  .nav-cb:checked ~ nav.menu, nav.menu.open { display: flex; animation: navDrop .22s ease; }
  .nav-cb:checked ~ .nav-toggle { border-color: var(--ink); background: #f2f4f7; }
  .nav-cb:checked ~ .nav-toggle .bars { background: transparent; }
  .nav-cb:checked ~ .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
  .nav-cb:checked ~ .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }
  nav.menu a { padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 15px; }
  nav.menu a:last-child { border-bottom: 0; }
  nav.menu a::after { display: none; }
  .nav-toggle { display: flex; }
  .hero { min-height: 520px; }
  .stats-card { grid-template-columns: repeat(2, 1fr); margin-top: -50px; }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .news-row { flex-direction: column; gap: 14px; }
  .news-row .rimg { flex: none; width: 100%; }
  .cta .wrap { flex-direction: column; text-align: center; }
  .cta .right { text-align: center; }
  .sec { padding: 60px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  /* 页脚：公司介绍与联系方式各占整行；快捷导航 + 主营产品并排，缩短手机端页脚高度 */
  .foot-top { grid-template-columns: 1fr 1fr; gap: 24px 18px; padding: 44px 0 32px; }
  .foot-top > div:nth-child(1),
  .foot-top > div:nth-child(4) { grid-column: 1 / -1; }
  .foot-top h4 { margin-bottom: 12px; }
  .foot-top > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; }
  .foot-top > div:nth-child(4) p { margin-bottom: 4px; }
}
@media (max-width: 560px) {
  .pgrid, .ngrid, .cgrid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .topbar .wrap span:first-child { display: none; }
  .checklist { grid-template-columns: 1fr; }
  .banner { height: 220px; }
}

/* ---------- 客户品牌徽标 ---------- */
.logo .mark-img { width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; }
.foot-logo .mark-img { width: 38px; height: 38px; object-fit: contain; }

/* ---------- 导航外链「阿里店铺」 ---------- */
nav.menu a.ext::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-right: 6px; vertical-align: middle; transform: translateY(-1px);
}
nav.menu a.ext::after { display: none; }
