:root {
  --site-bg: #f4f9ff;
  --site-fg: #1e2a44;
  --site-accent: #2f8ef0;
  --site-on-accent: #ffffff;
  --site-surface: #ffffff;
  --site-muted: #6a7b9c;
  --site-border: #e3edfa;
  --site-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --site-radius: 18px;
  --site-space: 1;
  --site-type: 1;
  --site-motion: 1;

  --brand-yellow: #ffc53d;
  --brand-coral: #ff7a59;
  --brand-mint: #22c9a5;
  --brand-violet: #8b6cf6;
  --brand-cyan: #22c1e8;
  --brand-ink: #1e2a44;
  --brand-shadow: 0 12px 30px rgba(47, 142, 240, 0.14);
  --transition: calc(180ms * var(--site-motion, 1));
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-fg);
  font-family: var(--site-font);
  font-size: calc(16px * var(--site-type, 1));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: 0.01em; }

p { margin: 0; }

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

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

button { cursor: pointer; border: none; background: none; }

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

.wrap--narrow { width: min(820px, 100% - calc(32px * var(--site-space, 1))); }

.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;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--site-accent);
  color: var(--site-on-accent);
  padding: 10px 16px;
  border-radius: 12px;
  transition: top var(--transition);
}

.skip-link:focus { top: 12px; }

/* ---------- topbar & header ---------- */

.topbar {
  background: linear-gradient(90deg, var(--brand-cyan), var(--site-accent) 45%, var(--brand-violet));
  color: #fff;
  font-size: calc(13px * var(--site-type, 1));
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.topbar__note--hide { opacity: 0.85; }

.topbar a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, 0.7); }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--site-border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: calc(16px * var(--site-space, 1));
  padding: calc(10px * var(--site-space, 1)) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47, 142, 240, 0.14), rgba(255, 197, 61, 0.2));
  border-radius: 14px;
}

.brand__mark svg { width: 30px; height: 30px; }

.brand__logo {
  width: 144px; height: 144px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(47, 142, 240, 0.18);
}

.brand__logo img { width: 100%; height: 100%; object-fit: cover; }

.brand__logo--footer { background: rgba(255, 255, 255, 0.12); box-shadow: none; }

.brand__text { display: flex; align-items: baseline; gap: 12px; line-height: 1.2; }

.brand__text strong { font-size: calc(63px * var(--site-type, 1)); letter-spacing: 0.04em; white-space: nowrap; }

.brand__text small { color: var(--site-muted); font-size: calc(22px * var(--site-type, 1)); white-space: nowrap; }

.nav {
  display: none;
  margin-left: auto;
  gap: calc(20px * var(--site-space, 1));
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: calc(15px * var(--site-type, 1));
  padding: 6px 0;
  position: relative;
  color: #32405e;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--site-accent), var(--brand-cyan));
  transition: width var(--transition);
}

.nav a:hover::after, .nav a:focus-visible::after { width: 100%; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.hotline-btn {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff4d6, #ffe9c2);
  border: 1px solid #ffdf9e;
  color: #8a5a12;
  white-space: nowrap;
}

.hotline-btn__icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-yellow);
  color: #fff;
}

.hotline-btn__icon svg { width: 18px; height: 18px; }

.hotline-btn__text { display: flex; flex-direction: column; line-height: 1.15; }

.hotline-btn__text small { font-size: calc(11px * var(--site-type, 1)); opacity: 0.75; }

.hotline-btn__text strong { font-size: calc(16px * var(--site-type, 1)); letter-spacing: 0.02em; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--site-accent);
  color: var(--site-on-accent);
  font-weight: 700;
  font-size: calc(14px * var(--site-type, 1));
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cart-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(47, 142, 240, 0.32); }

.cart-btn svg { width: 20px; height: 20px; }

.cart-btn__count {
  font-style: normal;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-coral);
  color: #fff;
  font-size: calc(12px * var(--site-type, 1));
  display: grid; place-items: center;
}

