/* ===== 产品网格 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 40px 20px;
  }
}

/* ===== 产品卡片：上下结构 ===== */
.product-card {
  background: var(--color-surface);
  border: none;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.product-card .image-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 13px;
}
.product-card .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}
.product-card .product-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-card .product-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex-grow: 1;
}
.product-card .product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.product-card .product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e53935;
}
.product-card .btn-add-cart {
  padding: 6px 14px;
  background: #ff9800;
  color: #1a2b4c;
  border: none;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  flex-shrink: 0;
}
.product-card .btn-add-cart:hover { background: #f57c00; }

/* ===== 章节间距 ===== */
.section-container {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}
@media (max-width: 1024px) {
  .section-container {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
}
 

/* ===== ҳ������ ===== */
.page-content { padding: var(--space-xl) 20px; max-width: 1100px; margin: 0 auto; }
.page-content h1 { font-size: 28px; color: var(--color-text-dark); margin-bottom: var(--space-lg); }
.page-content h2 { font-size: 22px; color: var(--color-text-dark); margin: var(--space-lg) 0 var(--space-sm); }
.page-content p { font-size: 15px; color: var(--color-text-muted); margin-bottom: var(--space-md); line-height: 1.8; }

/* ===== ���� ===== */
.form-box { max-width: 400px; margin: 60px auto; padding: var(--space-xl); background: var(--color-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-premium); }
.form-box h2 { text-align: center; margin-bottom: var(--space-lg); font-size: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--color-text-muted); margin-bottom: 4px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: var(--radius-control); font-size: 14px; font-family: inherit; background: #f9fafb; transition: var(--transition-base); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-accent); background: #fff; }

/* ===== ��ť ===== */
.btn { display: inline-block; padding: 10px 24px; background: var(--color-accent); color: #fff; border: none; border-radius: var(--radius-control); font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition-base); text-decoration: none; }
.btn:hover { background: #2563eb; }
.btn-block { width: 100%; padding: 12px; background: var(--color-accent); color: #fff; border: none; border-radius: var(--radius-control); font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--transition-base); }
.btn-block:hover { background: #2563eb; }

/* ===== Footer ===== */
footer { background: var(--color-primary); color: rgba(255,255,255,.65); padding: var(--space-xl) 20px var(--space-lg); margin-top: 60px; font-size: 13px; }
footer .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-lg); max-width: 1200px; margin: 0 auto; }
footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--space-md); }
footer a { color: rgba(255,255,255,.5); display: block; margin-bottom: 6px; transition: var(--transition-base); }
footer a:hover { color: var(--color-accent); }
footer .copy { text-align: center; padding-top: var(--space-lg); margin-top: var(--space-lg); border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.35); }

/* ===== ��״̬ ===== */
.empty-state { text-align: center; padding: var(--space-2xl) var(--space-lg); color: var(--color-text-muted); }
.empty-state .icon { font-size: 56px; margin-bottom: var(--space-md); opacity: .35; }
.empty-state h3 { font-size: 18px; color: var(--color-text-muted); margin-bottom: var(--space-sm); font-weight: 600; }
.empty-state p { font-size: 14px; margin-bottom: var(--space-lg); max-width: 320px; margin-left: auto; margin-right: auto; }
.empty-state .btn { display: inline-block; }

/* ===== ���� ===== */
.checkout-summary { background: var(--color-surface); padding: var(--space-lg); border-radius: var(--radius-card); margin-bottom: var(--space-lg); box-shadow: var(--shadow-premium); }
.checkout-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.checkout-total { display: flex; justify-content: space-between; padding: 10px 0; font-size: 16px; font-weight: 700; }

/* ===== ��ǩ/Chip ===== */
.filter-chip { display: inline-block; padding: 6px 14px; border-radius: 20px; background: var(--color-surface); border: 1px solid #e5e7eb; font-size: 13px; text-decoration: none; color: var(--color-text-muted); transition: var(--transition-base); }
.filter-chip:hover, .filter-chip.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.tag { display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; }
.tag-blue { background: #e3f2fd; color: #1565c0; }
.tag-green { background: #e8f5e9; color: #2e7d32; }
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.status-paid { background: #e8f5e9; color: var(--color-success); }
.status-pending { background: #fff3e0; color: #f59e0b; }
.status-completed { background: #e8f5e9; color: var(--color-success); }
.status-cancelled { background: #fce4ec; color: var(--color-danger); }

/* ===== �������� ===== */
.order-table-wrapper { background: var(--color-surface); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-premium); }
.order-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.order-table th { background: var(--color-primary); color: #fff; padding: 10px 12px; text-align: left; font-weight: 600; }
.order-table td { padding: 12px; border-bottom: 1px solid #f0f0f0; }
.order-table tr:last-child td { border-bottom: none; }

/* ===== ͷ�� ===== */
.account-avatar { background: var(--color-accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ===== ���� ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.fade-in { animation: fadeIn .3s ease; }

/* ===========================================
   SiteForge / 布局 —— 导航 + Hero（补）
   =========================================== */

.nav-top {
  background: var(--color-primary);
  padding: 6px var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 12px;
}
.nav-top a { color: rgba(255,255,255,.65); transition: var(--transition-base); }
.nav-top a:hover { color: #fff; }
.nav-top select {
  background: transparent;
  color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
}
.nav-top select option { color: var(--color-text-dark); }

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  color: #fff;
  padding: 14px var(--space-lg);
  display: flex;
  align-items: center;
  height: var(--nav-height);
  box-shadow: var(--shadow-header);
}
nav .logo { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 1px; }
nav .nav-links { display: flex; gap: var(--space-lg); margin-left: auto; align-items: center; }
nav .nav-links a { color: rgba(255,255,255,.85); font-size: 14px; padding: 6px 0; position: relative; transition: var(--transition-base); }
nav .nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: #fff; transition: var(--transition-base); }
nav .nav-links a:hover { color: #fff; }
nav .nav-links a:hover::after { width: 100%; }

.nav-item { position: relative; display: flex; align-items: center; }
.nav-item .sub-nav { display: none; position: absolute; top: 100%; left: 0; background: var(--color-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-premium); min-width: 160px; z-index: 200; padding: 4px 0; }
.nav-item .sub-nav a { display: block !important; padding: 8px 16px !important; color: var(--color-text-dark) !important; white-space: nowrap; font-size: 13px !important; }
.nav-item .sub-nav a:hover { background: #f5f5f5 !important; color: var(--color-accent) !important; }
.nav-item:hover .sub-nav, .nav-item.open .sub-nav { display: block; }
.arrow { font-size: 10px; margin-left: 2px; }

nav .nav-actions { display: flex; gap: 12px; margin-left: var(--space-lg); align-items: center; }
nav .nav-actions a { font-size: 13px; color: rgba(255,255,255,.85); transition: var(--transition-base); }
nav .nav-actions a:hover { color: #fff; }
nav .nav-actions .btn-nav { background: var(--color-accent); color: #fff; padding: 6px 18px; border-radius: 20px; font-weight: 600; font-size: 13px; transition: var(--transition-base); }
nav .nav-actions .btn-nav:hover { background: #2563eb; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; margin-left: auto; padding: 10px 4px; position: relative; z-index: 1001; }
.mobile-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition-base); }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.hero {
  background: var(--color-primary);
  color: #fff;
  padding: 60px 20px 50px;
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero h1 { font-size: clamp(28px, 5vw, 44px); margin-bottom: var(--space-md); font-weight: 700; color: #fff; }
.hero .subtitle { font-size: 16px; color: rgba(255,255,255,.65); max-width: 500px; margin: 0 auto 28px; line-height: 1.7; }
.hero .btn-hero { display: inline-block; background: var(--color-accent); color: #fff; padding: 12px 28px; border-radius: 24px; font-weight: 700; font-size: 14px; border: none; cursor: pointer; transition: all .2s; letter-spacing: .3px; }
.hero .btn-hero:hover { background: #2563eb; transform: scale(1.03); box-shadow: 0 2px 8px rgba(59,130,246,.4); }
.hero .search-box { display: flex; max-width: 480px; margin: 0 auto; gap: 8px; }
.hero .search-box input { flex: 1; padding: 12px 16px; border: none; border-radius: var(--radius-control); font-size: 14px; font-family: inherit; outline: none; }
.hero .search-box .btn-search { padding: 12px 16px; background: var(--color-accent); color: #fff; border: none; border-radius: var(--radius-control); font-size: 18px; font-weight: 600; cursor: pointer; transition: var(--transition-base); font-family: inherit; line-height: 1; }
.hero .search-box .btn-search:hover { background: #2563eb; }

.section-header { text-align: center; padding: var(--space-lg) 0; display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding-left: var(--space-md); padding-right: var(--space-md); }
.section-header h2 { font-size: 20px; font-weight: 700; color: var(--color-text-dark); }
.section-header a { font-size: 13px; color: var(--color-accent); font-weight: 500; }

/* ===== 分类胶囊标签 ===== */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 16px 16px 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  z-index: 1;
}
.category-tabs::-webkit-scrollbar { display: none; }
.tab-item {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  background: #f3f4f6;
  border-radius: 20px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.tab-item:hover { background: #e5e7eb; color: #111827; }
.tab-item.active { background: var(--color-accent); color: #fff; font-weight: 600; }

/* ===== Footer 多列网格 ===== */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.65);
  padding: 60px 20px 0;
  margin-top: 80px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col { display: flex; flex-direction: column; }
.footer-logo {
  font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px;
}
.footer-slogan { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.social-icons { display: flex; gap: 10px; margin-bottom: 16px; }
.social-icons a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border-radius: 50%;
  font-size: 16px; transition: var(--transition-base);
}
.social-icons a:hover { background: var(--color-accent); transform: translateY(-2px); }
.payment-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-badge {
  display: inline-block; padding: 3px 10px;
  background: rgba(255,255,255,.1); border-radius: 4px;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.6);
}
.pay-icon {
  height: 30px;
  width: auto;
  max-width: 50px;
  border-radius: 4px;
  background: #fff;
  padding: 2px 4px;
}

.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-col:last-child { align-items: flex-end; text-align: right; justify-self: end; }
.footer-col a {
  color: #94A3B8; font-size: 13px; padding: 4px 0;
  transition: color .2s ease; text-decoration: none;
}
.footer-col a:hover { color: #fff; }
.contact-row { font-size: 13px; color: rgba(255,255,255,.5); padding: 4px 0; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; max-width: 1100px; margin: 0 auto;
  padding: 20px 0; margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px; color: rgba(255,255,255,.35);
}
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: #94A3B8; text-decoration: none; font-size: 13px; transition: color .2s ease; }
.footer-legal a:hover { color: #fff; }

/* ===== 支付图标居中栏 ===== */
.payments-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px 20px;
}
