/* ====================================================
   LG商城 · 全站样式 v2.0
   支持 PC(≥1024px) + 平板(768~1024px) + 移动端(<768px)
   ==================================================== */

/* ---------- CSS变量 ---------- */
:root {
  --primary:   #e53e3e;
  --primary2:  #fc5c63;
  --accent:    #f6c90e;
  --bg:        #f5f5f7;
  --card-bg:   #ffffff;
  --text:      #1a1a2e;
  --muted:     #6b7280;
  --border:    #e5e7eb;
  --shadow:    0 2px 12px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius:    12px;
  --radius-sm: 8px;
  --header-h:  64px;
  --bottom-nav-h: 60px;
  --sidebar-w: 240px;
  --content-max: 1200px;
}

/* ---------- 重置 & 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ---------- PC顶部导航 ---------- */
.pc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  height: var(--header-h);
}
.pc-header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
}
.pc-logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  white-space: nowrap;
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.pc-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.pc-nav a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all .18s;
  white-space: nowrap;
}
.pc-nav a:hover { background: var(--bg); color: var(--text); }
.pc-nav a.active { color: var(--primary); background: #fff1f1; }

.pc-search {
  flex: 1;
  min-width: 0;
  max-width: 340px;
}
.pc-search form {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color .18s;
  background: var(--bg);
}
.pc-search form:focus-within { border-color: var(--primary); background: #fff; }
.pc-search input {
  flex: 1;
  border: none;
  padding: 9px 16px;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text);
}
.pc-search button {
  padding: 0 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 0 999px 999px 0;
  transition: background .18s;
}
.pc-search button:hover { background: var(--primary2); }

.pc-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pc-cart-btn, .pc-user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all .18s;
  position: relative;
}
.pc-cart-btn:hover, .pc-user-btn:hover { background: var(--bg); color: var(--text); }
.pc-cart-btn.active, .pc-user-btn.active { color: var(--primary); }
.pc-cart-btn .badge {
  position: absolute;
  top: 2px; right: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 5px;
  line-height: 1.4;
}
.pc-login-btn, .pc-reg-btn {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: all .18s;
}
.pc-login-btn { color: var(--primary); border: 1.5px solid var(--primary); }
.pc-login-btn:hover { background: #fff1f1; }
.pc-reg-btn { background: var(--primary); color: #fff; }
.pc-reg-btn:hover { background: var(--primary2); }

/* ---------- PC主体布局 ---------- */
.pc-body {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px 24px 80px;
}
.pc-main { flex: 1; min-width: 0; }

/* ---------- Alert消息 ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}
.alert-ok { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.alert-err { background: #fff1f2; color: #dc2626; border: 1px solid #fecdd3; }

/* ---------- 页面内容 ---------- */
.page-content { }

/* ---------- 顶部栏（移动端） ---------- */
.topbar {
  display: none; /* 移动端显示 */
  align-items: center;
  gap: 10px;
  padding: 10px 0 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}
.topbar .title {
  flex: 1;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}
.topbar .search {
  flex: 1;
  min-width: 0;
}
.topbar .search input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  background: var(--card-bg);
  outline: none;
  transition: border-color .18s;
}
.topbar .search input:focus { border-color: var(--primary); }

/* ---------- PC页面专用横幅 ---------- */
.pc-page-banner {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fee2e2 0%, #fde8d8 100%);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.pc-page-banner img { max-height: 140px; border-radius: var(--radius-sm); }
.pc-page-banner .text h1 { font-size: 28px; font-weight: 900; color: var(--primary); }
.pc-page-banner .text p { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* ---------- 分类标签栏 ---------- */
.category-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.category-bar a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all .18s;
}
.category-bar a .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.category-bar a:hover, .category-bar a.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff1f1;
}

/* ---------- 移动端分类网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0 0 16px;
}
.grid .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.grid .icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}
.grid .label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

/* ---------- 商品网格 (PC) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.product-card .thumb-wrap {
  aspect-ratio: 4/3;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.product-card .thumb-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.product-card:hover .thumb-wrap img { transform: scale(1.04); }
.product-card .info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.product-card .desc {
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-card .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.product-card .tag {
  font-size: 11px;
  color: var(--muted);
}
.product-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.product-card .price {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
}
.product-card .price-unit { font-size: 13px; font-weight: 600; color: var(--primary); }

/* ---------- 移动端卡片样式 ---------- */
.cards { display: flex; flex-direction: column; gap: 10px; }
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card .row {
  display: flex;
  gap: 10px;
  padding: 10px;
  align-items: flex-start;
}
.card .thumb {
  width: 100px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}
.card .meta { flex: 1; min-width: 0; }
.card .meta .name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}
.card .meta .desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}
.card .meta .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.tag { font-size: 11px; color: var(--muted); }

