/* ==========================================================================
   Gymmill — main stylesheet
   Palette: ink #101314 / warm grey #2B2E2F / safety orange #FF5A1F / bone #F4F2ED
   ========================================================================== */

:root {
  --ink: #101314;
  --ink-soft: #1a1e20;
  --grey: #2b2e2f;
  --grey-2: #3a3e40;
  --bone: #f4f2ed;
  --bone-2: #eae7df;
  --line: rgba(16, 19, 20, 0.12);
  --line-dark: rgba(244, 242, 237, 0.14);
  --muted: #6b7073;
  --muted-dark: rgba(244, 242, 237, 0.62);
  --orange: #ff5a1f;
  --orange-dark: #d94713;
  --font-display: "Oswald", "Barlow Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "Roboto Mono", Menlo, monospace;
  --max: 1240px;
  --r: 4px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.04;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 2.9vw, 2.6rem); }
h3 { font-size: 1.18rem; letter-spacing: 0.02em; }
h4 { font-size: 0.95rem; letter-spacing: 0.06em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: 0.35rem; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--orange);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--muted-dark); }

.lede { font-size: 1.06rem; color: #3f4446; max-width: 62ch; }
.on-dark .lede { color: var(--muted-dark); }

.tbd {
  border-bottom: 1px dashed var(--orange);
  color: inherit;
  cursor: help;
  padding: 0 1px;
}

/* ---------- top bar ---------- */
.topbar {
  background: var(--ink);
  color: var(--muted-dark);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 24px;
  max-width: var(--max);
  margin: 0 auto;
  flex-wrap: wrap;
}
.topbar b { color: var(--bone); font-weight: 500; }
.topbar a:hover { color: var(--orange); }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 242, 237, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.brand span { color: var(--orange); }

.nav { display: flex; align-items: center; gap: 0.2rem; margin-left: auto; }
.nav__link {
  position: relative;
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-display);
  color: #2c3033;
  border-bottom: 2px solid transparent;
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); border-bottom-color: var(--orange); }

.nav__item { position: relative; }
.nav__panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease;
  box-shadow: 0 24px 48px -28px rgba(16, 19, 20, 0.45);
}
.nav__item:hover .nav__panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__panel a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(16, 19, 20, 0.06);
}
.nav__panel a:hover { color: var(--orange); }
.nav__panel small { display: block; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.02em; }

.header__cta { display: flex; align-items: center; gap: 0.6rem; }

.mobile-nav { display: none; }

.burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  background: transparent;
  appearance: none;
  background: transparent;
  appearance: none;
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { border-color: rgba(16, 19, 20, 0.28); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(16, 19, 20, 0.04); }
.btn--ghost-light { border-color: rgba(244, 242, 237, 0.35); color: var(--bone); }
.btn--ghost-light:hover { background: rgba(244, 242, 237, 0.1); border-color: var(--bone); }
.btn--text {
  padding: 0.4rem 0;
  color: var(--ink);
  border-bottom: 1px solid var(--orange);
  border-radius: 0;
  letter-spacing: 0.08em;
}
.btn--text:hover { color: var(--orange); }
.btn--sm { padding: 0.55rem 0.9rem; font-size: 0.76rem; }

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 7px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  /* 只设纵向：横向 24px 来自 .container，用简写会被重置成 0 */
  padding-top: 4.5rem;
  padding-bottom: 3.2rem;
}
.hero h1 { margin-bottom: 1.2rem; font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
.hero h1 .h1sub {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.52em;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: rgba(244, 242, 237, 0.78);
}
.hero h1 .h1sub em { font-style: normal; color: var(--orange); }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__sub { color: rgba(244, 242, 237, 0.76); font-size: 1.03rem; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  gap: 1rem;
}
.stat { border-left: 1px solid var(--line-dark); padding-left: 1rem; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--bone);
  line-height: 1.1;
}
.stat span { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); }

/* ---------- page hero (inner pages) ---------- */
.phero {
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.phero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 8px);
  pointer-events: none;
}
.phero__inner { position: relative; z-index: 2; padding-top: 3.2rem; padding-bottom: 2.6rem; }
.phero h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); margin-bottom: 1rem; max-width: 22ch; }
.phero p { color: rgba(244, 242, 237, 0.76); max-width: 72ch; }
.phero--split .phero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