.cart-btn__count[data-empty="true"] { background: #c9d6ea; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 420px at 88% -10%, rgba(34, 193, 232, 0.28), transparent 60%),
    radial-gradient(760px 380px at 6% 8%, rgba(255, 197, 61, 0.26), transparent 62%),
    linear-gradient(160deg, #f6fbff 0%, #eef6ff 55%, #fdf7f2 100%);
  padding: calc(28px * var(--site-space, 1)) 0 calc(40px * var(--site-space, 1));
}

.hero__inner { display: grid; gap: calc(24px * var(--site-space, 1)); }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--site-accent);
  font-weight: 700;
  font-size: calc(39px * var(--site-type, 1));
  padding: 20px 42px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(47, 142, 240, 0.14);
}

.hero__eyebrow img { border-radius: 50%; width: 56px; height: 56px; }

.hero h1 {
  margin: calc(14px * var(--site-space, 1)) 0;
  font-size: calc(30px * var(--site-type, 1));
  line-height: 1.28;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--site-accent), var(--brand-violet) 60%, var(--brand-coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  color: #4a5a78;
  max-width: 52ch;
  font-size: calc(15px * var(--site-type, 1));
}

.hero__desc a { color: var(--brand-coral); font-weight: 700; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: calc(20px * var(--site-space, 1)) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: calc(15px * var(--site-type, 1));
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--site-accent), #4fb0ff);
  color: var(--site-on-accent);
  box-shadow: 0 10px 22px rgba(47, 142, 240, 0.28);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(47, 142, 240, 0.36); }

.btn--ghost {
  background: #fff;
  color: var(--site-accent);
  border: 2px solid rgba(47, 142, 240, 0.35);
}

.btn--ghost:hover { background: #f2f8ff; }

.btn--block { width: 100%; }

.hero__stats {
  display: flex;
  gap: calc(24px * var(--site-space, 1));
  margin-top: calc(20px * var(--site-space, 1));
}

.hero__stats li { display: flex; flex-direction: column; }

.hero__stats strong {
  font-size: calc(26px * var(--site-type, 1));
  color: var(--site-accent);
  line-height: 1.1;
}

.hero__stats span { color: var(--site-muted); font-size: calc(13px * var(--site-type, 1)); }

.hero__figure {
  margin: 0;
  position: relative;
  border-radius: calc(26px * var(--site-space, 1));
  overflow: hidden;
  box-shadow: var(--brand-shadow);
  background: #fff;
}

.hero__figure img { width: 100%; height: auto; object-fit: cover; }

.hero__figure figcaption {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: calc(13px * var(--site-type, 1));
  font-weight: 600;
}

/* ---------- sections ---------- */

.section { padding: calc(44px * var(--site-space, 1)) 0; }

.section__title {
  font-size: calc(24px * var(--site-type, 1));
  position: relative;
  padding-left: 14px;
}

.section__title::before {
  content: "";
  position: absolute;
  left: 0; top: 0.28em;
  width: 6px; height: 0.9em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand-yellow), var(--brand-coral));
}

.section__sub {
  color: var(--site-muted);
  margin: 8px 0 calc(22px * var(--site-space, 1));
  font-size: calc(14px * var(--site-type, 1));
}

.section__sub a { color: var(--brand-coral); font-weight: 700; }

/* ---------- stage cards ---------- */

.stage-grid {
  display: grid;
  gap: calc(14px * var(--site-space, 1));
  grid-template-columns: 1fr;
}

.stage-card {
  text-align: left;
  padding: calc(20px * var(--site-space, 1));
  border-radius: var(--site-radius);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 132px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 18px rgba(30, 42, 68, 0.08);
}

.stage-card:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(30, 42, 68, 0.16); }

