:root {
  --red: #f80000;
  --blue: #1087d8;
  --dark: #333;
  --muted: #667085;
  --line: #e5e5e5;
  --bg: #ececec;
  --wave-shift: 20px;
  --shadow: 0 12px 32px rgba(16, 24, 40, .1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background: var(--bg);
  font: 14px/1.75 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.wrap {
  width: min(980px, calc(100% - 38px));
  margin: 0 auto;
}

.topHead {
  background: #fff;
}

.brandLine {
  width: min(980px, calc(100% - 38px));
  height: 120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 370px;
  align-items: center;
  gap: 42px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.roundLogo {
  position: relative;
  width: 64px;
  height: 54px;
}

.roundLogo::before,
.roundLogo::after {
  content: "";
  position: absolute;
  inset: 4px 8px;
  border: 7px solid #e62b2b;
  border-right-color: #1e92e6;
  border-radius: 50%;
  transform: rotate(-22deg);
}

.roundLogo::after {
  inset: 0 18px 0 2px;
  border-color: #1e92e6;
  border-left-color: #e62b2b;
  transform: rotate(14deg);
  opacity: .92;
}

.brand b {
  display: block;
  color: #333;
  font-size: 29px;
  line-height: 1.15;
  font-weight: 950;
}

.brand em {
  display: block;
  color: #555;
  font-size: 11px;
  font-style: normal;
  letter-spacing: .22em;
  line-height: 1.1;
}

.headRight {
  display: grid;
  gap: 14px;
  justify-items: end;
}

.headRight p {
  margin: 0;
  color: #777;
  font-size: 12px;
}

.searchBox {
  width: 260px;
  height: 40px;
  display: grid;
  grid-template-columns: 42px 1fr 78px;
  border: 1px solid #dedede;
  background: #fff;
}

.searchBox span {
  display: grid;
  place-items: center;
  color: #c5c5c5;
  font-size: 24px;
}

.searchBox input {
  border: 0;
  outline: none;
  color: #999;
}

.searchBox button {
  border: 0;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}

.authLine button {
  border: 0;
  color: #777;
  background: none;
}

.redNav {
  height: 44px;
  display: flex;
  justify-content: center;
  border-top: 4px solid var(--red);
  background: #fff;
}

.redNav button,
.catalog button,
.categoryRail button,
.pager button,
.primary,
.secondary,
.back,
.close,
.authTabs button {
  border: 0;
  color: inherit;
  background: none;
}

.redNav button {
  min-width: 118px;
  padding: 0 18px;
  color: #111;
  font-size: 15px;
  font-weight: 900;
}

.redNav button.active,
.redNav button:hover {
  color: var(--red);
}

.waveHero {
  position: relative;
  height: 286px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.78) 78%),
    linear-gradient(90deg, #a9cde4, #effaff 42%, #e8f4ff 64%, #b3d5ee);
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 24%, rgba(255,255,255,.92), transparent 24%),
    radial-gradient(ellipse at 18% 10%, rgba(255,255,255,.5), transparent 20%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 2px, transparent 2px 82px);
}

.wave {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 0;
  height: 118px;
  background:
    radial-gradient(ellipse at calc(24% + var(--wave-shift)) 48%, #0d6ca8 0 8%, transparent 9%),
    radial-gradient(ellipse at 44% 50%, #fff 0 13%, transparent 14%),
    radial-gradient(ellipse at 63% 42%, #0e79b9 0 9%, transparent 10%),
    radial-gradient(ellipse at 78% 50%, #fff 0 11%, transparent 12%),
    linear-gradient(180deg, transparent, #7dc3e8 45%, #ffffff 88%);
  filter: saturate(1.1);
}

.wave::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 22px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 38% 45%, rgba(0,86,130,.82), transparent 21%),
    radial-gradient(ellipse at 49% 45%, #fff 0 18%, transparent 19%),
    radial-gradient(ellipse at 58% 50%, rgba(0,110,170,.7), transparent 18%);
  transform: rotate(-2deg);
}

.heroWords {
  position: absolute;
  left: 50%;
  top: 76px;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 38px));
  text-align: center;
}

.heroWords h1 {
  margin: 0;
  color: #3a3a3a;
  font-size: 34px;
  letter-spacing: .08em;
  font-weight: 950;
}

.heroWords h1 span {
  color: var(--red);
  font-size: 40px;
}

.heroWords p {
  margin: 3px 0 0;
  color: #333;
  font-size: 16px;
  letter-spacing: .24em;
}

.contentShell {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 16px;
  padding: 30px 0 34px;
}

.catalog,
.contactBox {
  background: #fff;
}

.catalog h2 {
  margin: 0;
  padding: 13px 15px;
  color: #fff;
  background: var(--red);
  font-size: 16px;
}

.catalog small {
  margin-left: 5px;
  font-size: 11px;
  font-weight: 400;
}

.catalog button {
  width: 100%;
  min-height: 36px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.catalog span {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #f2b300;
  font-size: 15px;
  line-height: 1;
}

.contactBox {
  min-height: 260px;
  padding: 0 14px 24px;
}

.contactBox header {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}

.contactBox h2 {
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 4px solid var(--red);
  font-size: 18px;
}

.contactBox header p {
  margin: 0;
  color: #666;
  font-size: 12px;
}

.contactText {
  padding: 18px 4px 0;
}

.contactText p {
  margin: 0 0 7px;
  color: #111;
}

.featureCards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 6px;
}

.featureCards article,
.stats article,
.product,
.detailHero,
.detailBlock,
.buyBox {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.04);
}

.featureCards article {
  padding: 22px;
  border-top: 4px solid var(--red);
}

.featureCards h3 {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 21px;
}

.featureCards p,
.sectionHead p,
.product p,
.detailHero p,
.buyBox p,
.detailBlock p,
.faq p {
  color: var(--muted);
}

.sectionHead {
  padding-top: 44px;
  text-align: center;
}

.sectionHead span {
  color: var(--red);
  font-weight: 900;
  letter-spacing: .28em;
}

.sectionHead h2,
.detailBlock h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

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

.stats article {
  padding: 24px;
  text-align: center;
}

.stats b {
  display: block;
  color: var(--red);
  font-size: 38px;
}

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

.categoryRail {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.categoryRail button {
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid #ffd0d0;
  color: var(--red);
  background: #fff;
}

.categoryRail button.active,
.categoryRail button:hover {
  color: #fff;
  background: var(--red);
}

.productGrid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product {
  display: grid;
  grid-template-rows: 145px 1fr;
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.productScene {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 50% 95%, #fff 0 18%, transparent 19%),
    radial-gradient(ellipse at 45% 68%, rgba(0,105,170,.9), transparent 26%),
    linear-gradient(180deg, #9ed9ff, #fff 54%, #1b8fd5);
}

.productScene span {
  position: absolute;
  left: 18px;
  top: 16px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,0,0,.8);
  font-size: 22px;
  font-weight: 950;
}

.productScene b {
  position: relative;
  z-index: 2;
  padding: 6px 14px;
  background: rgba(248,0,0,.82);
  font-size: 22px;
}

.productBody {
  padding: 20px;
}

.productBody em {
  color: var(--red);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.product h3 {
  margin: 10px 0 8px;
  font-size: 21px;
  line-height: 1.35;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff3f3;
  color: #8a4545;
  font-size: 12px;
}

.price {
  margin-top: 14px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed #eacaca;
}

.price b {
  color: var(--red);
  font-size: 27px;
}

.price small {
  color: var(--muted);
}

.pager {
  margin: 30px auto 86px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pager button {
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  color: var(--red);
  border: 1px solid #ffd0d0;
  background: #fff;
}

.pager button.active,
.pager button:hover:not(:disabled) {
  color: #fff;
  background: var(--red);
}

.pager button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.detail {
  padding: 34px 0 90px;
}

.back {
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid #ffd0d0;
  color: var(--red);
  background: #fff;
}

.detailHero {
  padding: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  background:
    radial-gradient(circle at 88% 18%, rgba(248,0,0,.1), transparent 24%),
    #fff;
}

.label {
  color: var(--red);
  font-weight: 900;
}

.detailHero h1 {
  max-width: 800px;
  margin: 18px 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -.06em;
}

.detailStats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detailStats span,
.outline article,
.faq details {
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.detailStats b {
  display: block;
  color: var(--red);
  font-size: 28px;
}

.buyBox {
  position: sticky;
  top: 90px;
  padding: 26px;
}

.buyBox small {
  color: var(--muted);
}

.buyBox b {
  display: block;
  margin: 10px 0 4px;
  color: var(--red);
  font-size: 50px;
  line-height: 1;
}

.buyBox del {
  display: block;
  color: var(--muted);
  margin-bottom: 18px;
}

.primary,
.secondary {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  font-weight: 900;
}

.primary {
  color: #fff;
  background: var(--red);
}

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

.detailBlock {
  margin-top: 24px;
  padding: 32px;
}

.assets {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.assets span {
  padding: 8px 12px;
  color: var(--red);
  background: #fff3f3;
  font-weight: 900;
}

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

.outline article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
}

.outline b {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
}

.outline h3 {
  margin: 0 0 4px;
}

.outline p {
  margin: 0;
  font-size: 14px;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(8px);
}

.modal {
  position: relative;
  width: min(460px, 100%);
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f3f3f3;
  font-size: 24px;
}

.modal h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.authTabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 5px;
  background: #f3f6fb;
}

.authTabs button {
  padding: 10px;
}

.authTabs button.active {
  color: #fff;
  background: var(--red);
}

.modal label {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

.modal input {
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  outline: none;
}

.modal input:focus {
  border-color: var(--red);
}

.message {
  min-height: 28px;
  color: var(--red);
}

@media (max-width: 1020px) {
  .brandLine {
    height: auto;
    padding: 20px 0;
    grid-template-columns: 1fr;
  }

  .headRight {
    justify-items: start;
  }

  .redNav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .contentShell,
  .detailHero,
  .outline {
    grid-template-columns: 1fr;
  }

  .featureCards,
  .productGrid,
  .stats,
  .detailStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .wrap,
  .brandLine,
  .heroWords {
    width: calc(100% - 28px);
  }

  .brand b {
    font-size: 22px;
  }

  .brand em {
    font-size: 9px;
  }

  .redNav button {
    min-width: 110px;
  }

  .waveHero {
    height: 330px;
  }

  .heroWords h1 {
    font-size: 25px;
  }

  .heroWords h1 span {
    font-size: 31px;
  }

  .heroWords p {
    font-size: 12px;
  }

  .featureCards,
  .productGrid,
  .stats,
  .detailStats {
    grid-template-columns: 1fr;
  }
}