/* 类目页：头图是 2.4:1 的宽场景，走通栏横幅，不塞进侧栏 */
.phero--band .phero__inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
.phero--band .phero__inner p { max-width: 64ch; }
.phero--band .phero__inner .eyebrow,
.phero--band .phero__inner .breadcrumb + .eyebrow { max-width: none; }
.phero__band { margin-top: 2.6rem; }
.phero__band .ph { border-color: rgba(244, 242, 237, 0.16); }

@media (max-width: 860px) {
  .phero__band { margin-top: 1.8rem; }
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { opacity: 0.5; }
/* 深色底上要换回浅色，否则是白底白字 */
.phero .breadcrumb,
.section--dark .breadcrumb,
.on-dark .breadcrumb,
.phero--split .breadcrumb { color: var(--muted-dark); }
.phero .breadcrumb a,
.section--dark .breadcrumb a,
.on-dark .breadcrumb a { color: inherit; }

/* ---------- sections ---------- */
.section { padding: 4.2rem 0; }
.section--tight { padding: 3rem 0; }
.section--dark { background: var(--ink); color: var(--bone); }
.section--paper { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 66ch; margin-bottom: 2.4rem; }
.section__head h2 { margin-bottom: 0.9rem; }
.section--dark .lede { color: var(--muted-dark); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile {
  background: var(--bone);
  padding: 1.9rem 1.7rem 1.7rem;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  transition: background 0.15s ease;
}
.tile:hover { background: #fff; }
.tile__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--orange);
  letter-spacing: 0.16em;
  margin-bottom: 1.4rem;
}
.tile h3 { margin-bottom: 0.7rem; }
.tile p { font-size: 0.92rem; color: #4b5052; }
.tile .link { margin-top: auto; padding-top: 1.2rem; }

.link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--orange);
  display: inline-block;
  padding-bottom: 2px;
}
.link:hover { color: var(--orange); }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: center; }
.split--rev > :first-child { order: 2; }
.split h2 { margin-bottom: 1.1rem; }

