﻿/* ==========================================================================
   ZHENMEI PACKAGING — Lipstick Tube Manufacturer
   Design system: warm neutral + ink + copper. Minimal, editorial, premium.
   ========================================================================== */

:root {
  --ink: #14120f;
  --ink-2: #2b2723;
  --ink-3: #57514a;
  --muted: #8b8378;
  --line: #e2dbd0;
  --line-soft: #efe9df;
  --paper: #f7f4ef;
  --paper-2: #fbf9f6;
  --white: #ffffff;
  --gold: #b08956;
  --gold-soft: #cfa877;
  --gold-tint: #f1e7d8;
  --rose: #a55c52;
  --radius-s: 6px;
  --radius: 14px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(20, 18, 15, .04), 0 6px 18px rgba(20, 18, 15, .05);
  --shadow: 0 2px 6px rgba(20, 18, 15, .05), 0 22px 50px rgba(20, 18, 15, .09);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", "Songti SC", "STSong", serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold-tint); }

/* ---------- layout ---------- */
.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.wrap-narrow { width: min(880px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 108px 0; }
.section-tight { padding: 72px 0; }
.section-paper { background: var(--paper-2); }
.section-ink { background: var(--ink); color: #d8d2c8; }
.section-ink h2, .section-ink h3, .section-ink h4 { color: #fff; }
.grid { display: grid; gap: 28px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
}

/* ---------- typography ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .65; }
.section-ink .eyebrow { color: var(--gold-soft); }
.h-display { font-size: clamp(38px, 5.4vw, 66px); font-weight: 400; letter-spacing: -.02em; }
.h-section { font-size: clamp(28px, 3.1vw, 42px); font-weight: 400; }
.h-card { font-size: 19px; font-weight: 600; }
.lead { font-size: 17px; color: var(--ink-3); max-width: 62ch; }
.section-ink .lead { color: #b3aca1; }
.muted { color: var(--muted); font-size: 14px; }
.serif-en { font-family: var(--serif); font-style: italic; letter-spacing: 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.section-head .lead { margin-top: 18px; }
@media (max-width: 820px) { .section-head { flex-direction: column; align-items: flex-start; gap: 24px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 500; letter-spacing: .04em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--gold); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold); color: #fff; }
.btn-on-ink { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.btn-on-ink:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--ink);
  border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.link-more:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 244, 239, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-cn { font-size: 17px; font-weight: 700; letter-spacing: .12em; color: var(--ink); }
.brand-en { font-size: 10px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 15px; color: var(--ink-2); position: relative; padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav a:hover { color: var(--gold); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-tel { font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.header-tel span { color: var(--gold); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 50%; background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle i { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle i::before, .nav-toggle i::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
}
.nav-toggle i::before { top: -5px; } .nav-toggle i::after { top: 5px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 18px 24px 28px;
  }
  .nav.is-open a { padding: 12px 0; font-size: 17px; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .header-tel { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #efeae2; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; opacity: .95; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(14,12,10,.95) 0%, rgba(14,12,10,.88) 34%,
    rgba(14,12,10,.70) 50%, rgba(14,12,10,.20) 76%, rgba(14,12,10,.10) 100%);
}
.hero-inner { position: relative; padding: 132px 0 96px; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .eyebrow { color: var(--gold-soft); }
.hero p.lead { color: #bdb6ab; margin-top: 24px; max-width: 54ch; }
.hero .btn-row { margin-top: 40px; }
.hero-facts {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 84px; padding-top: 34px; gap: 24px;
}
.hero-facts .n { font-family: var(--serif); font-size: 40px; color: #fff; line-height: 1; }
.hero-facts .n em { font-style: normal; font-size: 20px; color: var(--gold-soft); margin-left: 4px; }
.hero-facts .t { font-size: 13px; color: #9d968c; margin-top: 8px; letter-spacing: .04em; }
@media (max-width: 820px) {
  .hero-inner { padding: 92px 0 64px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: #cfc9bf; padding: 84px 0 68px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -80px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(176,137,86,.3), transparent 68%);
}
.page-hero .inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 3.6vw, 46px); font-weight: 400; }
.page-hero p { color: #a49d92; margin-top: 16px; max-width: 62ch; }
.crumbs { font-size: 13px; color: #8b8478; margin-bottom: 22px; letter-spacing: .06em; }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* ---------- cards ---------- */
.card {
  display: block; /* 分类卡用 <a>，需要块级化；产品卡是 <article>，本来也是块级 */
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { font-size: 18px; font-weight: 600; }
.card-body .en { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 14px; margin-top: 2px; }
.card-body p { font-size: 14.5px; color: var(--ink-3); margin-top: 12px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: 12px; letter-spacing: .04em; color: var(--ink-3);
  background: var(--paper); border: 1px solid var(--line-soft);
  padding: 4px 10px; border-radius: 999px;
}
.tag-gold { color: #7a5b30; background: var(--gold-tint); border-color: #e3d3bb; }

/* ---------- feature (icon + text) ---------- */
.feature { padding: 30px 0 0; border-top: 1px solid var(--line); }
.section-ink .feature { border-color: rgba(255,255,255,.14); }
.feature .idx { font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: .1em; }
.feature h3 { margin-top: 14px; font-size: 20px; }
.feature p { margin-top: 12px; font-size: 14.5px; color: var(--ink-3); }
.section-ink .feature p { color: #a8a196; }

/* ---------- spec list ---------- */
.spec { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px 20px; font-size: 14.5px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--ink-2); }
.spec + .spec { margin-top: 8px; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.process li { padding: 28px 20px 0; border-right: 1px solid var(--line-soft); }
.process li:last-child { border-right: 0; }
.process .step { font-family: var(--serif); font-size: 13px; color: var(--gold); letter-spacing: .16em; }
.process h3 { font-size: 16px; margin-top: 12px; }
.process p { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; }
@media (max-width: 1000px) {
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process li { border-bottom: 1px solid var(--line-soft); padding-bottom: 24px; }
}
@media (max-width: 620px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- logo wall ---------- */
.logo-wall { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.logo-pill {
  padding: 18px 30px; border: 1px solid var(--line); border-radius: var(--radius-s);
  font-size: 15px; letter-spacing: .18em; color: var(--ink-3); background: var(--white);
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.logo-pill:hover { color: var(--gold); border-color: var(--gold-soft); }

/* ---------- stats band ---------- */
.band { background: var(--ink); color: #cfc9bf; padding: 64px 0; }
.band .grid { gap: 40px; }
.band .n { font-family: var(--serif); font-size: 46px; color: #fff; line-height: 1; }
.band .n em { font-style: normal; font-size: 20px; color: var(--gold-soft); margin-left: 4px; }
.band .t { font-size: 13.5px; color: #9a938a; margin-top: 10px; }

/* ---------- quote / cta ---------- */
.cta {
  background: linear-gradient(120deg, #17150f 0%, #241d15 55%, #33261a 100%);
  color: #e6e0d6; padding: 80px 0;
}
.cta .inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta h2 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); font-weight: 400; max-width: 24ch; }
.cta p { color: #a79f94; margin-top: 14px; }
@media (max-width: 820px) { .cta .inner { flex-direction: column; align-items: flex-start; } }

/* ---------- news ---------- */
.news-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-date { font-family: var(--serif); color: var(--gold); font-size: 15px; letter-spacing: .06em; }
.news-item h3 { font-size: 20px; }
.news-item p { color: var(--ink-3); font-size: 14.5px; margin-top: 10px; }
@media (max-width: 620px) { .news-item { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* ---------- filter bar (单选用，保留备用) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 40px; }
.chip {
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; cursor: pointer; font-size: 14px; color: var(--ink-3);
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--gold-soft); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- filter sidebar + product grid ---------- */
.catalog { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 44px; align-items: start; }
.filter-side { position: sticky; top: calc(var(--header-h) + 20px); }
.filter-side .side-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.filter-side .side-head h2 { font-size: 16px; letter-spacing: .06em; }
.filter-reset {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 13px; color: var(--gold); border-bottom: 1px solid transparent;
}
.filter-reset:hover { border-bottom-color: var(--gold); }
.filter-group { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.filter-group > h3 {
  font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 14px;
}
.check {
  display: flex; align-items: center; gap: 11px; padding: 8px 0;
  font-size: 14.5px; color: var(--ink-2); cursor: pointer; user-select: none;
  transition: color .25s var(--ease);
}
.check:hover { color: var(--gold); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  flex: 0 0 auto; width: 17px; height: 17px; border: 1px solid #cfc7ba; border-radius: 3px;
  background: #fff; position: relative; transition: background .2s var(--ease), border-color .2s var(--ease);
}
.check .box::after {
  content: ""; position: absolute; left: 3px; top: 4px; width: 9px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(.4); opacity: 0; transition: all .18s var(--ease);
}
.check input:checked + .box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .box::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(176,137,86,.25); }
.check .cnt { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.check input:checked ~ .txt { font-weight: 600; color: var(--ink); }
.filter-side .side-note {
  margin-top: 18px; padding: 14px 16px; background: var(--paper-2);
  border: 1px solid var(--line-soft); border-radius: var(--radius-s);
  font-size: 13px; color: var(--ink-3); line-height: 1.6;
}
.side-toggle { display: none; }

.catalog-main .grid { margin-top: 0; }
.catalog-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--ink-3); flex-wrap: wrap;
}
.catalog-bar .result-count { font-weight: 600; color: var(--ink); }
.catalog-bar .active-summary { color: var(--gold); font-weight: 600; }

@media (max-width: 1000px) {
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .filter-side { position: static; margin-bottom: 22px; }
  .side-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
    padding: 14px 18px; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-s); cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink);
  }
  .side-toggle span:last-child { color: var(--gold); font-size: 13px; font-weight: 500; }
  .filter-side .side-panel { display: none; margin-top: 14px; padding: 0 18px 18px; border: 1px solid var(--line); border-radius: var(--radius-s); }
  .filter-side.is-open .side-panel { display: block; }
  .filter-side .side-head { border-bottom: 0; padding-top: 18px; }
}

.filter-empty { display: none; padding: 60px 0; text-align: center; color: var(--muted); }
.filter-empty.is-shown { display: block; }
.filter-empty .btn { margin-top: 20px; }

/* ---------- 产品弹窗（点击卡片查看大图与参数） ---------- */
.card { cursor: pointer; }
.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.modal {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(18, 16, 13, .74);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s var(--ease);
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative; z-index: 1; width: min(1400px, 100%);
  height: min(88vh, 940px); max-height: calc(100vh - 40px); overflow: hidden;
  background: var(--white); border-radius: var(--radius-l);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .36);
  display: grid; grid-template-columns: 1.18fr .82fr;
  transform: translateY(14px) scale(.99); opacity: 0;
  transition: transform .32s var(--ease), opacity .32s var(--ease);
}
.modal.is-open .modal-panel { transform: none; opacity: 1; }
.modal-media {
  background: #fff; border-right: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; min-height: 0; overflow: hidden;
}
.modal-media img { width: 100%; height: 100%; object-fit: contain; }
.modal-body { padding: 46px 46px 38px; display: flex; flex-direction: column; overflow-y: auto; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 21px; line-height: 1;
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease);
}
.modal-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.modal-body .eyebrow { margin-bottom: 14px; }
.modal-model { font-size: 38px; font-weight: 400; letter-spacing: -.01em; color: var(--ink); line-height: 1.08; }
.modal-type { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); margin-top: 8px; }
.modal-specs { margin-top: 26px; border-top: 1px solid var(--line-soft); }
.modal-specs .row {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px;
}
.modal-specs .row dt { color: var(--muted); }
.modal-specs .row dd { margin: 0; color: var(--ink-2); }
.modal-body .tag-row { margin-top: 20px; }
.modal-actions { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.modal-hint { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* 上一款 / 下一款 */
.modal-nav {
  position: absolute; bottom: 18px; left: 20px; z-index: 3; display: flex; gap: 10px;
}
.modal-nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.9); color: var(--ink); cursor: pointer; font-size: 16px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.modal-nav button:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.modal-nav button:disabled { opacity: .32; cursor: default; }

body.modal-open { overflow: hidden; }

@media (max-width: 1100px) {
  .modal-panel { grid-template-columns: 1fr; height: min(92vh, 900px); }
  .modal-media { border-right: 0; border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 860px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal-panel {
    height: auto; max-height: 94vh; overflow-y: auto;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
  }
  .modal-media { padding: 16px; max-height: 42vh; }
  .modal-media img { height: auto; max-height: 42vh; }
  .modal-body { padding: 24px 22px 28px; overflow: visible; }
  .modal-model { font-size: 28px; }
  .modal-nav { position: static; order: 5; margin-top: 18px; }
}

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 820px; }
table.data th, table.data td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.data th { font-size: 13px; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: var(--paper-2); }
table.data tr:last-child td { border-bottom: 0; }
/* 型号一览表：型号、类型、尺寸、容量不折行，避免「Ø25 / × / 98.6mm」被撕成多行 */
table.data td:nth-child(-n+4) { white-space: nowrap; }
table.data td:nth-child(3) { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--ink-3); }
.field label .req { color: var(--rose); }
.field input, .field select, .field textarea {
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--white); transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(176,137,86,.12);
}
.field textarea { resize: vertical; min-height: 132px; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* 在线询盘未开通的红字提醒（接通后端后连同 contact.html 里的 .form-alert 一起删） */
.form-alert {
  margin-top: 20px; padding: 15px 18px;
  border-left: 3px solid #a32d2d; border-radius: 4px;
  background: #fdf4f2; color: #8c2f2a;
  font-size: 14px; line-height: 1.75;
}
.form-alert strong { color: #7d2723; font-weight: 600; }
.form-alert a { color: #8c2f2a; text-decoration: underline; text-underline-offset: 2px; }
.form-alert a:hover { color: #5f1d1a; }
@media (max-width: 680px) { .form-alert { font-size: 13.5px; padding: 13px 14px; } }
@media (max-width: 680px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- contact blocks ---------- */
.contact-block { border-top: 1px solid var(--line); padding-top: 26px; }
.contact-block h3 { font-size: 15px; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.contact-block p { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); }
.contact-block a:hover { color: var(--gold); }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary {
  cursor: pointer; font-size: 17px; font-weight: 500; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--gold); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 14px; color: var(--ink-3); font-size: 15px; max-width: 76ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #96908a; padding: 76px 0 30px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .12em; margin-bottom: 20px; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-links li + li { margin-top: 12px; }
.footer-brand .brand-cn { color: #fff; }
.footer-brand .brand-en { color: #7e7871; }
.footer-brand p { margin-top: 20px; max-width: 34ch; color: #8b847c; font-size: 14px; }
.footer-bottom {
  margin-top: 60px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: 13px; color: #79736c;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; } .mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.center { text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.media-frame { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.media-frame img { width: 100%; }
.chips-inline { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 关于我们：四类产品拼图 ---------- */
.about-media { background: var(--white); }
.about-mosaic {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line-soft);
}
.about-mosaic figure {
  margin: 0; aspect-ratio: 1 / 1; background: var(--white);
  display: flex; align-items: center; justify-content: center; padding: 14px;
}
.about-mosaic img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .7s var(--ease);
}
.about-mosaic figure:hover img { transform: scale(1.045); }
.about-media-cap {
  margin: 0; padding: 14px 20px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12px; letter-spacing: .16em; color: var(--muted);
}
@media (max-width: 680px) {
  .about-mosaic figure { padding: 9px; }
  .about-media-cap { font-size: 11px; padding: 12px 14px; }
}

/* ---------- 小屏头部按钮收紧 ---------- */
@media (max-width: 480px) {
  .header-actions .btn { padding: 11px 16px; font-size: 13.5px; }
  .header-actions { gap: 8px; }
}

/* ---------- 质量与合规：三张核验卡片 ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.trust-card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px 32px 34px;
  box-shadow: 0 1px 2px rgba(20, 18, 15, .05), 0 10px 26px rgba(20, 18, 15, .04);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 6px rgba(20, 18, 15, .06), 0 22px 46px rgba(20, 18, 15, .08);
}
.trust-card::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 24px;
}
.trust-card h3 { font-size: 17.5px; font-weight: 600; }
.trust-card p { margin-top: 12px; font-size: 14.5px; line-height: 1.78; color: var(--ink-3); }
.trust-card h3 + p { margin-top: 14px; }

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .trust-card { padding: 24px 24px 26px; }
  .trust-card::before { margin-bottom: 18px; }
}

/* ---------- 产品图放大（全屏看图） ---------- */
.modal-media { position: relative; }
.modal-media img { cursor: zoom-in; }
.pm-zoom-hint {
  position: absolute; right: 16px; bottom: 16px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line-soft);
  font-size: 12px; letter-spacing: .06em; color: var(--muted);
  opacity: 1; pointer-events: none;
  box-shadow: 0 2px 10px rgba(20, 18, 15, .06);
}

.zoom-layer {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: #fff; overflow: hidden; touch-action: none;
}
.zoom-layer.is-open { display: flex; }
.zoom-layer img {
  width: 100vw; height: 100vh;
  object-fit: contain; cursor: grab; user-select: none;
  transform-origin: center center;
  will-change: transform;
}
.zoom-layer img.is-dragging { cursor: grabbing; }
.zoom-layer img.is-animating { transition: transform .18s var(--ease); }
.zoom-close {
  position: absolute; top: 18px; right: 22px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.zoom-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.zoom-tip {
  position: absolute; left: 0; right: 0; bottom: 16px; margin: 0;
  text-align: center; font-size: 12.5px; letter-spacing: .08em; color: var(--muted);
  pointer-events: none;
}
@media (max-width: 680px) {
  .pm-zoom-hint { opacity: 1; }
  .zoom-tip { font-size: 11.5px; bottom: 12px; }
}

/* ---------- 404 page ---------- */
.err-hero {
  background: var(--ink); color: #cfc9bf; padding: 88px 0 84px;
  position: relative; overflow: hidden;
}
.err-hero::after {
  content: ""; position: absolute; right: -140px; top: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(176,137,86,.28), transparent 66%);
}
.err-hero .inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 64px; align-items: center;
}
.err-code {
  font-family: var(--serif); font-size: clamp(104px, 15vw, 176px);
  line-height: .84; letter-spacing: -.045em; color: #fff; margin: 0;
}
.err-code em { font-style: normal; color: var(--gold-soft); }
.err-code::after {
  content: ""; display: block; width: 54px; height: 1px;
  background: var(--gold); opacity: .7; margin-top: 30px;
}
.err-hero h1 { color: #fff; font-size: clamp(30px, 3.6vw, 46px); font-weight: 400; }
.err-hero p { color: #a49d92; margin-top: 16px; max-width: 56ch; }
@media (max-width: 820px) {
  .err-hero { padding: 64px 0 60px; }
  .err-hero .inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .err-code { font-size: 96px; }
  .err-code::after { margin-top: 20px; }
}

.err-links {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; margin-top: 44px;
}
.err-link {
  display: block; padding: 26px 24px 24px;
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.err-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-s); border-color: var(--line); }
.err-link > span { display: block; }
.err-link .n {
  font-size: 30px; font-weight: 400; line-height: 1;
  color: var(--gold); letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.err-link .n em { font-style: normal; font-size: 14px; color: var(--muted); margin-left: 4px; }
.err-link .t { margin-top: 14px; font-size: 16px; font-weight: 600; color: var(--ink); }
.err-link .en { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.err-link .go { margin-top: 18px; font-size: 13px; letter-spacing: .06em; color: var(--ink-3); transition: color .3s var(--ease); }
.err-link:hover .go { color: var(--gold); }
@media (max-width: 1000px) { .err-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .err-links { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

.err-tip {
  margin-top: 44px; padding: 22px 26px;
  border-left: 2px solid var(--gold); background: var(--paper-2);
  font-size: 14.5px; color: var(--ink-3);
}
.err-tip a { color: var(--ink); border-bottom: 1px solid var(--line); }
.err-tip a:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- 公司位置 ---------- */
.loc-card {
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between;
  padding: 36px 40px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--white);
}
.loc-addr { font-family: var(--serif); font-size: 26px; line-height: 1.45; color: var(--ink); margin: 0; }
.loc-note { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; max-width: 46em; }
.loc-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .loc-card { padding: 26px 22px; gap: 20px; }
  .loc-addr { font-size: 21px; }
  .loc-actions { width: 100%; }
  .loc-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- 嵌入模式：后台预览时只显示弹窗本身 ----------
   products.html?model=X&embed=1：页头 / 产品中心 / 页脚都不渲染，
   整屏只剩「深色遮罩 + 居中浮层」，和产品中心里点开的那一屏一模一样。
   客户正常访问不带这个参数，不受影响。 */
body.embed-view { background: #fbf9f5; }
body.embed-view > *:not(.modal):not(.zoom-layer) { display: none !important; }
