:root {
  --ink: #132d42;
  --muted: #6d7e8d;
  --blue: #187cbe;
  --ice: #eaf2f8;
  --line: #dfe7ec;
  --paper: #f6f8fa;
  --danger: #a93434;
  --green: #217561;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #69bcef;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 36px;
}
h2 {
  font-size: 25px;
}
h3 {
  font-size: 17px;
}
img {
  max-width: 100%;
}
svg {
  display: block;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 13px;
  color: var(--ink);
  min-width: 0;
  max-width: 100%;
}
input[type="number"] {
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 86px;
}
.container {
  max-width: 1240px;
  padding: 0 36px;
  margin: auto;
}
.preview-banner {
  font-size: 12px;
  padding: 7px 18px;
  text-align: center;
  color: #526c80;
  background: #e7eff5;
}
.preview-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #357f9f;
  border-radius: 50%;
  vertical-align: 2px;
  margin-right: 7px;
}
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.header-main {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 38px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 21px;
  transform: skew(-9deg);
  border-radius: 4px;
}
.brand-name {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.8px;
  color: var(--muted);
  margin-top: 4px;
}
.search {
  display: flex;
  flex: 1;
  max-width: 455px;
  background: var(--paper);
  border: 1px solid #e6ebef;
  border-radius: 7px;
}
.search input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  padding: 11px 15px;
}
.search button {
  border: 0;
  background: none;
  padding: 0 15px;
  font-size: 19px;
  color: var(--muted);
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 25px;
  align-items: center;
  white-space: nowrap;
}
.count {
  border-radius: 20px;
  color: white;
  background: var(--blue);
  padding: 1px 6px;
  font-size: 10px;
  vertical-align: top;
}
.nav-row {
  display: flex;
  gap: 35px;
  height: 52px;
  align-items: stretch;
}
.nav-row a {
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  font-weight: 550;
}
.nav-row a.active {
  border-color: var(--blue);
  color: var(--blue);
}
.nav-row .nav-end {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.page {
  padding-top: 32px;
  padding-bottom: 65px;
  min-height: 60vh;
}
.hero {
  min-height: 395px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(110deg, #142b40, #1c4059);
  color: white;
  position: relative;
}
.hero-copy {
  padding: 46px 45px;
  position: relative;
  z-index: 2;
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 14px;
}
.hero .eyebrow {
  color: #7dcce9;
}
.hero h1 {
  font-size: 46px;
  letter-spacing: -2px;
  line-height: 1.25;
  margin: 0 0 19px;
}
.hero p:not(.eyebrow) {
  color: #b7c9d7;
  font-size: 14px;
  max-width: 330px;
}
.hero .button {
  margin-top: 10px;
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 330px;
  background: radial-gradient(ellipse at center, #4c8d9a55, transparent 70%);
}
.hero-art:before,
.hero-art:after {
  content: "";
  position: absolute;
  width: 120%;
  height: 1px;
  background: #8bd6eb44;
  transform: rotate(-20deg);
  left: -30px;
  top: 65%;
}
.hero-art:after {
  top: 80%;
  background: #8bd6eb22;
}
.hero-art img {
  width: 115%;
  max-width: none;
  transform: rotate(-12deg);
  filter: drop-shadow(10px 30px 20px #07111f80);
  position: relative;
  z-index: 1;
}
.hero-number {
  position: absolute;
  font-size: 140px;
  font-weight: 850;
  color: #ffffff06;
  letter-spacing: -15px;
  top: 10px;
  right: 32px;
}
.hero-caption {
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #99b9cc;
  z-index: 3;
}
.assurance {
  display: flex;
  gap: 20px;
  justify-content: space-around;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  color: #546c7d;
  font-size: 12px;
}
.assurance b {
  color: #2d6c92;
  margin-right: 9px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 20px;
  gap: 10px;
}
.section-head h2 {
  margin: 0;
}
.section-head a {
  color: var(--muted);
  font-size: 13px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 13px;
}
.category-card {
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 12px 18px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: #8db9d4;
}
.category-card img {
  width: 106px;
  height: 75px;
  object-fit: contain;
  margin-bottom: 9px;
}
.category-card span {
  font-weight: 600;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  background: white;
  border: 1px solid #e4e9ed;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.product-card:hover {
  box-shadow: 0 8px 30px #12304a12;
  transform: translateY(-3px);
}
.product-picture {
  height: 210px;
  background: linear-gradient(140deg, #f2f5f7, #e9eef3);
  position: relative;
  display: grid;
  place-items: center;
}
.product-art {
  object-fit: contain;
  width: 100%;
  height: 100%;
  padding: 20px;
}
.product-picture .product-art {
  transition: transform 0.25s;
}
.product-card:hover .product-art {
  transform: scale(1.05);
}
.product-label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  padding: 2px 8px;
  background: #fff9;
  border-radius: 4px;
  color: #607688;
}
.product-info {
  padding: 17px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-info h3 {
  font-size: 15px;
  margin-bottom: 6px;
}
.product-info .muted {
  font-size: 12px;
  margin-bottom: 15px;
}
.price {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.add-icon {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: var(--blue);
}
.editorial {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin-top: 35px;
}
.editorial article {
  background: #e7eef3;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.editorial article:nth-child(2) {
  background: #dce9ee;
}
.editorial h3 {
  font-size: 24px;
  margin: 6px 0 10px;
}
.editorial p {
  max-width: 75%;
  color: #617989;
}
.editorial a {
  font-weight: 600;
  font-size: 13px;
}
.editorial .big-code {
  position: absolute;
  right: 20px;
  bottom: -22px;
  font-size: 95px;
  font-weight: 900;
  color: #b8cdd957;
}
.footer {
  background: white;
  border-top: 1px solid var(--line);
  padding: 33px 0;
  color: #62798b;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}
.footer p {
  font-size: 12px;
  margin: 8px 0;
}
.footer .brand {
  color: var(--ink);
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 20px;
  font-weight: 550;
  background: white;
  color: var(--ink);
  text-decoration: none;
  min-height: 42px;
}
.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.button.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.button.danger {
  color: var(--danger);
  border-color: #e8c7c7;
}
.button.small {
  font-size: 12px;
  padding: 7px 12px;
  min-height: 32px;
}
.button.full {
  width: 100%;
}
.text-button {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 10px 0;
}
.icon-button {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 25px;
  padding: 0 5px;
}
.crumb {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 25px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 26px;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 19px;
  background: white;
  display: inline-block;
  font-size: 13px;
}
.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.catalog-heading h1 {
  font-size: 30px;
  margin-bottom: 3px;
}
.sort {
  display: flex;
  gap: 8px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.detail-image {
  background: linear-gradient(145deg, #edf2f6, #e1e9ef);
  border-radius: 12px;
  position: relative;
  height: 485px;
}
.detail-image .product-art {
  padding: 35px;
}
.detail-image p {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: #7891a3;
}
.detail-info h1 {
  font-size: 30px;
  margin-bottom: 14px;
}
.detail-info .price {
  font-size: 32px;
  margin: 22px 0;
}
.spec-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 10px 0 20px;
}
.spec-option {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 15px;
  min-width: 55px;
}
.spec-option.selected {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
  background: #edf7ff;
}
.quantity {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 130px;
  background: white;
  overflow: hidden;
  align-items: center;
}
.quantity button {
  border: 0;
  background: white;
  font-size: 20px;
  width: 37px;
  height: 41px;
}
.quantity input {
  border: 0;
  width: 54px;
  text-align: center;
  padding: 7px 0;
  appearance: textfield;
}
.quantity input::-webkit-inner-spin-button {
  appearance: none;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}
.cta-row {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}
.cta-row .button {
  flex: 1;
}
.info-box {
  padding: 17px 20px;
  background: #eef4f8;
  border-radius: 8px;
  font-size: 12px;
  color: #5b7486;
}
.notice {
  border: 1px solid #d6e5ef;
  background: #edf5fa;
  padding: 15px 18px;
  border-radius: 8px;
  font-size: 13px;
  color: #486e87;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 18px;
}
.panel h2 {
  font-size: 19px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.summary {
  position: sticky;
  top: 20px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 13px 0;
  color: #5d7484;
}
.summary-line.total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}
.cart-line {
  display: grid;
  grid-template-columns: 85px 1fr 130px 100px 24px;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child {
  border: 0;
}
.cart-line img {
  height: 80px;
  background: var(--paper);
  border-radius: 6px;
  padding: 4px;
}
.cart-line h3 {
  font-size: 14px;
  margin-bottom: 6px;
}
.cart-line .price {
  font-size: 17px;
  text-align: right;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
  font-size: 13px;
}
.field > span {
  font-weight: 550;
}
.field small {
  font-weight: 400;
  color: var(--muted);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.fields .wide {
  grid-column: 1/-1;
}
.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}
.order-head {
  padding: 15px 22px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  background: #f1f5f8;
  border-bottom: 1px solid var(--line);
}
.badge {
  font-size: 11px;
  border-radius: 5px;
  display: inline-block;
  background: #e7f2fa;
  color: #2978a7;
  padding: 3px 9px;
  white-space: nowrap;
}
.badge.warn {
  background: #fff1d9;
  color: #96711c;
}
.badge.good {
  background: #e8f4ee;
  color: #298064;
}
.order-body {
  padding: 5px 22px 19px;
}
.order-line {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
}
.order-line img {
  width: 65px;
  height: 65px;
  padding: 5px;
  background: #f1f5f8;
  border-radius: 6px;
}
.order-line h3 {
  font-size: 14px;
  margin: 0 0 3px;
}
.order-line .line-end {
  margin-left: auto;
  text-align: right;
}
.order-foot {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.order-foot .amount {
  margin-right: auto;
}
.empty {
  text-align: center;
  padding: 75px 20px;
  background: white;
  border: 1px dashed #cedce5;
  border-radius: 12px;
}
.empty-mark {
  font-size: 45px;
  color: #b9cbd8;
  margin: 0 0 18px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  margin: 30px 0;
}
.form-error {
  color: var(--danger);
  margin: 12px 0 0;
  font-size: 13px;
}
.auth-card {
  background: white;
  border: 1px solid var(--line);
  max-width: 440px;
  padding: 35px;
  border-radius: 12px;
  margin: 25px auto;
}
.auth-card h1 {
  font-size: 27px;
}
.demo-login {
  background: #f0f5f8;
  margin-top: 20px;
  padding: 14px;
  border-radius: 8px;
  font-size: 12px;
}
.demo-login p {
  margin: 4px 0 10px;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
.skeleton {
  min-height: 320px;
  background: linear-gradient(90deg, #eaf0f4, #f4f7f9, #eaf0f4);
  border-radius: 10px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #163248;
  color: white;
  border-radius: 9px;
  padding: 13px 25px;
  max-width: 90%;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 0;
  border-radius: 13px;
  box-shadow: 0 24px 100px #15324944;
  padding: 26px;
  max-width: min(620px, calc(100vw - 24px));
  width: 580px;
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #142d4266;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font-size: 22px;
  margin: 0;
}
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  margin: 15px 0;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 0;
  z-index: 200;
  background: white;
  padding: 10px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #142c40;
  color: #bdd0df;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  color: white;
  margin: 0 0 34px 6px;
}
.sidebar .brand-mark {
  background: #248bc1;
}
.sidebar .brand-name {
  font-size: 21px;
}
.sidebar .brand small {
  color: #8ca7bc;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sidebar nav a {
  padding: 11px 16px;
  border-radius: 7px;
  font-size: 13px;
}
.sidebar nav a.active {
  background: #274860;
  color: white;
}
.sidebar-foot {
  margin-top: auto;
  padding: 35px 10px 0;
  font-size: 12px;
  color: #8ca7bc;
}
.workspace {
  min-width: 0;
}
.workspace-head {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 20px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.workspace-main {
  max-width: 1400px;
  padding: 30px 35px;
}
.workspace-main h1 {
  font-size: 27px;
  margin-bottom: 6px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 24px 0;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 23px;
}
.metric .value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
}
.metric p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 18px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
th {
  background: #f1f5f8;
  color: #6f8391;
  font-weight: 500;
  padding: 14px 18px;
}
td {
  padding: 16px 18px;
  border-top: 1px solid #edf1f4;
}
td .product-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 350px;
}
td .product-mini img {
  width: 50px;
  height: 50px;
  padding: 3px;
  background: var(--paper);
  border-radius: 5px;
}
.row-actions {
  display: flex;
  gap: 8px;
}
.wide-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.admin-orders .order-card {
  max-width: 100%;
}
.admin-orders .order-body {
  padding: 17px 22px;
}
.admin-line {
  display: grid;
  grid-template-columns: 1fr 85px;
  gap: 20px;
  margin: 12px 0;
}
.admin-line input {
  padding: 7px;
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px 0;
}
.toolbar input {
  min-width: 230px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.guide-grid article {
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.guide-grid b {
  font-size: 28px;
  color: #a6c7da;
}
.details-list {
  margin: 20px 0;
}
.details-list div {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.mobile-nav {
  display: none;
}
@media (min-width: 1500px) {
  .container {
    max-width: 1340px;
  }
  .hero {
    min-height: 430px;
  }
  .hero-copy {
    padding: 52px 55px;
  }
  .hero h1 {
    font-size: 50px;
  }
}
@media (max-width: 1000px) {
  .header-main {
    gap: 20px;
  }
  .header-actions {
    gap: 15px;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail-grid {
    gap: 25px;
  }
  .detail-image {
    height: 400px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-copy {
    padding: 35px;
  }
  .two-col {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .cart-line {
    grid-template-columns: 65px 1fr 110px;
    gap: 12px;
  }
  .cart-line .price {
    grid-column: 2;
    text-align: left;
  }
  .cart-line .remove {
    grid-column: 3;
    justify-self: end;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .container {
    padding: 0 18px;
  }
  .preview-banner {
    font-size: 10px;
    padding: 6px 10px;
  }
  .header-main {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .brand-mark {
    width: 33px;
    height: 33px;
    font-size: 18px;
  }
  .brand-name {
    font-size: 21px;
  }
  .brand small {
    font-size: 7px;
  }
  .header-actions {
    font-size: 12px;
    gap: 16px;
  }
  .header-actions .desktop {
    display: none;
  }
  .search {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }
  .search input {
    padding: 9px 12px;
    font-size: 13px;
  }
  .nav-row {
    gap: 25px;
    height: 43px;
    font-size: 12px;
    overflow: auto;
    white-space: nowrap;
  }
  .nav-row .nav-end {
    display: none;
  }
  .page {
    padding-top: 20px;
    padding-bottom: 35px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 455px;
  }
  .hero-copy {
    padding: 28px 25px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p:not(.eyebrow) {
    font-size: 12px;
    max-width: 245px;
  }
  .hero-art {
    position: absolute;
    width: 260px;
    height: 210px;
    min-height: 0;
    right: -10px;
    bottom: 0;
    opacity: 0.9;
  }
  .hero-art img {
    transform: rotate(-15deg);
  }
  .hero-caption {
    font-size: 8px;
    right: 12px;
    bottom: 16px;
  }
  .hero-number {
    font-size: 100px;
  }
  .hero-copy .button {
    font-size: 12px;
    padding: 10px 15px;
    position: relative;
    z-index: 3;
  }
  .assurance {
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
    padding: 16px 0;
    margin-bottom: 20px;
  }
  .assurance b {
    margin-right: 4px;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .category-card {
    padding: 10px 8px 13px;
    font-size: 12px;
  }
  .category-card img {
    height: 60px;
    width: 85px;
  }
  .section-head {
    margin: 24px 0 15px;
  }
  .section-head h2 {
    font-size: 21px;
  }
  .section-head a {
    font-size: 11px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-picture {
    height: 150px;
  }
  .product-art {
    padding: 10px;
  }
  .product-label {
    font-size: 9px;
    left: 9px;
    top: 9px;
  }
  .product-info {
    padding: 12px;
  }
  .product-info h3 {
    font-size: 13px;
  }
  .product-info .muted {
    font-size: 10px;
    margin-bottom: 9px;
  }
  .price {
    font-size: 18px;
  }
  .price small {
    font-size: 9px;
  }
  .editorial {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }
  .editorial article {
    padding: 24px;
  }
  .editorial h3 {
    font-size: 21px;
  }
  .editorial p {
    font-size: 12px;
  }
  .footer {
    padding: 25px 0;
  }
  .footer-content {
    display: block;
  }
  .footer-links {
    margin: 20px 0;
  }
  .catalog-heading {
    align-items: flex-start;
  }
  .catalog-heading h1 {
    font-size: 25px;
  }
  .sort {
    font-size: 11px;
  }
  .sort select {
    max-width: 110px;
    padding: 7px;
  }
  .chip {
    padding: 6px 12px;
    font-size: 12px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-image {
    height: 330px;
  }
  .detail-info h1 {
    font-size: 27px;
  }
  .detail-info .price {
    margin: 15px 0;
    font-size: 29px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }
  .panel {
    padding: 18px;
  }
  .cart-line {
    grid-template-columns: 65px minmax(0, 1fr) 95px;
    gap: 9px;
  }
  .quantity {
    width: 95px;
  }
  .quantity button {
    width: 28px;
  }
  .quantity input {
    width: 39px;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .auth-card {
    padding: 24px;
    margin: 8px 0;
  }
  .order-head {
    padding: 12px 15px;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 6px;
  }
  .order-body {
    padding: 3px 15px 15px;
  }
  .order-line img {
    width: 50px;
    height: 50px;
  }
  .order-line h3 {
    font-size: 12px;
  }
  .order-line .muted {
    font-size: 10px;
  }
  .order-foot {
    font-size: 12px;
  }
  .order-foot .amount {
    width: 100%;
  }
  .order-foot .button {
    font-size: 11px;
    min-height: 34px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .footer .brand-name {
    font-size: 20px;
  }
  .admin-layout {
    display: block;
  }
  .sidebar {
    padding: 14px;
  }
  .sidebar .brand {
    margin: 0 0 14px;
  }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 5px;
    white-space: nowrap;
  }
  .sidebar nav a {
    padding: 8px 12px;
  }
  .sidebar-foot {
    display: none;
  }
  .workspace-head {
    padding: 14px 18px;
    font-size: 12px;
  }
  .workspace-main {
    padding: 20px 16px;
  }
  .workspace-main h1 {
    font-size: 24px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric .value {
    font-size: 26px;
  }
  .wide-title {
    align-items: flex-start;
  }
  .wide-title .button {
    font-size: 12px;
    padding: 8px 12px;
  }
  dialog {
    padding: 20px;
  }
  .notice {
    font-size: 12px;
  }
  .loading {
    padding: 50px 20px;
  }
}

/* Consumer shopping flow */
.card-brand {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin: 0 0 6px;
}
.card-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 14px;
}
.stock-tag {
  font-size: 10px;
  color: #83909a;
  background: #f1f3f5;
  padding: 2px 6px;
  border-radius: 3px;
}
.stock-tag.available {
  color: #346b60;
  background: #eaf5f0;
}
.card-buy {
  margin-top: 14px;
  width: 100%;
  padding: 9px 8px;
  font-size: 12px;
  background: #eff5f9;
  border-color: #d9e6ef;
  color: #244d69;
}
.card-buy:hover {
  background: #daeaf5;
}
.card-buy:disabled {
  background: #f3f4f5;
  color: #909aa1;
}
.catalog-taxonomy {
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  padding-bottom: 6px;
  gap: 8px;
  margin-bottom: 12px;
}
.catalog-taxonomy .chip {
  flex-shrink: 0;
}
.filter-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 16px 0;
}
.filter-panel summary {
  cursor: pointer;
  font-size: 13px;
  padding: 14px 18px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.filter-panel[open] summary span {
  transform: rotate(45deg);
}
#catalog-filter {
  padding: 0 18px 16px;
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}
#catalog-filter label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  flex: 1;
  min-width: 180px;
}
#catalog-filter select,
#catalog-filter input,
.catalog-toolbar select {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  padding: 9px 10px;
  color: var(--ink);
  font: inherit;
}
.price-range {
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.price-range legend {
  font-size: 12px;
  margin-bottom: 6px;
}
.price-range input {
  width: 120px;
  min-width: 0;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}
.active-filters a {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #e3edf4;
  color: #385e78;
}
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}
.catalog-toolbar .check-line {
  margin: 0;
  font-size: 12px;
  align-items: center;
}
.catalog-toolbar .sort {
  font-size: 12px;
  white-space: nowrap;
}
.quick-product {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0 20px;
}
.quick-product img {
  width: 100px;
  height: 90px;
  padding: 5px;
  border-radius: 8px;
  background: var(--paper);
}
.quick-product h3 {
  font-size: 18px;
  margin: 2px 0 4px;
}
.quick-product p {
  margin: 0;
}
.quick-product .text-button {
  font-size: 12px;
  padding: 0;
}
.purchase-facts {
  background: #f2f6f9;
  border-radius: 7px;
  padding: 14px 16px;
  font-size: 12px;
  margin: 12px 0 20px;
}
.purchase-facts > div {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  gap: 12px;
  margin: 7px 0;
}
.purchase-facts span {
  color: var(--muted);
}
.purchase-facts strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.purchase-panel .spec-option:disabled {
  opacity: 0.45;
  text-decoration: line-through;
  cursor: not-allowed;
}
.purchase-panel .qty-row {
  margin-top: 15px;
}
.purchase-help {
  line-height: 1.7;
  margin-top: 14px;
}
.product-description {
  margin-top: 30px;
}
.product-description summary {
  cursor: pointer;
  font-weight: 600;
  margin-top: 15px;
}
.cart-select-all {
  margin-top: 0;
  display: flex;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.cart-choice {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-choice img {
  width: 64px;
}
.cart-choice input,
.cart-select-all input,
.catalog-toolbar input {
  width: 17px;
  height: 17px;
  accent-color: #315f7b;
  flex-shrink: 0;
}
.checkout-steps {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 10px 0 26px;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: white;
  font-size: 12px;
}
.checkout-steps li {
  flex: 1;
  text-align: center;
  padding: 12px 6px;
  color: var(--muted);
}
.checkout-steps .current {
  background: #e5eff6;
  color: #244d69;
  font-weight: 600;
}
.mobile-tabs {
  display: none;
}
@media (max-width: 700px) {
  body:not(.admin) {
    padding-bottom: calc(65px + env(safe-area-inset-bottom));
  }
  body:not(.admin) .header-main {
    gap: 9px;
    padding-top: 10px;
    padding-bottom: 10px;
    justify-content: space-between;
  }
  body:not(.admin) .header-main .brand small {
    display: none;
  }
  body:not(.admin) .header-actions {
    gap: 11px;
    font-size: 11px;
  }
  body:not(.admin) .header-main .brand {
    gap: 7px;
  }
  body:not(.admin) .header-main .brand-name {
    font-size: 19px;
    letter-spacing: 2px;
  }
  .header .nav-row {
    gap: 20px;
  }
  .catalog-heading .eyebrow {
    display: none;
  }
  .catalog-heading h1 {
    font-size: 24px;
    margin-bottom: 6px;
  }
  .catalog-heading p {
    margin-bottom: 10px;
  }
  .filter-panel {
    margin: 10px 0;
  }
  #catalog-filter {
    gap: 12px;
  }
  #catalog-filter label {
    width: 100%;
    min-width: 0;
  }
  .price-range {
    width: 100%;
  }
  .price-range input {
    width: calc(50% - 15px);
  }
  .catalog-toolbar {
    margin: 14px 0;
  }
  .catalog-toolbar select {
    padding: 8px 4px;
    font-size: 12px;
    max-width: 130px;
  }
  .card-brand {
    font-size: 9px;
    line-height: 1.5;
  }
  .card-variants {
    font-size: 10px;
    margin-bottom: 9px;
  }
  .card-buy {
    font-size: 10px;
    padding: 9px 2px;
    margin-top: 10px;
  }
  .product-info .price {
    font-size: 17px;
  }
  .product-info {
    padding: 10px;
  }
  .product-picture {
    height: 145px;
  }
  .mobile-tabs {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e1e8ee;
    z-index: 30;
    padding: 6px 0 calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px #1b3a4f06;
  }
  .mobile-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    position: relative;
    color: #7b8d9a;
  }
  .mobile-tabs a > span {
    font-size: 22px;
    height: 26px;
    line-height: 26px;
  }
  .mobile-tabs a.active {
    color: #225776;
    font-weight: 700;
  }
  .mobile-tabs b {
    position: absolute;
    top: 0;
    left: 57%;
    font-size: 9px;
    background: #2e6488;
    color: white;
    border-radius: 10px;
    min-width: 15px;
    text-align: center;
    line-height: 15px;
  }
  .cart-line {
    grid-template-columns: 75px minmax(0, 1fr) 22px;
    gap: 10px;
  }
  .cart-line .cart-choice {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    margin-top: 3px;
    gap: 5px;
  }
  .cart-choice img {
    width: 52px;
    height: 65px;
  }
  .cart-line > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .cart-line .quantity {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  .cart-line .price {
    grid-column: 2;
    grid-row: 3;
    text-align: left;
  }
  .cart-line .remove {
    grid-column: 3;
    grid-row: 1;
  }
  .cart-line .small {
    font-size: 11px;
  }
  .purchase-actions {
    position: sticky;
    bottom: 65px;
    background: white;
    padding: 10px 0;
    margin-top: 15px;
    z-index: 5;
  }
  dialog .purchase-actions {
    bottom: 0;
    position: sticky;
  }
  .quick-product h3 {
    font-size: 16px;
  }
  .quick-product img {
    width: 78px;
    height: 78px;
  }
  .quick-product {
    gap: 10px;
  }
  .purchase-panel .price {
    font-size: 24px;
  }
  .purchase-facts {
    padding: 12px;
    font-size: 11px;
  }
  .checkout-steps {
    font-size: 11px;
  }
}
/* Keep the first product row within easy reach. */
.catalog-heading .eyebrow {
  display: none;
}
.catalog-heading {
  margin-bottom: 18px;
}
.catalog-heading h1 {
  margin: 0 0 6px;
}
.catalog-heading p {
  margin: 0;
}
.page:has(.catalog-heading) .crumb {
  margin-bottom: 18px;
}
.page:has(.catalog-heading) .filters {
  margin-top: 0;
  margin-bottom: 8px;
}
@media (min-width: 701px) {
  .filter-panel summary {
    padding: 10px 16px;
  }
  #catalog-filter {
    padding: 0 16px 12px;
  }
  #catalog-filter label {
    flex: 1;
    max-width: 320px;
  }
}
@media (max-width: 700px) {
  .page:has(.catalog-heading) .crumb {
    margin-bottom: 13px;
  }
  .catalog-heading {
    margin-bottom: 14px;
  }
}

/* Separate specification dimensions, shared on detail and quick purchase. */
.variant-axis {border:0;padding:0;margin:20px 0;min-width:0}
.variant-axis legend {font-weight:700;margin-bottom:10px;display:flex;gap:12px;align-items:center}
.variant-axis .spec-options {margin:0;gap:8px}
.spec-option small {display:block;font-size:11px;margin-top:3px;font-weight:400}
.spec-option small:empty {display:none}
.spec-option:disabled {opacity:.5;cursor:not-allowed;background:#f4f5f7;border-style:dashed}
.selection-summary {display:flex;align-items:start;justify-content:space-between;gap:12px;padding:14px 16px;background:#edf5fa;border-radius:12px;margin-top:18px}
.selection-summary p {margin:0;line-height:1.7;font-size:14px;font-weight:600}
.selection-summary button {white-space:nowrap;flex-shrink:0}
.spec-editor {border:1px solid var(--line,#dde3e9);border-radius:12px;background:#f7fafc;padding:16px;margin:18px 0}
.spec-editor .section-head {margin:0 0 8px;gap:8px}
.spec-editor-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;gap:12px;align-items:center}
.spec-editor-row .field {min-width:0}
.product-form input[readonly] {background:#edf0f4;color:#536071}
@media(max-width:600px){.spec-editor {padding:12px}.spec-editor-row{gap:8px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.spec-editor-row input{padding:10px 8px}.selection-summary{padding:12px;flex-wrap:wrap}}

.helmet-fit {background:#f7f9fb;border:1px solid #dce5ed;border-radius:12px;padding:16px;margin:18px 0}
.helmet-fit h3 {margin-top:0}.helmet-fit input {max-width:260px}
.helmet-fit-result {font-size:14px;line-height:1.7;padding:12px;background:#fff;border-left:3px solid #247497}
.helmet-parameters {margin-top:18px}.helmet-parameters h4,.helmet-editor h4 {margin:20px 0 10px}
.helmet-parameters dl {margin:0}.helmet-parameters dl>div {display:grid;grid-template-columns:40% 1fr;border-bottom:1px solid #e4e9ed;gap:10px;padding:9px 0;font-size:13px;line-height:1.6}
.helmet-parameters dt {color:#61707c}.helmet-parameters dd {margin:0;overflow-wrap:anywhere}
.helmet-editor {margin:20px 0;border-top:1px solid #dce5ed;padding-top:14px}
.helmet-fit .table-wrap {margin-top:12px}.helmet-fit td,.helmet-fit th {font-size:12px;padding:9px;white-space:normal;min-width:85px}

/* ---- 2026-11-02 图片上传/图集/划线价 ---- */
.was-price{color:#8a9aa6;font-size:.75em;font-weight:400;margin-left:6px}
.img-editor{margin:12px 0}
.img-list{list-style:none;margin:8px 0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.img-list li{width:110px;border:1px solid #d5dee6;border-radius:10px;padding:6px;background:#fff}
.img-list img{width:100%;height:84px;object-fit:cover;border-radius:6px;display:block}
.img-list li:first-child::before{content:"封面";display:block;font-size:11px;color:#1a73a8;margin-bottom:2px}
.img-actions{display:flex;justify-content:space-between;margin-top:4px}
.img-add{cursor:pointer;display:inline-block}
.detail-image .gallery{display:flex;flex-direction:column;height:100%}
.gallery-main{flex:1;min-height:0}
.gallery-main .product-art{height:100%}
.gallery-thumbs{display:flex;gap:8px;padding:8px 12px 12px;overflow-x:auto}
.gallery-thumbs button{flex:0 0 auto;width:56px;height:56px;border:2px solid transparent;border-radius:8px;background:#fff;padding:0;cursor:pointer}
.gallery-thumbs button.active{border-color:#1a73a8}
.gallery-thumbs img{width:100%;height:100%;object-fit:cover;border-radius:6px;display:block}
.detail-image .gallery ~ p{display:none}
