:root {
  --wine: #8e1d24;
  --ink: #151515;
  --muted: #666;
  --line: #e9e9e9;
  --soft: #f7f7f7;
  --shadow: 0 18px 60px rgba(0, 0, 0, .1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 15px/1.75 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 120px;
  padding: 0 8.6vw;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 42px;
  align-items: start;
  gap: 34px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #edf0f2;
  backdrop-filter: blur(12px);
}

.brand,
.header nav button,
.categoryRail button,
.pager button,
.primary,
.secondary,
.back,
.close,
.authTabs button,
.search {
  border: 0;
  color: inherit;
  background: none;
}

.brand {
  padding: 74px 0 0;
  text-align: left;
  line-height: 1;
}

.brand b {
  display: block;
  color: var(--wine);
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -.07em;
}

.brand span {
  display: block;
  margin-top: 5px;
  color: #111;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .38em;
}

.header nav {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
  padding-top: 84px;
  white-space: nowrap;
}

.header nav button {
  font-size: 17px;
}

.header nav button:hover,
.header nav .userBtn {
  color: var(--wine);
}

.search {
  align-self: start;
  margin-top: 83px;
  font-size: 40px;
  line-height: .6;
}

.gonaHero {
  position: relative;
  height: 680px;
  overflow: hidden;
  border-top: 1px solid #f4f4f4;
}

.mountainScene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #dce8fb 0 19%, #b7c9e9 20% 44%, #526f62 44% 100%);
}

.mist {
  position: absolute;
  inset: 0 0 54%;
  background:
    radial-gradient(ellipse at 18% 26%, rgba(255,255,255,.78), transparent 22%),
    radial-gradient(ellipse at 64% 18%, rgba(255,255,255,.66), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.1));
}

.ridge {
  position: absolute;
  left: -5%;
  right: -5%;
  height: 300px;
  top: 245px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #244f52, #173f3d);
  transform: rotate(-2deg);
}

