/* ===== 变量：陈年酒平台风格 + 淘宝布局 ===== */
:root {
  --wine-dark: #3d0f1a;
  --wine-primary: #6b1c2e;
  --wine-mid: #8b2942;
  --wine-light: #a83d55;
  --gold: #c9a227;
  --gold-light: #e8d48b;
  --gold-pale: #f5ecd0;
  --cream: #faf6f0;
  --cream-dark: #f0e8dc;
  --text-dark: #2c1810;
  --text-mid: #5c4030;
  --text-light: #8a7060;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(61, 15, 26, 0.12);
  --shadow-hover: 0 8px 32px rgba(61, 15, 26, 0.2);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 120px;
  --font-serif: 'STSong', 'SimSun', 'FangSong', 'Songti SC', serif;
  --font-sans: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

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

.hidden { display: none !important; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

a:hover { color: var(--wine-primary); }

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all var(--transition);
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== 顶部通栏 ===== */
.top-bar {
  background: linear-gradient(90deg, var(--wine-dark), var(--wine-primary));
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  height: 32px;
  line-height: 32px;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-links a {
  color: rgba(255,255,255,0.85);
  margin-left: 12px;
}

.top-links a:hover { color: var(--gold-light); }

.top-links em {
  background: var(--gold);
  color: var(--wine-dark);
  padding: 0 6px;
  border-radius: 10px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.divider { margin: 0 4px; opacity: 0.4; }

/* ===== 主导航 ===== */
.main-header {
  background: var(--white);
  padding: 20px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--wine-primary), var(--wine-dark));
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(107, 28, 46, 0.3);
}

.logo-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--wine-primary);
  letter-spacing: 2px;
}

.logo-text small {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 4px;
}

/* 搜索框 */
.search-box { flex: 1; max-width: 580px; }

.search-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.search-tab {
  padding: 4px 14px;
  font-size: 12px;
  background: var(--cream-dark);
  color: var(--text-mid);
  border-radius: 4px 4px 0 0;
}

.search-tab.active {
  background: var(--wine-primary);
  color: var(--white);
}

.search-input-wrap {
  display: flex;
  border: 2px solid var(--wine-primary);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  overflow: hidden;
}

.search-input-wrap input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  outline: none;
  font-size: 14px;
}

.search-input-wrap button {
  width: 56px;
  background: linear-gradient(135deg, var(--wine-mid), var(--wine-primary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-input-wrap button:hover {
  background: var(--wine-dark);
}

.hot-keywords {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-light);
}

.hot-keywords span {
  margin-right: 12px;
  cursor: pointer;
}

.hot-keywords span:hover { color: var(--wine-primary); }

/* 购物车按钮 */
.cart-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  color: var(--wine-primary);
  position: relative;
}

.cart-btn:hover {
  border-color: var(--wine-light);
  background: var(--gold-pale);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 8px;
  background: var(--gold);
  color: var(--wine-dark);
  font-size: 11px;
  font-style: normal;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  font-weight: 700;
}

/* ===== 未成年人禁酒警示 ===== */
.age-warning-banner {
  background: linear-gradient(90deg, #5c0a18, #8b1530);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
  font-size: 13px;
}

.age-warning-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  flex-wrap: wrap;
}

.age-warning-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.2);
}

.age-warning-text {
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
}

.age-warning-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
  color: #ffe082;
}

.age-warning-link {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  color: var(--white);
  font-size: 12px;
  white-space: nowrap;
}

.age-warning-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold-light);
}

.products-age-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: #fff8e1;
  border: 1px solid #ffcc80;
  border-left: 4px solid #e65100;
  border-radius: var(--radius);
  font-size: 13px;
  color: #5d4037;
}

.products-age-alert__badge {
  flex-shrink: 0;
  padding: 4px 10px;
  background: #e65100;
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  border-radius: 6px;
}

.products-age-alert p { margin: 0; line-height: 1.5; }