/* ---------- category grid ---------- */
.catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.catcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.25rem 1.25rem 1.15rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: block;
}
.catcard:hover { border-color: rgba(255, 90, 31, 0.55); transform: translateY(-2px); }
.catcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.55rem; }
.catcard h3 { font-size: 1.02rem; }
.catcard__count { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.catcard p { font-size: 0.86rem; color: var(--muted); margin: 0 0 0.9rem; }
.catcard ul { list-style: none; padding: 0; margin: 0; font-size: 0.83rem; color: #3f4446; }
.catcard li { padding: 0.2rem 0; border-top: 1px solid rgba(16, 19, 20, 0.06); }
.catcard li:first-child { border-top: 0; }

/* ---------- quick facts (PDP) ---------- */
.quickfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.4rem 0 0; }
.quickfacts > div { background: #fff; padding: 0.75rem 0.9rem; }
.quickfacts span { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.quickfacts b { font-size: 0.9rem; font-weight: 500; white-space: nowrap; }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
table.spec th,
table.spec td { text-align: left; padding: 0.72rem 1rem; border-bottom: 1px solid rgba(16, 19, 20, 0.07); vertical-align: top; }
table.spec th {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: #2c3033;
  background: #f7f5f0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.spec tr:last-child td { border-bottom: 0; }
table.spec td:first-child { font-weight: 500; color: var(--ink); }
table.spec caption {
  caption-side: bottom;
  text-align: left;
  font-size: 0.76rem;
  color: var(--muted);
  padding: 0.7rem 1rem;
}
.tablewrap--dark { background: var(--ink-soft); border-color: var(--line-dark); }
.tablewrap--dark table.spec { color: rgba(244, 242, 237, 0.86); }
.tablewrap--dark table.spec th { background: rgba(255, 255, 255, 0.05); color: var(--bone); border-color: var(--line-dark); }
.tablewrap--dark table.spec td { border-color: var(--line-dark); }
.tablewrap--dark table.spec td:first-child { color: var(--bone); }

/* ---------- product grid ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}
.pcard:hover { border-color: rgba(255, 90, 31, 0.5); }
.pcard__body { padding: 0.9rem 1rem 1rem; }
.pcard__model { font-family: var(--font-mono); font-size: 0.7rem; color: var(--orange); letter-spacing: 0.08em; }
.pcard h4 { margin: 0.25rem 0 0.5rem; font-size: 0.95rem; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 500; }
.pcard dl { margin: 0; font-size: 0.78rem; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.5rem; }
.pcard dt { color: #8b9093; }
.pcard dd { margin: 0; color: #3f4446; }

/* ---------- image placeholders ---------- */
.ph {
  position: relative;
  background: #151a1c;
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 8px);
  border: 1px solid rgba(244, 242, 237, 0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: rgba(244, 242, 237, 0.62);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}
.ph strong { color: rgba(244, 242, 237, 0.94); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.12em; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--4x5 { aspect-ratio: 4 / 5; }
.ph--1x1 { aspect-ratio: 1 / 1; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--12x5 { aspect-ratio: 12 / 5; min-height: 190px; }

/* filled = real image loaded, keep the box, swap the stripes for the photo */
.ph--filled {
  display: block;
  padding: 0;
  border-color: rgba(16, 19, 20, 0.08);
  background: #151a1c;
  background-image: none;
}
.ph--filled img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ph--filled.ph--light { background: #e5e2d9; }
.ph--12x5 { aspect-ratio: 12 / 5; }
.ph--light {
  background: #e5e2d9;
  background-image: repeating-linear-gradient(135deg, rgba(16, 19, 20, 0.05) 0 1px, transparent 1px 8px);
  border-color: rgba(16, 19, 20, 0.1);
  color: #8f9394;
}
.ph--light strong { color: #565b5d; }
.ph--tall { aspect-ratio: 3 / 4; }

/* ---------- process ---------- */
.proc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.proc__step { padding: 1.6rem 1.2rem 1.6rem 0; border-right: 1px solid var(--line-dark); position: relative; }
.proc__step:last-child { border-right: 0; }
.proc__step:not(:first-child) { padding-left: 1.2rem; }
.proc__num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--orange); letter-spacing: 0.16em; }
.proc__step h4 { margin: 0.6rem 0 0.45rem; color: var(--bone); }
.proc__step p { font-size: 0.82rem; color: var(--muted-dark); margin: 0; }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.trust__item {
  background: #fff;
  padding: 1.1rem 0.8rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4b5052;
}
.trust__item b { display: block; color: var(--ink); font-weight: 500; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 1.15rem 2.2rem 1.15rem 0;
  font-weight: 500;
  font-size: 0.98rem;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--orange);
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq__a { padding: 0 3rem 1.3rem 0; font-size: 0.94rem; color: #3f4446; max-width: 78ch; }
.section--dark .faq { border-top-color: var(--line-dark); }
.section--dark .faq details { border-bottom-color: var(--line-dark); }
.section--dark .faq .faq__a { color: var(--muted-dark); }

/* ---------- cta band ---------- */
.ctaband { background: var(--ink); color: var(--bone); padding: 3.4rem 0; }
.ctaband__inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.ctaband h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); max-width: 24ch; margin-bottom: 0.6rem; }
.ctaband p { color: var(--muted-dark); font-size: 0.94rem; max-width: 46ch; }
.ctaband__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #4b5052; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(16, 19, 20, 0.22);
  border-radius: var(--r);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.14);
}
.field textarea { min-height: 110px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.formnote { font-size: 0.78rem; color: var(--muted); }
.field__hint { display: inline; text-transform: none; letter-spacing: 0.01em; font-weight: 400; color: var(--muted); }
.field input[type="file"] { padding: 0.55rem 0.7rem; font-size: 0.82rem; background: #fff; }
.field input[type="file"]::file-selector-button {
  margin-right: 0.7rem; padding: 0.35rem 0.7rem; border: 1px solid rgba(16,19,20,.22);
  border-radius: var(--r); background: var(--bone); font: inherit; font-size: 0.78rem; cursor: pointer;
}
.form .btn[disabled] { opacity: 0.72; cursor: progress; }

/* ---------- sidebar blocks ---------- */
.info-block { border-top: 2px solid var(--ink); padding-top: 1rem; margin-bottom: 1.8rem; }
.info-block h4 { margin: 0 0 0.5rem; font-size: 0.78rem; letter-spacing: 0.12em; color: var(--muted); }
.info-block p { font-size: 0.94rem; margin: 0; }
.info-block a { border-bottom: 1px solid rgba(16, 19, 20, 0.2); }
.info-block a:hover { border-bottom-color: var(--orange); color: var(--orange); }

/* ---------- checklist ---------- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.5rem; margin-bottom: 0.55rem; font-size: 0.92rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border: 1px solid var(--orange);
  border-radius: 1px;
}

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--muted-dark); padding: 3.6rem 0 1.8rem; font-size: 0.86rem; }
.footer__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 2.6rem; border-bottom: 1px solid var(--line-dark); }
.footer h4 { color: var(--bone); margin: 0 0 1rem; font-size: 0.76rem; letter-spacing: 0.14em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.45rem; }
.footer a:hover { color: var(--orange); }
.footer__brand { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone); margin-bottom: 0.9rem; }
.footer__brand span { color: var(--orange); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1.5rem; padding-top: 1.6rem; flex-wrap: wrap; font-size: 0.76rem; }
.footer__origin { color: rgba(244, 242, 237, 0.4); }
.footer__legal { color: rgba(244, 242, 237, 0.5); letter-spacing: 0.01em; }
.footer__legal::before { content: "Legal entity · "; color: rgba(244, 242, 237, 0.3); }

/* 加工能力清单：左边的工位名，右边的参数 */
.caplist { margin: 0; border-top: 1px solid rgba(16, 19, 20, 0.12); }
.caplist > div {
  display: grid; grid-template-columns: 13.5rem 1fr; gap: 1.2rem;
  padding: 0.62rem 0; border-bottom: 1px solid rgba(16, 19, 20, 0.1);
}
.caplist dt { font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em; }
.caplist dd { margin: 0; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 640px) {
  .caplist > div { grid-template-columns: 1fr; gap: 0.15rem; padding: 0.55rem 0; }
}

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1.2rem; }
.mb-3 { margin-bottom: 2rem; }
.stack > * + * { margin-top: 1.2rem; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(16, 19, 20, 0.18);
  border-radius: 100px;
  padding: 0.32rem 0.8rem;
  color: #3f4446;
  background: #fff;
}
.chip--orange { border-color: rgba(255, 90, 31, 0.5); color: var(--orange-dark); }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255, 90, 31, 0.4);
  border-radius: 2px;
  padding: 0.15rem 0.4rem;
}
.note {
  border-left: 2px solid var(--orange);
  padding: 0.2rem 0 0.2rem 1rem;
  font-size: 0.9rem;
  color: #3f4446;
}
.numlist { counter-reset: n; list-style: none; padding: 0; }
.numlist li { counter-increment: n; position: relative; padding-left: 2.2rem; margin-bottom: 0.8rem; }
.numlist li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--orange);
  letter-spacing: 0.1em;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.4rem; padding-top: 3.4rem; padding-bottom: 2.6rem; }
  .hero__visual { display: none; }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .catgrid { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .proc { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .proc__step { border-top: 1px solid var(--line-dark); }
}

@media (max-width: 860px) {
  .phero--split .phero__inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .nav, .header__cta .btn--ghost { display: none; }
  .burger {
    display: inline-flex;
    margin-left: auto;
    background: none;
    border: 1px solid rgba(16, 19, 20, 0.25);
    border-radius: var(--r);
    padding: 0.45rem 0.7rem;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--bone);
    padding: 1rem 24px 1.4rem;
  }
  .mobile-nav.is-open { display: block; }
  .mobile-nav a { display: block; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
  .tiles { grid-template-columns: 1fr; }
  .split, .cols-2, .cols-3 { grid-template-columns: 1fr; gap: 1.8rem; }
  .split--rev > :first-child { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 1.2rem; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .ctaband__inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 3rem 0; }
}

@media (max-width: 640px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .catgrid { grid-template-columns: 1fr; }
  .proc { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  h1 { font-size: 2.1rem; }
  .topbar__inner span:nth-child(2) { display: none; }
}

/* ==========================================================================
   v4.1 — contact rail, WhatsApp, polish
   ========================================================================== */

/* ---------- WhatsApp button ---------- */
.btn--wa { background: #25d366; color: #06331a; border-color: #25d366; }
.btn--wa:hover { background: #1fb958; border-color: #1fb958; color: #04240f; }
.btn--wa .ico { flex: none; }

.topbar__wa { border-bottom: 1px solid rgba(244, 242, 237, 0.28); }
.topbar__wa:hover { color: var(--orange); border-color: var(--orange); }

/* ---------- floating contact rail ---------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fab__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 6px 20px rgba(16, 19, 20, 0.2);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.fab__btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 28px rgba(16, 19, 20, 0.28); }
.fab__btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.fab__btn--wa { background: #25d366; }
.fab__btn--wa::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid #25d366;
  animation: fabPulse 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  65%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.fab__btn--mail { background: var(--ink); }
.fab__btn--quote { background: var(--orange); }
.fab__btn--top {
  background: rgba(16, 19, 20, 0.72);
  width: 40px;
  height: 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}
.fab__btn--top.is-on { opacity: 1; visibility: visible; transform: none; }

.fab__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--ink);
  color: var(--bone);
  padding: 0.5rem 0.72rem;
  border-radius: var(--r);
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  box-shadow: 0 8px 24px rgba(16, 19, 20, 0.24);
}
.fab__tip span { display: block; margin-top: 0.18rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted-dark); }
.fab__btn:hover .fab__tip { opacity: 1; transform: translateY(-50%) translateX(0); }

@media (max-width: 860px) {
  .fab { right: 12px; bottom: 14px; gap: 8px; }
  .fab__btn { width: 46px; height: 46px; }
  .fab__btn--top { width: 38px; height: 38px; }
  .fab__tip { display: none; }
}
@media (max-width: 640px) {
  .fab__btn--quote { display: none; }
  .header__cta .btn--primary { display: none; }
  .header__cta .btn--wa span { display: none; }
  .header__cta .btn--wa { padding: 0.5rem; width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .fab__btn--wa::after { animation: none; }
  .fab { transition: none; }
}

/* ---------- footer rebuild ---------- */
.footer__top {
  display: grid;
  grid-template-columns: 1.05fr 1.95fr;
  gap: 3.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brandcol p { max-width: 40ch; }
.footer__wa { margin: 1rem 0 0.9rem; }
.footer__meta { font-size: 0.8rem; line-height: 1.6; margin: 0 0 0.55rem; color: rgba(244, 242, 237, 0.5); }
.footer__meta a { color: var(--bone); border-bottom: 1px solid rgba(244, 242, 237, 0.25); }
.footer__meta a:hover { color: var(--orange); border-color: var(--orange); }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 0;
  border-bottom: 0;
}
.footer__cols ul { columns: 1; }
.footer__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.7rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(244, 242, 237, 0.42);
}
.footer__trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.footer__trust span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.7;
}

@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.62s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.62s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- card hover polish ---------- */
.catcard, .tile, .pcard {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.catcard:hover, .tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(16, 19, 20, 0.09);
}
.pcard:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 19, 20, 0.1); }

