:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #60707f;
  --line: #dbe5e7;
  --surface: #ffffff;
  --soft: #f5f8f6;
  --mint: #0f766e;
  --mint-dark: #0a5b55;
  --coral: #d9634f;
  --gold: #b7791f;
  --sky: #2d6cdf;
  --shadow: 0 18px 50px rgba(25, 54, 61, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans SC",
    Arial,
    sans-serif;
  background: #fbfcfa;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

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

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

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

.site-header {
  min-height: auto;
  background: linear-gradient(180deg, #f5f8f6 0%, #fbfcfa 100%);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

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

.brand-logo {
  width: 68px;
  height: 58px;
  border: 1px solid rgba(219, 229, 231, 0.92);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.ghost-button,
.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border-radius: 8px;
  padding: 11px 16px;
  cursor: pointer;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 36px;
  align-items: center;
  min-height: 420px;
  padding: 30px 0 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy .eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  border-left: 4px solid var(--mint);
  padding-left: 12px;
  color: var(--mint-dark);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.25;
  text-transform: none;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  color: #2a3945;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 24px;
  color: #425261;
  font-size: 16px;
  line-height: 1.8;
}

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

.partner-badge {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 8px 12px 8px 8px;
  color: #7a4a10;
  font-weight: 800;
}

.partner-badge img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.primary-link,
.primary-button {
  border: 0;
  border-radius: 8px;
  background: var(--mint);
  color: #fff;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.hero-panel {
  display: grid;
  gap: 16px;
  border-radius: 8px;
  border: 1px solid rgba(219, 229, 231, 0.95);
  background: rgba(255, 255, 255, 0.9);
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-title {
  margin: 0;
  color: var(--mint-dark);
  font-size: 20px;
  font-weight: 800;
}

.panel-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #425261;
}

.panel-list li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  align-items: center;
}

.panel-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--coral);
}

.stats-band {
  width: min(1180px, calc(100% - 40px));
  margin: -24px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.stats-band div {
  min-height: 92px;
  display: grid;
  align-content: center;
  justify-items: center;
  background: #fff;
}

.stats-band strong {
  color: var(--mint-dark);
  font-size: 30px;
}

.stats-band span {
  color: var(--muted);
}

.catalog-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 52px auto 88px;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

h2 {
  margin: 0;
  font-size: 34px;
}

.search-box {
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
  color: var(--muted);
  font-size: 13px;
}

.search-box input,
.lead-modal input,
.lead-modal textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 12px 14px;
}

.search-box input:focus,
.lead-modal input:focus,
.lead-modal textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.category-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #40515f;
  padding: 9px 13px;
  cursor: pointer;
}

.category-tabs button[aria-selected="true"] {
  border-color: var(--mint);
  background: #e8f5f2;
  color: var(--mint-dark);
  font-weight: 700;
}

.result-meta {
  min-height: 28px;
  color: var(--muted);
  font-size: 14px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.pagination button {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 0 12px;
}

.pagination button[aria-current="page"] {
  border-color: var(--mint);
  background: var(--mint);
  color: #fff;
  font-weight: 800;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.pagination span {
  color: var(--muted);
  padding: 0 4px;
}

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

.product-card {
  display: grid;
  grid-template-rows: 220px auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 16px 36px rgba(25, 54, 61, 0.12);
}

.product-image {
  display: grid;
  place-items: center;
  background: #f7faf9;
  border-bottom: 1px solid var(--line);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  background: #eef6f3;
  color: var(--mint-dark);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.price {
  color: var(--coral);
  font-weight: 800;
  white-space: nowrap;
}

.product-card h3 {
  margin: 0;
  min-height: 54px;
  font-size: 18px;
  line-height: 1.5;
}

.model-line,
.lead-product {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.snippet {
  min-height: 72px;
  margin: 0;
  color: #52616f;
  font-size: 14px;
  line-height: 1.7;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.plain-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  cursor: pointer;
}

.interest-button {
  border: 0;
  border-radius: 8px;
  background: var(--mint);
  color: #fff;
  padding: 10px 12px;
  cursor: pointer;
}

.empty-state {
  margin-top: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 42px;
  text-align: center;
  color: var(--muted);
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  color: var(--ink);
  margin-bottom: 8px;
}

.modal {
  width: min(920px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(14, 28, 33, 0.42);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-product {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 560px;
}

.modal-product > img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 32px);
  object-fit: contain;
  background: #f6faf9;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.modal-copy {
  overflow: auto;
  padding: 34px 36px 36px;
}

.modal-copy h3,
.lead-modal h3 {
  margin: 12px 0 8px;
  font-size: 28px;
  line-height: 1.25;
}

.price-line {
  margin: 14px 0;
  color: var(--coral);
  font-size: 22px;
  font-weight: 800;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.detail-list span {
  border-left: 3px solid var(--gold);
  background: #fff8ec;
  padding: 9px 11px;
  color: #634614;
  line-height: 1.55;
}

.description {
  color: #41505f;
  white-space: pre-line;
  line-height: 1.8;
}

.lead-modal {
  width: min(480px, calc(100% - 28px));
}

.lead-modal form {
  display: grid;
  gap: 14px;
  padding: 34px;
}

.lead-modal label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.lead-modal textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 10;
  transform: translateX(-50%) translateY(20px);
  min-width: min(420px, calc(100% - 40px));
  border-radius: 8px;
  background: #14282d;
  color: #fff;
  padding: 13px 16px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-panel {
    max-width: 560px;
  }

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

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
    background: linear-gradient(180deg, #f5f8f6 0%, #fbfcfa 100%);
  }

  .nav {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
  }

  .nav-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .hero,
  .catalog-shell,
  .stats-band {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 24px 0 44px;
  }

  h1 {
    font-size: 42px;
  }

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

  .stats-band {
    grid-template-columns: 1fr;
    margin-top: -20px;
  }

  .catalog-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .product-card {
    grid-template-rows: 170px auto;
  }

  .product-body {
    padding: 13px;
  }

  .product-card h3 {
    min-height: auto;
    font-size: 16px;
  }

  .snippet {
    min-height: auto;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

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

  .modal-product > img {
    height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .modal-copy {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .brand small,
  .nav-actions a {
    display: none;
  }

  h1 {
    font-size: 36px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions > * {
    text-align: center;
  }

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

  .category-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