.age-warning-inline {
  margin: 12px 0 14px;
  padding: 12px 14px;
  background: #fff5f5;
  border: 1px solid #ef9a9a;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-mid);
}

.age-warning-inline__badge {
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 6px;
  background: #c62828;
  color: var(--white);
  font-weight: 800;
  font-size: 12px;
  border-radius: 4px;
}

.age-warning-inline p { margin: 0 0 6px; line-height: 1.55; }

.age-warning-inline a {
  color: var(--wine-primary);
  font-weight: 500;
}

.age-confirm-block {
  margin-top: 4px;
  padding: 14px;
  background: #fff8e1;
  border: 2px solid #ffb74d;
  border-radius: var(--radius);
}

.age-confirm-block--shake {
  animation: age-shake 0.5s ease;
}

@keyframes age-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.age-confirm-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dark);
}

.age-confirm-label input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--wine-primary);
}

.age-confirm-hint {
  margin: 8px 0 0 28px;
  font-size: 12px;
  color: #e65100;
  line-height: 1.5;
}

.cart-age-notice {
  margin: 0 0 10px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #bf360c;
  background: #fff3e0;
  border-radius: 6px;
  border: 1px solid #ffcc80;
}

/* ===== 分类导航 ===== */
.category-nav {
  background: var(--white);
  border-bottom: 2px solid var(--gold-pale);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  height: 44px;
}

.all-categories {
  width: 200px;
  background: linear-gradient(135deg, var(--wine-primary), var(--wine-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  position: relative;
  cursor: pointer;
}

.all-categories:hover .category-dropdown { display: block; }

.category-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background: var(--white);
  box-shadow: var(--shadow-hover);
  z-index: 50;
  border: 1px solid var(--cream-dark);
}

.category-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  font-size: 13px;
  border-bottom: 1px solid var(--cream);
}

.category-dropdown a:hover {
  background: var(--gold-pale);
  color: var(--wine-primary);
  padding-left: 20px;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  padding-left: 24px;
  gap: 8px;
}

.nav-links a {
  padding: 0 18px;
  height: 44px;
  line-height: 44px;
  font-size: 14px;
  color: var(--text-mid);
  position: relative;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--wine-primary);
  font-weight: 500;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
}

/* ===== 主内容网格 ===== */
.main-content { padding: 16px 0 48px; }

.content-grid {
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  gap: 12px;
  margin-bottom: 24px;
}

/* 侧边分类 */
.sidebar-categories {
  background: rgba(61, 15, 26, 0.92);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-cat-item:hover {
  background: var(--wine-mid);
  padding-left: 22px;
}

.sidebar-cat-item .cat-icon { font-size: 16px; }

/* 轮播 */
.hero-section { display: flex; flex-direction: column; gap: 8px; }

.carousel {
  position: relative;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.carousel-slide.is-clickable {
  cursor: pointer;
}

.carousel-slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.carousel-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61,15,26,0.85) 0%, rgba(107,28,46,0.6) 100%);
}

.carousel-slide .slide-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
}

.carousel-slide h2 {
  font-family: var(--font-serif);
  font-size: 36px;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.carousel-slide p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.carousel-slide .slide-btn {
  padding: 10px 32px;
  background: var(--gold);
  color: var(--wine-dark);
  border-radius: 24px;
  font-weight: 600;
  display: inline-block;
}

.carousel-slide .slide-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: 50%;
  font-size: 24px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.carousel-btn:hover { background: rgba(255,255,255,0.4); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--gold);
}

/* 快捷入口 */
.quick-entries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-entry {
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.quick-entry:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.quick-entry .qe-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.quick-entry span {
  font-size: 12px;
  color: var(--text-mid);
}

.wine-platform-slogan {
  text-align: center;
  font-size: 13px;
  color: var(--wine-primary);
  padding: 10px 12px;
  background: linear-gradient(90deg, transparent, var(--gold-pale), transparent);
  border-radius: var(--radius);
  letter-spacing: 1px;
  font-family: var(--font-serif);
}

.pc-tag-wine {
  background: var(--wine-primary);
  color: var(--gold-light);
}

/* 用户面板 */
.user-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine-light), var(--wine-primary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto;
  border: 3px solid var(--gold-pale);
}

