/* ==========================================================================
   识光 Solensar — 官方商城 shop.css
   浅色 Apple Store 风格：白卡、留白、精确字阶、克制动效。
   作用域：body.theme-shop（商城 7 个页面），不影响营销页。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens / base
   -------------------------------------------------------------------------- */
body.theme-shop {
  --sp-bg: #f5f5f7;
  --sp-card: #ffffff;
  --sp-ink: #1d1d1f;
  --sp-ink-2: #6e6e73;
  --sp-ink-3: #86868b;
  --sp-line: #d2d2d7;
  --sp-line-soft: #e8e8ed;
  --sp-red: #e1251b;
  --sp-red-dark: #c01e15;
  --sp-green: #1a8f3c;
  --sp-radius: 18px;
  --sp-radius-sm: 12px;
  --sp-max: 1180px;
  --sp-gutter: clamp(20px, 4vw, 40px);
  --sp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sp-shadow: 0 2px 10px rgba(0, 0, 0, 0.035);
  --sp-shadow-hover: 0 18px 48px rgba(0, 0, 0, 0.1);
  --sp-focus: 0 0 0 4px rgba(29, 29, 31, 0.12);

  background: var(--sp-bg);
  color: var(--sp-ink);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* 浅色页面去掉营销页的胶片颗粒动静 */
body.theme-shop::before { display: none; }
body.theme-shop main { padding-top: var(--nav-h); }
body.theme-shop [hidden] { display: none !important; }

/* 共享暗色 header 在浅色商城中改为稳定的深色玻璃条 */
body.theme-shop .header {
  background: rgba(5, 5, 6, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}
body.theme-shop .header::after { opacity: 0; }
body.theme-shop .header.is-scrolled {
  background: rgba(5, 5, 6, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.theme-shop .footer { margin-top: 0; }

body.theme-shop :focus-visible {
  outline: 2px solid var(--sp-ink);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   2. Layout primitives
   -------------------------------------------------------------------------- */
.shop-wrap {
  width: min(var(--sp-max), 100% - var(--sp-gutter) * 2);
  margin-inline: auto;
}
.shop-page { min-height: 60vh; }

.shop-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sp-red);
}
.shop-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.shop-h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--sp-ink);
}
.shop-h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0;
}
.shop-lead {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
  color: var(--sp-ink-2);
  margin: 0;
}
.shop-muted { color: var(--sp-ink-2); }
.shop-mono {
  font-family: var(--font-mono);
  font-size: 0.94em;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   3. Buttons / links / tags
   -------------------------------------------------------------------------- */
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--sp-radius-sm);
  background: var(--sp-card);
  color: var(--sp-ink);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s var(--sp-ease), color 0.2s var(--sp-ease),
    border-color 0.2s var(--sp-ease), box-shadow 0.2s var(--sp-ease),
    transform 0.2s var(--sp-ease);
}
.s-btn:active { transform: scale(0.985); }
.s-btn--dark { background: var(--sp-ink); color: #fff; }
.s-btn--dark:hover { background: #000; }
.s-btn--red { background: var(--sp-red); color: #fff; }
.s-btn--red:hover { background: var(--sp-red-dark); }
.s-btn--ghost {
  background: transparent;
  border-color: var(--sp-line);
  color: var(--sp-ink);
}
.s-btn--ghost:hover { background: var(--sp-card); border-color: var(--sp-ink-3); }
.s-btn--white { background: var(--sp-card); color: var(--sp-ink); box-shadow: var(--sp-shadow); }
.s-btn--white:hover { box-shadow: var(--sp-shadow-hover); transform: translateY(-1px); }
.s-btn--sm { height: 40px; padding: 0 18px; font-size: 15px; border-radius: 980px; }
.s-btn--block { display: flex; width: 100%; }
.s-btn[disabled],
.s-btn[aria-disabled="true"] {
  background: var(--sp-line-soft);
  color: var(--sp-ink-3);
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.s-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--sp-red);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}
.s-link:hover { opacity: 0.72; }
.s-link--ink { color: var(--sp-ink); }
.s-link svg { width: 14px; height: 14px; }

/* 载入中的按钮 */
.s-btn.is-busy { pointer-events: none; }
.s-spinner {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: sp-spin 0.7s linear infinite;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }

.s-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 980px;
  background: var(--sp-bg);
  color: var(--sp-ink-2);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.s-tag--red { background: rgba(225, 37, 27, 0.08); color: var(--sp-red); }

/* --------------------------------------------------------------------------
   4. Skeleton / states
   -------------------------------------------------------------------------- */
.sk {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #ececef;
}
.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.65) 50%, transparent 100%);
  animation: sk-shimmer 1.5s ease-in-out infinite;
}
@keyframes sk-shimmer { to { transform: translateX(100%); } }
.sk-media { aspect-ratio: 1 / 1; border-radius: var(--sp-radius-sm); margin-bottom: 20px; }
.sk-line { height: 14px; border-radius: 6px; margin-top: 12px; }
.sk-line--lg { height: 20px; width: 76%; }
.sk-line--sm { height: 12px; width: 54%; }
.sk-line--price { height: 18px; width: 38%; margin-top: 18px; }
.sk-line--half { width: 48%; }
.sk-block { height: 120px; border-radius: var(--sp-radius-sm); }

