/* 启茁卫浴 www.qi-zhuo.net — 全站样式 */
:root {
  --ink: #1a1d21;
  --ink-soft: #3a3f45;
  --muted: #6f7680;
  --accent: #a07c3f;
  --accent-strong: #8a6a32;
  --accent-soft: #c9a35c;
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --bg-dark: #15171a;
  --line: #e8e6e1;
  --header-h: 64px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(20, 22, 26, .10);
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(20, 22, 26, .08); }
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: .04em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--ink); color: var(--accent-soft);
  display: grid; place-items: center; font-size: 17px; font-weight: 700;
}
.brand small { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .32em; color: var(--muted); line-height: 1.1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  position: relative; font-size: 15px; color: var(--ink-soft);
  padding: 6px 0; letter-spacing: .02em; transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--accent); transition: right .25s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.lang {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 16px;
  font-size: 13.5px; letter-spacing: .08em; transition: all .2s ease;
}
.main-nav a.lang:hover { border-color: var(--accent); color: var(--accent-strong); }
.main-nav a.lang::after { display: none; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--ink); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; min-height: min(88vh, 860px);
  display: flex; align-items: center; overflow: hidden; background: var(--bg-dark);
}
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12, 14, 18, .78) 0%, rgba(12, 14, 18, .46) 48%, rgba(12, 14, 18, .12) 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: var(--container); width: 100%;
  margin: 0 auto; padding: calc(var(--header-h) + 56px) 24px 72px; color: #fff;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; letter-spacing: .28em; color: #e6cf9e; margin-bottom: 22px;
}
.hero-kicker::before { content: ""; width: 34px; height: 1px; background: var(--accent-soft); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.22; font-weight: 700; letter-spacing: .02em; }
.hero-sub { margin-top: 20px; font-size: clamp(15px, 1.6vw, 18px); color: rgba(255, 255, 255, .82); max-width: 620px; }
.hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px; font-size: 15px; letter-spacing: .06em;
  border: 1px solid transparent; transition: all .22s ease; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- 数据带 ---------- */
.stats { background: var(--bg-dark); color: #fff; }
.stats-grid {
  max-width: var(--container); margin: 0 auto; padding: 44px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat b { display: block; font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; color: var(--accent-soft); line-height: 1.15; }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .66); letter-spacing: .12em; }

/* ---------- 通用 Section ---------- */
.section { padding: 92px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-kicker {
  font-size: 13px; letter-spacing: .3em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 12px;
}
.sec-kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; letter-spacing: .02em; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 15.5px; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about-text p { margin-bottom: 18px; color: var(--ink-soft); font-size: 16px; text-align: justify; }
.about-text p strong { color: var(--ink); }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.about-photos figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photos img { width: 100%; height: 100%; object-fit: cover; }
.about-photos .tall { aspect-ratio: 3/4.1; }
.about-photos .wide { aspect-ratio: 3/3.05; }
.about-photos figcaption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 26px 14px 10px;
  background: linear-gradient(transparent, rgba(12, 14, 18, .62));
  color: #fff; font-size: 13px; letter-spacing: .1em;
}
.about-photos figure { position: relative; }

/* ---------- 优势 ---------- */
.strengths {
  margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.strength {
  padding: 30px 26px 8px 0; border-right: 1px solid var(--line); margin-right: 26px;
}
.strength:last-child { border-right: 0; margin-right: 0; }
.strength i { font-style: normal; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .18em; }
.strength h3 { margin: 10px 0 8px; font-size: 18px; letter-spacing: .02em; }
.strength p { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---------- 产品中心 ---------- */
.chips-bar {
  position: sticky; top: var(--header-h); z-index: 60;
  background: rgba(247, 246, 243, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.chips {
  max-width: var(--container); margin: 0 auto; padding: 12px 24px;
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 18px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  transition: all .2s ease; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--accent); color: var(--accent-strong); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.prod-group { padding-top: 44px; scroll-margin-top: calc(var(--header-h) + 66px); }
.prod-group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.prod-group-head h3 { font-size: 22px; letter-spacing: .03em; }
.prod-group-head .count { font-size: 13px; color: var(--accent-strong); letter-spacing: .08em; }
.prod-group-head .rule { flex: 1; height: 1px; background: var(--line); }

.prod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px;
}
.prod-grid figure {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease;
}
.prod-grid figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prod-grid .ph { aspect-ratio: 1/1; overflow: hidden; background: #fff; }
.prod-grid .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.prod-grid figure:hover .ph img { transform: scale(1.045); }
.prod-grid figcaption {
  padding: 10px 12px; text-align: center; font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line); letter-spacing: .12em; background: #fff;
}

/* ---------- 设备与环境 ---------- */
.fac-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.fac-grid figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4/3; background: #e9e7e2;
}
.fac-grid figure.wide { grid-column: span 2; aspect-ratio: 8.15/3; }
.fac-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fac-grid figure:hover img { transform: scale(1.035); }
.fac-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(12, 14, 18, .66));
  color: #fff; font-size: 14.5px; letter-spacing: .14em;
}

/* ---------- 联系 ---------- */
.contact { background: var(--bg-dark); color: #fff; }
.contact .sec-head h2 { color: #fff; }
.contact .sec-head p { color: rgba(255, 255, 255, .6); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius);
  padding: 30px 28px; background: rgba(255, 255, 255, .04);
  transition: border-color .25s ease, background .25s ease;
}
.contact-card:hover { border-color: rgba(201, 163, 92, .65); background: rgba(255, 255, 255, .06); }
.contact-card .label { font-size: 13px; letter-spacing: .26em; color: var(--accent-soft); margin-bottom: 12px; }
.contact-card .value { font-size: 19px; font-weight: 600; line-height: 1.6; }
.contact-card a.value:hover { color: var(--accent-soft); }
.contact-card p.value { font-size: 16px; font-weight: 400; color: rgba(255, 255, 255, .88); }
.contact-note {
  margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .62); font-size: 14.5px; text-align: center; letter-spacing: .06em;
}

/* ---------- 页脚 ---------- */
.site-footer { background: #101215; color: rgba(255, 255, 255, .45); font-size: 13.5px; }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 30px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-inner a:hover { color: var(--accent-soft); }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(10, 11, 13, .93);
}
.lightbox.open { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-caption {
  position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  color: rgba(255, 255, 255, .8); font-size: 14px; letter-spacing: .18em;
}
.lb-btn {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08);
  color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn svg { width: 20px; height: 20px; stroke: #fff; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .strengths { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .strength:nth-child(2) { border-right: 0; margin-right: 0; }
  .fac-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .main-nav {
    position: fixed; top: var(--header-h); right: 0; left: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
    display: none; box-shadow: 0 18px 30px rgba(20, 22, 26, .10);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .main-nav a::after { display: none; }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: grid; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 36px 20px; gap: 30px 16px; }
  .hero { min-height: 76vh; }
  .hero::after { background: linear-gradient(180deg, rgba(12,14,18,.62), rgba(12,14,18,.5)); }
  .contact-grid { grid-template-columns: 1fr; }
  .fac-grid figure.wide { grid-column: span 2; aspect-ratio: 16/8; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .header-inner { padding: 0 18px; }
  .hero-content { padding: calc(var(--header-h) + 40px) 18px 56px; }
  .strengths { grid-template-columns: 1fr; }
  .strength { border-right: 0; margin-right: 0; padding-right: 0; }
  .fac-grid { grid-template-columns: 1fr; }
  .fac-grid figure.wide { grid-column: span 1; aspect-ratio: 4/3; }
  .about-photos { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
}
