:root {
  --ink: #1c1c1c;
  --muted: #6b7280;
  --paper: #f7f5f2;
  --white: #ffffff;
  --line: #ece7e1;
  --accent: #f08a12;
  --accent-dark: #d87408;
  --blue: #2f6fed;
  --blue-dark: #2458c7;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.topbar { display: none; }
.nav-inner, .wrap, .footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand strong {
  display: block;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 18px;
}
.brand span { display: block; color: #9aa0a6; font-size: 12px; }
.menu { display: flex; gap: 26px; align-items: center; }
.menu a { text-decoration: none; font-size: 15px; color: #333; }
.menu a[aria-current="page"] { color: var(--accent); }
.menu .quote {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
}
.menu .quote:hover { background: var(--accent-dark); }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
}

.fact-strip {
  background: #172033;
  color: #fff;
  font-size: 13px;
}
.fact-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 11px 0;
}
.fact-strip span { color: rgba(255, 255, 255, 0.92); }
.fact-strip strong { color: #fff; font-weight: 700; }
.banners {
  position: relative;
  overflow: hidden;
  background: linear-gradient(#fff, #f6f4f1);
}
.banner-track {
  display: flex;
  transition: transform 0.45s ease;
}
.banner {
  position: relative;
  min-width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 72px 10vw 88px;
  overflow: hidden;
}
.banner h1 { font-size: 48px; max-width: 640px; color: #fff; }
.banner .kicker { color: #ffd7a8; }
.banner .lead { margin-bottom: 22px; color: rgba(255, 255, 255, 0.92); }
.banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.banner-copy { position: relative; z-index: 1; max-width: 640px; }
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 32, 51, 0.78) 0%, rgba(23, 32, 51, 0.28) 58%, rgba(23, 32, 51, 0.12) 100%);
}
.banner-nav {
  position: absolute;
  top: 46%;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.banner-nav.prev { left: 16px; }
.banner-nav.next { right: 16px; }
.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.banner-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #d9d3cc;
  padding: 0;
  cursor: pointer;
}
.banner-dots button.on { background: var(--accent); width: 22px; border-radius: 999px; }
.kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 700;
}
h1 {
  font-size: 58px;
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
h2 { font-size: 34px; margin: 0 0 10px; letter-spacing: -0.02em; }
h3 { margin: 0 0 8px; font-size: 18px; }
.lead { font-size: 18px; max-width: 640px; color: #4b5563; margin: 0 0 22px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.chips span {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: #444;
}
.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn.blue { background: var(--blue); }
.btn.blue:hover { background: var(--blue-dark); }
.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid #ddd;
}
.btn.ghost:hover { background: #f7f7f7; color: var(--ink); }

.section { padding: 72px 0; }
.section.alt { background: #fafafa; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p, .note { color: var(--muted); margin: 0; }

.grid-3, .grid-4, .grid-2 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: 1.1fr 0.9fr; }

.card, .slot {
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 24px;
}
.card p, .step p { color: var(--muted); margin: 0; }
.num { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.card .stat-num { margin: 0 0 10px; font-size: 42px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: #fff; border-radius: 16px; padding: 22px; border: 1px solid #f0f0f0; }

.band {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid #f0f0f0;
}
.band h3 { font-size: 26px; margin-bottom: 8px; }
.band p { margin: 0; color: var(--muted); }

.slot {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: repeating-linear-gradient(135deg, #f7f4ef 0 12px, #fff 12px 24px);
}
.slot strong { font-size: 15px; }
.slot span { color: var(--muted); font-size: 13px; }

footer { background: #1b1b1b; color: #f5f5f5; padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer a { color: #f5f5f5; text-decoration: none; }
footer h4 { margin: 0 0 12px; font-size: 14px; letter-spacing: 0.04em; }
footer .muted, .legal { color: #bdbdbd; }
.legal { margin: 28px 0 0; font-size: 13px; border-top: 1px solid #333; padding-top: 16px; }

.float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
}
.float a.wa {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.contacts-inline { display: flex; gap: 14px; align-items: center; font-size: 13px; color: #666; }
.contacts-inline a { text-decoration: none; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.pcard .shot { display: block; }
.pcard img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fafafa; border-radius: 12px; }
.pcard h3 { font-size: 14px; line-height: 1.35; min-height: 38px; margin: 10px 0 4px; }
.pcard h3 a { text-decoration: none; }
body.catalog-detail { background: #f5f5f5; }
body.catalog-detail .section { padding: 16px 0 48px; }
.detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
  padding: 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
}
.detail .gallery img { width: 100%; height: 180px; object-fit: contain; background: #fafafa; border-radius: 0; }
.detail h1 { font-size: 20px; margin: 0 0 8px; letter-spacing: 0; }
.detail .sku { margin: 0 0 6px; color: #888; font-size: 12px; }
.detail .price { margin: 0 0 8px; color: #ff6a00; font-size: 20px; font-weight: 700; }
.detail .moq { margin: 0 0 14px; color: #888; font-size: 12px; }
.qty-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.qty-row label { font-size: 13px; }
.qty-row input { width: 88px; padding: 8px; border: 1px solid #e5e5e5; border-radius: 0; }
.spec-title { margin: 22px 0 12px; font-size: 18px; }
.specs { width: 100%; border-collapse: collapse; background: #fff; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 8px; border: 1px solid #e8e8e8; }
.specs th { width: 180px; background: #fafafa; font-weight: 700; }
.pmeta { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.pcard .btn { text-align: center; margin-top: auto; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 18px; }
.filters button, .filters input {
  border-radius: 999px;
  border: 1px solid #eee;
  background: #fff;
  padding: 8px 14px;
}
.filters button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.filters input { min-width: 220px; }
.page-hero { padding: 56px 0 8px; background: linear-gradient(#fff, #fafafa); }
.page-hero h1 { font-size: 42px; }
form { display: grid; gap: 12px; }
label { font-size: 13px; display: grid; gap: 6px; }
input, textarea {
  border: 1px solid #e5e5e5;
  background: white;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }

.page-banner {
  position: relative;
  height: 480px;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 72px 10vw;
  overflow: hidden;
  background-color: #172033;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-banner > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}
.page-banner .banner-copy { position: relative; z-index: 2; max-width: 680px; }
.page-banner h1 {
  font-size: 64px;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.page-banner .lead { color: rgba(255,255,255,.92); margin: 0; max-width: 560px; }
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(23, 32, 51, 0.55) 0%, rgba(23, 32, 51, 0.18) 55%, rgba(23, 32, 51, 0.08) 100%);
}
.page-banner-right { justify-content: flex-end; }
.page-banner-right .banner-copy { text-align: right; margin-left: auto; }
.page-banner-right .lead { margin-left: auto; }
.page-banner-right::after {
  background: linear-gradient(270deg, rgba(23, 32, 51, 0.55) 0%, rgba(23, 32, 51, 0.16) 58%, rgba(23, 32, 51, 0.05) 100%);
}
.mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story h2 { font-size: 40px; }
.story p { color: #4b5563; }
.stat-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-stack article { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.stat-stack .stat-num { margin: 0; font-size: 36px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 36px; }
.why-ico {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(240, 138, 18, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-weight: 700;
}
.why-item p { color: var(--muted); margin: 0; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.portfolio-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  min-height: 180px;
}
.portfolio-card p { color: var(--muted); margin: 0; }
.factory-shot { display: block; margin: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.factory-shot img { width: 100%; height: 220px; object-fit: cover; }
.factory-shot figcaption { padding: 12px 14px 14px; font-weight: 700; }
.vision { background: #f7f5f2; padding: 72px 0; }
.vision h2 { font-size: 32px; max-width: 820px; line-height: 1.25; }
.vision .kicker { margin: 18px 0 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card img { width: 100%; height: 180px; object-fit: cover; background: #fafafa; }
.blog-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card time { color: var(--muted); font-size: 12px; }
.blog-card h3 { font-size: 18px; margin: 0; line-height: 1.35; }
.blog-card h3 a, .blog-card > a { text-decoration: none; }
.blog-card p { color: var(--muted); margin: 0; }
.blog-card .more { margin-top: auto; color: var(--accent); font-weight: 700; text-decoration: none; }
.post { max-width: 760px; }
.post img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; margin: 8px 0 18px; }
.post h2 { font-size: 32px; margin-bottom: 8px; }
.post .meta { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.post p { color: #4b5563; }
.faq details { background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; padding: 14px 16px; margin: 0 0 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; }

@media (max-width: 860px) {
  h1, .banner h1 { font-size: 34px; }
  .banner { min-height: 460px; padding: 48px 24px 72px; text-align: center; }
  .banner::after { background: rgba(23, 32, 51, 0.45); }
  .banner-copy { margin: 0 auto; }
  .banner .lead { margin-left: auto; margin-right: auto; }
  .banner img { max-height: none; }
  .grid-3, .grid-4, .steps, .footer-grid, .grid-2, .band, .story, .why-grid, .portfolio-grid, .blog-grid, .detail { grid-template-columns: 1fr; }
  .product-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .product-grid > .pcard {
    flex: 0 0 78%;
    max-width: 280px;
    scroll-snap-align: start;
  }
  .page-banner { min-height: 360px; padding: 48px 24px; }
  .page-banner, .page-banner-right { justify-content: center; text-align: center; }
  .page-banner-right .banner-copy, .page-banner .banner-copy { text-align: center; margin: 0 auto; }
  .page-banner h1 { font-size: 40px; }
  .page-banner::after, .page-banner-right::after { background: rgba(23, 32, 51, 0.45); }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .contacts-inline { display: none; }
  .menu-toggle { display: inline-block; }
  .menu {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 18px;
  }
  .menu.open { display: flex; }
}
