:root {
  --ink: #17212b;
  --muted: #617080;
  --soft: #f5f8fb;
  --surface: #ffffff;
  --line: #dfe7ef;
  --coral: #f26a4f;
  --orange: #ff9f1c;
  --teal: #0e9f8f;
  --blue: #2b7de9;
  --green: #2a9d64;
  --yellow: #ffd166;
  --shadow: 0 18px 48px rgba(20, 32, 45, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

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

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

.topbar {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 6px 20px;
  color: #ffffff;
  background: #12283a;
  font-size: 14px;
  font-weight: 650;
}

.topbar span {
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(223, 231, 239, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--coral), var(--orange));
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

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

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #3b4854;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a:hover {
  background: #eef5f8;
  color: var(--teal);
}

.header-action,
.primary-btn,
.secondary-btn,
.quote-btn,
.ghost-btn,
.filter-chip,
.category-card {
  border: 0;
  cursor: pointer;
}

.header-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--teal);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(14, 159, 143, 0.22);
}

.header-action b {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #17313a;
  background: var(--yellow);
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: 520px;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(8, 21, 32, 0.88), rgba(8, 21, 32, 0.52) 48%, rgba(8, 21, 32, 0.16)),
    url("assets/yiwu-showroom-hero.png");
  background-position: center;
  background-size: cover;
}

.hero-inner {
  display: grid;
  min-height: 520px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
  gap: 28px;
  padding: 64px 28px 54px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--yellow);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1.04;
}

h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 900;
}

.primary-btn {
  color: #ffffff;
  background: var(--coral);
  box-shadow: 0 18px 34px rgba(242, 106, 79, 0.3);
}

.primary-btn:hover {
  background: #e8583f;
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.44);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

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

.market-panel {
  align-self: end;
  display: grid;
  max-width: 720px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.market-panel div {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.market-panel strong,
.market-panel span {
  display: block;
}

.market-panel strong {
  margin-bottom: 4px;
  color: var(--yellow);
  font-size: 30px;
}

.market-panel span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 750;
}

.category-band,
.products-section,
.quote-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 28px;
}

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

.section-head.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: grid;
  min-height: 138px;
  align-content: start;
  gap: 8px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  box-shadow: 0 10px 28px rgba(20, 32, 45, 0.05);
}

.category-card:hover,
.category-card.active {
  border-color: rgba(14, 159, 143, 0.32);
  background: #effbf9;
  transform: translateY(-1px);
}

.category-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--teal);
  background: #e7f7f4;
}

.category-card strong {
  font-size: 17px;
}

.category-card small {
  color: var(--muted);
  font-weight: 700;
}

.search-box {
  display: flex;
  width: min(380px, 100%);
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.search-box svg {
  color: var(--muted);
  flex: 0 0 auto;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-chip {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #334351;
  background: #ffffff;
  font-weight: 800;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--coral);
  color: #ffffff;
  background: var(--coral);
}

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

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(20, 32, 45, 0.07);
}

.product-card.is-hidden {
  display: none;
}

.product-photo {
  position: relative;
  min-height: 190px;
  margin: 0;
  aspect-ratio: 4 / 3;
  background-image: url("assets/product-sprite.png");
  background-repeat: no-repeat;
  background-size: 400% 200%;
}

.tile-1 {
  background-position: 0% 0%;
}

.tile-2 {
  background-position: 33.333% 0%;
}

.tile-3 {
  background-position: 66.666% 0%;
}

.tile-4 {
  background-position: 100% 0%;
}

.tile-5 {
  background-position: 0% 100%;
}

.tile-6 {
  background-position: 33.333% 100%;
}

.tile-7 {
  background-position: 66.666% 100%;
}

.tile-8 {
  background-position: 100% 100%;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.badge.blue {
  background: var(--blue);
}

.badge.green {
  background: var(--green);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.product-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius);
  color: #2a5260;
  background: #edf7fa;
  font-size: 12px;
  font-weight: 850;
}

.product-body p {
  flex: 1;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.price-row {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.price-row strong {
  color: var(--coral);
  font-size: 22px;
}

.price-row small {
  color: var(--muted);
  font-weight: 750;
}

.quote-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  color: #ffffff;
  background: #17212b;
  font-weight: 900;
}

.quote-btn:hover {
  background: var(--teal);
}

.empty-state {
  display: none;
  margin: 22px 0 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #ffffff;
}

.empty-state.show {
  display: block;
}

.service-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
  padding: 78px max(28px, calc((100vw - 1180px) / 2 + 28px));
  background: #102638;
  color: #ffffff;
}

.service-copy {
  max-width: 520px;
}

.service-copy p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-item {
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.service-item strong,
.service-item span {
  display: block;
}

.service-item strong {
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 20px;
}

.service-item span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

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

.quote-list-panel,
.quote-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(20, 32, 45, 0.06);
}

.quote-list-panel {
  position: sticky;
  top: 100px;
  overflow: hidden;
}

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

.quote-panel-head strong,
.quote-panel-head span {
  display: block;
}

.quote-panel-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.ghost-btn {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #ffffff;
  font-weight: 800;
}

.ghost-btn:hover {
  color: var(--coral);
  border-color: rgba(242, 106, 79, 0.34);
}

.quote-list {
  display: grid;
  max-height: 380px;
  overflow: auto;
}

.quote-placeholder {
  margin: 0;
  padding: 24px 18px;
  color: var(--muted);
  line-height: 1.7;
}

.quote-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

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

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

.qty-control {
  display: flex;
  width: 112px;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qty-control button {
  display: grid;
  width: 34px;
  place-items: center;
  border: 0;
  color: var(--ink);
  background: #f4f7fa;
  cursor: pointer;
}

.qty-control input {
  width: 44px;
  border: 0;
  border-inline: 1px solid var(--line);
  color: var(--ink);
  text-align: center;
  outline: 0;
}

.quote-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: #f7fafc;
}

.quote-total span {
  color: var(--muted);
  font-weight: 800;
}

.quote-total strong {
  color: var(--coral);
  font-size: 24px;
}

.quote-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

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

.quote-form label {
  display: grid;
  gap: 8px;
  color: #354351;
  font-weight: 850;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  outline: 0;
}

.quote-form input,
.quote-form select {
  min-height: 46px;
  padding: 0 12px;
}

.quote-form textarea {
  resize: vertical;
  min-height: 130px;
  padding: 12px;
  line-height: 1.6;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus,
.search-box:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 159, 143, 0.12);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 5vw;
  color: #ffffff;
  background: #12283a;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  font-weight: 850;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 16px;
  border-radius: var(--radius);
  color: #ffffff;
  background: #17212b;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .site-header {
    flex-wrap: wrap;
    padding: 14px 28px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .hero-inner {
    min-height: 500px;
  }

  h1 {
    font-size: 52px;
  }

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

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

  .service-band,
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .quote-list-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
  }

  .site-header {
    min-height: auto;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .header-action span {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 480px;
  }

  .hero {
    background-position: 58% center;
  }

  .hero-inner {
    padding: 48px 18px 36px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-text {
    font-size: 16px;
  }

  .market-panel div {
    padding: 12px 10px;
  }

  .market-panel strong {
    font-size: 22px;
  }

  .market-panel span {
    font-size: 12px;
  }

  .category-band,
  .products-section,
  .quote-section {
    padding: 52px 18px;
  }

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

  .category-grid,
  .product-grid,
  .service-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 112px;
  }

  .service-band {
    padding: 56px 18px;
  }

  .quote-form {
    padding: 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .site-nav a {
    padding-inline: 10px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
}