.user-greeting {
  text-align: center;
  font-size: 13px;
  color: var(--text-mid);
}

.user-btns {
  display: flex;
  gap: 8px;
}

.btn-primary {
  flex: 1;
  padding: 8px;
  background: linear-gradient(135deg, var(--wine-mid), var(--wine-primary));
  color: var(--white);
  border-radius: var(--radius);
  font-size: 13px;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-outline {
  flex: 1;
  padding: 8px;
  background: transparent;
  color: var(--wine-primary);
  border: 1px solid var(--wine-light);
  border-radius: var(--radius);
  font-size: 13px;
}

.btn-outline:hover { background: var(--gold-pale); }

.notice-board h4 {
  font-size: 13px;
  color: var(--wine-primary);
  margin-bottom: 8px;
  font-family: var(--font-serif);
}

.notice-board ul {
  list-style: none;
  font-size: 12px;
}

.notice-board li {
  padding: 0;
  list-style: none;
}

.notice-board li a {
  display: block;
  padding: 8px 4px;
  color: var(--text-mid);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
  transition: all var(--transition);
}

.notice-board li a:hover {
  color: var(--wine-primary);
  background: var(--gold-pale);
  padding-left: 8px;
}

.notice-board li a::after {
  content: ' ›';
  color: var(--gold);
  opacity: 0;
  transition: opacity var(--transition);
}

.notice-board li a:hover::after {
  opacity: 1;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== 商品网格 ===== */
.products-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.products-section .section-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--cream-dark);
  padding-bottom: 16px;
}

.products-section .section-header h2 {
  color: var(--wine-primary);
  font-family: var(--font-serif);
}

/* ===== 搜索页 ===== */
.search-page {
  padding: 20px 0 40px;
}

.search-breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.search-breadcrumb a {
  color: var(--wine-primary);
}

.search-breadcrumb a:hover {
  text-decoration: underline;
}

.search-breadcrumb-sep {
  margin: 0 8px;
  opacity: 0.5;
}

.search-meta {
  margin-bottom: 16px;
}

.search-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--wine-dark);
  font-weight: 600;
}

.search-title strong {
  color: var(--wine-primary);
}

.search-count {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-mid);
}

.search-count em {
  color: var(--wine-primary);
  font-style: normal;
  font-weight: 700;
}

.search-hint,
.search-empty {
  font-size: 15px;
  color: var(--text-mid);
}

.search-empty strong {
  color: var(--wine-primary);
}

.search-results-section {
  margin-top: 0;
}

.filter-tabs {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.filter-tab {
  padding: 6px 14px;
  font-size: 13px;
  background: var(--cream);
  color: var(--text-mid);
  border-radius: 16px;
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--wine-primary);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  min-height: 200px;
}

.product-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  animation: fadeInUp 0.4s ease backwards;
}

.product-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.product-card .pc-img {
  height: 200px;
  background: linear-gradient(145deg, var(--cream-dark), var(--white));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card .pc-photo,
.modal-photo,
.ci-photo,
.pay-item-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
}

.pay-item-photo {
  padding: 4px;
}

.product-card .pc-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--gold);
  color: var(--wine-dark);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.product-card .pc-body { padding: 12px; }

.product-card .pc-name {
  font-size: 14px;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}