.product-card.is-skeleton { pointer-events: none; }

.shop-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: clamp(48px, 7vw, 88px) 24px;
  text-align: center;
}
.shop-state__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--sp-card);
  color: var(--sp-ink-2);
  box-shadow: var(--sp-shadow);
}
.shop-state__icon svg { width: 26px; height: 26px; }
.shop-state h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0;
}
.shop-state p {
  max-width: 42ch;
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sp-ink-2);
}
.shop-state .s-btn { margin-top: 22px; }
.shop-state--inline { padding: 24px 0; }
.shop-state--plain .shop-state__icon { box-shadow: none; background: var(--sp-line-soft); }

/* --------------------------------------------------------------------------
   5. store.html — hero / feature / filter / grid / services
   -------------------------------------------------------------------------- */
.store-hero {
  padding: clamp(44px, 6vw, 88px) 0 clamp(36px, 4.4vw, 60px);
  background: var(--sp-card);
}
.store-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: clamp(28px, 4vw, 64px);
}
.store-hero__lead {
  max-width: 30em;
  margin: 22px 0 0;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--sp-ink-2);
}
.store-hero__facts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sp-ink-2);
}
.store-hero__facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--sp-line-soft);
}
.store-hero__facts li:first-child { padding-top: 0; border-top: 0; }
.store-hero__facts svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--sp-ink); }

.store-feature-wrap { padding-top: clamp(24px, 3vw, 36px); }
.store-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 3.4vw, 56px);
  background: var(--sp-card);
  border-radius: 26px;
  overflow: hidden;
}
.store-feature__eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sp-red);
}
.store-feature h2 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.store-feature__sub {
  margin: 14px 0 0;
  max-width: 30em;
  font-size: 16px;
  line-height: 1.65;
  color: var(--sp-ink-2);
}
.store-feature__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--sp-ink-2);
}
.store-feature__perks li { display: flex; align-items: center; gap: 6px; }
.store-feature__perks svg { width: 14px; height: 14px; color: var(--sp-ink); }
.store-feature__buy {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.store-feature__price {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.store-feature__price small { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--sp-ink-2); }
.store-feature__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.store-feature__media img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  transition: transform 0.4s var(--sp-ease);
}
.store-feature:hover .store-feature__media img { transform: scale(1.02); }

.store-filter {
  position: sticky;
  top: var(--nav-h);
  z-index: 120;
  margin-top: clamp(28px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--sp-line);
}
.store-filter__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.store-filter__inner::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--sp-line);
  border-radius: 980px;
  background: var(--sp-card);
  color: var(--sp-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 34px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.chip:hover { border-color: var(--sp-ink-3); }
.chip.is-active {
  background: var(--sp-ink);
  border-color: var(--sp-ink);
  color: #fff;
}
.store-filter__count {
  margin-left: auto;
  padding-left: 16px;
  flex: none;
  font-size: 13px;
  color: var(--sp-ink-2);
  white-space: nowrap;
}

.store-catalog { padding: clamp(28px, 3.6vw, 44px) 0 clamp(48px, 6vw, 76px); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product-grid.is-switching { animation: grid-in 0.3s var(--sp-ease); }
@keyframes grid-in {
  from { opacity: 0.4; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
  border-radius: var(--sp-radius);
  background: var(--sp-card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s var(--sp-ease), box-shadow 0.2s var(--sp-ease);
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow-hover);
}
.product-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 8px;
  aspect-ratio: 1 / 1;
  border-radius: var(--sp-radius-sm);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--sp-ease);
}
.product-card:hover .product-card__media img { transform: scale(1.02); }
.product-card__badges {
  position: absolute;
  top: 0;
  left: 2px;
  display: flex;
  gap: 6px;
  z-index: 1;
}
.product-card__badge {
  padding: 3px 9px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--sp-line-soft);
  color: var(--sp-ink-2);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.product-card__body { display: flex; flex-direction: column; flex: 1; }
.product-card__name {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--sp-ink);
}
.product-card__sub {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sp-ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.product-card__price {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--sp-ink);
}
.product-card__price small {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sp-ink-2);
}
.product-card__compare {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--sp-ink-3);
  text-decoration: line-through;
}
.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--sp-red);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s var(--sp-ease), transform 0.2s var(--sp-ease);
}
.product-card__cta svg { width: 13px; height: 13px; }
.product-card:hover .product-card__cta,
.product-card:focus-visible .product-card__cta {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .product-card__cta { opacity: 1; transform: none; }
}

