/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #333;
  background: #f5f5f5;
  line-height: 1.6;
  min-width: 1200px;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }
input { outline: none; font-family: inherit; }
.container { width: 1200px; margin: 0 auto; padding: 0 10px; }

/* ========== 1. 顶部促销滚动条 ========== */
.top-promo-bar {
  background: linear-gradient(90deg, #e60012, #ff4d4f);
  color: #fff;
  height: 40px;
  line-height: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1001;
}
.promo-list { position: relative; height: 100%; }
.promo-item {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.5s ease;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.promo-item.active {
  opacity: 1;
  transform: translateY(0);
}
.promo-tag {
  background: rgba(255,255,255,0.25);
  padding: 2px 10px;
  border-radius: 12px;
  margin-right: 10px;
  font-size: 12px;
  font-weight: 600;
}
.promo-prev, .promo-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  padding: 4px 8px;
  transition: color 0.2s;
}
.promo-prev:hover, .promo-next:hover { color: #fff; }
.promo-prev { left: 80px; }
.promo-next { right: 80px; }

/* ========== 2. 顶部导航栏 ========== */
.top-nav {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.nav-container {
  width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 44px;
}
.nav-left { display: flex; align-items: center; }
.city-switch {
  display: flex; align-items: center; gap: 4px;
  color: #e60012; font-size: 13px; font-weight: 500;
  padding: 4px 10px; border-radius: 4px;
  transition: background 0.2s;
}
.city-switch:hover { background: #fff1f0; }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  color: #555; font-size: 13px;
  border-radius: 4px;
  transition: all 0.2s;
}
.nav-link:hover { color: #e60012; background: #fff1f0; }
.nav-separator { color: #ddd; margin: 0 2px; }
.nav-login, .nav-register {
  color: #e60012; font-weight: 500;
}
.cart-link { position: relative; }
.cart-badge {
  position: absolute; top: -2px; right: -2px;
  background: #e60012; color: #fff;
  font-size: 10px; min-width: 16px; height: 16px;
  line-height: 16px; text-align: center;
  border-radius: 10px; padding: 0 4px;
  font-weight: 600;
}

/* ========== 3. 三列布局 ========== */
.main-content {
  width: 1200px;
  margin: 10px auto 0;
}
.three-col-layout {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 10px;
  height: 480px;
}

/* --- 左侧分类导航 --- */
.category-nav {
  background: #fff;
  border-radius: 8px;
  position: relative;
  overflow: visible;
}
.category-header {
  background: linear-gradient(135deg, #e60012, #ff4d4f);
  color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 0 15px;
  height: 44px; line-height: 44px;
  border-radius: 8px 8px 0 0;
}
.category-list {
  padding: 4px 0;
}
.category-item {
  display: flex; align-items: center;
  padding: 0 12px;
  height: 40px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.category-item:hover {
  background: #fff1f0;
  color: #e60012;
}
.category-item:hover .cat-arrow { opacity: 1; }
.cat-icon { font-size: 16px; width: 26px; text-align: center; flex-shrink: 0; }
.cat-arrow {
  margin-left: auto;
  opacity: 0.3;
  color: #999;
  transition: opacity 0.2s;
}

/* 子分类弹出层 */
.sub-category-panel {
  position: absolute;
  left: 236px; top: 0;
  width: 520px;
  min-height: 480px;
  background: #fff;
  border-radius: 0 8px 8px 8px;
  box-shadow: 4px 4px 20px rgba(0,0,0,0.12);
  z-index: 100;
  display: none;
  padding: 20px;
}
.category-item:hover .sub-category-panel,
.sub-category-panel:hover { display: block; }
.sub-category-panel.visible { display: block; }
.sub-cat-group { margin-bottom: 16px; }
.sub-cat-title {
  font-size: 13px; font-weight: 700; color: #333;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}
.sub-cat-links { display: flex; flex-wrap: wrap; gap: 6px; }
.sub-cat-links a {
  font-size: 12px; color: #666; padding: 3px 10px;
  background: #f8f8f8; border-radius: 3px;
  transition: all 0.2s;
}
.sub-cat-links a:hover { color: #e60012; background: #fff1f0; }

/* --- 中间Banner --- */
.hero-banner { border-radius: 8px; overflow: hidden; }
.hero-slider {
  width: 100%; height: 100%;
  position: relative; overflow: hidden;
}
.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-slide {
  min-width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-text {
  text-align: center;
  color: #fff;
}
.hero-text h2 {
  font-size: 36px; font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-text p {
  font-size: 18px; margin-bottom: 20px;
  opacity: 0.95;
}
.hero-btn {
  display: inline-block;
  background: #fff; color: #e60012;
  padding: 8px 28px; border-radius: 20px;
  font-size: 14px; font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.hero-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.hero-prev, .hero-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 60px;
  font-size: 20px;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
  transition: all 0.2s;
}
.hero-prev:hover, .hero-next:hover { background: rgba(0,0,0,0.35); }
.hero-prev { left: 10px; }
.hero-next { right: 10px; }
.hero-dots {
  position: absolute;
  bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active { background: #fff; width: 24px; border-radius: 5px; }

/* --- 右侧登录卡片 --- */
.login-card {
  background: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.login-card-inner {
  text-align: center; padding: 30px 20px; width: 100%;
}
.login-avatar {
  width: 72px; height: 72px;
  margin: 0 auto 12px;
  background: #f5f5f5; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #e8e8e8;
}
.login-hint {
  font-size: 16px; font-weight: 700; color: #333;
  margin-bottom: 4px;
}
.login-desc {
  font-size: 12px; color: #999; margin-bottom: 18px;
}
.btn-login {
  display: block;
  width: 100%; max-width: 200px;
  margin: 0 auto 16px;
  padding: 10px 0;
  background: linear-gradient(135deg, #e60012, #ff4d4f);
  color: #fff; font-size: 15px; font-weight: 600;
  border-radius: 20px;
  transition: all 0.2s;
}
.btn-login:hover {
  box-shadow: 0 4px 12px rgba(230,0,18,0.35);
  transform: translateY(-1px);
}
.login-links { font-size: 12px; color: #999; }
.login-links a { color: #e60012; }
.link-sep { margin: 0 6px; color: #ddd; }

/* ========== 快捷入口 ========== */
.quick-entry { margin-top: 20px; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}
.quick-item {
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  padding: 18px 0;
  font-size: 13px; color: #333;
  transition: all 0.2s;
}
.quick-item:hover { color: #e60012; background: #fff9f9; }
.quick-icon { font-size: 28px; }

/* ========== 区块标题 ========== */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.section-title {
  font-size: 20px; font-weight: 700; color: #333;
  display: flex; align-items: center; gap: 8px;
}
.section-more { font-size: 13px; color: #999; }
.section-more:hover { color: #e60012; }
.section-tags { display: flex; gap: 12px; }
.tag-link { font-size: 13px; color: #666; }
.tag-link:hover { color: #e60012; }

/* ========== 直播区域 ========== */
.live-section { margin-top: 24px; }
.live-dot {
  width: 8px; height: 8px;
  background: #e60012; border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,0,18,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(230,0,18,0); }
}
.live-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.live-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.live-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.live-thumb {
  height: 180px;
  position: relative;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex; align-items: center; justify-content: center;
}
.live-badge {
  position: absolute; top: 8px; left: 8px;
  background: #e60012; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 3px;
  animation: pulse 2s infinite;
}
.live-info { padding: 10px 12px; }
.live-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.live-count { font-size: 12px; color: #999; }

/* ========== 商品网格 ========== */
.recommend-section { margin-top: 32px; }
.recommend-tabs { display: flex; gap: 20px; }
.rec-tab {
  font-size: 14px; color: #666; cursor: pointer;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.rec-tab.active { color: #e60012; border-bottom-color: #e60012; font-weight: 600; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.product-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.product-img {
  height: 220px;
  position: relative;
  background: #fafafa;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-tag {
  position: absolute; top: 8px; left: 8px;
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 3px; z-index: 2;
}
.tag-hot { background: #fff1f0; color: #e60012; border: 1px solid #ffa39e; }
.tag-new { background: #e6fffb; color: #13c2c2; border: 1px solid #87e8de; }
.tag-discount { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.tag-fresh { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.tag-organic { background: #f9f0ff; color: #722ed1; border: 1px solid #d3adf7; }
.product-info { padding: 12px; }
.product-name {
  font-size: 13px; color: #333;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 8px;
}
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.price-current { font-size: 18px; font-weight: 700; color: #e60012; }
.price-old { font-size: 12px; color: #bbb; text-decoration: line-through; }
.product-sold { font-size: 11px; color: #bbb; }

/* ========== 限时秒杀 ========== */
.flash-sale {
  margin-top: 32px;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
}
.flash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.flash-title-group { display: flex; align-items: center; gap: 12px; }
.flash-icon { font-size: 24px; }
.flash-title { font-size: 20px; font-weight: 700; }
.flash-countdown { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.countdown-label { font-size: 12px; color: #999; margin-right: 4px; }
.countdown-item {
  background: #333; color: #fff;
  font-size: 14px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px;
}
.countdown-sep { font-size: 14px; font-weight: 700; color: #333; }
.flash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flash-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.flash-card:hover { transform: translateY(-2px); }
.flash-img {
  height: 180px;
  background: #fafafa; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}
.flash-name {
  font-size: 13px; color: #333;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 6px;
}
.flash-price { margin-bottom: 8px; }
.flash-price .price-current { font-size: 16px; }
.flash-progress { display: flex; align-items: center; gap: 8px; }
.progress-bar {
  flex: 1; height: 6px;
  background: #f0f0f0; border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4d4f, #ff7875);
  border-radius: 3px;
}
.progress-text { font-size: 11px; color: #999; white-space: nowrap; }

/* ========== 分类商品区块 ========== */
.category-section { margin-top: 32px; }

/* ========== 商品图片样式 ========== */
.placeholder-img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #f0f0f0;
  transition: transform 0.3s;
}
.product-card:hover .placeholder-img,
.flash-card:hover .placeholder-img { transform: scale(1.05); }

/* ========== 6. 页脚 ========== */
.site-footer {
  margin-top: 40px;
  background: #2a2a2a;
  color: #aaa;
}
.footer-main { padding: 40px 0 30px; }
.footer-columns { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.footer-col h4 {
  font-size: 15px; font-weight: 600; color: #ddd;
  margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 12px; color: #888;
  margin-bottom: 8px; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.store-dist { color: #e60012; margin-left: 4px; font-size: 11px; }
.store-more { color: #e60012 !important; font-weight: 500; }
.contact-phone {
  font-size: 20px; font-weight: 700; color: #e60012;
  margin-bottom: 4px;
}
.contact-time { font-size: 12px; color: #888; margin-bottom: 14px; }
.footer-qr { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.qr-placeholder {
  width: 80px; height: 80px;
  border-radius: 4px; overflow: hidden;
}
.footer-qr > span { font-size: 11px; color: #888; }
.footer-bottom {
  border-top: 1px solid #3a3a3a;
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p { font-size: 11px; color: #666; line-height: 1.8; }

/* ========== 登录弹窗 ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.25s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  background: #fff;
  border-radius: 12px;
  width: 420px;
  padding: 36px 40px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.25s;
}
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 24px; color: #bbb;
  transition: color 0.2s;
}
.modal-close:hover { color: #333; }
.modal-logo {
  text-align: center; font-size: 22px; font-weight: 800;
  color: #e60012; margin-bottom: 8px;
}
.modal-title {
  text-align: center; font-size: 18px; font-weight: 600;
  color: #333; margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500;
  color: #555; margin-bottom: 6px;
}
.form-group input {
  width: 100%; height: 44px;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid #ddd; border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  border-color: #e60012;
  box-shadow: 0 0 0 2px rgba(230,0,18,0.1);
}
.form-extra {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #999;
  margin-bottom: 20px;
}
.remember-me { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.forgot-pwd { color: #e60012; }
.btn-submit-login {
  width: 100%; height: 44px;
  background: linear-gradient(135deg, #e60012, #ff4d4f);
  color: #fff; font-size: 16px; font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s;
}
.btn-submit-login:hover {
  box-shadow: 0 4px 12px rgba(230,0,18,0.35);
}
.modal-bottom {
  text-align: center; margin-top: 18px;
  font-size: 13px; color: #999;
}
.link-to-register { color: #e60012; font-weight: 500; }

/* ========== 门店选择弹窗 ========== */
.modal-store { width: 520px; padding: 30px 36px; }
.store-search { margin-bottom: 16px; }
.store-search input {
  width: 100%; height: 40px;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid #ddd; border-radius: 6px;
}
.store-search input:focus { border-color: #e60012; }
.store-hot-cities {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.city-label { font-size: 13px; color: #999; }
.city-item {
  font-size: 12px; color: #666;
  padding: 2px 10px; border-radius: 3px;
  border: 1px solid #e8e8e8;
  transition: all 0.2s;
}
.city-item:hover, .city-item.active {
  color: #e60012; border-color: #e60012; background: #fff1f0;
}
.store-list { margin-bottom: 16px; }
.store-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid transparent;
}
.store-item:hover { background: #fafafa; }
.store-item.active { border-color: #e60012; background: #fff1f0; }
.store-name { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 2px; }
.store-addr { font-size: 12px; color: #999; }
.btn-confirm-store {
  width: 100%; height: 40px;
  background: linear-gradient(135deg, #e60012, #ff4d4f);
  color: #fff; font-size: 14px; font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s;
}
.btn-confirm-store:hover { box-shadow: 0 4px 12px rgba(230,0,18,0.35); }

/* ========== 购物车弹窗 ========== */
.modal-cart { width: 640px; padding: 24px 28px; max-height: 80vh; overflow-y: auto; }
.cart-items { margin-bottom: 16px; }
.cart-item {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: 6px; overflow: hidden; flex-shrink: 0;
  background: #fafafa;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cart-item-name { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 4px; }
.cart-item-spec { font-size: 12px; color: #999; margin-bottom: 8px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-size: 16px; font-weight: 700; color: #e60012; }
.cart-qty { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 4px; }
.cart-qty button {
  width: 28px; height: 28px;
  font-size: 16px; color: #666;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.cart-qty button:hover { background: #f5f5f5; color: #e60012; }
.cart-qty .qty-input {
  width: 36px; height: 28px; text-align: center;
  font-size: 14px; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd;
}
.cart-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  padding-top: 16px; border-top: 1px solid #f0f0f0;
}
.cart-total { font-size: 14px; color: #333; }
.total-price { font-size: 20px; font-weight: 700; color: #e60012; margin-left: 4px; }
.btn-checkout {
  padding: 10px 36px;
  background: linear-gradient(135deg, #e60012, #ff4d4f);
  color: #fff; font-size: 15px; font-weight: 600;
  border-radius: 20px; transition: all 0.2s;
}
.btn-checkout:hover { box-shadow: 0 4px 12px rgba(230,0,18,0.35); }

/* ========== 订单弹窗 ========== */
.modal-order { width: 700px; padding: 24px 28px; max-height: 85vh; overflow-y: auto; }
.order-tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 2px solid #f0f0f0; }
.order-tab {
  padding: 8px 20px; font-size: 14px; color: #666; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.2s;
}
.order-tab:hover { color: #e60012; }
.order-tab.active { color: #e60012; border-bottom-color: #e60012; font-weight: 600; }
.order-card {
  border: 1px solid #eee; border-radius: 8px;
  margin-bottom: 12px; overflow: hidden;
}
.order-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #fafafa;
  font-size: 13px; color: #999;
}
.order-no { color: #666; }
.order-status { font-weight: 600; }
.status-shipped { color: #1890ff; }
.status-done { color: #52c41a; }
.status-pending { color: #fa8c16; }
.order-body { padding: 14px 16px; }
.order-product { display: flex; align-items: center; gap: 12px; }
.order-pimg {
  width: 60px; height: 60px; border-radius: 6px;
  background: #fafafa; object-fit: cover; flex-shrink: 0;
}
.order-pinfo { flex: 1; display: flex; align-items: center; gap: 12px; }
.order-pinfo p:first-child { font-size: 14px; color: #333; flex: 1; }
.order-pinfo span { font-size: 12px; color: #999; }
.order-pprice { font-size: 14px !important; font-weight: 600; color: #333 !important; }
.order-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-top: 1px solid #f5f5f5;
}
.order-total { font-size: 13px; color: #666; }
.order-actions { display: flex; gap: 8px; }
.btn-order-sm {
  padding: 5px 14px; font-size: 12px; color: #666;
  border: 1px solid #ddd; border-radius: 14px;
  transition: all 0.2s;
}
.btn-order-sm:hover { border-color: #e60012; color: #e60012; }
.btn-order-sm.primary { background: #e60012; color: #fff; border-color: #e60012; }
.btn-order-sm.primary:hover { background: #cc0010; }

/* ========== 个人中心弹窗 ========== */
.modal-profile { width: 560px; padding: 24px 28px; }
.profile-header-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; background: linear-gradient(135deg, #fff1f0, #fff7e6);
  border-radius: 10px; margin-bottom: 20px;
}
.profile-avatar {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #e60012, #ff4d4f);
  color: #fff; font-size: 22px; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-name { font-size: 18px; font-weight: 700; color: #333; }
.profile-level { font-size: 12px; color: #999; margin-top: 4px; }
.profile-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.profile-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 0; border-radius: 8px;
  transition: all 0.2s; font-size: 13px; color: #555;
}
.profile-item:hover { background: #fafafa; color: #e60012; }

/* ========== 帮助中心弹窗 ========== */
.modal-help { width: 620px; padding: 24px 28px; max-height: 80vh; overflow-y: auto; }
.help-search { display: flex; gap: 8px; margin-bottom: 18px; }
.help-search input {
  flex: 1; height: 40px; padding: 0 14px;
  font-size: 14px; border: 1px solid #ddd; border-radius: 6px;
}
.help-search input:focus { border-color: #e60012; }
.help-search button {
  padding: 0 20px; height: 40px;
  background: linear-gradient(135deg, #e60012, #ff4d4f);
  color: #fff; font-size: 14px; font-weight: 600;
  border-radius: 6px; transition: all 0.2s;
}
.help-search button:hover { box-shadow: 0 4px 12px rgba(230,0,18,0.35); }
.help-faq {
  padding: 14px 0; border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.faq-q { font-size: 15px; font-weight: 500; color: #333; display: flex; align-items: center; }
.faq-q::before { content: 'Q'; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: #e60012; color: #fff; font-size: 12px; font-weight: 700; border-radius: 4px; margin-right: 10px; flex-shrink: 0; }
.faq-a { font-size: 13px; color: #666; margin-top: 8px; padding-left: 32px; display: none; }
.faq-a::before { content: 'A'; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: #52c41a; color: #fff; font-size: 12px; font-weight: 700; border-radius: 4px; margin-right: 10px; flex-shrink: 0; vertical-align: middle; }
.help-faq.open .faq-a { display: block; }
.help-faq.open .faq-q { color: #e60012; }

/* ========== 客服中心弹窗 ========== */
.modal-service { width: 520px; padding: 0; border-radius: 12px; overflow: hidden; }
.service-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(135deg, #e60012, #ff4d4f);
  color: #fff;
}
.service-header h3 { font-size: 17px; font-weight: 600; }
.service-status { font-size: 12px; padding: 2px 10px; background: rgba(255,255,255,0.25); border-radius: 10px; }
.service-header .modal-close { top: 14px; right: 18px; color: #fff; }
.service-chat { padding: 16px 20px; max-height: 320px; overflow-y: auto; background: #f8f8f8; }
.chat-msg { display: flex; gap: 10px; margin-bottom: 14px; }
.chat-from { justify-content: flex-start; }
.chat-to { justify-content: flex-end; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; flex-shrink: 0;
  color: #fff;
}
.chat-from .chat-avatar { background: #e60012; }
.chat-to .chat-avatar { background: #1890ff; }
.chat-bubble {
  max-width: 320px; padding: 10px 14px;
  border-radius: 12px; font-size: 13px; line-height: 1.6;
}
.chat-from .chat-bubble { background: #fff; color: #333; border-top-left-radius: 4px; }
.chat-to .chat-bubble { background: #1890ff; color: #fff; border-top-right-radius: 4px; }
.chat-input-row {
  display: flex; gap: 8px; padding: 12px 20px;
  border-top: 1px solid #eee; background: #fff;
}
.chat-input-row input {
  flex: 1; height: 38px; padding: 0 12px;
  font-size: 13px; border: 1px solid #ddd; border-radius: 19px;
}
.chat-input-row input:focus { border-color: #e60012; }
.chat-input-row button {
  width: 60px; height: 38px;
  background: linear-gradient(135deg, #e60012, #ff4d4f);
  color: #fff; font-size: 13px; font-weight: 600;
  border-radius: 19px; transition: all 0.2s;
}
.chat-input-row button:hover { box-shadow: 0 4px 12px rgba(230,0,18,0.35); }
.service-quick-links {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-top: 1px solid #eee; font-size: 12px; color: #999;
}
.service-quick-links a { color: #e60012; }
.service-quick-links a:hover { text-decoration: underline; }

/* ========== 商品详情弹窗 ========== */
.modal-product { width: 780px; padding: 0; border-radius: 12px; overflow: hidden; }
.modal-product .modal-close { top: 16px; right: 20px; z-index: 10; color: #fff; }
.pdetail-layout { display: grid; grid-template-columns: 360px 1fr; }
.pdetail-img {
  height: 400px; background: #fafafa;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.pdetail-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdetail-info { padding: 28px 28px 24px; display: flex; flex-direction: column; }
.pdetail-name { font-size: 18px; font-weight: 700; color: #333; margin-bottom: 8px; }
.pdetail-desc { font-size: 13px; color: #999; line-height: 1.6; margin-bottom: 16px; }
.pdetail-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; padding: 12px; background: #fff1f0; border-radius: 6px; }
.pdetail-price { font-size: 28px; font-weight: 800; color: #e60012; }
.pdetail-old { font-size: 14px; color: #bbb; text-decoration: line-through; }
.pdetail-tag-sale { font-size: 11px; padding: 2px 8px; background: #e60012; color: #fff; border-radius: 3px; margin-left: auto; }
.pdetail-specs { margin-bottom: 18px; }
.spec-row { display: flex; gap: 8px; padding: 6px 0; font-size: 13px; }
.spec-label { color: #999; width: 44px; flex-shrink: 0; }
.spec-val { color: #333; }
.pdetail-qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 13px; color: #666; }
.pdetail-stock { color: #52c41a; font-size: 12px; margin-left: auto; }
.pdetail-btns { display: flex; gap: 12px; margin-top: auto; }
.btn-add-cart {
  flex: 1; height: 44px;
  border: 1px solid #e60012; color: #e60012;
  font-size: 15px; font-weight: 600;
  border-radius: 22px; transition: all 0.2s;
}
.btn-add-cart:hover { background: #fff1f0; }
.btn-buy-now {
  flex: 1; height: 44px;
  background: linear-gradient(135deg, #e60012, #ff4d4f);
  color: #fff; font-size: 15px; font-weight: 600;
  border-radius: 22px; transition: all 0.2s;
}
.btn-buy-now:hover { box-shadow: 0 4px 12px rgba(230,0,18,0.35); }

/* ========== 门店自提弹窗 ========== */
.modal-pickup { width: 540px; padding: 24px 28px; }
.pickup-steps { margin-bottom: 18px; }
.pickup-step { display: flex; gap: 14px; margin-bottom: 16px; }
.step-num {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #e60012, #ff4d4f);
  color: #fff; font-size: 16px; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-text strong { font-size: 14px; color: #333; }
.step-text p { font-size: 12px; color: #999; margin-top: 4px; }
.pickup-tips {
  padding: 14px; background: #fffbe6; border-radius: 6px;
  font-size: 12px; color: #666; line-height: 1.8;
}

/* ========== 小时达弹窗 ========== */
.modal-delivery { width: 540px; padding: 24px 28px; }
.delivery-info { margin-bottom: 16px; }
.delivery-row {
  display: flex; align-items: center; padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
}
.dl-label { color: #999; width: 80px; flex-shrink: 0; }
.dl-val { color: #333; }
.free-tag {
  display: inline-block; padding: 1px 8px;
  background: #e60012; color: #fff; font-weight: 700;
  border-radius: 3px; font-size: 12px;
}

/* ========== 直播弹窗 ========== */
.modal-live { width: 860px; padding: 0; border-radius: 12px; overflow: hidden; }
.modal-live .modal-close { top: 14px; right: 18px; color: #fff; z-index: 10; }
.live-player { display: grid; grid-template-columns: 1fr 280px; height: 480px; }
.live-player-main {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.live-badge-large {
  position: absolute; top: 14px; left: 14px;
  background: #e60012; color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 4px 12px; border-radius: 4px;
  animation: pulse 2s infinite;
}
.live-viewers {
  position: absolute; top: 14px; right: 14px;
  font-size: 12px; color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.3); padding: 3px 10px; border-radius: 10px;
}
.live-placeholder { font-size: 18px; color: rgba(255,255,255,0.4); }
.live-player-sidebar {
  padding: 16px; background: #fff;
  overflow-y: auto; display: flex; flex-direction: column;
}
.live-player-sidebar h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.live-products { margin-bottom: 12px; }
.live-pcard {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; margin-bottom: 8px;
  background: #fafafa; border-radius: 6px;
}
.live-pcard img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; }
.live-pinfo { flex: 1; }
.live-pinfo p { font-size: 12px; color: #333; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-pinfo .price-current { font-size: 15px; }
.live-pinfo button {
  display: block; margin-top: 4px;
  padding: 3px 16px; font-size: 12px;
  background: linear-gradient(135deg, #e60012, #ff4d4f);
  color: #fff; font-weight: 600;
  border-radius: 10px; transition: all 0.2s;
}
.live-pinfo button:hover { box-shadow: 0 2px 8px rgba(230,0,18,0.3); }
.live-barrage { flex: 1; overflow: hidden; }
.barrage-msg {
  font-size: 11px; color: #999; padding: 4px 0;
  border-bottom: 1px solid #f8f8f8;
}