.product-card .pc-shop {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.product-card .pc-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.product-card .pc-price {
  color: var(--wine-primary);
  font-size: 20px;
  font-weight: 700;
}

.product-card .pc-price small { font-size: 12px; }

.product-card .pc-sales {
  font-size: 12px;
  color: var(--text-light);
}

.product-card .pc-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.product-card .pc-add-cart {
  flex: 1;
  padding: 6px;
  background: var(--wine-primary);
  color: var(--white);
  border-radius: 4px;
  font-size: 12px;
}

.product-card .pc-add-cart:hover { background: var(--wine-dark); }

.product-card .pc-fav {
  width: 32px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  font-size: 14px;
}

.product-card .pc-fav.active { color: #e74c3c; border-color: #e74c3c; }

/* 骨架屏 */
.loading-skeleton {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skeleton-card {
  height: 320px;
  background: linear-gradient(90deg, var(--cream) 25%, var(--cream-dark) 50%, var(--cream) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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

.load-more-btn {
  display: block;
  width: 200px;
  margin: 24px auto 0;
  padding: 12px 32px;
  background: transparent;
  border: 2px solid var(--wine-primary);
  color: var(--wine-primary);
  border-radius: 24px;
  font-size: 14px;
}

.load-more-btn:hover {
  background: var(--wine-primary);
  color: var(--white);
}

.load-more-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ===== 购物车侧栏 ===== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  z-index: 200;
  transition: right var(--transition);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open { right: 0; }

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--cream-dark);
  background: linear-gradient(135deg, var(--wine-primary), var(--wine-dark));
  color: var(--white);
}

.cart-drawer-header h3 { font-family: var(--font-serif); }

.close-btn {
  background: none;
  font-size: 24px;
  color: inherit;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-btn:hover { background: rgba(255,255,255,0.2); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-empty {
  text-align: center;
  color: var(--text-light);
  padding: 48px 16px;
  font-size: 14px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cream);
  animation: fadeInUp 0.3s ease;
}

.cart-item .ci-thumb {
  width: 72px;
  height: 72px;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item .ci-info { flex: 1; }
.cart-item .ci-name { font-size: 13px; margin-bottom: 4px; }
.cart-item .ci-price { color: var(--wine-primary); font-weight: 600; }

.cart-item .ci-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.cart-item .ci-qty button {
  width: 24px;
  height: 24px;
  background: var(--cream);
  border-radius: 4px;
  font-size: 14px;
}

.cart-item .ci-remove {
  color: var(--text-light);
  font-size: 18px;
  align-self: flex-start;
}

.cart-item .ci-remove:hover { color: #e74c3c; }

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--cream-dark);
  background: var(--cream);
}

.cart-total {
  margin-bottom: 12px;
  font-size: 14px;
}

.cart-total strong {
  color: var(--wine-primary);
  font-size: 22px;
}

.btn-checkout {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--gold), #b8941f);
  color: var(--wine-dark);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
}

.btn-checkout:hover { opacity: 0.9; transform: translateY(-1px); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.overlay.show { opacity: 1; visibility: visible; }

/* ===== 商品弹窗 ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal.show { opacity: 1; visibility: visible; }

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition);
}

.modal.show .modal-content { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  background: var(--cream);
  color: var(--text-dark);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 32px;
}

.modal-img {
  height: 320px;
  min-height: 280px;
  background: linear-gradient(145deg, var(--cream-dark), var(--white));
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-img--single {
  flex-direction: row;
}

.modal-img .modal-photo {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.modal-img--gallery .modal-photo {
  flex: 1;
  min-height: 200px;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  width: 100%;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--cream-dark);
}

.modal-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.modal-thumb.active {
  border-color: var(--wine-primary);
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.modal-info h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--wine-primary);
  margin-bottom: 12px;
}

.modal-info .modal-price {
  font-size: 32px;
  color: var(--wine-primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.modal-info .modal-price del {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 400;
  margin-left: 8px;
}

.modal-info .modal-desc {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.modal-info .modal-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions button {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 15px;
}

.modal-actions .btn-cart {
  background: var(--gold-pale);
  color: var(--wine-primary);
  border: 1px solid var(--wine-light);
}

.modal-actions .btn-buy {
  background: linear-gradient(135deg, var(--wine-mid), var(--wine-primary));
  color: var(--white);
}

/* ===== 回到顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--wine-primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 50;
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--wine-dark); transform: translateY(-4px); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(61, 15, 26, 0.95);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  border: 1px solid var(--gold);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--wine-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 0;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}

.footer-col h4 {
  color: var(--gold-light);
  font-family: var(--font-serif);
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  padding: 4px 0;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 16px 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-legal a {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}

.footer-legal a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px;
  text-align: center;
  font-size: 12px;
}

.footer-entity,
.footer-contact {
  margin-top: 4px;
  opacity: 0.85;
}

.footer-contact a {
  color: var(--gold-light);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-icp {
  margin-top: 6px;
  opacity: 0.7;
  font-size: 11px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-categories { display: none; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .search-box { order: 3; max-width: 100%; width: 100%; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-entries { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-body { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ===== 登录/注册弹窗 ===== */
.auth-modal-content {
  max-width: 400px;
  padding: 32px;
}

.auth-title {
  font-family: var(--font-serif);
  color: var(--wine-primary);
  text-align: center;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
}

.form-group input:focus {
  border-color: var(--wine-primary);
}

.auth-submit {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  font-size: 15px;
}

.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-mid);
}

.auth-switch a { color: var(--wine-primary); font-weight: 500; }

.orders-drawer { z-index: 201; width: min(420px, 100vw); }
.favorites-drawer { z-index: 202; }

.orders-filter-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  flex-shrink: 0;
  border-bottom: 1px solid var(--cream-dark);
  scrollbar-width: none;
}

.orders-filter-tabs::-webkit-scrollbar { display: none; }

.orders-filter-tab {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid var(--cream-dark);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-mid);
  cursor: pointer;
  white-space: nowrap;
}

