﻿:root {
  --ink: #202124;
  --muted: #656a73;
  --line: #d9dde4;
  --soft: #f4f6f8;
  --paper: #ffffff;
  --brand: #f26b21;
  --brand-dark: #c94f12;
  --navy: #17324d;
  --green: #168052;
  --shadow: 0 14px 40px rgba(23, 50, 77, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family:
    Arial,
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 800;
}

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

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

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.main-nav a {
  padding: 9px 12px;
  color: #3d424a;
  border-radius: 6px;
  font-size: 14px;
}

.main-nav a:hover {
  background: var(--soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 6vw, 78px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(110deg, rgba(255, 246, 238, 0.95), rgba(255, 255, 255, 0.72)),
    #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hero h1 {
  margin-bottom: 16px;
  max-width: 820px;
  color: #152334;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  color: #4f5965;
  font-size: 18px;
}

.hero-actions,
.button-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 22px rgba(242, 107, 33, 0.22);
}

.btn.primary:hover {
  background: var(--brand-dark);
}

.btn.secondary {
  color: var(--brand-dark);
  background: #fff5ec;
  border-color: #ffd6bd;
}

.btn.ghost {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.btn.full {
  width: 100%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #45505b;
  font-size: 13px;
}

.hero-panel {
  position: relative;
  min-height: 380px;
}

.hero-panel img {
  width: 100%;
  height: min(54vw, 520px);
  min-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.floating-quote {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: grid;
  gap: 4px;
  max-width: calc(100% - 48px);
  padding: 16px 18px;
  color: #17212d;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

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

.section-head,
.product-grid,
.product-page,
.checkout-page,
.site-footer {
  padding-left: clamp(18px, 5vw, 64px);
  padding-right: clamp(18px, 5vw, 64px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 46px;
  padding-bottom: 18px;
}

.section-head h2,
.checkout-title h1,
.purchase-panel h1 {
  margin-bottom: 0;
  color: #152334;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 700;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.product-card:hover {
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-info {
  padding: 16px;
}

.product-info h3 {
  min-height: 58px;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.product-info p {
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
}

.price {
  display: block;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 800;
}

.product-info small {
  display: block;
  margin-top: 6px;
  color: #67717d;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 22px;
  padding-top: 30px;
  padding-bottom: 32px;
  color: #dce4ee;
  background: #172638;
}

.site-footer p {
  margin: 6px 0 0;
  color: #b8c3cf;
  font-size: 14px;
}

.product-page,
.checkout-page {
  padding-top: 28px;
  padding-bottom: 54px;
  background: #fff;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 28px;
  align-items: start;
}

.gallery,
.purchase-panel,
.product-tabs article,
.form-section,
.summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gallery {
  padding: 12px;
}

.main-image {
  width: 100%;
  aspect-ratio: 1.22 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.thumb-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 6px;
  cursor: pointer;
}

.thumb-row img:hover {
  border-color: var(--brand);
}

.purchase-panel {
  padding: 24px;
  position: sticky;
  top: 88px;
}

.product-summary {
  color: var(--muted);
}

.price-range {
  margin: 18px 0;
  color: var(--brand-dark);
  font-size: 30px;
  font-weight: 800;
}

.price-range span {
  color: var(--muted);
  font-size: 15px;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  color: var(--muted);
}

.spec-list dd {
  margin: 0;
  font-weight: 700;
}

.quantity-inline,
.quantity-box {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #3d4650;
  font-weight: 700;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd5dd;
  border-radius: 6px;
  background: #fff;
}

input:focus {
  outline: 2px solid rgba(242, 107, 33, 0.24);
  border-color: var(--brand);
}

.product-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.product-tabs article {
  padding: 22px;
}

.product-tabs p {
  color: var(--muted);
}

.checkout-title {
  max-width: 780px;
  margin-bottom: 22px;
}

.checkout-title p {
  color: var(--muted);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: start;
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.form-section,
.summary-card {
  padding: 22px;
}

.form-section h2,
.summary-card h2 {
  margin-bottom: 16px;
}

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

.form-grid label {
  display: grid;
  gap: 7px;
  color: #3d4650;
  font-size: 14px;
  font-weight: 700;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.payment-methods {
  display: grid;
  gap: 12px;
}

.payment-card {
  display: grid;
  grid-template-columns: auto minmax(130px, 180px) 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.payment-card.selected {
  border-color: #39a6ff;
  background: #f2f9ff;
}

.payment-card input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

.alipay-logo,
.bank-logo {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
}

.alipay-logo {
  background: #1677ff;
}

.bank-logo {
  background: var(--navy);
}

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

.summary-card {
  position: sticky;
  top: 88px;
  box-shadow: var(--shadow);
}

.summary-product {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
}

.summary-product img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
}

.summary-product span,
.summary-product small {
  display: block;
  color: var(--muted);
}

.summary-lines {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.summary-lines div,
.total-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.summary-lines span,
.total-line span {
  color: var(--muted);
}

.total-line {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.total-line strong {
  color: var(--brand-dark);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero,
  .detail-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel img {
    height: 390px;
  }

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

  .purchase-panel,
  .summary-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .main-nav a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-panel {
    min-height: 0;
  }

  .hero-panel img {
    min-height: 260px;
    height: 70vw;
  }

  .section-head,
  .site-footer,
  .product-tabs,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
  }

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

  .spec-list div,
  .payment-card {
    grid-template-columns: 1fr;
  }

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

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

  .summary-product img {
    width: 74px;
    height: 74px;
  }
}