.stage-card--primary { background: linear-gradient(135deg, #2f8ef0, #22c1e8); }
.stage-card--coral { background: linear-gradient(135deg, #ff7a59, #ffa24b); }
.stage-card--violet { background: linear-gradient(135deg, #8b6cf6, #b58cf9); }
.stage-card--mint { background: linear-gradient(135deg, #22c9a5, #6fdcc0); }

.stage-card__tag {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.24);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: calc(12px * var(--site-type, 1));
  font-weight: 700;
}

.stage-card strong { font-size: calc(20px * var(--site-type, 1)); }

.stage-card small { color: rgba(255, 255, 255, 0.9); font-size: calc(13px * var(--site-type, 1)); }

.stage-card__go { margin-top: auto; font-weight: 700; font-size: calc(14px * var(--site-type, 1)); }

/* ---------- catalog ---------- */

.catalog { background: #fff; }

.catalog__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: calc(20px * var(--site-space, 1));
}

.catalog__search input {
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--site-border);
  background: var(--site-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.catalog__search input:focus {
  outline: none;
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px rgba(47, 142, 240, 0.16);
}

.catalog__layout { display: grid; gap: calc(20px * var(--site-space, 1)); }

.filters {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(16px * var(--site-space, 1));
  background: var(--site-bg);
  align-self: start;
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.filters__head h3 { font-size: calc(16px * var(--site-type, 1)); }

.filters__reset {
  color: var(--site-accent);
  font-weight: 600;
  font-size: calc(13px * var(--site-type, 1));
}

.filter-group {
  border: none;
  border-top: 1px solid var(--site-border);
  margin: 10px 0 0;
  padding: 12px 0 4px;
}

.filter-group legend {
  font-weight: 700;
  font-size: calc(14px * var(--site-type, 1));
  padding: 0;
  margin-bottom: 6px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  color: #3b4a68;
  font-size: calc(14px * var(--site-type, 1));
}

.filter-group input { accent-color: var(--site-accent); width: 16px; height: 16px; }

.catalog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.catalog__count { color: var(--site-muted); font-size: calc(14px * var(--site-type, 1)); }

.sort { display: flex; align-items: center; gap: 8px; color: var(--site-muted); font-size: calc(14px * var(--site-type, 1)); }

.sort select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--site-border);
  background: #fff;
}

.product-grid {
  display: grid;
  gap: calc(16px * var(--site-space, 1));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--brand-shadow); }

.product-card__media {
  position: relative;
  background: linear-gradient(160deg, #f3f9ff, #ffffff);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform calc(320ms * var(--site-motion, 1));
}

.product-card:hover .product-card__media img { transform: scale(1.05); }

.product-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: calc(11px * var(--site-type, 1));
  font-weight: 700;
  color: #fff;
  background: var(--brand-coral);
}

.product-card__badge[data-tone="new"] { background: var(--brand-violet); }
.product-card__badge[data-tone="hot"] { background: var(--brand-coral); }
.product-card__badge[data-tone="school"] { background: var(--brand-mint); }

.product-card__body {
  padding: calc(12px * var(--site-space, 1));
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.product-card__tags span {
  background: rgba(47, 142, 240, 0.1);
  color: #2f6fc4;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: calc(11px * var(--site-type, 1));
}

.product-card__name {
  font-size: calc(15px * var(--site-type, 1));
  font-weight: 600;
  line-height: 1.4;
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.price {
  color: var(--brand-coral);
  font-weight: 800;
  font-size: calc(18px * var(--site-type, 1));
}

.price small { font-size: calc(12px * var(--site-type, 1)); font-weight: 600; }

.price del { color: #a9b6cc; font-weight: 500; font-size: calc(12px * var(--site-type, 1)); margin-left: 4px; }

.add-btn {
  background: rgba(47, 142, 240, 0.1);
  color: var(--site-accent);
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: calc(13px * var(--site-type, 1));
  transition: background var(--transition), color var(--transition);
}

.add-btn:hover { background: var(--site-accent); color: var(--site-on-accent); }

.empty {
  text-align: center;
  padding: calc(40px * var(--site-space, 1)) 0;
  color: var(--site-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ---------- custom ---------- */

.custom { background: linear-gradient(160deg, #eef7ff, #fdf6ef); }

.custom__inner { display: grid; gap: calc(24px * var(--site-space, 1)); }

.custom__eyebrow {
  display: inline-block;
  background: var(--brand-coral);
  color: #fff;
  font-weight: 700;
  font-size: calc(13px * var(--site-type, 1));
  padding: 5px 14px;
  border-radius: 999px;
}

.custom__desc { color: #4a5a78; margin: 12px 0; }

.custom__points {
  display: flex;
  gap: calc(20px * var(--site-space, 1));
  flex-wrap: wrap;
  margin: 18px 0;
}

.custom__points li { display: flex; flex-direction: column; }

.custom__points strong { font-size: calc(20px * var(--site-type, 1)); color: var(--site-accent); }

.custom__points span { color: var(--site-muted); font-size: calc(13px * var(--site-type, 1)); }

.custom__hotline { font-weight: 600; }

.custom__hotline a { color: var(--brand-coral); font-size: calc(18px * var(--site-type, 1)); }

.custom__form {
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(20px * var(--site-space, 1));
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--brand-shadow);
}

.form-row { display: flex; flex-direction: column; gap: 6px; }

.form-row label { font-weight: 600; font-size: calc(14px * var(--site-type, 1)); }

.form-row input,
.form-row select,
.form-row textarea {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--site-border);
  background: var(--site-bg);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px rgba(47, 142, 240, 0.16);
}

.field-error { color: #d94b3f; font-size: calc(12px * var(--site-type, 1)); min-height: 0; }

.field-error:empty { display: none; }

.form-hint { color: var(--site-muted); font-size: calc(12px * var(--site-type, 1)); }

.custom__result {
  background: #fff;
  border: 1px solid var(--site-border);
  border-left: 5px solid var(--brand-mint);
  border-radius: var(--site-radius);
  padding: calc(20px * var(--site-space, 1));
  box-shadow: var(--brand-shadow);
}

.custom__result h3 { font-size: calc(18px * var(--site-type, 1)); margin-bottom: 10px; }

.custom__result pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--site-bg);
  border-radius: 12px;
  padding: 14px;
  font-family: inherit;
  font-size: calc(14px * var(--site-type, 1));
  margin: 0 0 14px;
}

.custom__result-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.link-btn {
  margin-top: 12px;
  color: var(--site-accent);
  font-weight: 600;
  font-size: calc(13px * var(--site-type, 1));
  text-decoration: underline;
}

/* ---------- service ---------- */

.service-grid {
  display: grid;
  gap: calc(14px * var(--site-space, 1));
  grid-template-columns: 1fr;
}

.service-card {
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(18px * var(--site-space, 1));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
}

.service-card__icon svg { width: 24px; height: 24px; }

.service-card__icon--yellow { background: var(--brand-yellow); }
.service-card__icon--coral { background: var(--brand-coral); }
.service-card__icon--mint { background: var(--brand-mint); }
.service-card__icon--violet { background: var(--brand-violet); }

.service-card strong { font-size: calc(16px * var(--site-type, 1)); }

.service-card p { color: var(--site-muted); font-size: calc(14px * var(--site-type, 1)); }

/* ---------- size guide ---------- */

.sizeguide { background: #fff; }

.table-wrap { overflow-x: auto; border-radius: var(--site-radius); border: 1px solid var(--site-border); }

.size-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: calc(14px * var(--site-type, 1));
}

.size-table th, .size-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--site-border);
}

.size-table thead th { background: var(--site-bg); font-weight: 700; }

.size-table tbody tr:last-child th,
.size-table tbody tr:last-child td { border-bottom: none; }

.size-table tbody th { color: var(--site-accent); }

/* ---------- faq ---------- */

.accordion { display: flex; flex-direction: column; gap: 10px; }

.accordion__item {
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(14px * var(--site-space, 1)) calc(16px * var(--site-space, 1));
}

.accordion__item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.accordion__item summary::-webkit-details-marker { display: none; }

.accordion__item summary::after {
  content: "+";
  color: var(--site-accent);
  font-size: calc(20px * var(--site-type, 1));
  line-height: 1;
  flex-shrink: 0;
}

.accordion__item[open] summary::after { content: "−"; }

.accordion__item p {
  color: var(--site-muted);
  margin-top: 10px;
  font-size: calc(14px * var(--site-type, 1));
}

/* ---------- footer ---------- */

.footer {
  background: #16233d;
  color: #cfd9ec;
  padding: calc(40px * var(--site-space, 1)) 0 0;
  margin-bottom: 64px;
}

.footer__inner {
  display: grid;
  gap: calc(24px * var(--site-space, 1));
  grid-template-columns: 1fr;
}

.footer__brand { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.brand__mark--footer { background: rgba(255, 255, 255, 0.1); }

.footer__brand strong { color: #fff; font-size: calc(20px * var(--site-type, 1)); }

.footer__brand p { font-size: calc(13px * var(--site-type, 1)); }

.footer__hotline a { color: var(--brand-yellow); font-weight: 700; font-size: calc(18px * var(--site-type, 1)); }

.footer__links { display: flex; flex-direction: column; gap: 8px; }

.footer__links h4 { color: #fff; font-size: calc(15px * var(--site-type, 1)); margin-bottom: 2px; }

.footer__links a, .footer__links span { font-size: calc(13px * var(--site-type, 1)); color: #b3c1da; text-decoration: none; }

.footer__links a:hover { color: var(--brand-yellow); }

.footer__bottom {
  margin-top: calc(28px * var(--site-space, 1));
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: calc(12px * var(--site-type, 1));
  color: #94a3bd;
}

/* ---------- mobile bar ---------- */

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  gap: 10px;
  padding: 10px calc(16px * var(--site-space, 1));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--site-border);
}

.mobile-bar__call {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff5dd;
  color: #8a5a12;
  border: 1px solid #ffdf9e;
  border-radius: 999px;
  font-weight: 700;
  font-size: calc(14px * var(--site-type, 1));
  text-decoration: none;
}

.mobile-bar__call svg { width: 18px; height: 18px; }

.mobile-bar__cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--site-accent);
  color: var(--site-on-accent);
  border-radius: 999px;
  font-weight: 700;
  font-size: calc(14px * var(--site-type, 1));
}

.mobile-bar__cart em {
  font-style: normal;
  background: var(--brand-coral);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: calc(12px * var(--site-type, 1));
}

/* ---------- overlays ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
}

.overlay[hidden] { display: none; }

.overlay__mask {
  position: absolute;
  inset: 0;
  background: rgba(16, 26, 45, 0.55);
  backdrop-filter: blur(2px);
  animation: fade-in calc(200ms * var(--site-motion, 1)) ease;
}

.sheet {
  position: relative;
  background: #fff;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  animation: sheet-up calc(260ms * var(--site-motion, 1)) ease;
}

.sheet--product {
  width: min(560px, 100%);
  margin: auto;
  border-radius: calc(24px * var(--site-space, 1));
  overflow: auto;
  margin-top: 5vh;
}

.sheet--cart {
  width: min(420px, 100%);
  height: 100%;
  margin-left: auto;
  border-radius: 0;
}

.sheet__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-ink);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(30, 42, 68, 0.14);
}

.sheet__close svg { width: 20px; height: 20px; }

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px * var(--site-space, 1));
  border-bottom: 1px solid var(--site-border);
}

.sheet__head h2 { font-size: calc(18px * var(--site-type, 1)); }

.sheet__close--inline { position: static; background: var(--site-bg); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- product detail ---------- */

.product-detail { display: grid; gap: 0; }

.product-detail__media { background: linear-gradient(160deg, #f3f9ff, #fff); aspect-ratio: 4 / 3; }

.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }

.product-detail__body {
  padding: calc(20px * var(--site-space, 1));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-detail__body h3 { font-size: calc(21px * var(--site-type, 1)); }

.product-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.product-detail__tags span {
  background: var(--site-bg);
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: calc(12px * var(--site-type, 1));
  color: #46608c;
}

.product-detail__desc { color: #4a5a78; font-size: calc(14px * var(--site-type, 1)); }

.option-row { display: flex; flex-direction: column; gap: 8px; }

.option-row__label { font-weight: 700; font-size: calc(14px * var(--site-type, 1)); }

.option-row__label em { font-style: normal; color: var(--site-muted); font-weight: 500; margin-left: 6px; }

.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.size-chip {
  min-width: 54px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--site-border);
  background: #fff;
  font-weight: 600;
  font-size: calc(14px * var(--site-type, 1));
  transition: all var(--transition);
}

.size-chip:hover { border-color: var(--site-accent); color: var(--site-accent); }

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

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  overflow: hidden;
  width: fit-content;
}

.qty button {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-weight: 700;
  color: var(--site-accent);
  font-size: calc(17px * var(--site-type, 1));
}

.qty button:hover { background: var(--site-bg); }

.qty span { min-width: 44px; text-align: center; font-weight: 700; }

.detail-note {
  background: var(--site-bg);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type, 1));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-note strong { color: var(--brand-ink); }

/* ---------- cart ---------- */

.cart-body { flex: 1; overflow-y: auto; padding: calc(14px * var(--site-space, 1)); }

.cart-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--site-border);
}

.cart-item__media {
  width: 68px; height: 68px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--site-bg);
}

.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }

.cart-item__body { display: flex; flex-direction: column; gap: 6px; }

.cart-item__name { font-weight: 600; font-size: calc(14px * var(--site-type, 1)); line-height: 1.4; }

.cart-item__meta { color: var(--site-muted); font-size: calc(12px * var(--site-type, 1)); }

.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.cart-item__price { color: var(--brand-coral); font-weight: 800; }

.remove-btn { color: var(--site-muted); font-size: calc(12px * var(--site-type, 1)); text-decoration: underline; }

.remove-btn:hover { color: #d94b3f; }

.qty--sm button { width: 30px; height: 30px; font-size: calc(15px * var(--site-type, 1)); }

.qty--sm span { min-width: 32px; font-size: calc(13px * var(--site-type, 1)); }

.cart-empty { text-align: center; padding: calc(40px * var(--site-space, 1)) 0; color: var(--site-muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }

.cart-foot {
  border-top: 1px solid var(--site-border);
  padding: calc(14px * var(--site-space, 1));
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}

.cart-foot__total { display: flex; align-items: baseline; justify-content: space-between; }

.cart-foot__total span { color: var(--site-muted); font-size: calc(14px * var(--site-type, 1)); }

.cart-foot__total strong { font-size: calc(22px * var(--site-type, 1)); color: var(--brand-coral); }

.cart-foot__actions { display: flex; gap: 10px; }

.cart-foot__actions .btn { flex: 1; }

.cart-note { color: var(--site-muted); font-size: calc(12px * var(--site-type, 1)); text-align: center; }

.order-summary {
  background: var(--site-bg);
  border-radius: 12px;
  padding: 12px;
  font-size: calc(13px * var(--site-type, 1));
  white-space: pre-wrap;
  max-height: 180px;
  overflow: auto;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px * var(--site-space, 1));
  transform: translateX(-50%);
  z-index: 80;
  background: rgba(22, 35, 61, 0.94);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: calc(14px * var(--site-type, 1));
  box-shadow: 0 12px 26px rgba(22, 35, 61, 0.28);
  max-width: calc(100% - 32px);
  text-align: center;
  animation: fade-in calc(180ms * var(--site-motion, 1)) ease;
}

.toast[hidden] { display: none; }

/* ---------- factory section ---------- */

.factory-grid {
  display: grid;
  gap: calc(18px * var(--site-space, 1));
  grid-template-columns: 1fr;
  margin-bottom: calc(32px * var(--site-space, 1));
}

.factory-card {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.factory-card:hover { transform: translateY(-3px); box-shadow: var(--brand-shadow); }

.factory-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(160deg, #f3f9ff, #fff);
}

.factory-card__media img { width: 100%; height: 100%; object-fit: cover; }

.factory-card__body {
  padding: calc(14px * var(--site-space, 1));
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.factory-card__supplier {
  font-size: calc(12px * var(--site-type, 1));
  color: var(--site-muted);
}

.factory-card__name {
  font-size: calc(15px * var(--site-type, 1));
  font-weight: 600;
  line-height: 1.4;
}

.factory-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.factory-cta {
  background: linear-gradient(135deg, #e8f4ff, #f0fdf7);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(24px * var(--site-space, 1));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.factory-cta h3 { font-size: calc(20px * var(--site-type, 1)); }

.factory-cta p { color: var(--site-muted); }

.factory-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- standards / quality ---------- */

.std-grid {
  display: grid;
  gap: calc(14px * var(--site-space, 1));
  grid-template-columns: 1fr;
  margin-bottom: calc(20px * var(--site-space, 1));
}

.std-card {
  background: #fff;
  border: 1px solid var(--site-border);
  border-left: 5px solid var(--brand-mint);
  border-radius: var(--site-radius);
  padding: calc(18px * var(--site-space, 1));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.std-card--primary { border-left-color: var(--site-accent); }
.std-card--coral { border-left-color: var(--brand-coral); }
.std-card--violet { border-left-color: var(--brand-violet); }
.std-card--mint { border-left-color: var(--brand-mint); }
.std-card--cyan { border-left-color: var(--brand-cyan); }

.std-card__code {
  font-size: calc(13px * var(--site-type, 1));
  color: var(--site-accent);
  font-weight: 700;
  font-family: monospace;
}

.std-card h3 { font-size: calc(16px * var(--site-type, 1)); }
.std-card p { color: var(--site-muted); font-size: calc(14px * var(--site-type, 1)); }

.std-notice {
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(16px * var(--site-space, 1));
  font-size: calc(14px * var(--site-type, 1));
  color: var(--site-muted);
}

.std-notice strong { color: var(--brand-ink); }

/* ---------- register form ---------- */

.sheet--register {
  width: min(520px, 100%);
  margin: 5vh auto;
  border-radius: calc(24px * var(--site-space, 1));
  overflow: auto;
  padding: calc(28px * var(--site-space, 1));
}

.register-form h2 { font-size: calc(20px * var(--site-type, 1)); margin-bottom: 8px; }

.register-hint { color: var(--site-muted); font-size: calc(13px * var(--site-type, 1)); margin-bottom: 20px; }

.register-success {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: calc(20px * var(--site-space, 1)) 0;
}

.register-success svg { width: 48px; height: 48px; color: var(--brand-mint); }
.register-success h3 { font-size: calc(18px * var(--site-type, 1)); }
.register-success p { color: var(--site-muted); font-size: calc(14px * var(--site-type, 1)); }

/* ---------- product card actions ---------- */

.product-card__meta {
  font-size: calc(12px * var(--site-type, 1));
  color: var(--site-muted);
  line-height: 1.4;
}

.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-btn--inline {
  font-size: calc(13px * var(--site-type, 1));
  text-decoration: none;
  color: var(--site-accent);
  font-weight: 600;
}

.link-btn--inline:hover { text-decoration: underline; }

.product-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- tag pill ---------- */

.tag-pill {
  display: inline-block;
  background: var(--site-bg);
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: calc(12px * var(--site-type, 1));
  color: var(--site-muted);
}

.cell-strong { font-weight: 700; color: var(--brand-ink); }

/* ---------- tablet ---------- */

@media (min-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; }

  .stage-grid { grid-template-columns: repeat(2, 1fr); }

  .service-grid { grid-template-columns: repeat(2, 1fr); }

  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .catalog__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }

  .catalog__search { width: 300px; }

  .custom__inner { grid-template-columns: 1fr 1fr; align-items: start; }

  .custom__result { grid-column: 1 / -1; }

  .footer__inner { grid-template-columns: repeat(2, 1fr); }

  .hero__stats { gap: calc(32px * var(--site-space, 1)); }

  .factory-grid { grid-template-columns: repeat(2, 1fr); }

  .std-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- desktop ---------- */

@media (min-width: 1024px) {
  .nav { display: flex; }

  .hotline-btn { display: inline-flex; }

  .hero__inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: calc(36px * var(--site-space, 1)); }

  .hero h1 { font-size: calc(42px * var(--site-type, 1)); }

  .hero__figure img { aspect-ratio: 16 / 10; object-fit: cover; }

  .stage-grid { grid-template-columns: repeat(5, 1fr); }

  .service-grid { grid-template-columns: repeat(4, 1fr); }

  .catalog__layout { grid-template-columns: 230px 1fr; gap: calc(28px * var(--site-space, 1)); }

  .filters { position: sticky; top: 92px; }

  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .custom__inner { grid-template-columns: 1fr 1.1fr; }

  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }

  .mobile-bar { display: none; }

  .footer { margin-bottom: 0; }

  .sheet--product { display: grid; grid-template-columns: 1fr 1fr; width: min(880px, 92vw); }

  .product-detail { display: grid; grid-template-columns: 1fr 1fr; }

  .product-detail__media { aspect-ratio: auto; height: 100%; }

  .factory-grid { grid-template-columns: repeat(3, 1fr); }

  .std-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