/* ---------- hero texture ---------- */
.hero { position: relative; }
.hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 62%;
  height: 150%;
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.16), transparent 72%);
  pointer-events: none;
}

/* ---------- section head accent ---------- */
.section__head { position: relative; }
.section__head .eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
  flex: none;
}

/* ---------- tables a touch cleaner ---------- */
.tablewrap { border-radius: 6px; overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.spec tbody tr:nth-child(even) { background: rgba(16, 19, 20, 0.018); }

/* ---------- inline WhatsApp text link ---------- */
.wa-link { border-bottom: 1px solid var(--orange); }
.wa-link:hover { color: var(--orange); }

/* ---------- category card with thumbnail ---------- */
.ph--16x10 { aspect-ratio: 16 / 10; }

.catcard--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.catcard__thumb { position: relative; background: var(--bone-2); }
.catcard__thumb .ph { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.catcard__body { padding: 1.1rem 1.15rem 1.05rem; display: flex; flex-direction: column; flex: 1; }
.catcard--media .catcard__top { margin-bottom: 0.5rem; }
.catcard--media:hover .catcard__thumb .ph { filter: saturate(1.05) brightness(0.99); }
.catcard__thumb .ph strong { font-size: 0.6rem; }
.catcard__thumb .ph span { font-size: 0.56rem; }

/* ---------- buyer type grid ---------- */
.buyergrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.buyercard {
  background: #fff;
  padding: 1.5rem 1.35rem 1.3rem;
  display: flex;
  flex-direction: column;
  transition: background 0.16s ease;
}
.buyercard:hover { background: #fffdfa; }
.buyercard__num { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; color: var(--orange); margin-bottom: 0.85rem; }
.buyercard h3 { font-size: 0.98rem; margin-bottom: 0.6rem; }
.buyercard p { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.buyercard .link { margin-top: auto; font-size: 0.78rem; }
@media (max-width: 1080px) { .buyergrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .buyergrid { grid-template-columns: 1fr; } }

/* header WhatsApp compress before the nav collapses */
@media (max-width: 1080px) {
  .header__cta .btn--wa span { display: none; }
  .header__cta .btn--wa { padding: 0.55rem 0.7rem; }
}

/* ==========================================================================
   Privacy policy — .legal
   ========================================================================== */
.legal { max-width: 780px; margin-left: 0; margin-right: auto; }  /* 与其它页左对齐；.container 默认 margin auto 会把它居中 */
.legal h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 2.6rem 0 0.7rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin: 1.6rem 0 0.4rem;
}
.legal p, .legal li { font-size: 0.96rem; color: var(--grey); }
.legal p { margin: 0 0 0.9rem; }
.legal b { color: var(--ink); }
.legal a { border-bottom: 1px solid var(--orange); }
.legal code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: rgba(16, 19, 20, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}
.legal__list { margin: 0 0 1.2rem; padding-left: 1.1rem; }
.legal__list li { margin-bottom: 0.45rem; }
.legal .tablewrap { margin: 0.6rem 0 1.4rem; }
.legal .spec td, .legal .spec th { font-size: 0.86rem; }

/* ==========================================================================
   Cookie consent — .cookie
   ========================================================================== */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 90;
  width: min(760px, calc(100vw - 32px));
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--r);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}
.cookie[hidden] { display: none; }
.cookie__text b {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.cookie__text p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted-dark);
}
.cookie__text a {
  color: var(--bone);
  border-bottom: 1px solid var(--orange);
}
.cookie__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie .btn--ghost {
  border-color: rgba(244, 242, 237, 0.34);
  color: var(--bone);
}
.cookie .btn--ghost:hover {
  border-color: var(--bone);
  background: rgba(244, 242, 237, 0.08);
}

@media (max-width: 720px) {
  .cookie {
    flex-direction: column;
    align-items: stretch;
    bottom: 10px;
    gap: 12px;
    padding: 14px;
  }
  .cookie__actions .btn { flex: 1; justify-content: center; }
}

/* 同意条出现时，右下浮动栏整体上移，避免遮挡 */
.fab { transition: bottom 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
body.has-cookie .fab { bottom: calc(22px + var(--cookie-h, 0px) + 14px); }

@media (max-width: 720px) {
  body.has-cookie .fab { bottom: calc(10px + var(--cookie-h, 0px) + 10px); }
}

/* 同意条出现时，右下浮动栏整体上移，避免遮挡 */
.fab { transition: bottom 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
body.has-cookie .fab { bottom: calc(22px + var(--cookie-h, 0px) + 14px); }

@media (max-width: 720px) {
  body.has-cookie .fab { bottom: calc(10px + var(--cookie-h, 0px) + 10px); }
}
