:root {
  --bg: #f4efe7;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #fffdf9;
  --ink: #211c1a;
  --muted: #6f6761;
  --line: rgba(33, 28, 26, 0.08);
  --accent: #d96c3f;
  --accent-deep: #b65228;
  --accent-soft: rgba(217, 108, 63, 0.14);
  --shadow: 0 24px 80px rgba(68, 37, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 184, 143, 0.35), transparent 32%),
    radial-gradient(circle at right 10% top 20%, rgba(237, 219, 186, 0.85), transparent 25%),
    linear-gradient(180deg, #fffaf2 0%, #f4efe7 42%, #efe7dc 100%);
  font-family: "Noto Sans SC", sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(33, 28, 26, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 28, 26, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 80%);
}

.site-header,
.catalog-main,
.site-footer-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  user-select: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #241d1a 0%, #5b382a 100%);
  color: #fff7f0;
  font: 700 1rem/1 "Space Grotesk", sans-serif;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong,
.site-nav a,
.primary-btn,
.ghost-btn {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
}

.brand-copy strong {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.brand-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(76, 47, 29, 0.08);
  backdrop-filter: blur(18px);
  order: 1;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
}

.site-nav a.active {
  color: var(--ink);
  background: #fff8f3;
}

.catalog-main {
  width: min(1160px, calc(100% - 40px));
  margin: 8px auto 48px;
}

.product-card,
.detail-card,
.content-shell,
.empty-state {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.content-shell,
.empty-state {
  border-radius: 30px;
  padding: clamp(24px, 4vw, 38px);
}

.product-subtitle,
.product-desc,
.detail-subtitle,
.detail-desc,
.detail-stock,
.content-summary,
.rich-copy,
.empty-state p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font: 700 0.82rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.16em;
}

h1,
h2,
.product-title {
  margin: 0;
  letter-spacing: -0.04em;
}

h1 {
  font: 700 clamp(2.3rem, 5vw, 4.4rem)/1.02 "Space Grotesk", "Noto Sans SC", sans-serif;
  max-width: 12ch;
}

h2,
.product-title {
  font: 700 clamp(1.4rem, 2.8vw, 2rem)/1.05 "Space Grotesk", "Noto Sans SC", sans-serif;
}

.field {
  display: grid;
  gap: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 16px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.field textarea {
  min-height: 132px;
  padding: 14px 16px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(217, 108, 63, 0.65);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 18px;
  border: 0;
  padding: 0 20px;
  cursor: pointer;
  text-decoration: none;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #eb8f61 100%);
  color: #fff9f5;
  box-shadow: 0 18px 36px rgba(217, 108, 63, 0.28);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.product-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.product-card {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.product-card-static {
  cursor: default;
}

.product-media {
  display: block;
  aspect-ratio: 1 / 1;
  background: rgba(255, 250, 245, 0.9);
}

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

.product-copy {
  padding: 10px 10px 12px;
}

.product-category {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title a {
  color: inherit;
  text-decoration: none;
}

.product-subtitle,
.detail-subtitle {
  margin: 8px 0 0;
  font-size: 1rem;
}

.product-desc,
.detail-desc,
.rich-copy {
  line-height: 1.8;
}

.product-desc {
  display: none;
}

.product-desc-link {
  display: block;
  color: var(--muted);
  text-decoration: none;
}

.product-desc-link:hover {
  color: var(--ink);
}

.product-meta {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.product-meta .price-group strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.product-meta .price-group span {
  font-size: 0.7rem;
}

.product-meta em {
  font-size: 0.7rem;
  color: var(--muted);
}

.detail-price,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-actions .primary-btn {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  padding: 12px 16px;
}


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

.price-group strong,
.detail-price strong {
  font: 700 1.3rem/1 "Space Grotesk", "Noto Sans SC", sans-serif;
}

.price-group span,
.detail-price span {
  color: var(--muted);
  text-decoration: line-through;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 26px;
  border-radius: 30px;
}

.detail-media {
  min-height: 420px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 250, 245, 0.9);
}

.detail-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.detail-stock,
.content-summary {
  margin: 0;
}

.content-shell {
  max-width: 900px;
}

.content-summary {
  margin-top: 18px;
  font-size: 1.1rem;
}

.rich-copy {
  margin-top: 24px;
  font-size: 1rem;
}

.site-footer-shell {
  margin-top: 28px;
}

.footer-hero {
  background: #fffdfb;
}

.footer-hero-inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  padding: 14px 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
}

.footer-hero h2 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.footer-hero p {
  margin: 4px 0 0;
  max-width: none;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-hero-btn {
  min-width: 112px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}

.footer-legal {
  background: #1f1f1f;
  color: #fff;
}

.footer-legal-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0 18px;
  display: grid;
  gap: 8px;
}

.footer-legal-inner a,
.footer-legal-inner .footer-link-btn {
  color: #fff;
  text-decoration: none;
  font: 400 0.9rem/1.15 "Noto Sans SC", sans-serif;
}

.footer-legal-inner .footer-link-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.footer-legal-inner .footer-link-btn:hover {
  text-decoration: underline;
}

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

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

.payment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.42);
  backdrop-filter: blur(8px);
}

.payment-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.95);
  box-shadow: var(--shadow);
}