.store-services {
  padding: clamp(36px, 5vw, 64px) 0;
  background: var(--sp-card);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.service-item svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--sp-ink);
}
.service-item h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.service-item p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--sp-ink-2);
}

.store-help { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.help-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: 22px;
  background: var(--sp-card);
}
.help-card h2 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.help-card p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--sp-ink-2);
}
.help-card__actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }

/* --------------------------------------------------------------------------
   6. buy.html — 购买页
   -------------------------------------------------------------------------- */
.buy-page { padding-bottom: clamp(40px, 6vw, 80px); }
.buy-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: clamp(20px, 3vw, 32px) 0 0;
  font-size: 13px;
  color: var(--sp-ink-2);
}
.buy-crumb a { color: var(--sp-ink-2); text-decoration: none; transition: color 0.2s; }
.buy-crumb a:hover { color: var(--sp-ink); }
.buy-crumb span[aria-current] { color: var(--sp-ink); }

.buy-main {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.78fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(22px, 3vw, 36px) 0 clamp(44px, 5.5vw, 76px);
}
.buy-gallery {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.buy-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 44px);
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: var(--sp-card);
  overflow: hidden;
}
.buy-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.24s ease;
}
.buy-stage.is-swapping img { opacity: 0.25; }
.buy-stage__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
}
.buy-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 0;
}
.buy-thumb {
  width: 76px;
  height: 76px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--sp-radius-sm);
  background: var(--sp-card);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.buy-thumb img { width: 100%; height: 100%; object-fit: contain; }
.buy-thumb:hover { border-color: var(--sp-line); }
.buy-thumb.is-active { border-color: var(--sp-ink); }

.buy-panel { padding-top: 4px; }
.buy-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sp-red);
}
.buy-title {
  margin: 0;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.022em;
}
.buy-sub {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--sp-ink-2);
}
.buy-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.buy-price {
  font-size: clamp(28px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.024em;
  font-variant-numeric: tabular-nums;
}
.buy-compare {
  font-size: 16px;
  color: var(--sp-ink-3);
  text-decoration: line-through;
}
.buy-tax { font-size: 13px; color: var(--sp-ink-2); }

.buy-block {
  border-top: 1px solid var(--sp-line);
  margin-top: 26px;
  padding-top: 22px;
}
.buy-block__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.buy-block__label span { font-size: 13px; font-weight: 400; color: var(--sp-ink-2); }
.variant-list { display: grid; gap: 10px; margin-top: 14px; }
.variant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  background: var(--sp-card);
  color: var(--sp-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.variant:hover { border-color: var(--sp-ink-3); }
.variant[aria-pressed="true"] {
  border-color: var(--sp-ink);
  box-shadow: inset 0 0 0 1px var(--sp-ink);
}
.variant__name { display: block; font-size: 15px; font-weight: 500; line-height: 1.45; }
.variant__note { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--sp-ink-2); }
.variant__price { flex: none; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.variant__delta { color: var(--sp-ink-2); font-size: 13px; font-weight: 500; }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--sp-line);
  border-radius: 980px;
  background: var(--sp-card);
  overflow: hidden;
}
.qty__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 44px;
  color: var(--sp-ink);
  font: inherit;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.qty__btn:hover { background: var(--sp-bg); }
.qty__btn[disabled] { color: #c7c7cc; cursor: not-allowed; background: none; }
.qty__val {
  min-width: 44px;
  text-align: center;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.qty__max { font-size: 13px; color: var(--sp-ink-2); }

.buy-actions { display: grid; gap: 10px; margin-top: 26px; }
.buy-perks {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sp-ink-2);
}
.buy-perks li { display: flex; align-items: flex-start; gap: 10px; }
.buy-perks svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--sp-ink); }
.buy-perks strong { color: var(--sp-ink); font-weight: 500; }

.buy-highlights {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--sp-line);
  list-style: none;
}
.buy-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sp-ink);
}
.buy-highlights svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--sp-ink-2); }

/* 下方详情 */
.buy-sections { border-top: 1px solid var(--sp-line); }
.buy-story { padding: clamp(48px, 6vw, 88px) 0; }
.buy-story__head { max-width: 760px; }
.buy-story h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.buy-story__desc {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--sp-ink-2);
}
.buy-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.buy-feature {
  padding: 24px;
  border-radius: var(--sp-radius);
  background: var(--sp-card);
}
.buy-feature__num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sp-red);
}
.buy-feature p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sp-ink);
}
.buy-story__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.buy-story__media figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--sp-radius);
  background: var(--sp-card);
}
.buy-story__media figure:first-child { grid-column: 1 / -1; }
.buy-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.5s var(--sp-ease);
}
.buy-story__media figure:first-child img { aspect-ratio: 16 / 8.4; }
.buy-story__media figure:hover img { transform: scale(1.015); }

