/* 全局基础样式 */
:root {
  --blue: #3b82f6;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --bg-soft: #f8fafc;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

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

button {
  font: inherit;
}

/* 顶部导航 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.25);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.language-toggle {
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #374151;
  cursor: pointer;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.language-toggle:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.language-toggle {
  border: 1px solid rgba(59, 130, 246, 0.24);
  color: var(--blue-dark);
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #111827;
}

/* 首页 Hero */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: 72px;
  padding: 92px 20px 78px;
  background: #f7f7f8;
  border-bottom: 1px solid #eceef2;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
}

.hero-label,
.section-kicker {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-weight: 750;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  color: #111111;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-typewriter {
  position: relative;
  width: min(760px, 100%);
  height: 48px;
  margin-top: 18px;
  overflow: hidden;
  color: #7c3aed;
  font-size: clamp(22px, 3.6vw, 34px);
  font-weight: 900;
  line-height: 48px;
}

.hero-typewriter span {
  position: absolute;
  inset: 0;
  display: inline-block;
  width: 100%;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  animation: heroTypePhrase 9s steps(18, end) infinite;
}

.hero-typewriter span::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 5px;
  background: #7c3aed;
  vertical-align: -0.08em;
  animation: heroCursorBlink 0.8s steps(1, end) infinite;
}

.hero-typewriter span:nth-child(2) { animation-delay: 3s; }
.hero-typewriter span:nth-child(3) { animation-delay: 6s; }

.hero-description {
  max-width: 760px;
  margin: 18px auto 0;
  color: #6b7280;
  font-size: 17px;
  line-height: 1.8;
}

.hero-shop-button {
  min-height: 58px;
  margin-top: 30px;
  padding: 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(124, 58, 237, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-shop-button:hover {
  transform: translateY(-2px);
  background: #6d28d9;
  box-shadow: 0 22px 42px rgba(124, 58, 237, 0.34);
}

.hero-trust-lines {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
}

.hero-trust-lines span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-trust-lines i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.16);
}

@keyframes heroTypePhrase {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); }
  5%, 27% { opacity: 1; clip-path: inset(0 0 0 0); }
  31%, 100% { opacity: 0; clip-path: inset(0 0 0 0); }
}

@keyframes heroCursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* 用户评价滚动区 */
.reviews-section {
  margin: 46px 0 6px;
  padding: 44px 0 42px;
  overflow: hidden;
  background: #f5f7fb;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.reviews-heading {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 26px;
  text-align: center;
}

.reviews-heading p {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 15px;
  font-weight: 750;
}

.reviews-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