.detail-payment-btn {
  min-width: 220px;
}

.detail-secondary-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.detail-secondary-link:hover {
  color: var(--ink);
}

.payment-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(217, 108, 63, 0.12);
  color: var(--accent-deep);
  font-size: 1.5rem;
  cursor: pointer;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-size: 0.95rem;
}

.form-message.success {
  color: #1f7a46;
}

.form-message.error {
  color: #b23a26;
}

@media (max-width: 900px) {
  .detail-card {
    grid-template-columns: 1fr;
  }
}

/* Auth pages */
.auth-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  border-radius: 30px;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-switch {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Header nav user & cart */
.site-nav a,
.site-nav span {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
}

.site-nav a.active {
  color: var(--ink);
}

.site-nav span.nav-user-info {
  font-weight: 600;
  cursor: default;
}

/* 导航栏用户头像按钮 */
.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(33, 28, 26, 0.15);
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.2s, color 0.2s;
}
.nav-user-avatar:hover {
  color: var(--ink);
  border-color: var(--accent);
}

/* 语言切换下拉 */
.lang-switch-select {
  border: 1px solid rgba(33, 28, 26, 0.12);
  background: rgba(255, 255, 255, 0.4);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 28px 6px 12px;
  font: 600 0.78rem/1 "Space Grotesk", sans-serif;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236f6761' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
  outline: none;
  order: 2;
}
.lang-switch-select:hover {
  color: var(--ink);
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.7);
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(255, 248, 243, 0.6);
}

/* Cart page */
.cart-shell {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 38px);
}

.cart-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.cart-item-media {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 250, 245, 0.9);
  display: grid;
  place-items: center;
  font: 700 1.5rem/1 "Space Grotesk", sans-serif;
  color: var(--muted);
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.cart-item-price {
  margin: 0;
  color: var(--accent-deep);
  font-weight: 700;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.8);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.qty-btn:hover {
  background: var(--accent);
  color: #fff;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.cart-remove-btn {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 10px;
}