.buy-specs {
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--sp-line);
}
.buy-specs h2 { margin: 0 0 24px; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--sp-radius);
  background: var(--sp-card);
  overflow: hidden;
}
.spec-table th,
.spec-table td {
  padding: 16px 22px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 1px solid var(--sp-line-soft);
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 30%; font-weight: 500; color: var(--sp-ink-2); }
.spec-table td { color: var(--sp-ink); }
.spec-footnote { margin: 14px 0 0; font-size: 12px; color: var(--sp-ink-2); }

.buy-related { padding: clamp(40px, 5vw, 64px) 0 0; border-top: 1px solid var(--sp-line); }
.buy-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.buy-related h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); }
.buy-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

/* 移动端吸底购买栏 */
.buy-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px var(--sp-gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--sp-line);
}
.buy-sticky__info { flex: 1; min-width: 0; }
.buy-sticky__price { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.buy-sticky__name {
  font-size: 12px;
  color: var(--sp-ink-2);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.buy-sticky .s-btn { height: 46px; padding: 0 16px; font-size: 15px; border-radius: 10px; }

/* --------------------------------------------------------------------------
   7. cart.html — 购物袋
   -------------------------------------------------------------------------- */
.cart-page { padding: clamp(32px, 4.4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.cart-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sp-line);
}
.cart-head h1 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
}
.cart-head__count { font-size: 14px; color: var(--sp-ink-2); margin-left: 10px; }
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(20px, 3vw, 32px);
}
.cart-list { display: flex; flex-direction: column; }
.cart-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto auto;
  gap: clamp(16px, 2.4vw, 26px);
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--sp-line);
}
.cart-row__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  padding: 10px;
  border-radius: 14px;
  background: var(--sp-card);
  overflow: hidden;
}
.cart-row__media img { width: 100%; height: 100%; object-fit: contain; }
.cart-row__info { min-width: 0; }
.cart-row__name {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.008em;
  color: var(--sp-ink);
  text-decoration: none;
}
.cart-row__name:hover { color: var(--sp-red); }
.cart-row__variant { margin: 4px 0 0; font-size: 13px; color: var(--sp-ink-2); }
.cart-row__unit { margin: 6px 0 0; font-size: 13px; color: var(--sp-ink-2); }
.cart-row__qty { display: flex; justify-content: flex-end; }
.cart-row__qty .qty__btn { width: 40px; height: 38px; font-size: 17px; }
.cart-row__qty .qty__val { min-width: 38px; font-size: 15px; }
.cart-row__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  text-align: right;
}
.cart-row__total {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.cart-row__remove {
  padding: 2px;
  color: var(--sp-ink-2);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
  transition: color 0.18s ease;
}
.cart-row__remove:hover { color: var(--sp-red); }
.cart-aside { min-width: 0; }

.summary-card {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: clamp(22px, 3vw, 28px);
  border-radius: var(--sp-radius);
  background: var(--sp-card);
  box-shadow: var(--sp-shadow);
}
.summary-card h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.summary-lines { margin: 14px 0 0; }
.summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  font-size: 15px;
  color: var(--sp-ink-2);
}
.summary-line strong { color: var(--sp-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.summary-line .free { color: var(--sp-green); font-weight: 500; }
.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--sp-line);
  font-size: 16px;
}
.summary-total strong {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.022em;
  font-variant-numeric: tabular-nums;
}
.summary-card .s-btn { margin-top: 20px; }
.summary-note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--sp-ink-2);
}
.summary-note a { color: var(--sp-ink-2); text-decoration: underline; text-underline-offset: 2px; }
.summary-items {
  display: grid;
  gap: 14px;
  max-height: 318px;
  margin: 18px 0 4px;
  padding-right: 4px;
  overflow: auto;
}
.summary-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.summary-item__media {
  width: 56px;
  height: 56px;
  padding: 6px;
  border-radius: 10px;
  background: var(--sp-bg);
}
.summary-item__media img { width: 100%; height: 100%; object-fit: contain; }
.summary-item__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.summary-item__meta { margin-top: 2px; font-size: 12px; color: var(--sp-ink-2); }
.summary-item__price { font-size: 14px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   8. checkout.html — 结算
   -------------------------------------------------------------------------- */
.checkout-page { padding: clamp(32px, 4.4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.checkout-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sp-line);
}
.checkout-head h1 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: start;
  gap: clamp(32px, 4.5vw, 64px);
  margin-top: clamp(8px, 2vw, 16px);
}
.co-section { padding: clamp(24px, 3vw, 34px) 0; border-bottom: 1px solid var(--sp-line); }
.co-section:last-child { border-bottom: 0; }
.co-section__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.co-step {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--sp-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transform: translateY(-1px);
}
.co-section h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.012em; }
.co-section__hint { font-size: 13px; color: var(--sp-ink-2); margin: 6px 0 0 36px; }
.co-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.co-field--full { grid-column: 1 / -1; }

