:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef4f5;
  --text: #172033;
  --muted: #667085;
  --line: #dbe3ea;
  --teal: #0f9f8e;
  --teal-dark: #08786c;
  --coral: #ef6b4a;
  --amber: #f6b33f;
  --ink: #263447;
  --shadow: 0 18px 40px rgba(23, 32, 51, 0.1);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 4%, rgba(15, 159, 142, 0.14), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 38rem);
  font-size: 16px;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

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

.topline {
  background: #101828;
  color: #f8fafc;
  font-size: 13px;
}

.topline-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topline-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #44d3bd;
  box-shadow: 0 0 0 5px rgba(68, 211, 189, 0.16);
  flex: 0 0 auto;
}

.topline-link {
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(219, 227, 234, 0.85);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: max-content minmax(220px, 1fr) max-content;
  align-items: center;
  gap: 18px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #11233a, #0f9f8e 70%, #f6b33f);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 18px;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}

.searchbar {
  height: 46px;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 38px;
  align-items: center;
  gap: 6px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.search-icon {
  color: var(--muted);
  display: inline-flex;
}

.searchbar input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.searchbar button,
.icon-button,
.primary-action,
.secondary-action,
.buy-button,
.submit-order,
.panel-title button,
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.searchbar button {
  width: 36px;
  height: 36px;
  background: var(--teal);
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  white-space: nowrap;
}

.hero-band {
  padding: 46px 0 28px;
}

.hero-grid {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: 42px;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 14px;
}

.hero-kicker span {
  width: 22px;
  height: 2px;
  background: var(--coral);
}

.hero-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  padding: 0 18px;
  font-weight: 700;
}

.primary-action {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 159, 142, 0.22);
}

.secondary-action {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.92), rgba(15, 159, 142, 0.86)),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(255, 255, 255, 0.06) 16px 17px);
  box-shadow: var(--shadow);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  content: "";
  inset: auto;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(-20deg);
}

.hero-visual::before {
  width: 260px;
  height: 120px;
  top: 22px;
  right: -78px;
}

.hero-visual::after {
  width: 220px;
  height: 160px;
  left: -70px;
  bottom: -28px;
}