.orders-filter-tab.active {
  background: var(--wine-primary);
  border-color: var(--wine-primary);
  color: var(--white);
}

.orders-tab-count {
  display: inline-block;
  min-width: 16px;
  margin-left: 4px;
  padding: 0 4px;
  font-size: 10px;
  font-style: normal;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.25);
}

.orders-filter-tab:not(.active) .orders-tab-count {
  background: var(--cream);
  color: var(--wine-primary);
}

.orders-list-wrap { flex: 1; }

.order-card-preview {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-mid);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-order-view-detail {
  padding: 0;
  border: none;
  background: none;
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
}

.btn-order-view-detail:hover { color: var(--wine-primary); }

.order-card .order-actions { margin-top: 0; }

#order-detail-modal { z-index: 210; }

.order-detail-content {
  width: min(520px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.order-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

.order-detail-footer {
  flex-shrink: 0;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--cream-dark);
  background: var(--white);
}

.order-detail-footer .order-actions { margin-top: 0; justify-content: flex-end; }

.order-detail-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cream-dark);
}

.order-detail-id {
  font-size: 15px;
  font-weight: 600;
  color: var(--wine-primary);
}

.order-detail-time {
  font-size: 12px;
  color: var(--text-light);
}

.order-detail-section {
  margin-bottom: 16px;
}

.order-detail-section h4 {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 10px;
  font-weight: 600;
}

.order-detail-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-dark);
}

.order-detail-item:last-child { border-bottom: none; }

.order-detail-item-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
}

.order-detail-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-detail-item-info { flex: 1; min-width: 0; }

.order-detail-item-name {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 4px;
}

.order-detail-item-shop {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.order-detail-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-mid);
}

.order-detail-item-price { color: var(--wine-primary); font-weight: 600; }

.order-detail-total {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 8px;
  padding-top: 12px;
  font-size: 14px;
}

.order-detail-total strong {
  font-size: 18px;
  color: var(--wine-primary);
}

.order-detail-ship-time {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-light);
}