.s-field { min-width: 0; }
.s-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sp-ink-2);
}
.s-field label .req { margin-left: 2px; color: var(--sp-red); }
.input,
.textarea,
.select {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-sm);
  background: var(--sp-card);
  color: var(--sp-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; }
.input::placeholder,
.textarea::placeholder { color: #a1a1a6; }
.input:hover,
.textarea:hover,
.select:hover { border-color: #b8b8bd; }
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--sp-ink);
  box-shadow: var(--sp-focus);
}
.s-field.has-error .input,
.s-field.has-error .textarea,
.s-field.has-error .select {
  border-color: var(--sp-red);
  box-shadow: 0 0 0 4px rgba(225, 37, 27, 0.08);
}
.s-field__err {
  display: none;
  align-items: flex-start;
  gap: 5px;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sp-red);
}
.s-field__err svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.s-field.has-error .s-field__err { display: flex; }
.s-field__hint { margin-top: 7px; font-size: 12px; line-height: 1.5; color: var(--sp-ink-2); }

.option-list { display: grid; gap: 12px; margin-top: 18px; }
.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  background: var(--sp-card);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.option:hover { border-color: var(--sp-ink-3); }
.option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.option__radio {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  border: 1.5px solid #c7c7cc;
  border-radius: 50%;
  transition: border-color 0.18s ease;
}
.option__radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sp-ink);
  transform: scale(0);
  transition: transform 0.18s var(--sp-ease);
}
.option.is-checked { border-color: var(--sp-ink); box-shadow: inset 0 0 0 1px var(--sp-ink); }
.option.is-checked .option__radio { border-color: var(--sp-ink); }
.option.is-checked .option__radio::after { transform: scale(1); }
.option.is-disabled { opacity: 0.55; cursor: not-allowed; background: #fafafa; }
.option.is-disabled:hover { border-color: var(--sp-line); }
.option input:focus-visible ~ .option__radio {
  outline: 2px solid var(--sp-ink);
  outline-offset: 3px;
}
.option__body { flex: 1; min-width: 0; }
.option__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.option__desc { display: block; margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--sp-ink-2); }
.option--compact { padding: 14px 16px; }

.checkout-aside { min-width: 0; }
.checkout-submit { margin-top: 20px; }
.submit-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--sp-radius-sm);
  background: rgba(225, 37, 27, 0.07);
  color: #8a1710;
  font-size: 13px;
  line-height: 1.5;
}
.submit-error svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--sp-radius-sm);
  background: var(--sp-bg);
  color: var(--sp-ink-2);
  font-size: 12px;
  line-height: 1.55;
}
.notice-bar svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--sp-ink-2); }
.notice-bar--red { background: rgba(225, 37, 27, 0.06); color: #8a1710; }
.notice-bar--red svg { color: var(--sp-red); }
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--sp-ink-2);
}
.secure-note svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   9. order.html — 订单 / 支付
   -------------------------------------------------------------------------- */
.order-page { padding-bottom: clamp(48px, 6vw, 88px); }
.order-loading { padding: clamp(40px, 6vw, 72px) 0; }
.order-loading__hero {
  height: 180px;
  border-radius: var(--sp-radius);
  margin-bottom: 28px;
}
.order-loading__line { height: 18px; border-radius: 8px; margin-top: 14px; }
.order-loading__line--sm { width: 40%; }
.order-loading__line--md { width: 65%; }

.order-hero {
  padding: clamp(40px, 6vw, 76px) 0 clamp(32px, 4vw, 48px);
  background: var(--sp-card);
}
.order-hero__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.order-hero__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--sp-bg);
  color: var(--sp-ink-2);
}
.order-hero__icon svg { width: 32px; height: 32px; }
.order-hero__icon--wait { background: rgba(225, 37, 27, 0.08); color: var(--sp-red); }
.order-hero__icon--paid { background: #e8f6ec; color: var(--sp-green); }
.order-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sp-ink-2);
}
.order-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.024em;
}
.order-hero__desc {
  max-width: 52ch;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--sp-ink-2);
}
.order-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--sp-ink-2);
}
.order-hero__no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--sp-ink);
  letter-spacing: 0.03em;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--sp-line);
  border-radius: 980px;
  background: var(--sp-card);
  color: var(--sp-ink-2);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.copy-btn:hover { border-color: var(--sp-ink-3); color: var(--sp-ink); }
