﻿:root {
  color-scheme: dark;
  --bg: #07111f;
  --surface: rgba(11, 20, 37, 0.88);
  --surface-strong: #0f1a2d;
  --line: rgba(151, 177, 255, 0.14);
  --text: #eef4ff;
  --muted: #93a0bf;
  --primary: #7da2ff;
  --primary-strong: #5a82f0;
  --primary-soft: rgba(125, 162, 255, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --scroll-track: rgba(9, 18, 35, 0.72);
  --scroll-thumb: linear-gradient(180deg, #8eb1ff 0%, #5f86f5 100%);
  --scroll-thumb-hover: linear-gradient(180deg, #a6c2ff 0%, #6f96ff 100%);
  --scroll-border: rgba(151, 177, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #6f96ff rgba(9, 18, 35, 0.72);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "HarmonyOS Sans SC",
    "MiSans",
    "PingFang SC",
    "Microsoft YaHei UI",
    "Microsoft YaHei",
    "Source Han Sans SC",
    "Noto Sans CJK SC",
    "Heiti SC",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(86, 126, 255, 0.18), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(42, 205, 255, 0.1), transparent 20%),
    linear-gradient(180deg, #07111f 0%, #091527 45%, #050b16 100%);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background:
    var(--scroll-thumb) padding-box,
    linear-gradient(var(--scroll-border), var(--scroll-border)) border-box;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    0 4px 12px rgba(45, 93, 220, 0.35);
}

*::-webkit-scrollbar-thumb:hover {
  background:
    var(--scroll-thumb-hover) padding-box,
    linear-gradient(rgba(167, 196, 255, 0.42), rgba(167, 196, 255, 0.42)) border-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid rgba(125, 162, 255, 0.9);
  outline-offset: 2px;
}

.page-shell {
  width: min(1480px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 27, 47, 0.86);
  color: var(--muted);
  font-weight: 700;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.site-nav__link:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 162, 255, 0.34);
}

.site-nav__link.is-active {
  color: var(--primary);
  border-color: rgba(125, 162, 255, 0.46);
  background: rgba(125, 162, 255, 0.16);
}

.is-hidden {
  display: none;
}

.store-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.store-header__left {
  max-width: 720px;
}

.store-header h1,
.detail-title {
  margin: 12px 0 10px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.store-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.store-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(125, 162, 255, 0.14);
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.language-toggle {
  border: 1px solid transparent;
  cursor: pointer;
}

.share-button,
.filter-chip,
.plain-action,
.detail-back-link,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.share-button {
  background: rgba(17, 29, 52, 0.94);
  color: var(--primary);
  border-color: rgba(125, 162, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  font-weight: 700;
}

.share-button::before {
  content: "";
  margin-right: 0;
}

.catalog {
  margin-bottom: 34px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.filter-chip {
  background: rgba(15, 27, 47, 0.9);
  color: var(--muted);
  border-color: var(--line);
  font-weight: 700;
}

.filter-chip.is-active {
  background: rgba(125, 162, 255, 0.18);
  color: var(--primary);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 162, 255, 0.34);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.42);
}

.product-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(125, 162, 255, 0.54);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.42);
}

.product-card__cover,
.detail-cover {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.product-card__cover {
  aspect-ratio: 1 / 1;
}

.detail-cover {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cover-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
}

.product-card__cover::after,
.detail-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(10, 22, 58, 0.46));
}

.product-card__icon,
.detail-cover__icon {
  position: relative;
  z-index: 1;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 10px 30px rgba(6, 10, 18, 0.26);
  letter-spacing: -0.06em;
}

.product-card__icon {
  font-size: clamp(5.2rem, 8vw, 7rem);
}

.product-card__logo {
  position: relative;
  z-index: 1;
  width: min(88%, 380px);
  max-height: 54%;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(6, 10, 18, 0.26));
}

.detail-cover__logo {
  position: relative;
  z-index: 1;
  width: min(84%, 560px);
  max-height: 52%;
  object-fit: contain;
  filter: drop-shadow(0 14px 34px rgba(6, 10, 18, 0.28));
}

.detail-cover__icon {
  font-size: clamp(10rem, 18vw, 18rem);
}

.product-card__body {
  padding: 28px 28px 30px;
}

.product-card__title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.product-card__subtitle {
  min-height: 88px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.product-card__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.price-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 1.15rem;
  font-weight: 800;
}