.reviews-heading h2 span { color: #7c3aed; }

.reviews-marquee {
  width: 100%;
  overflow: hidden;
}

.reviews-marquee + .reviews-marquee { margin-top: 18px; }

.review-track {
  width: max-content;
  padding: 0 9px;
  display: flex;
  gap: 18px;
  will-change: transform;
}

.review-track-left { animation: reviewScrollLeft 86s linear infinite; }
.review-track-right { animation: reviewScrollRight 92s linear infinite; }
.reviews-marquee:hover .review-track { animation-play-state: paused; }

.review-card {
  position: relative;
  width: 330px;
  min-height: 202px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.review-quote {
  position: absolute;
  top: 8px;
  left: 18px;
  color: #ede9fe;
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 1;
  pointer-events: none;
}

.review-card p {
  position: relative;
  z-index: 1;
  margin: 20px 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.75;
}

.review-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.review-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.review-user { min-width: 0; display: grid; gap: 5px; }
.review-user strong { color: #111827; font-size: 14px; line-height: 1.1; }

.review-tag {
  width: max-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3e8ff;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 800;
}

.review-stars {
  color: #f59e0b;
  font-size: 13px;
  white-space: nowrap;
}

@keyframes reviewScrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes reviewScrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* 商品展示布局 */
.shop-section {
  scroll-margin-top: 96px;
  width: min(1180px, calc(100% - 32px));
  margin: 44px auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.category-panel {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.category-title {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}

.category-marker {
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: var(--blue);
}

.category-list {
  display: grid;
  gap: 10px;
}

.category-button {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  font-weight: 760;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-button:hover,
.category-button.active {
  border-color: rgba(59, 130, 246, 0.42);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.category-button.recommended-category {
  color: #7c3aed;
}

.category-button svg,
.category-button img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.product-area { min-width: 0; }

.section-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: 30px;
  line-height: 1.15;
}

.product-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}

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

.product-card {
  min-height: 254px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--product-border, #bfdbfe);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.product-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--product-soft, #eff6ff);
  color: var(--product-accent, var(--blue));
  font-size: 28px;
  font-weight: 900;
  border: 1px solid var(--product-border, #bfdbfe);
  overflow: hidden;
}

.product-icon svg,
.product-icon img,
.detail-product-icon svg,
.detail-product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-icon svg,
.detail-product-icon svg {
  padding: 12px;
  object-fit: contain;
}

.product-name {
  min-height: 48px;
  margin: 16px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.product-price {
  margin: 0;
  color: var(--product-accent, var(--blue-dark));
  font-size: 24px;
  font-weight: 900;
}

.product-meta { margin-top: 10px; }

.product-category {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

.product-info-badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-sold-badge,
.product-stock-badge {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.product-sold-badge {
  background: #f3f4f6;
  color: #4b5563;
}

.product-stock-badge {
  background: #dcfce7;
  color: #166534;
}

.product-buy-button {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
  transition: background 0.2s ease, transform 0.2s ease;
}

.product-buy-button:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
}

/* 产品详情页 */
.product-detail-page[hidden] { display: none; }

.product-detail-page {
  margin-top: 72px;
  padding: 34px 16px 58px;
  background: #ffffff;
  scroll-margin-top: 72px;
}

.detail-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.detail-main-card,
.detail-extra-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-main-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
}

.detail-image-panel {
  min-height: 430px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #f8fafc, #eef6ff);
  border: 1px solid #dbeafe;
}

.detail-product-icon {
  width: min(260px, 72%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: #ffffff;
  color: var(--blue-dark);
  font-size: 80px;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

.detail-info-panel { min-width: 0; }
.detail-breadcrumb { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 800; }
.detail-info-panel h1 { margin: 0; color: #111827; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; }

.detail-badges {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-price-block {
  margin-top: 22px;
  padding: 18px;
  display: grid;
  gap: 6px;
  border-radius: 18px;
  background: var(--blue-soft);
}

.detail-price-block span { color: var(--muted); font-size: 14px; font-weight: 800; }
.detail-price-block strong { color: var(--blue-dark); font-size: 34px; line-height: 1; }
.detail-divider { height: 1px; margin: 22px 0; background: var(--line); }

.detail-option-section { margin-top: 18px; }
.detail-option-section h2 { margin: 0 0 10px; font-size: 18px; }

.spec-card {
  width: 100%;
  min-height: 62px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: #eff6ff;
  color: #1e3a8a;
  text-align: left;
}

.detail-description,
.after-sale-section p,
.after-sale-section li {
  color: #374151;
  line-height: 1.8;
}

.quantity-control {
  width: fit-content;
  display: grid;
  grid-template-columns: 44px 78px 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.quantity-control button,
.quantity-control input {
  height: 44px;
  border: 0;
  background: #ffffff;
  text-align: center;
}

.quantity-control button { cursor: pointer; color: var(--blue-dark); font-weight: 900; }
.quantity-control input { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

.detail-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cart-button,
.detail-buy-button,
.detail-back {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 850;
}

.cart-button { background: #111827; color: #ffffff; }
.detail-buy-button { background: var(--blue); color: #ffffff; }
.detail-back { padding: 0 18px; background: var(--blue-soft); color: var(--blue-dark); }
.detail-bottom-back { justify-self: center; min-width: 220px; }
.detail-scroll-cue { margin-top: 18px; color: var(--muted); font-size: 14px; }
.detail-section-title { display: flex; align-items: center; gap: 10px; }
.detail-section-title h2 { margin: 0; font-size: 24px; }
.after-sale-section h3 { margin: 0 0 12px; font-size: 20px; }
.after-sale-section ul { margin: 0 0 18px; padding-left: 22px; }
.after-sale-section ol { margin-top: 8px; padding-left: 22px; }

/* 公告区域兼容 */
.notice-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 54px;
}

@media (max-width: 680px) {
  .reviews-section { margin-top: 30px; padding: 34px 0; }
  .review-card { width: 286px; min-height: 222px; padding: 22px; }
  .review-footer { grid-template-columns: 38px minmax(0, 1fr); }
  .review-stars { grid-column: 2; }
  .review-avatar { width: 38px; height: 38px; }
}


/* 最近购买通知弹窗 */
.purchase-toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 45;
  width: min(340px, calc(100vw - 32px));
  padding: 14px 42px 14px 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.purchase-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.purchase-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.purchase-avatar svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.purchase-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.purchase-copy strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.purchase-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-copy small {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
}

.purchase-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.purchase-close:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.inline-notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 95;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--blue-dark);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.inline-notice.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 支付方式弹窗 */
.payment-modal[hidden] {
  display: none;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.payment-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.payment-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.28);
}

.payment-dialog h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.payment-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-soft);
  color: #64748b;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.payment-close:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.payment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-tab {
  min-height: 48px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font-weight: 800;
}

.payment-tab.active {
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.payment-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.alipay-icon {
  background: #1677ff;
}

.wechat-icon {
  background: #22c55e;
}

.payment-qr-area {
  margin-top: 18px;
  display: grid;
  place-items: center;
  border: 1px dashed #bfdbfe;
  border-radius: 18px;
  background: #f8fafc;
  text-align: center;
}

.payment-qr-area img {
  width: min(260px, 86%);
  height: auto;
  display: block;
  border-radius: 14px;
}

.wechat-placeholder {
  padding: 28px;
  color: #64748b;
  font-weight: 800;
}

.payment-summary {
  margin-top: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
  border-radius: 16px;
  background: var(--bg-soft);
}

.payment-summary h3 {
  margin: 0;
  font-size: 16px;
}

.payment-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.payment-summary strong {
  color: var(--text);
  text-align: right;
}

.payment-instruction {
  margin: 14px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.payment-complete-button {
  width: 100%;
  margin-top: 14px;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
}

.payment-complete-button:hover {
  background: var(--blue-dark);
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.contact-dialog h2 {
  max-width: 340px;
  margin-right: 28px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 900;
}

.contact-dialog {
  height: auto;
  max-height: none;
  overflow: visible;
  overflow-y: auto;
  padding-bottom: 24px;
}

.contact-qr-crop {
  position: relative;
  width: min(320px, 100%);
  height: auto;
  margin: 18px auto 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.contact-qr-crop img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.contact-qr-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* 页脚 */
.site-footer {
  padding: 56px 20px 24px;
  background: #0d0d0d;
  color: #f8fafc;
}

.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(4, minmax(130px, 0.8fr));
  gap: 34px;
  align-items: start;
}

.footer-brand {
  max-width: 330px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-logo-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.24);
}

.footer-logo-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #93c5fd;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-brand p {
  margin: 18px 0 0;
  color: #a3a3a3;
  line-height: 1.75;
  font-size: 14px;
}

.footer-contact-note {
  margin-top: 20px;
  display: grid;
  gap: 6px;
  color: #737373;
  font-size: 13px;
}

.footer-contact-note strong {
  color: #d4d4d4;
  font-size: 14px;
  font-weight: 700;
}

.footer-column {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.footer-column h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.footer-column a {
  color: #a3a3a3;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  transition: color 0.2s ease;
}


.footer-wechat-qr {
  width: 136px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 4px 0 0;
  border-radius: 8px;
}

.footer-wechat-tip {
  margin: -2px 0 2px;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.6;
}
.footer-column a:hover {
  color: #ffffff;
}

.copyright {
  width: min(1180px, 100%);
  margin: 38px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #737373;
  font-size: 13px;
}

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

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 520px;
  }
}
/* 平板尺寸适配 */
@media (max-width: 960px) {
  .shop-section {
      scroll-margin-top: 96px;
grid-template-columns: 1fr;
  }

  .category-panel {
    position: static;
    padding: 14px;
  }

  .category-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .category-button {
    width: auto;
    min-width: max-content;
    text-align: center;
  }

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

  .detail-main-card {
    grid-template-columns: 1fr;
  }

  .detail-image-panel {
    min-height: 320px;
  }
}

/* 手机尺寸适配 */
@media (max-width: 680px) {
  .navbar {
    width: min(100% - 24px, 1180px);
    height: 64px;
  }

  .logo {
    font-size: 19px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    border-radius: 12px;
  }
  .hero {
    margin-top: 64px;
    padding: 64px 18px 56px;
  }

  .hero-typewriter {
    height: 40px;
    font-size: 22px;
    line-height: 40px;
  }

  .hero-description {
    font-size: 15px;
  }

  .shop-section {
      scroll-margin-top: 96px;
width: min(100% - 24px, 1180px);
    margin-top: 28px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .product-card {
    min-height: 218px;
  }

  .notice-section {
    width: min(100% - 24px, 1180px);
  }

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

  .purchase-toast {
    left: 12px;
    bottom: 88px;
  }
.payment-dialog {
    padding: 20px 16px;
  }

  .payment-tabs {
    grid-template-columns: 1fr;
  }

  .product-detail-page {
    margin-top: 64px;
    padding: 22px 12px 42px;
    scroll-margin-top: 64px;
  }

  .detail-main-card,
  .detail-extra-card {
    padding: 16px;
    border-radius: 18px;
  }

  .detail-image-panel {
    min-height: 240px;
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }
}