.copy-btn svg { width: 13px; height: 13px; }
.order-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.order-steps {
  display: flex;
  align-items: flex-start;
  max-width: 680px;
  margin: clamp(28px, 4vw, 40px) auto 0;
}
.order-step {
  position: relative;
  flex: 1;
  padding: 0 4px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sp-ink-2);
}
.order-step::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--sp-line-soft);
}
.order-step:last-child::before { display: none; }
.order-step.is-done::before { background: var(--sp-ink); }
.order-step__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0 auto 10px;
  border: 2px solid var(--sp-line);
  border-radius: 50%;
  background: var(--sp-card);
}
.order-step.is-done .order-step__dot { border-color: var(--sp-ink); background: var(--sp-ink); }
.order-step.is-done .order-step__dot::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}
.order-step.is-current .order-step__dot { border-color: var(--sp-red); background: var(--sp-card); }
.order-step.is-current .order-step__dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sp-red);
}
.order-step.is-done,
.order-step.is-current { color: var(--sp-ink); }
.order-step__label { font-weight: 500; }
.order-step__time { margin-top: 2px; font-size: 11px; color: var(--sp-ink-3); }

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: clamp(24px, 3.4vw, 44px);
  margin-top: clamp(24px, 3.4vw, 40px);
}
.order-main { display: grid; gap: 16px; min-width: 0; }
.order-aside { display: grid; gap: 16px; min-width: 0; }
.order-card {
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--sp-radius);
  background: var(--sp-card);
  box-shadow: var(--sp-shadow);
}
.order-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.order-card h2 svg { width: 19px; height: 19px; color: var(--sp-ink-2); }
.order-pay__amount {
  margin: 0;
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.024em;
  font-variant-numeric: tabular-nums;
}
.order-pay__sub { margin: 6px 0 0; font-size: 14px; color: var(--sp-ink-2); }
.order-pay .s-btn { margin-top: 20px; }
.pay-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--sp-ink-2);
}
.bank-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: var(--sp-bg);
}
.bank-list { margin: 0; display: grid; gap: 10px; }
.bank-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.bank-row dt { flex: none; color: var(--sp-ink-2); }
.bank-row dd { margin: 0; text-align: right; font-weight: 500; word-break: break-all; }
.bank-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--sp-line);
}
.bank-qr img { width: 132px; height: 132px; border-radius: 12px; background: #fff; padding: 6px; }
.bank-qr p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--sp-ink-2); }
.pay-tip { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--sp-ink-2); }
.bank-copy { margin-top: 12px; }

.order-items { display: grid; gap: 18px; }
.order-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.order-item__media {
  width: 72px;
  height: 72px;
  padding: 8px;
  border-radius: 12px;
  background: var(--sp-bg);
}
.order-item__media img { width: 100%; height: 100%; object-fit: contain; }
.order-item__name { font-size: 15px; font-weight: 500; line-height: 1.45; }
.order-item__meta { margin-top: 3px; font-size: 12px; color: var(--sp-ink-2); }
.order-item__price { font-size: 15px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }

.order-info { display: grid; gap: 0; }
.order-info__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid var(--sp-line-soft);
}
.order-info__row:last-child { border-bottom: 0; }
.order-info__row dt { flex: none; color: var(--sp-ink-2); }
.order-info__row dd { margin: 0; text-align: right; color: var(--sp-ink); word-break: break-word; }
.order-info__row dd .shop-mono { font-size: 13px; }
.order-address { font-size: 14px; line-height: 1.7; color: var(--sp-ink); }
.order-address strong { font-weight: 500; }
.order-address p { margin: 6px 0 0; color: var(--sp-ink-2); }
.order-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--sp-radius-sm);
  background: var(--sp-bg);
  font-size: 14px;
  line-height: 1.6;
  color: var(--sp-ink-2);
}
.order-events { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.order-event { display: flex; gap: 12px; font-size: 13px; line-height: 1.55; }
.order-event__dot {
  width: 8px;
  height: 8px;
  flex: none;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--sp-line);
}
.order-event:first-child .order-event__dot { background: var(--sp-ink); }
.order-event__text { color: var(--sp-ink); }
.order-event__time { margin-top: 2px; font-size: 12px; color: var(--sp-ink-3); }
.order-help { font-size: 13px; line-height: 1.65; color: var(--sp-ink-2); }
.order-help a { color: var(--sp-ink); text-decoration: underline; text-underline-offset: 2px; }
.order-aside .summary-card { position: static; }
.order-aside .summary-card h2 { margin-bottom: 10px; }

.verify-card {
  max-width: 520px;
  margin: clamp(48px, 8vw, 96px) auto;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  background: var(--sp-card);
  box-shadow: var(--sp-shadow);
}
.verify-card h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; }
.verify-card p { margin: 12px 0 0; font-size: 15px; line-height: 1.65; color: var(--sp-ink-2); }
.verify-card form { margin-top: 24px; display: grid; gap: 16px; }
.verify-card .s-btn { margin-top: 4px; }

/* --------------------------------------------------------------------------
   10. orders.html — 订单查询
   -------------------------------------------------------------------------- */