/* ---------- 区域标题 ---------- */
.section { margin-bottom: 20px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-head .h { font-size: 17px; font-weight: 900; color: var(--text); }
.section-head .more { font-size: 13px; color: var(--primary); font-weight: 700; }

/* 商品小横幅 */
.banner { border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.banner img { width: 100%; max-height: 160px; object-fit: cover; }

/* ---------- 价格 ---------- */
.price { color: var(--primary); font-weight: 900; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: all .18s;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary2); box-shadow: 0 4px 12px rgba(229,62,62,.35); }
.btn.buy { background: linear-gradient(90deg, #f97316, #ef4444); color: #fff; }
.btn.buy:hover { box-shadow: 0 4px 12px rgba(239,68,68,.35); }
.btn.ghost { border-color: var(--border); color: var(--text); background: var(--card-bg); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn.danger { background: #fff1f2; color: #dc2626; border-color: #fecdd3; }
.btn.danger:hover { background: #fde8e8; }
.btn.full { width: 100%; }
.btn.lg { padding: 13px 28px; font-size: 16px; }

/* ---------- 表单 ---------- */
.form { max-width: 480px; }
.form form { display: flex; flex-direction: column; gap: 10px; }
.form label { font-size: 13px; font-weight: 700; color: var(--muted); }
.form input, .form textarea, .form select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color .18s;
  background: var(--card-bg);
  width: 100%;
  color: var(--text);
}
.form input:focus, .form textarea:focus { border-color: var(--primary); }
.form textarea { min-height: 80px; resize: vertical; }

/* ---------- 支付方式 ---------- */
.pay-methods { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all .18s;
  background: var(--card-bg);
  flex: 1;
  min-width: 140px;
}
.pay-method:has(input:checked) { border-color: var(--primary); background: #fff1f1; color: var(--primary); }
.pay-method input { display: none; }
.badge.wechat { background: #07c160; color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.badge.alipay { background: #1677ff; color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.badge.uvb { background: #8b5cf6; color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 12px; }

/* ---------- 商品详情 ---------- */
.product-hero {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 16px;
}
.product-hero img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}
.product-hero .p { padding: 16px; }
.product-hero .t { font-size: 18px; font-weight: 900; line-height: 1.35; }
.product-hero .sub { color: var(--muted); font-size: 13px; margin-top: 10px; line-height: 1.7; }
.product-hero .stat {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* PC 商品详情两栏 */
.pc-product-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  align-items: flex-start;
}
.pc-product-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.pc-product-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-product-info { display: flex; flex-direction: column; gap: 16px; }

/* ---------- 底部操作栏（商品详情移动端） ---------- */
.actionbar {
  position: fixed;
  bottom: var(--bottom-nav-h);
  left: 0; right: 0;
  z-index: 50;
  padding: 10px 12px;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.07);
}
.actionbar .inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}
.actionbar .mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.actionbar .mini .i { width: 22px; height: 22px; background: var(--bg); border-radius: 6px; }
.actionbar .cta { display: flex; gap: 8px; flex: 1; }
.actionbar .cta form { flex: 1; }
.actionbar .cta .btn { width: 100%; }

/* ---------- 移动端底部导航 ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.bottom-nav .inner {
  display: flex;
  height: var(--bottom-nav-h);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 4px;
  transition: color .18s;
}
.bottom-nav a svg { width: 20px; height: 20px; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a span { line-height: 1; }

/* ---------- 头像 ---------- */
.avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ---------- 聊天气泡 ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; min-height: 60px; }
.bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  line-height: 1.6;
  font-size: 13px;
  align-self: flex-start;
}
.bubble.me { align-self: flex-end; background: #fff1f1; border-color: #fecdd3; }
.bubble .meta { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* ---------- 发货内容块 ---------- */
.delivery-block {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed rgba(34,197,94,.5);
  background: rgba(34,197,94,.05);
  margin-top: 10px;
}
.delivery-block .title { font-weight: 900; font-size: 14px; color: #16a34a; }
.delivery-block .content { margin-top: 6px; line-height: 1.7; word-break: break-word; font-size: 13px; }

/* ---------- 统计卡片 ---------- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.stat-card .num { font-size: 24px; font-weight: 900; }
.stat-card .label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- 个人中心菜单 ---------- */
.me-menu { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.me-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all .18s;
}
.me-menu a:hover { background: #fff1f1; color: var(--primary); border-color: var(--primary); }
.me-menu a .arrow { color: var(--muted); font-size: 18px; }
.me-menu a .icon { font-size: 20px; margin-right: 10px; }

/* ---------- 空态占位 ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state .emoji { font-size: 56px; margin-bottom: 14px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); }
.empty-state p { font-size: 14px; margin-top: 6px; }
.empty-state .actions { margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Footer ---------- */
.footer-icp {
  padding: 24px 0 8px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.footer-icp a { color: inherit; }
.footer-icp a:hover { text-decoration: underline; }

/* ---------- 通知提示 ---------- */
.notice {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ---------- 订单状态徽章 ---------- */
.order-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.order-badge.paid { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.order-badge.pending { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

/* ======================================================
   响应式断点
   ====================================================== */

/* 平板 & 小屏PC (768px ~ 1024px) */
@media (max-width: 1024px) {
  .pc-nav { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .pc-product-layout { grid-template-columns: 1fr; }
  .pc-product-img { position: static; aspect-ratio: 16/9; }
}

/* 移动端 (<768px) */
@media (max-width: 768px) {
  :root { --header-h: 0px; }

  .pc-header { display: none; }
  .pc-body { padding: 0 12px 72px; }
  .topbar { display: flex; }
  .pc-search { display: none; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pc-page-banner { display: none; }
  .category-bar { display: none; }

  /* 移动端用卡片列表替代 */
  .product-grid .product-card .thumb-wrap { aspect-ratio: 3/2; }
  .product-grid .product-card .price { font-size: 15px; }

  .form { max-width: 100%; }

}
/* ================================================================
   精改覆盖：对齐参考图 re.jd.com 京东热卖风格
   ================================================================ */

/* ── 顶部小字栏 ── */
.jd-topbar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  height: 30px;
  line-height: 30px;
  font-size: 12px;
  color: #666;
  position: relative;
  z-index: 200;
}
.jd-topbar-inner {
  max-width: 1190px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.jd-topbar-left {
  display: flex;
  align-items: center;
  gap: 0;
  color: #666;
}
.jd-topbar-left a,
.jd-topbar-right a,
.jd-topbar-right span.topbar-login {
  color: #666;
  text-decoration: none;
  transition: color .15s;
}
.jd-topbar-left a:hover,
.jd-topbar-right a:hover { color: #e1251b; }
.topbar-login { color: #e1251b !important; font-weight: 500; }
.topbar-sep { margin: 0 6px; color: #ddd; }
.topbar-location { color: #666; }
.jd-topbar-right {
  display: flex;
  align-items: center;
  gap: 0;
  color: #666;
}
.topbar-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  line-height: 30px;
  transition: color .15s;
}
.topbar-btn:hover { color: #e1251b; }

/* ── Header ── */
.jd-header {
  background: #fff;
  height: 100px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}
.jd-header-inner {
  max-width: 1190px;
  margin: 0 auto;
  padding: 0 10px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.jd-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 30px;
  width: 130px;
}
.jd-logo-icon {
  width: 48px;
  height: 48px;
  background: #e1251b;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jd-logo-texts { display: flex; flex-direction: column; }
.jd-logo-main {
  font-size: 22px;
  font-weight: 900;
  color: #e1251b;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.jd-logo-sub {
  font-size: 11px;
  color: #999;
  line-height: 1.4;
}

/* 搜索框 */
.jd-search {
  flex: 1;
  max-width: 580px;
  margin: 0 20px 0 30px;
}
.jd-search-box {
  display: flex;
  height: 38px;
  border: 2px solid #e1251b;
}
.jd-search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  color: #333;
  background: #fff;
}
.jd-search-box input::placeholder { color: #bbb; }
.jd-search-box button {
  width: 80px;
  background: #e1251b;
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.jd-search-box button:hover { background: #c01010; }
.jd-search-hot {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  margin-top: 6px;
  overflow: hidden;
}
.jd-search-hot a {
  font-size: 12px;
  color: #666;
  text-decoration: none;
  margin-right: 10px;
  white-space: nowrap;
  transition: color .15s;
}
.jd-search-hot a:first-child { color: #e1251b; }
.jd-search-hot a:hover { color: #e1251b; }

/* 购物车按钮 */
.jd-cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  flex-shrink: 0;
  transition: border-color .15s;
  position: relative;
  margin-left: auto;
}
.jd-cart-btn:hover { border-color: #e1251b; color: #e1251b; }
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e1251b;
  color: #fff;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-weight: 700;
}

/* ── 分类导航红色栏 ── */
.jd-nav {
  background: #e1251b;
  height: 36px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.jd-nav-inner {
  max-width: 1190px;
  margin: 0 auto;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: stretch;
}
.jd-nav-cats {
  width: 190px;
  flex-shrink: 0;
  background: rgba(0,0,0,.15);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 0 12px;
  cursor: pointer;
}
.jd-nav-links {
  display: flex;
  align-items: stretch;
  flex: 1;
}
.jd-nav-links a {
  color: rgba(255,255,255,.92);
  font-size: 13px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.jd-nav-links a:hover,
.jd-nav-links a.active {
  background: rgba(0,0,0,.15);
  color: #fff;
}
.jd-nav-right {
  margin-left: auto;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ── 页面主体 ── */
.jd-body {
  background: #f5f5f5;
  min-height: 60vh;
}

/* ── 首页主布局 ── */
.jd-home-layout {
  display: flex;
  max-width: 1190px;
  margin: 0 auto;
  padding: 0;
  align-items: flex-start;
  background: #f5f5f5;
}

/* 左侧分类栏 */
.jd-sidebar {
  width: 190px;
  flex-shrink: 0;
  background: #fff;
  min-height: 430px;
}
.jd-sidebar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  transition: background .1s;
  cursor: pointer;
  text-decoration: none;
}
.jd-sidebar-item:hover { background: #f7f7f7; color: #e1251b; }
.cat-icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.cat-name { flex: 1; line-height: 1.3; }
.cat-arr { margin-left: auto; color: #bbb; font-size: 11px; flex-shrink: 0; }

/* 右侧主内容 */
.jd-main {
  flex: 1;
  min-width: 0;
  padding-left: 0;
}

/* Banner+广告并排 */
.jd-banner-wrap {
  display: flex;
  height: 430px;
}

/* Banner轮播 */
.jd-banner {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-width: 0;
  height: 430px;
}
.jd-banner-slides {
  display: flex;
  height: 100%;
  transition: transform .5s ease;
}
.jd-banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.jd-banner-slide-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #fff;
  padding: 0 20px;
}
.banner-sub {
  font-size: 13px;
  opacity: .85;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.jd-banner-slide-content h2 {
  font-size: 30px;
  font-weight: 900;
  margin: 4px 0;
  line-height: 1.2;
}
.banner-price {
  font-size: 44px;
  font-weight: 900;
  color: #ffe400;
  line-height: 1;
  margin: 10px 0 14px;
}
.banner-desc {
  font-size: 13px;
  opacity: .75;
}
.banner-btn {
  display: inline-block;
  background: #ffe400;
  color: #333;
  padding: 9px 24px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 12px;
  text-decoration: none;
  transition: opacity .15s;
}
.banner-btn:hover { opacity: .9; }
.jd-banner-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0;
  left: 0;
}
.jd-banner-arrow {
  pointer-events: all;
  width: 30px;
  height: 50px;
  background: rgba(0,0,0,.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  border: none;
  user-select: none;
  transition: background .2s;
}
.jd-banner-arrow:hover { background: rgba(0,0,0,.45); }
.jd-banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}
.jd-banner-dot {
  width: 18px;
  height: 3px;
  background: rgba(255,255,255,.4);
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s;
}
.jd-banner-dot.active { background: #fff; }

/* 右侧广告卡片列 */
.jd-banner-ads {
  width: 150px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid #f0f0f0;
}
.jd-ad-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: background .15s;
  background: #fff;
}
.jd-ad-card:last-child { border-bottom: none; }
.jd-ad-card:hover { background: #fafafa; }
.jd-ad-card-text { display: flex; flex-direction: column; gap: 2px; }
.jd-ad-card-title { font-size: 13px; font-weight: 700; line-height: 1.2; }
.jd-ad-card-sub { font-size: 11px; color: #999; }
.jd-ad-card-img {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* 快速分类图标行 */
.jd-cat-row {
  display: flex;
  background: #fff;
  padding: 12px 8px;
  border-top: 1px solid #f0f0f0;
}
.jd-cat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 5px 2px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: background .15s;
}
.jd-cat-item:hover { background: #f7f7f7; color: #e1251b; }
.cat-emoji { font-size: 24px; line-height: 1; }
.cat-label { font-size: 12px; color: #555; white-space: nowrap; }

/* 区块通用 */
.jd-section {
  background: #fff;
  margin-top: 8px;
}
.jd-section-hd {
  display: flex;
  align-items: center;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f5f5f5;
  gap: 6px;
}
.jd-section-icon { font-size: 16px; }
.jd-section-hd h2 {
  font-size: 18px;
  font-weight: 700;
  color: #e1251b;
  margin: 0;
}
.jd-section-hd .more {
  font-size: 12px;
  color: #999;
  text-decoration: none;
  transition: color .15s;
}
.jd-section-hd .more:hover { color: #e1251b; }

/* 秒杀倒计时 */
.jd-seckill-timer {
  font-size: 12px;
  color: #e1251b;
  display: inline-flex;
  align-items: center;
}

/* 倒计时盒子 */
.timer-box {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  font-family: monospace;
  min-width: 22px;
  text-align: center;
}

/* 秒杀列表 */
.jd-seckill {
  display: flex;
  padding: 12px 16px;
  gap: 10px;
  overflow-x: auto;
}
.jd-seckill::-webkit-scrollbar { height: 3px; }
.jd-seckill::-webkit-scrollbar-thumb { background: #eee; }
.jd-seckill-item {
  flex-shrink: 0;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 4px;
  border: 1px solid #f5f5f5;
  transition: box-shadow .18s;
  background: #fff;
}
.jd-seckill-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.sk-img {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f9f9f9;
  border-radius: 4px;
}
.sk-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sk-price {
  font-size: 20px;
  font-weight: 800;
  color: #e1251b;
  line-height: 1;
}
.sk-price span { font-size: 12px; }
.sk-ori { font-size: 11px; color: #bbb; text-decoration: line-through; }

/* 区块Tabs */
.jd-section-tabs {
  display: flex;
  gap: 0;
  padding: 0;
  border-bottom: none;
}
.jd-section-tab {
  padding: 2px 10px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  border-radius: 2px;
}
.jd-section-tab:hover { color: #e1251b; }
.jd-section-tab.active { color: #e1251b; font-weight: 700; }

/* 商品网格 */
.jd-goods-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid #f5f5f5;
}
.jd-goods-card {
  display: flex;
  flex-direction: column;
  padding: 16px 12px 12px;
  border-right: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: #333;
  transition: box-shadow .18s;
  position: relative;
  background: #fff;
  cursor: pointer;
}
.jd-goods-card:nth-child(5n) { border-right: none; }
.jd-goods-card:hover { box-shadow: 0 2px 16px rgba(0,0,0,.1); z-index: 2; }
.g-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f9f9f9;
  margin-bottom: 10px;
}
.g-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s;
}
.jd-goods-card:hover .g-img img { transform: scale(1.04); }
.g-name {
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  flex: 1;
  min-height: 39px;
}
.g-shop {
  font-size: 11px;
  color: #999;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.g-price {
  font-size: 20px;
  font-weight: 700;
  color: #e1251b;
  line-height: 1;
}
.g-price span { font-size: 12px; font-weight: 600; }
.g-price-ori {
  font-size: 12px;
  color: #bbb;
  text-decoration: line-through;
}
.g-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}
.g-tag {
  display: inline-block;
  font-size: 11px;
  color: #e1251b;
  border: 1px solid #e1251b;
  border-radius: 2px;
  padding: 1px 4px;
  line-height: 1.4;
}
.g-sales {
  font-size: 11px;
  color: #999;
}
.g-add-cart {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  background: #e1251b;
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  border: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .18s;
  cursor: pointer;
}
.jd-goods-card:hover .g-add-cart { opacity: 1; }

/* 通知提示 */
.alert { padding: 10px 16px; border-radius: 3px; margin: 10px 0; font-size: 13px; }
.alert-ok { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.alert-err { background: #fff5f5; color: #e1251b; border: 1px solid #fbd5d5; }

/* Footer */
.jd-footer {
  background: #2c2c2c;
  color: #888;
  text-align: center;
  padding: 20px 24px;
  font-size: 12px;
  line-height: 2;
}
.jd-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.jd-footer-links a { color: #888; text-decoration: none; }
.jd-footer-links a:hover { color: #ccc; }

/* ── 响应式 ── */
@media (max-width: 1200px) {
  .jd-home-layout, .jd-header-inner, .jd-nav-inner, .jd-topbar-inner { max-width: 100%; }
}
@media (max-width: 960px) {
  .jd-goods-grid { grid-template-columns: repeat(4, 1fr); }
  .jd-nav-right { display: none; }
}
@media (max-width: 768px) {
  .jd-topbar { display: none; }
  .jd-header { height: 56px; }
  .jd-search { display: none; }
  .jd-nav { display: none; }
  .jd-sidebar { display: none; }
  .jd-banner-wrap { height: 200px; }
  .jd-banner { height: 200px; }
  .jd-banner-slide-content h2 { font-size: 20px; }
  .banner-price { font-size: 26px; }
  .jd-goods-grid { grid-template-columns: repeat(2, 1fr); }
  .jd-body { padding-bottom: 60px; }
  .jd-footer { display: none; }
}



/* ===== Header Layout - Search Centered ===== */
.jd-header {
  background: #fff;
  height: 100px;
  display: flex !important;
  align-items: center !important;
  border-bottom: 1px solid #f0f0f0;
}
.jd-header-inner {
  display: flex !important;
  align-items: center !important;
  max-width: 1190px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: static !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}
/* Logo - 普通flex子元素，固定宽度，左边 */
.jd-logo {
  position: static !important;
  transform: none !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin-right: 30px !important;
}
/* 搜索框 - 占满剩余空间居中 */
.jd-search {
  flex: 1 1 auto !important;
  max-width: 600px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding: 0 !important;
}
/* 购物车 - 普通flex子元素，靠右 */
.jd-cart-btn-wrap,
.jd-header-inner > a[href="/cart"],
.jd-header-inner > .jd-cart-btn {
  position: static !important;
  transform: none !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

/* Home layout */
.jd-home-layout {
  display: flex !important;
  flex-direction: row !important;
  max-width: 1190px !important;
  margin: 0 auto !important;
  align-items: flex-start !important;
  background: #f5f5f5 !important;
}
.jd-sidebar {
  width: 190px !important;
  flex: 0 0 190px !important;
  min-width: 0 !important;
  background: #fff !important;
  min-height: 430px !important;
}
.jd-main {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .jd-search { display: none !important; }
  .jd-logo { position: static !important; transform: none !important; }
}

/* ===== 我的订单 - 订单卡片样式 ===== */
.jd-order-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}
.jd-order-card-hd {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  background: #f7f7f7;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
  color: #666;
}
.jd-order-card-hd .o-no { color: #333; }
.jd-order-card-hd .o-status { margin-left: auto; font-weight: 600; color: #e4393c; }
.jd-order-card-body {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.jd-order-card-body:hover { background: #fafafa; }
.jd-order-card-body img {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.jd-order-card-body .o-name {
  flex: 1;
  min-width: 0;
}
.jd-order-card-body .o-price {
  font-size: 16px;
  font-weight: 700;
  color: #e4393c;
  white-space: nowrap;
  margin-left: 12px;
}
.jd-order-card-ft {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #f0f0f0;
}
.jd-order-btn {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #fff;
  color: #333;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}
.jd-order-btn:hover { border-color: #e4393c; color: #e4393c; }
.jd-order-btn.primary {
  background: #e4393c;
  border-color: #e4393c;
  color: #fff;
}
.jd-order-btn.primary:hover { background: #c92b2e; border-color: #c92b2e; }
.jd-filter-btn {
  padding: 5px 14px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 2px;
  cursor: pointer;
  color: #666;
  background: #fff;
}
.jd-filter-btn.active, .jd-filter-btn:hover {
  border-color: #e4393c;
  color: #e4393c;
}

/* ===== 鏀堕摱鍙版敮浠橀〉 ===== */
.jd-pay-wrap {
  max-width: 540px;
  margin: 30px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  overflow: hidden;
}
.jd-pay-hd {
  background: linear-gradient(135deg, #e4393c 0%, #c0272a 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.jd-pay-body {
  padding: 28px 32px 32px;
}
.jd-pay-amount {
  text-align: center;
  padding: 20px 0 24px;
  border-bottom: 1px dashed #f0f0f0;
  margin-bottom: 24px;
}
.jd-pay-amount .label {
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}
.jd-pay-amount .amount {
  font-size: 44px;
  font-weight: 800;
  color: #e4393c;
  line-height: 1;
  letter-spacing: -1px;
}
.jd-pay-amount .amount span {
  font-size: 22px;
  font-weight: 600;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
}
.jd-pay-methods {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}
.jd-pay-method {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  transition: all .2s;
  background: #fafafa;
  flex: 1;
  justify-content: center;
}
.jd-pay-method input[type="radio"] { display: none; }
.jd-pay-method .pm-icon { font-size: 20px; }
.jd-pay-method.active {
  border-color: #e4393c;
  background: #fff5f5;
  color: #e4393c;
}
.jd-pay-method:hover {
  border-color: #e4393c;
  background: #fff5f5;
}
.jd-pay-confirm {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #e4393c 0%, #c0272a 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .5px;
  transition: opacity .2s, transform .1s;
  box-shadow: 0 4px 14px rgba(228,57,60,.35);
}
.jd-pay-confirm:hover { opacity: .92; transform: translateY(-1px); }
.jd-pay-confirm:active { transform: translateY(0); opacity: 1; }

/* ===== 鐧诲綍椤?===== */
.jd-login-wrap {
  max-width: 420px;
  margin: 40px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  overflow: hidden;
}
.jd-login-hd {
  background: linear-gradient(135deg, #e4393c 0%, #c0272a 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 28px 32px 24px;
  text-align: center;
  letter-spacing: .5px;
}
.jd-login-body {
  padding: 28px 32px 32px;
}
.jd-form-row {
  margin-bottom: 18px;
}
.jd-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 7px;
}
.jd-form-row input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background: #fafafa;
  box-sizing: border-box;
  transition: border-color .2s, background .2s;
  outline: none;
}
.jd-form-row input:focus {
  border-color: #e4393c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(228,57,60,.10);
}
.jd-form-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #e4393c 0%, #c0272a 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 2px;
  margin-top: 6px;
  margin-bottom: 16px;
  box-shadow: 0 3px 12px rgba(228,57,60,.30);
  transition: opacity .2s;
}
.jd-form-submit:hover { opacity: .90; }
.jd-form-links {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #999;
}
.jd-form-links a { color: #e4393c; text-decoration: none; }
.jd-form-links a:hover { text-decoration: underline; }

/* ======================================================
   鍟嗗搧璇︽儏椤靛畬鏁存牱寮?   ====================================================== */

/* 澶栧眰瀹瑰櫒 */
.jd-detail-wrap {
  max-width: 1190px;
  margin: 0 auto;
  padding: 0 0 40px;
  background: #f5f5f5;
}

/* 涓婇儴涓ゅ垪甯冨眬锛氬乏鍥惧彸淇℃伅 */
.jd-detail-layout {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  align-items: flex-start;
  background: #f5f5f5;
}

/* ---- 宸︿晶鍥剧墖鍖?---- */
.jd-detail-imgs {
  flex: 0 0 430px;
  width: 430px;
  background: #fff;
  border-radius: 4px;
  padding: 16px;
  box-sizing: border-box;
}

.jd-detail-main-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.jd-detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s;
}
.jd-detail-main-img:hover img { transform: scale(1.04); }

.jd-detail-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.jd-detail-thumb {
  width: 60px;
  height: 60px;
  border: 2px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s;
}
.jd-detail-thumb.active,
.jd-detail-thumb:hover { border-color: #e4393c; }
.jd-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- 鍙充晶淇℃伅鍖?---- */
.jd-detail-info {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 4px;
  padding: 20px 24px 24px;
  box-sizing: border-box;
}

.jd-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
  margin: 0 0 8px;
}

.jd-detail-subtitle {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* 浠锋牸鍧?*/
.jd-detail-price-box {
  background: #fff9f9;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #fde8e8;
}

.jd-detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.jd-detail-price .label {
  font-size: 12px;
  color: #e4393c;
  background: #ffe0e0;
  border-radius: 3px;
  padding: 2px 6px;
  font-weight: 600;
  flex-shrink: 0;
}
.jd-detail-price .price {
  font-size: 32px;
  font-weight: 800;
  color: #e4393c;
  line-height: 1;
}
.jd-detail-price .price span {
  font-size: 16px;
  font-weight: 600;
  vertical-align: top;
  margin-top: 4px;
  display: inline-block;
}
.jd-detail-price .ori {
  font-size: 13px;
  color: #ccc;
  text-decoration: line-through;
}
.jd-detail-price .save-tag {
  font-size: 12px;
  color: #fff;
  background: #ff6600;
  border-radius: 3px;
  padding: 2px 8px;
  font-weight: 600;
}

/* 瑙勬牸閫夋嫨 */
.jd-detail-spec {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f5f5f5;
}
.jd-detail-spec-row { margin-bottom: 12px; }
.jd-detail-spec-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 600;
}
.jd-detail-spec-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.jd-spec-opt {
  padding: 7px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: all .2s;
  background: #fff;
  user-select: none;
}
.jd-spec-opt.active,
.jd-spec-opt:hover {
  border-color: #e4393c;
  color: #e4393c;
  background: #fff5f5;
}

/* 鏁伴噺 */
.jd-qty {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f5f5f5;
}
.jd-qty button {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: background .2s;
}
.jd-qty button:hover { background: #eee; }
.jd-qty input {
  width: 52px;
  height: 32px;
  text-align: center;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  outline: none;
}

/* 鏈嶅姟鏍囩 */
.jd-detail-service {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f5f5f5;
}
.jd-service-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #555;
}
.svc-icon { font-size: 16px; }

/* 璐拱鎸夐挳 */
.jd-buy-btns {
  display: flex;
  gap: 12px;
  align-items: center;
}
.jd-btn-buynow {
  padding: 12px 36px;
  background: linear-gradient(135deg, #e4393c 0%, #c0272a 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .5px;
  box-shadow: 0 3px 10px rgba(228,57,60,.35);
  transition: opacity .2s, transform .1s;
  text-decoration: none;
  display: inline-block;
}
.jd-btn-buynow:hover { opacity: .90; transform: translateY(-1px); }
.jd-btn-addcart {
  padding: 11px 30px;
  background: #fff;
  color: #e4393c;
  border: 2px solid #e4393c;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .5px;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.jd-btn-addcart:hover {
  background: #fff5f5;
}

/* ---- 涓嬮儴 Tab 鍖?---- */
.jd-detail-tabs {
  background: #fff;
  border-radius: 4px;
  margin-top: 16px;
  overflow: hidden;
}
.jd-detail-tab-nav {
  display: flex;
  border-bottom: 2px solid #f0f0f0;
  padding: 0 20px;
  gap: 0;
}
.jd-detail-tab-btn {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s;
  user-select: none;
}
.jd-detail-tab-btn.active {
  color: #e4393c;
  border-bottom-color: #e4393c;
}
.jd-detail-tab-btn:hover { color: #e4393c; }
.jd-detail-tab-content {
  padding: 24px;
  font-size: 14px;
  color: #333;
  line-height: 1.8;
}

/* ---- 鍝嶅簲寮?---- */
@media (max-width: 768px) {
  .jd-detail-layout {
    flex-direction: column;
    padding: 0;
    gap: 10px;
  }
  .jd-detail-imgs {
    flex: none;
    width: 100%;
    border-radius: 0;
  }
  .jd-detail-info {
    border-radius: 0;
    padding: 16px;
  }
  .jd-detail-title { font-size: 16px; }
  .jd-detail-price .price { font-size: 26px; }
  .jd-buy-btns { flex-direction: column; }
  .jd-btn-buynow, .jd-btn-addcart { width: 100%; text-align: center; }
  .jd-detail-tabs { border-radius: 0; }
}

/* ===== LG商城 SVG Logo ===== */
.jd-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.jd-logo-svg {
  height: 38px;
  width: 155px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(228,57,60,.25));
  transition: transform .2s, filter .2s;
}
.jd-logo:hover .jd-logo-svg {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 12px rgba(228,57,60,.40));
}

/* ===== HEADER FINAL FIX ===== */
.jd-header-inner {
  display: flex !important;
  align-items: center !important;
  position: static !important;
  justify-content: flex-start !important;
}
.jd-logo {
  position: static !important;
  transform: none !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin-right: 24px !important;
}
.jd-search {
  flex: 1 1 auto !important;
  max-width: 600px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.jd-header-inner > a[href="/cart"],
.jd-header-inner > .jd-cart-btn {
  position: static !important;
  transform: none !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

/* ===== CodeBuddy: move search above main banner ===== */
@media (min-width: 769px) {
  .jd-header {
    height: 72px !important;
    border-bottom: none !important;
    position: relative !important;
    z-index: 120 !important;
  }

  .jd-header-inner {
    position: relative !important;
    min-height: 72px !important;
    overflow: visible !important;
    padding-right: 10px !important;
  }

  .jd-logo {
    margin-right: 24px !important;
  }

  .jd-search {
    position: absolute !important;
    top: calc(100% + 44px) !important;
    left: 250px !important;
    width: 560px !important;
    max-width: 560px !important;
    margin: 0 !important;
    z-index: 160 !important;
  }

  .jd-search-box {
    height: 42px !important;
    border-width: 2px !important;
    border-radius: 4px 4px 0 0 !important;
    overflow: hidden !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.18) !important;
  }

  .jd-search-hot {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 8px 12px 10px !important;
    background: rgba(255,255,255,.96) !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.12) !important;
  }

  .jd-nav {
    position: relative !important;
    z-index: 100 !important;
  }

  .jd-home-layout {
    position: relative !important;
    z-index: 1 !important;
  }
}


/* ===== CodeBuddy: search fine tune v2 ===== */
@media (min-width: 769px) {
  .jd-search {
    top: calc(100% + 38px) !important;
    width: 470px !important;
    max-width: 470px !important;
    transform: translateX(185px) !important;
  }

  .jd-search-box {
    height: 38px !important;
    border-radius: 2px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.16) !important;
  }

  .jd-search-hot {
    margin-top: 7px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .jd-search-hot a {
    color: rgba(255,255,255,.92) !important;
    margin-right: 12px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.35) !important;
  }

  .jd-search-hot a:first-child {
    color: #ffe066 !important;
  }
}


/* ===== CodeBuddy: search fine tune v3 ===== */
@media (min-width: 769px) {
  .jd-header {
    height: 72px !important;
    overflow: visible !important;
  }

  .jd-header-inner {
    min-height: 72px !important;
    overflow: visible !important;
  }

  .jd-search {
    top: 6px !important;
  }

  .jd-search-hot {
    margin-top: 4px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .jd-search-hot a {
    color: #666 !important;
    text-shadow: none !important;
  }

  .jd-search-hot a:first-child {
    color: #e1251b !important;
  }
}


/* ===== CodeBuddy: search fine tune v4 ===== */
@media (min-width: 769px) {
  .jd-search {
    width: 430px !important;
    max-width: 430px !important;
    transform: translateX(450px) !important;
  }

  .jd-search-hot a {
    margin-right: 10px !important;
  }
}


/* ===== CodeBuddy: search responsive center v5 ===== */
@media (min-width: 769px) {
  .jd-search {
    left: 50% !important;
    right: auto !important;
    top: 6px !important;
    width: clamp(360px, 42vw, 430px) !important;
    max-width: 430px !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
  }

  .jd-search-box {
    width: 100% !important;
  }

  .jd-search-hot {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    row-gap: 4px !important;
    column-gap: 10px !important;
  }

  .jd-search-hot a {
    margin-right: 0 !important;
  }
}

