/* ===== Zz美甲 - 精致美甲设计 ===== */
/* Google Fonts: Playfair Display 通过 HTML 加载 */

:root {
  /* ---- 颜色系统 ---- */
  --primary: #D4A0A0;
  --primary-dark: #C08080;
  --primary-light: #F0D6D6;
  --rose-gold: #E8B8BC;
  --rose-gold-light: #F5E4E6;
  --gold: #C9A96E;
  --gold-light: #E8D5A3;

  --text-dark: #1A1A1A;
  --text-primary: #2D2D2D;
  --text-mid: #7A6B6B;
  --text-light: #A89898;

  --bg: #FCFAFA;
  --bg-light: #FFF8F5;
  --bg-white: #FFFFFF;
  --bg-warm: #F5F0EE;

  --border: #EDE4E4;
  --border-light: #F5EEEE;

  --shadow-sm: 0 2px 8px rgba(150, 120, 120, 0.08);
  --shadow: 0 4px 20px rgba(150, 120, 120, 0.10);
  --shadow-lg: 0 8px 40px rgba(150, 120, 120, 0.14);
  --shadow-xl: 0 12px 60px rgba(45, 45, 45, 0.18);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-round: 999px;

  --font-display: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.35s;
  --duration-slow: 0.5s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
input, textarea, button { font-family: inherit; outline: none; }

/* ===== 容器 & 区块 ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.bg-light { background: var(--bg-light); }

/* ===== 标题 ===== */
.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  text-align: center;
  margin-bottom: 48px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-primary);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--rose-gold), var(--gold));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: var(--radius-round);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  border: none;
  text-align: center;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--duration);
}
.btn:hover::after { opacity: 1; }
.btn:active::after { opacity: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(192, 128, 128, 0.25);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(192, 128, 128, 0.30);
}
.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192, 128, 128, 0.20);
}

.btn-block { width: 100%; }
.btn-sm { padding: 8px 20px; font-size: 13px; }

/* ===== 导航 ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--duration), border-color var(--duration);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo span {
  -webkit-text-fill-color: var(--primary);
  color: var(--primary);
}

/* 导航链接下划线动画 */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-size: 14px;
  color: var(--text-mid);
  transition: color var(--duration) var(--ease-out);
  position: relative;
  letter-spacing: 0.5px;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--duration) var(--ease-out);
  border-radius: 1px;
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 11px;
  padding: 0 6px;
  border-radius: 10px;
  vertical-align: top;
  margin-left: 4px;
  font-weight: 700;
}

/* 移动端顶部按钮组 */
.header-right {
  display: none;
  align-items: center;
  gap: 8px;
}

.cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background var(--duration);
}
.cart-icon-wrap:hover { background: var(--primary-light); }
.cart-icon { font-size: 20px; }

.cart-badge-mobile {
  position: absolute;
  top: 2px;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 10px;
  padding: 0 5px;
  border-radius: 9px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(192,128,128,0.3);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-mid);
  transition: all var(--duration);
}
.menu-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ===== Hero ===== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #2D2D2D 0%, #4A3A3A 40%, #6B4A4A 70%, #806060 100%);
  color: #fff;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* 光晕效果 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212,160,160,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(201,169,110,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: heroFadeIn 1s var(--ease-out) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 6px;
  line-height: 1.15;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.70);
  margin-bottom: 40px;
  letter-spacing: 4px;
  font-weight: 300;
}

.hero-actions .btn {
  padding: 16px 48px;
  font-size: 16px;
  letter-spacing: 2px;
}

/* ===== 筛选按钮 ===== */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-tab {
  padding: 10px 26px;
  border-radius: var(--radius-round);
  font-size: 14px;
  cursor: pointer;
  background: var(--bg-white);
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  transition: all var(--duration) var(--ease-out);
  letter-spacing: 0.5px;
  user-select: none;
}
.filter-tab:hover {
  border-color: var(--rose-gold);
  color: var(--primary);
  background: var(--rose-gold-light);
  transform: translateY(-1px);
}
.filter-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(192, 128, 128, 0.30);
}