.price-original,
.detail-original-price {
  color: #7486b6;
  text-decoration: line-through;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9d6ef0, #7a59dd);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
}

.detail-back-link {
  min-height: auto;
  padding: 0;
  margin-bottom: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
  justify-content: flex-start;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.15fr) minmax(420px, 0.85fr);
  gap: 74px;
  align-items: start;
}

.detail-media {
  padding-top: 10px;
}

.detail-contact {
  margin: 30px 0 0;
  font-size: 1rem;
  line-height: 1.7;
}

.detail-contact a {
  color: var(--primary);
  text-decoration: underline;
}

.seller-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.seller-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(125, 162, 255, 0.16);
  font-size: 1.35rem;
}

.seller-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.promo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #865cea, #aa8bf3);
  color: #ffffff;
  font-weight: 700;
}

.promo-bar__title {
  font-size: 0.96rem;
}

.promo-bar__timer {
  font-size: 0.9rem;
}

.detail-price-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 16px;
}

.detail-price {
  color: var(--primary);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.detail-member-price {
  font-size: 0.98rem;
}

.detail-title {
  margin-bottom: 30px;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
}

.sku-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-email-field {
  margin-bottom: 14px;
}

.detail-email-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.detail-email-input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(125, 162, 255, 0.24);
  border-radius: 6px;
  background: rgba(12, 23, 43, 0.95);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.detail-email-input::placeholder {
  color: rgba(147, 160, 191, 0.74);
}

.detail-email-input:focus {
  border-color: rgba(125, 162, 255, 0.68);
  box-shadow: 0 0 0 2px rgba(125, 162, 255, 0.22);
}

.detail-email-input.is-invalid {
  border-color: #ff6767;
  box-shadow: 0 0 0 2px rgba(255, 103, 103, 0.2);
}

.detail-email-error {
  margin: 8px 0 0;
  color: #ff9595;
  font-size: 0.86rem;
}

.sku-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 26, 45, 0.92);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sku-price-box {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.sku-item.is-active {
  background: rgba(19, 35, 61, 0.98);
  border-color: rgba(125, 162, 255, 0.3);
}

.sku-badge {
  display: grid;
  place-items: center;
  min-height: 72px;
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 800;
}

.sku-copy {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.sku-price,
.sku-action {
  white-space: nowrap;
}

.sku-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.sku-action {
  color: var(--text);
  font-weight: 800;
}

.primary-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(126, 89, 234, 0.22);
  font-weight: 700;
}

.detail-buy-button {
  width: 100%;
  min-height: 84px;
  margin-bottom: 28px;
  border-radius: 4px;
  font-size: 1.25rem;
}

.detail-actions,
.plain-action {
  display: none !important;
}

.share-button:hover,
.filter-chip:hover,
.detail-back-link:hover,
.product-card:hover,
.primary-button:hover,
.sku-item:hover {
  transform: translateY(-1px);
}

.checkout-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
}

.checkout-shell::before,
.checkout-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.checkout-shell::before {
  inset: -12% auto auto -18%;
  width: min(700px, 76vw);
  height: min(880px, 92vh);
  border-radius: 48%;
  background:
    radial-gradient(circle at 48% 34%, rgba(79, 130, 255, 0.48), rgba(26, 66, 169, 0.08) 58%, transparent 70%),
    radial-gradient(circle at 58% 55%, rgba(23, 52, 130, 0.8), transparent 74%);
  filter: blur(6px);
  opacity: 0.95;
}

.checkout-shell::after {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 9, 18, 0.56) 0%, rgba(4, 11, 22, 0) 40%, rgba(4, 11, 22, 0.46) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(63, 121, 255, 0.06) 0 2px,
      rgba(63, 121, 255, 0) 2px 36px
    );
}

.checkout-card {
  width: min(470px, 100%);
  position: relative;
  z-index: 1;
  padding: 28px;
  border: 1px solid rgba(152, 176, 255, 0.16);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.93) 0%, rgba(17, 22, 36, 0.92) 100%);
  box-shadow:
    0 36px 70px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: #9fa8c4;
  font-weight: 600;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

.checkout-back:hover {
  color: #c7d2ef;
}

