:root {
  --navy: #173552;
  --navy-deep: #102c45;
  --orange: #d7672b;
  --ink: #25364a;
  --muted: #6c7888;
  --line: #e5e9ef;
  --soft: #f3f5f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f5f7f9;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

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

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

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

.detail-topbar {
  border-bottom: 1px solid #e8ecf0;
  background: #f7f8fa;
  color: #788391;
  font-size: 11px;
}

.detail-topbar .detail-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

.detail-header {
  border-bottom: 1px solid #e4e8ee;
  background: #fff;
}

.detail-header .detail-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 88px;
}

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

.detail-brand img {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.detail-brand span {
  display: grid;
  gap: 4px;
}

.detail-brand strong {
  color: var(--navy);
  font-size: 17px;
}

.detail-brand small {
  color: #929aa5;
  font-size: 9px;
  letter-spacing: 0.11em;
}

.detail-nav {
  display: flex;
  gap: 28px;
  color: #526173;
  font-size: 12px;
}

.detail-nav a:hover {
  color: var(--orange);
}

.detail-breadcrumb {
  padding: 22px 0;
  color: #7f8995;
  font-size: 11px;
}

.product-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 46px;
  padding: 40px;
  border: 1px solid var(--line);
  background: #fff;
}

.detail-image-wrap {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #e8ebef;
}

.detail-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.detail-image-wrap span {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 11px;
  border-radius: 4px;
  background: rgba(16, 44, 69, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.detail-summary {
  padding: 8px 0;
}

.detail-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 4px;
  background: #eaf5ef;
  color: #3c7557;
  font-size: 9px;
  font-weight: 700;
}

.detail-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #57a676;
  content: "";
}

.detail-summary h1 {
  margin: 22px 0 0;
  color: var(--navy);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.28;
  letter-spacing: -0.04em;
}

.detail-code {
  margin: 10px 0 0;
  color: #9aa2ac;
  font-size: 10px;
}

.detail-price {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-top: 28px;
  padding: 22px;
  background: #fff7f2;
}

.detail-price span {
  color: #7b8693;
  font-size: 11px;
}

.detail-price strong {
  color: var(--orange);
  font-size: 25px;
}

.detail-fields {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-field {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.detail-field span {
  color: #929aa5;
}

.detail-field strong {
  color: #3f4f61;
  font-weight: 650;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #d8dee5;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.detail-actions a:first-child {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.detail-note {
  margin: 14px 0 0;
  color: #949da7;
  font-size: 9px;
  line-height: 1.7;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px;
  margin-top: 22px;
  margin-bottom: 86px;
}

.detail-main,
.supplier-card {
  border: 1px solid var(--line);
  background: #fff;
}

.detail-section {
  padding: 34px;
  border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-section h2,
.related-products h2 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
}

.detail-section > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
}

.spec-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.spec-table div {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-table span,
.spec-table strong {
  padding: 13px;
  font-size: 10px;
}

.spec-table span {
  background: #f7f8fa;
  color: #858f9b;
}

.spec-table strong {
  color: #445568;
  font-weight: 600;
}

.process-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.process-mini div {
  padding: 17px;
  background: #f6f8fa;
}

.process-mini b {
  color: var(--orange);
  font-size: 10px;
}

.process-mini span {
  display: block;
  margin-top: 9px;
  color: #425367;
  font-size: 11px;
  font-weight: 700;
}

.supplier-card {
  align-self: start;
  padding: 26px;
}

.supplier-card > span {
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.supplier-card h2 {
  margin: 13px 0 0;
  color: var(--navy);
  font-size: 17px;
}

.supplier-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.supplier-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.supplier-badges span {
  padding: 6px 8px;
  border-radius: 4px;
  background: #edf3f7;
  color: #49657b;
  font-size: 9px;
}

.supplier-card a {
  display: block;
  margin-top: 22px;
  padding: 12px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.related-products {
  grid-column: 1 / -1;
  padding-top: 42px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.related-grid a {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.related-grid img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
}

.related-grid div {
  padding: 16px;
}

.related-grid span {
  color: #9aa2ac;
  font-size: 9px;
}

.related-grid h3 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 13px;
}

.detail-footer {
  background: #111f2d;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
}

.detail-footer .detail-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.detail-footer div div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.not-found {
  padding: 120px 20px;
  text-align: center;
}

@media (max-width: 900px) {
  .product-detail-card,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-image-wrap,
  .detail-image-wrap img {
    min-height: 380px;
  }

  .supplier-card {
    grid-row: auto;
  }

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

@media (max-width: 620px) {
  .detail-shell {
    width: calc(100% - 28px);
  }

  .detail-topbar .detail-shell {
    justify-content: center;
  }

  .detail-topbar a,
  .detail-nav {
    display: none;
  }

  .detail-header .detail-shell {
    min-height: 76px;
  }

  .product-detail-card {
    gap: 26px;
    padding: 18px;
  }

  .detail-image-wrap,
  .detail-image-wrap img {
    min-height: 300px;
  }

  .detail-actions,
  .detail-footer .detail-shell {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-footer .detail-shell {
    justify-content: center;
    min-height: 110px;
  }

  .detail-section {
    padding: 24px 20px;
  }

  .spec-table,
  .process-mini {
    grid-template-columns: 1fr;
  }

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