.visual-card {
  position: absolute;
  width: 210px;
  min-height: 122px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.visual-card span {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.visual-card strong {
  margin-top: 16px;
  font-size: 24px;
}

.visual-card small {
  color: rgba(255, 255, 255, 0.78);
}

.visual-card-main {
  left: 42px;
  top: 46px;
  width: 250px;
  min-height: 150px;
  background: linear-gradient(135deg, rgba(239, 107, 74, 0.84), rgba(246, 179, 63, 0.66));
}

.visual-card-top {
  right: 32px;
  top: 88px;
}

.visual-card-bottom {
  right: 64px;
  bottom: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.quick-band {
  padding: 16px 0 28px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.quick-item {
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border-right: 1px solid var(--line);
}

.quick-item:last-child {
  border-right: 0;
}

.quick-item strong {
  font-size: 24px;
  color: var(--teal-dark);
}

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

.store-band {
  padding: 18px 0 70px;
}

.store-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.category-panel {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.panel-title {
  min-height: 56px;
  padding: 0 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.panel-title button {
  width: 32px;
  height: 32px;
  background: var(--surface-2);
  color: var(--muted);
}

.category-list {
  padding: 8px;
  display: grid;
  gap: 5px;
}

.category-button,
.mobile-category {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.category-button span,
.mobile-category span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-button small,
.mobile-category small {
  color: var(--muted);
  font-size: 12px;
}

.category-button.active,
.category-button:hover,
.mobile-category.active {
  background: #e9f8f5;
  color: var(--teal-dark);
}

.product-area {
  min-width: 0;
}

.section-head {
  min-height: 58px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-eyebrow,
.modal-eyebrow {
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.section-head h2,
.modal-head h3 {
  margin: 3px 0 0;
  font-size: 28px;
  line-height: 1.2;
}

.sort-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.sort-box select,
.checkout-form select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  padding: 0 10px;
}

.mobile-categories {
  display: none;
}

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

.product-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 146px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 159, 142, 0.36);
  box-shadow: var(--shadow);
}

.product-cover {
  position: relative;
  min-height: 146px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #14243a, #0f9f8e);
}

.product-cover::before {
  content: attr(data-code);
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
  font-size: 14px;
}

.product-cover::after {
  content: "";
  width: 116px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 54%, rgba(255, 255, 255, 0.18) 54% 56%, transparent 56%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
  transform: rotate(-8deg);
  box-shadow: 22px 20px 0 rgba(255, 255, 255, 0.12);
}

.cover-coral {
  background: linear-gradient(135deg, #ef6b4a, #f6b33f);
}

.cover-ink {
  background: linear-gradient(135deg, #172033, #65758d);
}

.cover-teal {
  background: linear-gradient(135deg, #08786c, #40c7af);
}

.cover-gold {
  background: linear-gradient(135deg, #7f5720, #f6b33f);
}

.cover-red {
  background: linear-gradient(135deg, #9d2332, #ef6b4a);
}

.cover-blue {
  background: linear-gradient(135deg, #295f8f, #40c7af);
}

.product-content {
  min-width: 0;
  min-height: 190px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 9px;
  padding: 14px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.product-category,
.stock-badge {
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}

.product-category {
  background: #e9f8f5;
  color: var(--teal-dark);
}

.stock-badge {
  background: #fff6e3;
  color: #8a5a11;
}

.stock-badge.low {
  background: #fff0ef;
  color: #a43d2c;
}

.product-card h3 {
  min-height: 48px;
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.product-card p {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.price {
  color: #d64d31;
  font-size: 22px;
}

.buy-button {
  min-width: 88px;
  min-height: 38px;
  padding: 0 12px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--muted);
}

.empty-state strong {
  color: var(--text);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 24, 40, 0.52);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.24);
}

.modal-small {
  width: min(520px, 100%);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: var(--surface-2);
  color: var(--muted);
}

.modal-head {
  padding: 24px 24px 14px;
  border-bottom: 1px solid var(--line);
}

.checkout-body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  padding: 20px 24px 24px;
}

.checkout-product {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.checkout-product .product-cover {
  min-height: 150px;
}

.checkout-summary {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.checkout-summary h4 {
  margin: 0;
  font-size: 20px;
}

.checkout-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.checkout-form,
.query-form {
  display: grid;
  gap: 14px;
}

.checkout-form label,
.query-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.checkout-form input,
.query-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--text);
  outline: 0;
}

.checkout-form input:focus,
.query-form input:focus,
.checkout-form select:focus,
.sort-box select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 159, 142, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 12px;
}

.price-line {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-line strong {
  color: #d64d31;
  font-size: 24px;
}

.submit-order {
  min-height: 46px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 800;
}

.order-result,
.query-result {
  margin: 0 24px 24px;
  padding: 14px;
  display: grid;
  gap: 10px;
  border: 1px solid #bde9df;
  border-radius: var(--radius);
  background: #edf9f6;
}

.query-form {
  padding: 20px 24px;
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.result-line strong {
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
}

.notice-list {
  padding: 18px 24px 24px;
  display: grid;
  gap: 12px;
}

.notice-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.notice-item strong {
  display: block;
  margin-bottom: 5px;
}

.notice-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr max-content;
  }

  .searchbar {
    grid-column: 1 / -1;
    order: 3;
    margin-bottom: 14px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 280px;
  }

  .store-layout {
    grid-template-columns: 1fr;
  }

  .category-panel {
    display: none;
  }

  .mobile-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
  }

  .mobile-category {
    width: auto;
    flex: 0 0 auto;
    min-width: 112px;
    border: 1px solid var(--line);
    background: #ffffff;
  }

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

  .checkout-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .topline-inner {
    min-height: 44px;
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text small {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-button {
    width: 42px;
    padding: 0;
  }

  .icon-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .hero-band {
    padding-top: 30px;
  }

  .hero-grid {
    gap: 26px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 250px;
  }

  .visual-card {
    width: 170px;
    min-height: 104px;
    padding: 13px;
  }

  .visual-card strong {
    font-size: 18px;
  }

  .visual-card-main {
    left: 18px;
    top: 30px;
    width: 196px;
  }

  .visual-card-top {
    right: 16px;
    top: 78px;
  }

  .visual-card-bottom {
    right: 30px;
    bottom: 22px;
  }

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

  .quick-item:nth-child(2) {
    border-right: 0;
  }

  .quick-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .sort-box {
    width: 100%;
    justify-content: space-between;
  }

  .sort-box select {
    flex: 1;
  }

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

  .product-card {
    grid-template-rows: 132px 1fr;
  }

  .product-cover {
    min-height: 132px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal {
    max-height: calc(100vh - 24px);
  }

  .modal-head,
  .checkout-body,
  .query-form,
  .notice-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .order-result,
  .query-result {
    margin-left: 16px;
    margin-right: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