.cart-remove-btn:hover {
  color: #b23a26;
  background: rgba(178, 58, 38, 0.08);
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cart-summary-info {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.cart-summary-info strong {
  font: 700 1.4rem/1 "Space Grotesk", sans-serif;
  color: var(--accent-deep);
}

.detail-cart-btn {
  min-width: 160px;
}

.detail-actions {
  gap: 10px;
}

/* Tablet: 2 per row */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phone: 2 per row */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 移动端购物车商品换行 */
  .cart-item {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
  }
  .cart-item > div[style*="flex"] {
    flex: 1 1 100% !important;
    width: 100%;
  }
  .cart-item-actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 4px;
  }
  .cart-item-media {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }
  .cart-item-info h3 {
    font-size: 0.92rem;
  }
  .cart-item-price {
    font-size: 0.88rem;
  }
  .cart-summary {
    flex-wrap: wrap;
    gap: 10px;
  }
  .cart-summary-info {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
  }
  .cart-select-all {
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .detail-price,
  .detail-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .site-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px clamp(12px, 3vw, 20px);
  }

  .site-header > .brand {
    flex: 1;
  }

  /* 移动端导航栏一行展示，不滚动 */
  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    padding: 4px;
    order: 2;
    margin-left: 0;
  }
  .site-nav a,
  .site-nav span {
    white-space: nowrap;
    padding: 4px 8px;
    font-size: 0.95rem;
  }
  .nav-user-avatar {
    width: 22px;
    height: 22px;
  }
  .nav-user-avatar svg {
    width: 12px;
    height: 12px;
  }
  .lang-switch-select {
    order: 0;
    font-size: 0.7rem;
    padding: 4px 20px 4px 6px;
    background-position: right 5px center;
  }

  .catalog-main {
    width: min(100% - 20px, 100%);
  }

  .footer-legal-inner {
    width: min(100% - 20px, 100%);
  }

  .footer-hero-inner {
    width: min(100% - 20px, 100%);
  }
}

/* Customer Service Floating Button */
.cs-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cs-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
.cs-popup {
  position: fixed;
  bottom: 120px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  z-index: 9999;
  overflow: hidden;
}
.cs-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #25d366;
  color: #fff;
}
.cs-popup-header h3 {
  margin: 0;
  font-size: 16px;
}
.cs-popup-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.cs-popup-body {
  max-height: 360px;
  overflow-y: auto;
  padding: 8px 0;
}
.cs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s;
}
.cs-item:hover {
  background: #f0f9f4;
}
.cs-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.cs-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cs-item-info strong {
  font-size: 14px;
}
.cs-item-info span {
  font-size: 12px;
  color: var(--muted);
}

/* 用户信息弹窗 */
.user-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(20, 18, 16, 0.42);
  backdrop-filter: blur(6px);
}
.user-popup-card {
  background: #fffdf9;
  border-radius: 24px;
  padding: 32px 36px;
  text-align: center;
  box-shadow: var(--shadow);
  width: min(320px, calc(100vw - 40px));
}
.user-popup-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(217, 108, 63, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}
.user-popup-name {
  font-size: 1rem;
  color: var(--ink);
  word-break: break-all;
  margin-bottom: 20px;
}
.user-popup-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.user-popup-logout:hover {
  color: #b23a26;
  background: rgba(178, 58, 38, 0.06);
  border-color: rgba(178, 58, 38, 0.2);
}

/* Loading spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 0;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0dbd5;
  border-top-color: #d96c3f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 移动端客服悬浮按钮适配 */
@media (max-width: 480px) {
  .cs-float-btn {
    width: 60px;
    height: 60px;
    bottom: 16px;
    right: 16px;
  }
  .cs-float-btn svg {
    width: 28px;
    height: 28px;
  }
  .cs-popup {
    bottom: 90px;
    right: 8px;
    max-width: calc(100vw - 16px);
  }

  /* 移动端弹窗适配 */
  .payment-modal-card {
    padding: 20px;
    width: calc(100% - 16px);
    border-radius: 20px;
  }
  .payment-modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }
}

/* 弹窗和富文本内容防止溢出 */
.rich-copy,
[data-footer-modal] > div > div:last-child,
[data-payment-info-modal] [data-payment-methods-body],
[data-addr-modal] form {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 页脚 hero 区域移动端防止截断 */
@media (max-width: 480px) {
  .footer-hero p {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

/* 图片放大 Lightbox */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.85);
  display: grid;
  place-items: center;
  cursor: zoom-out;
  animation: lightbox-fadein 0.2s ease;
}
.image-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  cursor: default;
}
.image-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
@keyframes lightbox-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 商品图片可点击放大指示 */
.zoomable-img {
  cursor: zoom-in;
}