.fav-item .ci-shop {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.fav-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.fav-item-actions button {
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid var(--cream-dark);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-mid);
}

.fav-item-actions button:hover {
  border-color: var(--wine-light);
  color: var(--wine-primary);
}

.fav-item-actions .btn-fav-cart {
  background: var(--wine-primary);
  border-color: var(--wine-primary);
  color: var(--white);
}

.fav-item-actions .btn-fav-cart:hover {
  opacity: 0.92;
  color: var(--white);
}

.fav-item-actions .btn-fav-remove:hover {
  border-color: #e57373;
  color: #c62828;
}

.order-card {
  padding: 14px 12px;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.order-card:hover { background: #faf8f5; }

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.order-card .order-id { color: var(--wine-primary); font-weight: 600; }

.order-status-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.order-status-badge.is-pending { background: #fff3e0; color: #e65100; }
.order-status-badge.is-paid { background: #fce4ec; color: #ad1457; }
.order-status-badge.is-shipped { background: #e3f2fd; color: #1565c0; }
.order-status-badge.is-completed { background: #e8f5e9; color: #2e7d32; }
.order-status-badge.is-cancelled { background: #f5f5f5; color: #757575; }

.order-summary {
  color: var(--text-dark);
  margin-bottom: 4px;
}

.order-card .order-meta { color: var(--text-light); margin-top: 2px; font-size: 12px; }

.order-logistics {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--cream);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-mid);
}

.order-logistics strong {
  display: block;
  margin-top: 4px;
  color: var(--wine-primary);
  font-family: monospace;
  letter-spacing: 0.5px;
}

.order-address {
  margin-top: 8px;
  padding: 8px 10px;
  background: #faf8f5;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-mid);
}

.order-address p { margin-top: 4px; line-height: 1.5; }

.order-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-order-action {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--wine-light);
  background: var(--white);
  color: var(--wine-primary);
  cursor: pointer;
}

.btn-order-action:hover { background: var(--gold-pale); }

.btn-order-action.is-primary {
  background: var(--wine-primary);
  color: var(--white);
  border-color: var(--wine-primary);
}

.btn-order-action.is-primary:hover { background: var(--wine-dark); }

.pay-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.pay-address-card {
  padding: 12px 14px;
  background: #faf8f6;
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
}

.pay-address-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.pay-address-top strong {
  font-size: 15px;
}

.pay-address-empty {
  text-align: center;
  padding: 20px 16px;
  background: #faf8f6;
  border: 1px dashed var(--cream-dark);
  border-radius: 10px;
}

.pay-address-empty-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.pay-address-empty p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.btn-add-pay-address {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-change-address {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--wine-light);
  background: var(--white);
  color: var(--wine-primary);
  border-radius: 6px;
  cursor: pointer;
  margin-left: auto;
}

.address-modal-content,
.logistics-modal-content {
  max-width: 560px;
  width: calc(100% - 32px);
}

.address-modal-body {
  padding: 20px 24px 24px;
  max-height: min(78vh, 640px);
  overflow-y: auto;
}

.address-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 4px;
}

.address-card {
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.address-card.is-default {
  border-color: rgba(122, 30, 58, 0.35);
  background: linear-gradient(135deg, #fdfbf8 0%, #fff 100%);
}

.address-card.is-selected {
  border-color: var(--wine-primary);
  box-shadow: 0 0 0 1px var(--wine-primary);
}

.address-card.is-selectable {
  cursor: pointer;
}

.address-card.is-selectable:hover {
  border-color: var(--wine-light);
  box-shadow: 0 4px 12px rgba(90, 20, 40, 0.08);
}

.address-card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.address-card-top strong {
  font-size: 15px;
  color: var(--text-dark);
}

.addr-phone {
  font-size: 14px;
  color: var(--text-mid);
}

.address-card-addr {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mid);
}

.addr-tag {
  font-size: 11px;
  background: var(--gold-pale);
  color: var(--wine-primary);
  padding: 2px 8px;
  border-radius: 999px;
}

.address-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--cream-dark);
}

.address-card-actions button {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid var(--cream-dark);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-mid);
  transition: all 0.15s;
}

.address-card-actions button:hover {
  border-color: var(--wine-light);
  color: var(--wine-primary);
}

.address-card-actions .btn-addr-primary {
  background: var(--wine-primary);
  border-color: var(--wine-primary);
  color: var(--white);
}

.address-card-actions .btn-addr-primary:hover {
  opacity: 0.92;
  color: var(--white);
}

.address-card-actions .btn-addr-del:hover {
  border-color: #e57373;
  color: #c62828;
}

.address-form-wrap {
  background: #faf8f6;
  border: 1px solid var(--cream-dark);
  border-radius: 12px;
  padding: 18px 18px 16px;
}

.address-list + .address-form-wrap:not(.hidden) {
  margin-top: 16px;
}

.address-form-head {
  margin-bottom: 14px;
}

.address-form-head h4 {
  font-size: 16px;
  color: var(--wine-primary);
  margin: 0;
}

.address-form-tip {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-light);
}