.orders-page {
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px);
  min-height: 70vh;
}
.orders-card {
  width: min(600px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 26px;
  background: var(--sp-card);
}
.orders-card h1 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.orders-lead { margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: var(--sp-ink-2); }
.orders-form { display: grid; gap: 18px; margin-top: 28px; }
.orders-help { margin: 0; font-size: 13px; color: var(--sp-ink-2); text-align: center; }
.orders-help a { color: var(--sp-ink); text-decoration: underline; text-underline-offset: 2px; }
.orders-result {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--sp-radius-sm);
  background: var(--sp-bg);
}
.orders-result__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.orders-result__no { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.03em; }
.orders-result__amount { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.orders-result__meta { font-size: 13px; color: var(--sp-ink-2); }
.orders-result .s-btn { margin-top: 4px; height: 44px; font-size: 15px; }

/* --------------------------------------------------------------------------
   11. pay-demo.html — 演示支付
   -------------------------------------------------------------------------- */
.paydemo-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
  min-height: calc(100vh - var(--nav-h));
}
.paydemo-card {
  width: min(560px, 100%);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 26px;
  background: var(--sp-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.07);
}
.paydemo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 13px;
  border-radius: 980px;
  background: rgba(225, 37, 27, 0.07);
  color: var(--sp-red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.paydemo-badge svg { width: 13px; height: 13px; }
.paydemo-card h1 {
  margin: 20px 0 0;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.14;
}
.paydemo-sub { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: var(--sp-ink-2); }
.paydemo-detail { margin-top: 26px; }
.paydemo-amount {
  margin: 0;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.paydemo-detail .order-info { margin-top: 18px; }
.paydemo-actions { display: grid; gap: 10px; margin-top: 28px; }
.paydemo-note {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--sp-ink-2);
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .buy-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .buy-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .buy-gallery { position: static; }
  .buy-gallery { display: grid; grid-template-columns: 1fr; }
  .buy-stage { aspect-ratio: 4 / 3; }
  .buy-panel { padding-top: 0; }
  .checkout-layout,
  .cart-layout,
  .order-layout { grid-template-columns: 1fr; }
  .cart-aside { order: 2; }
  .cart-list { order: 1; }
  .summary-card { position: static; }
  .order-aside { order: 2; }
  .order-main { order: 1; }
  .store-feature { grid-template-columns: 1fr; }
  .store-feature__media { order: -1; min-height: 0; }
  .store-feature__media img { max-height: 300px; }
  .buy-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .buy-sticky { display: flex; }
  .buy-page { padding-bottom: 92px; }
  body[data-page="buy"] .footer { padding-bottom: 86px; }
  .store-hero__inner { grid-template-columns: 1fr; gap: 26px; }
  .store-hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }
  .store-hero__facts li { padding-top: 0; border-top: 0; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-card { flex-direction: column; align-items: flex-start; }
  .buy-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 767px) {
  body.theme-shop { font-size: 16px; }
  .product-grid { gap: 12px; }
  .product-card { padding: 14px 14px 18px; }
  .product-card__name { font-size: 18px; }
  .product-card__price { font-size: 18px; }
  .product-card__sub { font-size: 13px; min-height: 0; -webkit-line-clamp: 2; }
  .product-card__foot { padding-top: 14px; }
  .product-card__cta { font-size: 14px; }
  .product-card__badge { font-size: 10px; padding: 2px 7px; }

  .store-filter { margin-top: 20px; }
  .store-filter__count { display: none; }
  .store-services { padding: 32px 0; }
  .store-feature { padding: 20px; border-radius: 20px; }
  .store-feature__media img { max-height: 240px; }

  .buy-story__media { grid-template-columns: 1fr; gap: 12px; }
  .buy-story__media figure:first-child { grid-column: auto; }
  .buy-story__media figure:first-child img { aspect-ratio: 4 / 3; }
  .buy-features { grid-template-columns: 1fr; }
  .variant { flex-wrap: wrap; row-gap: 6px; }
  .variant > span:first-child { flex: 1 1 100%; }
  .variant__price { text-align: left; }
  .buy-main { gap: 22px; }
  .spec-table th,
  .spec-table td { padding: 13px 16px; font-size: 14px; }
  .spec-table th { width: 34%; }

  .cart-row {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas: "media info" "qty controls";
    gap: 12px 14px;
    padding: 20px 0;
    align-items: center;
  }
  .cart-row__media { grid-area: media; width: 88px; height: 88px; padding: 8px; }
  .cart-row__info { grid-area: info; }
  .cart-row__qty { grid-area: qty; justify-content: flex-start; }
  .cart-row__controls {
    grid-area: controls;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
  }
  .cart-row__total { font-size: 16px; }

  .co-fields { grid-template-columns: 1fr; gap: 16px; }
  .co-section__hint { margin-left: 0; }

  .order-hero { padding: 32px 0 28px; }
  .order-hero__icon { width: 60px; height: 60px; margin-bottom: 18px; }
  .order-hero__icon svg { width: 26px; height: 26px; }
  .order-step { font-size: 12px; }
  .order-step__time { display: none; }
  .order-info__row { font-size: 13px; }
  .order-item { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; }
  .order-item__media { width: 60px; height: 60px; padding: 6px; }
  .bank-qr { flex-direction: column; align-items: flex-start; }

  .orders-card { padding: 24px 20px; border-radius: 20px; }
  .paydemo-card { padding: 26px 20px; border-radius: 20px; }
}

@media (max-width: 559px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card { flex-direction: row; align-items: center; gap: 16px; padding: 14px; }
  .product-card__media { flex: none; width: 116px; margin-bottom: 0; padding: 4px; }
  .product-card__body { flex: 1; min-width: 0; }
  .product-card__name { font-size: 17px; }
  .product-card__sub { display: none; }
  .product-card__foot { padding-top: 10px; }
  .product-card__cta { opacity: 1; transform: none; }
  .product-card__badges { top: -4px; left: -4px; }

  .service-grid { grid-template-columns: 1fr; }
  .store-hero__facts { grid-template-columns: 1fr; }
  .buy-related__grid { grid-template-columns: 1fr; }
  .buy-related__grid .product-card { flex-direction: row; }
  .buy-related__grid .product-card__media { width: 96px; margin-bottom: 0; }
  .buy-related__grid .product-card__sub { display: none; }

  .cart-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .checkout-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .buy-sticky .s-btn { padding: 0 13px; font-size: 14px; }
  .buy-sticky__price { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   12b. 补充骨架 / 局部布局
   -------------------------------------------------------------------------- */
.sk-stage { aspect-ratio: 1 / 1; border-radius: 24px; }
.sk-thumb { width: 76px; height: 76px; border-radius: var(--sp-radius-sm); }
.sk-h1 { height: 40px; width: 80%; border-radius: 10px; margin-top: 20px; }
.sk-sub { height: 16px; width: 58%; margin-top: 16px; }
.sk-price { height: 30px; width: 34%; border-radius: 8px; margin-top: 26px; }
.sk-btn { height: 52px; border-radius: var(--sp-radius-sm); margin-top: 16px; }
.co-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.paydemo-wrap { width: min(600px, 100%); margin-inline: auto; }
.paydemo-page { flex-direction: column; }
.paydemo-page > .shop-wrap { display: flex; flex-direction: column; align-items: center; }
.paydemo-page #payDemoError { width: 100%; }
@media (max-width: 767px) {
  .co-fields.co-fields--3 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   13. Dark theme SKU（仅 solensar-a1）：深色图片容器 + 浅色文字
   -------------------------------------------------------------------------- */
.product-card--dark {
  background: #0b0b0d;
  color: #f5f5f7;
}
.product-card--dark:hover { box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26); }
/* 纯渐变底，避免同一张产品图做模糊背景时透出"第二份轮廓"（幽灵重影） */
.product-card--dark .product-card__media {
  background: radial-gradient(120% 100% at 50% 38%, #1a1a1e 0%, #0a0a0c 72%);
  padding: 8px 10px;
}
.product-card--dark .product-card__name { color: #f5f5f7; font-size: 20px; }
.product-card--dark .product-card__sub { color: #a1a1a6; }
.product-card--dark .product-card__price { color: #f5f5f7; }
.product-card--dark .product-card__compare { color: #6e6e73; }
.product-card--dark .product-card__cta { color: #ff6b60; }
.product-card--dark .product-card__badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f5f5f7;
}

.store-feature--dark {
  background: #0b0b0d;
  color: #f5f5f7;
}
.store-feature--dark .store-feature__eyebrow { color: #ff6b60; }
.store-feature--dark .store-feature__sub,
.store-feature--dark .store-feature__perks { color: #a1a1a6; }
.store-feature--dark .store-feature__price { color: #f5f5f7; }
.store-feature--dark .store-feature__perks svg { color: #f5f5f7; }
.store-feature--dark .store-feature__media img { max-height: 430px; padding: 6px; }
.store-feature--dark .store-feature__media {
  border-radius: 18px;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.06), transparent 62%);
}

/* 购买页 A1 暗底画廊：纯深色渐变底（不使用产品图模糊铺底，避免重影） */
.buy-gallery--dark .buy-stage {
  background: radial-gradient(120% 90% at 50% 40%, #1a1a1d 0%, #0a0a0c 70%);
}
.buy-gallery--dark .buy-thumb {
  background: #08080a;
  border-color: rgba(255, 255, 255, 0.1);
}
.buy-gallery--dark .buy-thumb:hover { border-color: rgba(255, 255, 255, 0.32); }
.buy-gallery--dark .buy-thumb.is-active { border-color: #f5f5f7; }
.buy-gallery--dark .buy-stage__badge.tag {
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
}

/* --------------------------------------------------------------------------
   14. Motion / print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body.theme-shop *,
  body.theme-shop *::before,
  body.theme-shop *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .sk::after { display: none; }
}

/* 深色卡片在窄屏下的字阶（优先级高于基础深色规则） */
@media (max-width: 767px) {
  .product-card--dark .product-card__name { font-size: 18px; }
}
@media (max-width: 559px) {
  .product-card--dark .product-card__name { font-size: 17px; }
}