/* ===== 作品画廊 ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.empty-hint {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-light);
  padding: 80px 0;
  font-size: 16px;
}

/* ---- 商品卡片 ---- */
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--duration-slow) var(--ease-out);
  will-change: transform;
  animation: cardEntrance 0.6s var(--ease-out) both;
}
.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.04s; }
.product-card:nth-child(3) { animation-delay: 0.08s; }
.product-card:nth-child(4) { animation-delay: 0.12s; }
.product-card:nth-child(5) { animation-delay: 0.16s; }
.product-card:nth-child(6) { animation-delay: 0.20s; }
.product-card:nth-child(7) { animation-delay: 0.24s; }
.product-card:nth-child(8) { animation-delay: 0.28s; }
.product-card:nth-child(9) { animation-delay: 0.32s; }
.product-card:nth-child(10) { animation-delay: 0.36s; }
.product-card:nth-child(11) { animation-delay: 0.40s; }
.product-card:nth-child(12) { animation-delay: 0.44s; }

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 商品图片 - 悬停放大 */
.product-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: #F5F0EE;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}
.product-card:hover .product-img {
  transform: scale(1.06);
}

/* 商品信息 */
.product-body {
  padding: 20px 20px 22px;
}
.product-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-price {
  font-size: 22px;
  color: var(--primary-dark);
  font-weight: 800;
  font-feature-settings: "tnum";
  letter-spacing: -0.5px;
}

/* 加入购物车按钮 */
.btn-add-cart {
  padding: 10px 22px;
  border-radius: var(--radius-round);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(192, 128, 128, 0.20);
  position: relative;
  overflow: hidden;
}
.btn-add-cart::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--duration);
}
.btn-add-cart:hover::after { opacity: 1; }
.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 128, 128, 0.30);
}
.btn-add-cart:active {
  transform: translateY(0);
}

/* ===== 关于 ===== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.about-content p {
  font-size: 17px;
  color: var(--text-mid);
  margin-bottom: 20px;
  line-height: 1.9;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.feature {
  padding: 36px 24px 32px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-gold), var(--gold));
  opacity: 0;
  transition: opacity var(--duration);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature:hover::before { opacity: 1; }

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}
.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.feature p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== 联系 ===== */
.contact-section {
  background: linear-gradient(135deg, #2D2D2D 0%, #4A3A3A 50%, #5A4040 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(212,160,160,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(201,169,110,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.contact-section .section-title::after {
  background: linear-gradient(90deg, var(--rose-gold), var(--gold));
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.contact-card {
  padding: 36px 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all var(--duration) var(--ease-out);
}
.contact-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}
.contact-icon {
  font-size: 44px;
  margin-bottom: 20px;
  display: block;
}
.contact-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.contact-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ===== 底部 ===== */
.footer {
  padding: 40px 0;
  background: #1A1A1A;
  color: var(--text-light);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.5px;
  opacity: 0.6;
}

/* ======================================================
   ===== 购物车侧栏 =====
   ====================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 45, 45, 0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cart-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--bg-white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  box-shadow: -8px 0 48px rgba(45, 45, 45, 0.12);
}
.cart-sidebar.show {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.cart-header h2 {
  font-size: 20px;
  font-weight: 700;
}
.cart-close {
  font-size: 18px;
  color: var(--text-light);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 50%;
  transition: all var(--duration);
  line-height: 1;
}
.cart-close:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}
.cart-body::-webkit-scrollbar {
  width: 4px;
}
.cart-body::-webkit-scrollbar-track {
  background: transparent;
}
.cart-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.cart-empty {
  text-align: center;
  padding: 100px 0;
}
.cart-empty p {
  font-size: 18px;
  color: var(--text-mid);
}
.cart-empty-sub {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 10px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius);
  transition: background var(--duration);
}
.cart-item:hover {
  background: var(--bg);
}

.cart-item-img {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  background: #F5F0EE;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-item-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.cart-item-price {
  font-size: 17px;
  color: var(--primary-dark);
  font-weight: 700;
  font-feature-settings: "tnum";
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  transition: all var(--duration);
  user-select: none;
}
.cart-qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.cart-qty {
  font-size: 15px;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
  color: var(--text-primary);
}

.cart-del {
  font-size: 12px;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all var(--duration);
}
.cart-del:hover {
  color: #E85858;
  background: rgba(232,88,88,0.08);
}

.cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.cart-total {
  font-size: 15px;
  color: var(--text-mid);
}
.cart-total-price {
  font-size: 24px;
  color: var(--primary-dark);
  font-weight: 800;
  margin-left: 6px;
  font-feature-settings: "tnum";
}

.btn-checkout {
  padding: 14px 36px;
  font-size: 15px;
}

/* ======================================================
   ===== 弹窗 =====
   ====================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 45, 45, 0.45);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 480px;
  max-width: 92vw;
  max-height: 88vh;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  z-index: 301;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(45, 45, 45, 0.20);
}
.modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
}
.modal-close {
  font-size: 18px;
  color: var(--text-light);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 50%;
  transition: all var(--duration);
  line-height: 1;
}
.modal-close:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}

/* ===== 表单 ===== */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: all var(--duration);
  background: var(--bg);
  color: var(--text-primary);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212,160,160,0.12);
  background: var(--bg-white);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

