:root {
  color-scheme: light;
  --paper: #f4efe5;
  --surface: #fffdf8;
  --ink: #181512;
  --muted: #6f675d;
  --line: #29231d;
  --amber: #cc8800;
  --orange: #c55221;
  --focus: #166534;
  --content-width: 1120px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(24, 21, 18, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 229, 0.96);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  text-decoration: none;
}

.brand-mark {
  width: 14px;
  height: 36px;
  flex: 0 0 auto;
  background: var(--orange);
  box-shadow: 7px 7px 0 var(--amber);
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-family: "STSong", "SimSun", serif;
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.site-return {
  display: grid;
  min-width: 108px;
  place-items: center;
  padding: 0 20px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-return:hover {
  color: #fff;
  background: var(--ink);
}

.purchase-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.purchase-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  align-items: end;
  gap: 10px 40px;
  margin-bottom: 36px;
}

.eyebrow {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.purchase-heading h1 {
  margin: 0;
  font-family: "STSong", "SimSun", serif;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0;
}

.purchase-note {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.price-section {
  border-top: 2px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.price-link {
  position: relative;
  min-width: 0;
  min-height: 230px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.price-link:last-child {
  border-right: 0;
}

.price-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  content: "";
  background: var(--amber);
  transition: height 160ms ease;
}

.price-link:hover,
.price-link:active {
  color: #fff;
  background: var(--orange);
  transform: translateY(-4px);
}

.price-link:hover::after,
.price-link:active::after {
  height: 14px;
  background: var(--ink);
}

.price-copy {
  align-self: end;
}

.product-duration {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

.product-price {
  display: block;
  overflow-wrap: anywhere;
  font-family: "STSong", "SimSun", serif;
  font-size: 32px;
  line-height: 1;
}

.purchase-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid currentColor;
  font-size: 13px;
  font-weight: 800;
}

.purchase-arrow {
  font-size: 20px;
  line-height: 1;
}

.site-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

@media (max-width: 860px) {
  .purchase-heading {
    grid-template-columns: 1fr;
  }

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

  .price-link {
    min-height: 190px;
    border-bottom: 1px solid var(--line);
  }

  .price-link:nth-child(2) {
    border-right: 0;
  }

  .price-link:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .topbar {
    min-height: 64px;
  }

  .brand {
    gap: 12px;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 12px;
    height: 30px;
    box-shadow: 5px 5px 0 var(--amber);
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .site-return {
    min-width: 88px;
    padding: 0 14px;
    font-size: 12px;
  }

  .purchase-shell {
    padding: 36px 16px 48px;
  }

  .purchase-heading {
    margin-bottom: 26px;
  }

  .purchase-heading h1 {
    font-size: 38px;
  }

  .purchase-note {
    font-size: 13px;
  }

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

  .price-link {
    min-height: 126px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .price-link:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .price-link:last-child {
    border-bottom: 0;
  }

  .price-copy {
    align-self: center;
  }

  .product-duration {
    margin-bottom: 7px;
    font-size: 14px;
  }

  .product-price {
    font-size: 27px;
  }

  .purchase-action {
    justify-content: end;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