.address-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-mid);
  font-weight: 500;
}

.form-field input,
.form-field select,
.address-form-wrap input:not([type="checkbox"]),
.address-form-wrap select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd5cc;
  border-radius: 8px;
  font-size: 14px;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus,
.address-form-wrap input:not([type="checkbox"]):focus,
.address-form-wrap select:focus {
  outline: none;
  border-color: var(--wine-light);
  box-shadow: 0 0 0 3px rgba(122, 30, 58, 0.1);
}

.region-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .region-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.region-row select:disabled {
  background: #f3f0ec;
  color: #999;
  cursor: not-allowed;
}

.addr-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--text-mid);
  cursor: pointer;
}

.addr-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--wine-primary);
}

.address-form-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-dark);
}

.address-form-btns .btn-primary {
  min-width: 108px;
  padding: 10px 20px;
}

.address-form-btns .btn-outline {
  padding: 10px 18px;
}

.btn-add-address {
  width: 100%;
  padding: 13px;
  margin-top: 14px;
  border: 1px dashed var(--wine-light);
  background: var(--cream);
  color: var(--wine-primary);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s;
}

.btn-add-address:hover {
  background: var(--gold-pale);
  border-color: var(--wine-primary);
}

.btn-add-icon {
  font-size: 18px;
  line-height: 1;
}

.address-empty { color: var(--text-light); font-size: 14px; padding: 12px 0; }

@media (max-width: 479px) {
  .address-form-grid {
    grid-template-columns: 1fr;
  }

  .address-modal-body {
    padding: 16px;
  }
}

.logistics-modal-body { padding: 16px 24px 24px; max-height: 70vh; overflow-y: auto; }

.logistics-head { margin-bottom: 16px; }

.logistics-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.btn-logistics-refresh,
.btn-copy-tracking {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid var(--wine-light);
  background: var(--white);
  color: var(--wine-primary);
  border-radius: 6px;
  cursor: pointer;
}

.btn-logistics-refresh:disabled { opacity: 0.6; cursor: not-allowed; }

.logistics-latest {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 6px;
}

.logistics-latest .latest-k { color: var(--text-light); }

.logistics-latest-time { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }

.logistics-status-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  background: var(--gold-pale);
  color: var(--wine-primary);
  border-radius: 4px;
  margin-bottom: 8px;
}

.logistics-courier { font-size: 14px; color: var(--text-mid); }

.logistics-no {
  font-family: monospace;
  color: var(--wine-primary);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.logistics-tracks-title {
  font-size: 15px;
  margin: 16px 0 12px;
  color: var(--text-dark);
}

.logistics-hint { font-size: 12px; color: var(--text-light); margin-top: 8px; }

.track-status { font-weight: 600; font-size: 13px; color: var(--wine-primary); margin-bottom: 4px; }

.track-context { font-size: 14px; color: var(--text-mid); line-height: 1.5; }

.track-timeline {
  list-style: none;
  border-left: 2px solid var(--cream-dark);
  margin: 0 0 16px 8px;
  padding-left: 16px;
}

.track-item {
  position: relative;
  padding-bottom: 16px;
}

.track-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wine-primary);
}

