:root {
  --bg: #f2f3f5;
  --surface: #fbfbfc;
  --ink: #1b1e22;
  --muted: #59616b;
  --line: #dfe3e8;
  --accent: #c8102e;
  --on-accent: #ffffff;
  --photo: #e7eaee;
  --topbar: #171a1e;
  --topbar-text: #f4f5f6;
  --header: #ffffff;
  --footer: #171a1e;
  --footer-text: #d5d8dd;
  --footer-muted: #a7aeb6;
  --danger: #9f1239;
  --ok: #0f6b3a;
  --radius: 4px;
  --header-h: 68px;
  --shadow: 0 16px 40px rgb(23 26 30 / 10%);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #121416;
  --surface: #1b1e22;
  --ink: #f3f4f6;
  --muted: #b7bec6;
  --line: #31363c;
  --accent: #ff5a68;
  --on-accent: #2a0c10;
  --photo: #e7eaee;
  --topbar: #0d0f11;
  --topbar-text: #f4f5f6;
  --header: #171a1e;
  --footer: #0d0f11;
  --footer-text: #c8ced4;
  --footer-muted: #9aa3ab;
  --danger: #ffb4c2;
  --ok: #8ddeaf;
  --shadow: 0 16px 40px rgb(0 0 0 / 40%);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

button,
input,
select,
textarea { font: inherit; }

a { color: inherit; }

h1, h2, h3, p { margin: 0; }

h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius);
}

.skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  background: var(--topbar);
  color: var(--topbar-text);
  font-size: 13px;
}

.topbar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar a {
  color: var(--topbar-text);
  font-weight: 700;
  white-space: nowrap;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.logo-mark {
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.logo-mark b {
  font-size: 16px;
  letter-spacing: -0.04em;
}

.logo-mark small {
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.logo-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.nav-inline {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.nav-inline a {
  text-decoration: none;
  font-size: 14.5px;
  white-space: nowrap;
}

.nav-inline a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}

.search {
  display: flex;
  width: 230px;
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.search input {
  border: 0;
  background: transparent;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
}

.search input::placeholder { color: var(--muted); }

.search button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.text-btn,
.nav-toggle {
  border: 0;
  background: transparent;
  color: var(--ink);
  min-height: 40px;
  padding: 0 8px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-block { width: 100%; }

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--header);
  padding: 12px 0 16px;
}

.mobile-panel a,
.mobile-panel .search {
  display: flex;
  width: 100%;
  margin-top: 8px;
}

.mobile-panel a {
  text-decoration: none;
  min-height: 44px;
  align-items: center;
}

.mobile-panel.is-open { display: block; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
  min-height: calc(100dvh - 102px);
  padding: 28px 0 36px;
}

.hero-copy h1 { max-width: 11em; }

.hero-copy p {
  margin-top: 14px;
  max-width: 36em;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.frame {
  position: relative;
  background: var(--photo);
  overflow: hidden;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero-visual {
  aspect-ratio: 5 / 4;
}

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 20px;
  margin: 0;
  padding: 8px 0 36px;
}

.stats strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stats span { color: var(--muted); font-size: 14px; }

.section { padding: 28px 0 64px; }

.section-head {
  margin-bottom: 18px;
}

.section-head p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 62ch;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 250px 210px 200px;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cat {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  text-decoration: none;
  min-width: 0;
  min-height: 0;
}

.cat .frame { flex: 1; min-height: 0; }

.cat-copy {
  padding: 12px 14px 14px;
}

.cat-copy strong { display: block; }

.cat-copy span {
  color: var(--muted);
  font-size: 13px;
}

.cat-pumps { grid-column: 1; grid-row: 1 / span 2; }
.cat-jars { grid-column: 2 / span 2; grid-row: 1; }
.cat-dropper { grid-column: 2; grid-row: 2; }
.cat-spray { grid-column: 3; grid-row: 2; }
.cat-paper { grid-column: 1 / span 3; grid-row: 3; }

.cat-paper { flex-direction: row; }
.cat-paper .frame { flex: 1.4; }
.cat-paper .cat-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.split .frame { aspect-ratio: 16 / 11; }

.market-list,
.plain-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.market-list li,
.plain-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.market-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
}

.market-list strong,
.plain-list strong { display: block; }

.market-list span,
.plain-list span,
.lede { color: var(--muted); }

.more {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 700;
}

.skus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 16px;
}

.sku {
  min-width: 0;
}

.sku .frame { aspect-ratio: 16 / 11; }

.sku h3 {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.sku .meta {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.sku .btn { min-height: 40px; }

.band {
  background: var(--accent);
  color: var(--on-accent);
}

.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0;
}

.band p { margin-top: 6px; max-width: 46ch; }

.band .btn {
  background: var(--surface);
  color: var(--accent);
  flex: none;
}

.footer {
  background: var(--footer);
  color: var(--footer-text);
  padding: 40px 0 28px;
}

.footer a { text-decoration: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer h2 {
  color: #f4f5f6;
  font-size: 16px;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li { margin: 6px 0; }

.footer a:hover { color: #f4f5f6; }

.footer .legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: var(--footer-muted);
  font-size: 13px;
}

.page-head { padding: 32px 0 8px; }

.page-head p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 62ch;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  min-height: 40px;
  padding: 0 12px;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.catalog-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  color: var(--muted);
  font-size: 14px;
}

.detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin: 8px 0 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.detail .frame { aspect-ratio: 16 / 11; }

.detail dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 12px;
  margin: 14px 0;
}

.detail dt { color: var(--muted); }

.detail dd { margin: 0; }

.empty {
  padding: 28px 0 12px;
}

.defs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
  margin-top: 28px;
}

.defs h2 { font-size: 22px; }

.defs p { margin-top: 6px; color: var(--muted); }

.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.market-grid article .frame { aspect-ratio: 16 / 10; }

.market-grid h3 { margin-top: 10px; font-size: 18px; }

.market-grid p { color: var(--muted); }

.flow {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.flow li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 64px;
}

.form,
.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 10px 12px;
  min-height: 44px;
}

.field textarea { min-height: 120px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.help { color: var(--muted); font-size: 13px; margin-top: 6px; }

.error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 6px;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--danger); }