.r2 {
  top: 310px;
  left: 20%;
  right: -10%;
  height: 230px;
  opacity: .7;
  background: linear-gradient(180deg, #5b6d48, #314235);
  transform: rotate(4deg);
}

.campus {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 445px;
  background:
    linear-gradient(105deg, transparent 0 8%, #20252b 8% 10%, transparent 10% 100%),
    linear-gradient(75deg, transparent 0 74%, #1f2933 74% 76%, transparent 76% 100%),
    linear-gradient(180deg, transparent 0 28%, #897d57 28% 50%, #b2a275 50% 62%, #6e6b52 62% 100%);
}

.mainBuilding {
  position: absolute;
  left: 50%;
  bottom: 102px;
  width: 760px;
  height: 154px;
  transform: translateX(-50%);
  border-radius: 4px 4px 0 0;
  background:
    linear-gradient(90deg, transparent 0 11%, #b68358 11% 13%, transparent 13% 87%, #b68358 87% 89%, transparent 89%),
    repeating-linear-gradient(90deg, #9d604c 0 20px, #cad5df 20px 26px, #9d604c 26px 42px),
    linear-gradient(#b36b55, #754238);
  border-top: 18px solid #c9a25f;
  box-shadow: 0 20px 44px rgba(0,0,0,.36);
}

.mainBuilding::before,
.mainBuilding::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 150px;
  height: 110px;
  background:
    repeating-linear-gradient(90deg, #9d604c 0 19px, #dbe5ef 19px 25px, #9d604c 25px 42px);
  border-top: 15px solid #c9a25f;
}

.mainBuilding::before {
  left: -120px;
  transform: skewY(8deg);
}

.mainBuilding::after {
  right: -120px;
  transform: skewY(-8deg);
}

.field {
  position: absolute;
  top: 90px;
  height: 180px;
  border: 3px solid rgba(255,255,255,.28);
}

.leftField {
  left: 36%;
  width: 230px;
  background: repeating-linear-gradient(90deg, #b9a36f 0 18px, #9b875d 18px 22px);
  transform: perspective(500px) rotateX(52deg) rotateZ(-4deg);
}

.rightField {
  right: 28%;
  width: 280px;
  background: repeating-linear-gradient(90deg, #566640 0 12px, #7a8052 12px 18px);
  transform: perspective(500px) rotateX(52deg) rotateZ(5deg);
}

.road {
  position: absolute;
  bottom: 0;
  width: 120px;
  height: 260px;
  background: #2b3036;
  border-left: 3px solid rgba(255,255,255,.35);
  border-right: 3px solid rgba(255,255,255,.35);
}

.leftRoad {
  left: 2%;
  transform: rotate(-34deg);
  transform-origin: bottom center;
}

.rightRoad {
  right: 3%;
  transform: rotate(34deg);
  transform-origin: bottom center;
}

.pond {
  position: absolute;
  left: 9%;
  bottom: 28px;
  width: 210px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4d7984, #1f4c55);
}

.aboutCard {
  position: absolute;
  left: 8%;
  bottom: 66px;
  width: 400px;
  height: 244px;
  padding: 24px 58px 24px;
  color: #fff;
  background: rgba(0,0,0,.54);
}

.aboutNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 23px;
  letter-spacing: .16em;
}

.aboutNav button,
.arrow {
  border: 0;
  color: #fff;
  background: none;
  font-size: 38px;
}

.aboutCard i {
  display: block;
  width: 34px;
  height: 2px;
  margin: 16px auto 10px;
  background: #fff;
}

.preview {
  height: 122px;
  overflow: hidden;
  background: #dce8fb;
}

.miniMountain {
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.7), transparent 40%),
    radial-gradient(ellipse at 52% 58%, #3f605a 0 35%, transparent 36%),
    linear-gradient(180deg, #aac8ea, #a98d62 70%, #764d42);
}

.arrow {
  position: absolute;
  right: 62px;
  bottom: 18px;
  font-size: 36px;
}

.hotTitle {
  padding: 58px 0 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 44px;
  text-align: center;
}

.hotTitle > span {
  position: relative;
  height: 1px;
  background: #999;
}

.hotTitle > span::after {
  content: "";
  position: absolute;
  right: -92px;
  top: -3px;
  width: 88px;
  height: 8px;
  background: var(--wine);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.hotTitle > span:last-child::after {
  left: -92px;
  right: auto;
  transform: scaleX(-1);
}

.hotTitle h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: .48em;
}

.hotTitle b {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  color: #fff;
  background: var(--wine);
  font-family: Georgia, serif;
  font-weight: 400;
}

.about {
  padding-bottom: 34px;
  text-align: center;
}

.about small,
.sectionHead small {
  color: var(--wine);
  font-weight: 950;
  letter-spacing: .18em;
}

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

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

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

.stats article {
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.stats b {
  display: block;
  color: var(--wine);
  font-size: 38px;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

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

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

.categoryRail button {
  white-space: nowrap;
  padding: 9px 15px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
}

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

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

.product {
  display: grid;
  grid-template-rows: 158px 1fr;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}

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

.thumb {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 28% 30%, rgba(255,255,255,.72), transparent 18%),
    linear-gradient(135deg, color-mix(in srgb, var(--wine) 80%, white), #e8d6d8);
}

.thumb span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: var(--wine);
  border-radius: 50%;
  background: #fff;
  font-size: 28px;
  font-weight: 950;
}

.productBody {
  padding: 22px;
}

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

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

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

.meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}

.price {
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-top: 1px dashed #ddd;
}

.price b {
  color: var(--wine);
  font-size: 30px;
}

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

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

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

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

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

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

.back {
  margin-bottom: 22px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.detailHero {
  padding: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #f8f8f8, #fff);
  box-shadow: var(--shadow);
}

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

.detailHero h1 {
  max-width: 800px;
  margin: 18px 0;
  font-size: clamp(38px, 5vw, 66px);
  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,
.two > div {
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

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

.buyBox {
  position: sticky;
  top: 142px;
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

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

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

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

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

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

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

.detailBlock {
  margin-top: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.05);
}

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

.assets span {
  padding: 9px 13px;
  color: var(--wine);
  border: 1px solid color-mix(in srgb, var(--wine) 28%, #ddd);
  border-radius: 999px;
  background: color-mix(in srgb, var(--wine) 6%, white);
  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(--wine);
}

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

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

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: none;
}

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

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

.mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  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: #f3f3f3;
}

.authTabs button {
  padding: 10px;
}

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

.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(--wine);
}

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

@media (max-width: 1100px) {
  .header {
    height: auto;
    padding: 18px 24px;
    grid-template-columns: 1fr auto;
  }

  .brand {
    padding-top: 0;
  }

  .header nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 12px;
  }

  .search {
    margin-top: 0;
  }

  .gonaHero {
    height: 620px;
  }

  .aboutCard {
    left: 24px;
  }

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

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

  .buyBox {
    position: static;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .header nav {
    gap: 18px;
  }

  .gonaHero {
    height: 560px;
  }

  .mainBuilding {
    width: 430px;
    height: 120px;
  }

  .mainBuilding::before,
  .mainBuilding::after {
    display: none;
  }

  .field {
    display: none;
  }

  .aboutCard {
    left: 14px;
    right: 14px;
    width: auto;
    bottom: 34px;
  }

  .hotTitle {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hotTitle > span::after {
    display: none;
  }

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