:root {
  --ink: #22313d;
  --muted: #687783;
  --line: rgba(34, 49, 61, .1);
  --orange: #ff7a2f;
  --red: #ff5166;
  --yellow: #ffd65c;
  --blue: #4f8ff7;
  --green: #39ba80;
  --shadow: 0 18px 44px rgba(53, 42, 26, .13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff7e8;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.mall-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(100% - 32px, 1180px);
  margin: 16px auto 0;
  padding: 12px 14px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 34px rgba(53, 42, 26, .1);
  backdrop-filter: blur(14px);
}

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

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

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

.brand em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.mall-header nav {
  display: flex;
  gap: 6px;
}

.mall-header nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
}

.mall-header nav a:hover {
  background: #fff0d8;
}

main {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 34px 24px 100px;
}

.hero {
  padding: 44px;
  border-radius: 34px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: 34px;
  align-items: center;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 214, 92, .52), transparent 28%),
    linear-gradient(135deg, #fff0bd, #fffaf2 58%, #eff8ff);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-title p,
.tag {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 4.5vw, 68px);
  line-height: 1.05;
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 900;
}

.lead {
  margin-bottom: 26px;
  color: #41525e;
  font-size: 19px;
  line-height: 1.8;
}

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

.primary-btn,
.ghost-btn,
.product-card a,
.sticky-buy a {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.primary-btn,
.product-card a,
.sticky-buy a {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 22px rgba(255, 91, 60, .23);
}

.ghost-btn {
  background: #fff;
  border: 1px solid var(--line);
}

.hero-media {
  position: relative;
  min-width: 0;
}

.slides {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 10px solid #fff;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .36s ease;
}

.slides img.is-active {
  opacity: 1;
}

.price-card {
  position: absolute;
  right: -8px;
  bottom: -18px;
  width: 150px;
  height: 150px;
  border: 8px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--yellow);
  box-shadow: var(--shadow);
}

.price-card span,
.price-card strong {
  display: block;
}

.price-card strong {
  font-size: 28px;
}

.benefits {
  margin: 26px 0 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.benefits div {
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.benefits strong,
.benefits span {
  display: block;
}

.benefits strong {
  margin-bottom: 6px;
  font-size: 20px;
}

.benefits span,
.product-copy p,
.test-cta p {
  color: var(--muted);
  line-height: 1.7;
}

.section-title {
  margin-bottom: 20px;
}

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

.product-card {
  padding: 16px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: center;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-card img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 24px;
  background: #fff8df;
}

.product-copy h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.product-copy p {
  margin-bottom: 14px;
}

.product-card a {
  min-height: 40px;
  padding: 0 18px;
}

.test-cta {
  margin-top: 34px;
  padding: 34px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #fff;
  background: linear-gradient(135deg, #17364a, #23627b);
  box-shadow: var(--shadow);
}

.test-cta .eyebrow,
.test-cta p {
  color: rgba(255, 255, 255, .78);
}

.backtop {
  position: fixed;
  right: 22px;
  bottom: 94px;
  z-index: 18;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: #fff;
  box-shadow: var(--shadow);
}

.backtop.is-visible {
  display: grid;
}

.backtop img {
  width: 34px;
}

.sticky-buy {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 19;
  width: min(calc(100% - 28px), 760px);
  min-height: 66px;
  padding: 10px 10px 10px 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 40px rgba(34, 49, 61, .18);
  backdrop-filter: blur(12px);
}

.sticky-buy strong,
.sticky-buy span {
  display: block;
}

.sticky-buy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.sticky-buy a {
  min-height: 42px;
  white-space: nowrap;
}

.buy-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 6%, rgba(255, 214, 92, .38), transparent 25%),
    linear-gradient(180deg, #fff1ca, #fff8eb 52%, #eef7ff);
}

.buy-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 28px 24px 70px;
}

.back-link {
  width: max-content;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  font-weight: 900;
}

.buy-hero {
  margin-top: 20px;
  padding: 34px;
  border-radius: 32px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}

.buy-hero > img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 36px;
  background: #fff8df;
}

.buy-hero h1 {
  margin-bottom: 12px;
}

.buy-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.buy-grid div,
.buy-detail {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}

.buy-grid strong,
.buy-grid span {
  display: block;
}

.buy-grid strong {
  margin-bottom: 8px;
  font-size: 20px;
}

.buy-grid span,
.buy-detail p {
  color: var(--muted);
  line-height: 1.7;
}

.buy-detail {
  margin-top: 18px;
}

.buy-detail h2 {
  margin-bottom: 10px;
}

.pay-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(16, 26, 34, .58);
}

.pay-modal {
  width: min(100%, 430px);
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .2);
}

.pay-modal h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.pay-modal p {
  color: var(--muted);
  line-height: 1.7;
}

.pay-modal button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font: inherit;
  font-weight: 900;
}

@media (max-width: 980px) {
  .mall-header,
  .test-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .mall-header {
    position: static;
  }

  .mall-header nav {
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 34px 24px;
  }

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

  .buy-hero > img {
    width: 180px;
    height: 180px;
  }

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

@media (max-width: 640px) {
  .mall-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 18px;
  }

  main {
    padding: 18px 10px 96px;
  }

  .hero {
    padding: 28px 18px;
    border-radius: 24px;
  }

  h1 {
    font-size: 39px;
  }

  .lead {
    font-size: 17px;
  }

  .price-card {
    width: 112px;
    height: 112px;
    right: -6px;
    bottom: -12px;
  }

  .price-card strong {
    font-size: 21px;
  }

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

  .product-card {
    grid-template-columns: 96px 1fr;
    gap: 12px;
    border-radius: 22px;
  }

  .product-card img {
    width: 96px;
    height: 96px;
    border-radius: 20px;
  }

  .product-copy h3 {
    font-size: 22px;
  }

  .test-cta {
    padding: 24px;
    border-radius: 22px;
  }

  .buy-shell {
    padding: 18px 10px 44px;
  }

  .buy-hero {
    padding: 22px;
    border-radius: 24px;
  }

  .buy-hero > img {
    width: 128px;
    height: 128px;
    border-radius: 26px;
  }

  .buy-grid div,
  .buy-detail {
    padding: 18px;
    border-radius: 20px;
  }
}