/* ===== 订单摘要 ===== */
.order-summary {
  background: var(--bg);
  border-radius: 14px;
  padding: 18px;
  margin-top: 12px;
  border: 1px solid var(--border-light);
}
.order-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  color: var(--text-mid);
}
.order-summary-item:not(:last-child) {
  border-bottom: 1px dashed var(--border-light);
}

.order-total-bar {
  font-size: 15px;
  color: var(--text-mid);
}
.order-total-price {
  font-size: 24px;
  color: var(--primary-dark);
  font-weight: 800;
  margin-left: 6px;
  font-feature-settings: "tnum";
}

/* ===== 支付弹窗 ===== */
.payment-modal {
  width: 400px;
}
.payment-body {
  text-align: center;
  padding: 24px 28px 32px;
}
.payment-amount {
  padding: 20px 0;
}
.payment-label {
  font-size: 14px;
  color: var(--text-mid);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.payment-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-dark);
  font-feature-settings: "tnum";
  letter-spacing: -1px;
  display: block;
}

.payment-qr {
  margin: 20px auto;
}
.payment-qr img {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 16px;
  border: 2px solid var(--border);
  padding: 8px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.payment-tip {
  font-size: 15px;
  color: var(--text-mid);
  margin-top: 16px;
  font-weight: 500;
}
.payment-hint {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}
.payment-order-info {
  font-size: 13px;
  color: var(--text-light);
  margin: 20px 0;
  line-height: 2;
  text-align: left;
}

/* ===== 响应式 - 平板及以下 ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav.open { display: flex; }
  .nav a {
    font-size: 16px;
    padding: 8px 0;
  }
  .header-right { display: flex; }

  .features,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-img { height: 220px; }
  .product-body { padding: 14px 14px 16px; }
  .product-name { font-size: 15px; }
  .product-desc { font-size: 12px; margin-bottom: 12px; }
  .product-price { font-size: 18px; }
  .btn-add-cart { padding: 8px 16px; font-size: 12px; }

  .section { padding: 60px 0; }
  .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }
  .section-title::after {
    margin-top: 12px;
  }

  .hero {
    min-height: 70vh;
    padding: 100px 20px 60px;
  }

  .cart-sidebar {
    width: 100%;
    max-width: 100vw;
  }

  /* 弹窗移动端底部滑入 */
  .modal {
    width: 100%;
    max-width: 100vw;
    border-radius: 20px 20px 0 0;
    top: auto;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    max-height: 90vh;
  }
  .modal.show {
    transform: translateY(0);
    top: auto;
    left: 0;
  }

  .payment-modal {
    width: 100%;
  }
}

/* ===== 小屏幕手机 ===== */
@media (max-width: 420px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-img { height: 260px; }
  .container { padding: 0 16px; }
  .section-title { font-size: 24px; }
}