.success {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.success h2 { font-size: 28px; }

.success p { margin-top: 8px; color: var(--muted); }

.side-card h2 { font-size: 20px; }

.side-card ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.side-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.hp {
  position: absolute;
  left: -9999px;
}

.drawer[hidden] { display: none; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgb(17 19 22 / 48%);
}

.drawer-panel {
  margin-left: auto;
  width: min(420px, 100%);
  height: 100%;
  background: var(--surface);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.drawer-head,
.drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-foot { border-bottom: 0; border-top: 1px solid var(--line); }

.drawer-head h2 { font-size: 20px; }

.drawer-body {
  padding: 8px 16px 16px;
  overflow: auto;
  flex: 1;
}

.drawer-body ul { list-style: none; margin: 0; padding: 0; }

.line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.line img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  background: var(--photo);
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.qty button,
.linkish {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-width: 28px;
  min-height: 28px;
  border-radius: var(--radius);
  cursor: pointer;
}

.linkish { padding: 0 8px; }

@media (prefers-reduced-motion: no-preference) {
  .cat .frame img,
  .sku .frame img {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .cat:hover .frame img,
  .sku:hover .frame img { transform: scale(1.04); }
}

.sku.is-active .frame { outline: 2px solid var(--accent); outline-offset: -2px; }

@media (min-width: 1101px) {
  .mobile-panel { display: none !important; }
}

@media (max-width: 1100px) {
  .nav-inline,
  .header-inner > .search { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
}

@media (max-width: 900px) {
  .hero,
  .split,
  .detail,
  .contact-grid,
  .footer-grid,
  .defs,
  .market-grid {
    grid-template-columns: 1fr;
  }

  .hero { min-height: 0; padding-top: 22px; }
  .skus { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .band-inner { flex-direction: column; align-items: flex-start; }
  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .cat-pumps,
  .cat-jars,
  .cat-dropper,
  .cat-spray,
  .cat-paper {
    grid-column: auto;
    grid-row: auto;
  }
  .cat-paper { flex-direction: column; }
  .cat .frame { aspect-ratio: 16 / 10; min-height: 180px; }
  .flow li,
  .market-list li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 560px) {
  .skus { grid-template-columns: 1fr; }
  .topbar-inner p { display: none; }
  .header-inner { gap: 8px; }
  .logo-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
}