.track-time { display: block; font-size: 12px; color: var(--text-light); }

.track-context { font-size: 14px; color: var(--text-mid); line-height: 1.5; }

.btn-track-external {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--wine-primary);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
}

.logistics-loading, .logistics-error { text-align: center; padding: 24px; color: var(--text-mid); }

.user-logged .user-guest { display: none; }
.user-logged #link-login,
.user-logged #link-register { display: none; }
.user-logged .user-auth { display: inline !important; }

/* ===== 确认支付 ===== */
.pay-modal-content {
  max-width: 520px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.pay-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--wine-primary), var(--wine-dark));
  color: var(--white);
  flex-shrink: 0;
}

.pay-modal-header h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  flex: 1;
  text-align: center;
}

.pay-back {
  background: rgba(255,255,255,0.15) !important;
  color: var(--white) !important;
  font-size: 22px;
  width: 36px;
  height: 36px;
}

.pay-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--cream);
}

.pay-modal-footer {
  flex-shrink: 0;
  padding: 12px 16px 16px;
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
}

.pay-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(61,15,26,0.06);
}

.pay-block-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--wine-primary);
  margin-bottom: 10px;
  font-family: var(--font-serif);
}

.pay-address {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pay-address-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.pay-address-info {
  flex: 1;
  min-width: 0;
}

.pay-address-info strong {
  font-size: 15px;
}

.pay-address-info p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
}

.pay-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream);
}

.pay-item:last-child { border-bottom: none; }

.pay-item-thumb {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pay-item-info { flex: 1; min-width: 0; }

.pay-item-name {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pay-item-shop {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.pay-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.pay-item-price { color: var(--wine-primary); font-weight: 600; }

.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.pay-method:hover { border-color: var(--wine-light); }

.pay-method.active {
  border-color: var(--wine-primary);
  background: var(--gold-pale);
}

.pay-method input { display: none; }

.pay-method-icon { font-size: 24px; }

.pay-method-name { font-size: 14px; font-weight: 500; }

.pay-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-mid);
}

.pay-summary-row.total {
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 600;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px dashed var(--cream-dark);
}

.pay-summary-row.total strong {
  color: var(--wine-primary);
  font-size: 22px;
}

.pay-footer-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.pay-footer-total strong {
  color: var(--wine-primary);
  font-size: 24px;
}

.btn-confirm-pay {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), #b8941f);
  color: var(--wine-dark);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-confirm-pay:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-confirm-pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkout-tip {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

.cashier-status {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(61, 15, 26, 0.06);
}

.cashier-order-id {
  margin: 8px 0 4px;
  font-size: 14px;
  color: var(--text-dark);
}

.cashier-order-time {
  margin: 0;
  font-size: 12px;
  color: var(--text-light);
}

.cashier-sandbox-tip {
  margin: 10px 0 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #e65100;
  background: #fff8e1;
  border-radius: 6px;
}

.pay-success {
  text-align: center;
  padding: 32px 16px;
}

.pay-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.pay-success h3 {
  font-family: var(--font-serif);
  color: var(--wine-primary);
  font-size: 22px;
  margin-bottom: 8px;
}

.pay-success p {
  color: var(--text-mid);
  font-size: 14px;
  margin-bottom: 4px;
}

.pay-success-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.pay-success-actions button {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
}

.btn-pay-done {
  background: var(--wine-primary);
  color: var(--white);
  border: none;
}

.btn-pay-orders {
  background: var(--white);
  color: var(--wine-primary);
  border: 1px solid var(--wine-light);
}