.checkout-title {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 3.4vw, 2.55rem);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.checkout-subtitle {
  margin: 0;
  color: #a8b1ce;
  font-size: 1rem;
  font-weight: 500;
}

.checkout-amount {
  margin: 20px 0 26px;
  color: #3e82ff;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.checkout-qr-box {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #f2f4f8;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  min-height: clamp(250px, 45vw, 368px);
  padding: clamp(16px, 3vw, 24px);
}

.checkout-qr-box img {
  width: min(320px, 100%);
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.checkout-qr-box.is-loading img {
  opacity: 0.22;
}

.checkout-qr-box.is-loading::before {
  content: "";
  width: 30px;
  height: 30px;
  position: absolute;
  top: calc(50% - 28px);
  left: calc(50% - 15px);
  border-radius: 999px;
  border: 3px solid rgba(17, 24, 39, 0.2);
  border-top-color: rgba(26, 58, 150, 0.86);
  animation: checkout-spin 0.78s linear infinite;
}

.checkout-qr-box.is-loading::after {
  content: "加载中...";
  position: absolute;
  top: calc(50% + 10px);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(10, 24, 66, 0.85);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}

.checkout-tip {
  margin: 18px 0 20px;
  text-align: center;
  color: #a5aec9;
  font-size: 0.96rem;
}

.checkout-note {
  margin: -8px 0 18px;
  color: #a5aec9;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
}

.checkout-meta {
  display: grid;
  gap: 10px;
}

.checkout-row {
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(149, 173, 244, 0.08);
  background: rgba(9, 14, 24, 0.64);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-row span {
  color: #aeb7d4;
  font-size: 1rem;
  font-weight: 600;
}

.checkout-row strong,
.checkout-row a {
  font-size: 1.05rem;
  font-weight: 700;
}

.checkout-row strong {
  color: #ecf2ff;
}

.checkout-row a {
  color: #3e82ff;
}

.checkout-code-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkout-copy-btn {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(62, 130, 255, 0.45);
  border-radius: 8px;
  background: rgba(62, 130, 255, 0.14);
  color: #9fc0ff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.checkout-copy-btn:hover {
  background: rgba(62, 130, 255, 0.22);
}

.checkout-success {
  padding: 0;
}

.checkout-success__desc {
  margin: 0 0 14px;
  color: #a9c1f0;
}

.checkout-success__code {
  min-height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(62, 130, 255, 0.38);
  background: rgba(9, 14, 24, 0.78);
  display: grid;
  place-items: center;
  padding: 0 14px;
  color: #f2f6ff;
  font-size: clamp(1.05rem, 2.6vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  word-break: break-all;
}

.checkout-success__actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.checkout-success__back {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(165, 177, 207, 0.34);
  border-radius: 8px;
  background: rgba(126, 143, 176, 0.16);
  color: #d5deef;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.checkout-card.is-paid .checkout-amount,
.checkout-card.is-paid .checkout-subtitle,
.checkout-card.is-paid .checkout-qr-box,
.checkout-card.is-paid .checkout-tip,
.checkout-card.is-paid .checkout-note,
.checkout-card.is-paid .checkout-meta {
  display: none;
}

.checkout-card.is-paid .checkout-title {
  margin-bottom: 16px;
}

.checkout-card.is-paid .checkout-back {
  display: none;
}

.checkout-card.is-paid .checkout-success {
  display: block;
}

.checkout-success .checkout-copy-btn,
.checkout-success__back {
  min-height: 30px;
  padding: 0 12px;
}

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .detail-sidebar {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1480px);
    padding-top: 18px;
  }

  .store-header {
    flex-direction: column;
  }

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

  .product-card__subtitle {
    min-height: auto;
  }

  .detail-layout {
    gap: 28px;
  }

  .promo-bar {
    flex-wrap: wrap;
  }

  .sku-item {
    grid-template-columns: 72px 1fr auto;
    padding: 0 14px 0 0;
  }

  .share-button,
  .primary-button {
    width: 100%;
  }

  .checkout-shell {
    padding: 18px 14px;
  }

  .checkout-card {
    border-radius: 24px;
    padding: 20px;
  }

  .checkout-row {
    min-height: 52px;
    padding: 0 12px;
  }

  .checkout-row span {
    font-size: 0.92rem;
  }

  .checkout-row strong,
  .checkout-row a {
    font-size: 0.96rem;
  }
}
