/* ================================================================
   SYHUO 商城样式 - 京东原版风格 v3.0
   完全对标京东官网视觉：红白配色、双层顶栏、深色分类侧栏
   ================================================================ */

/* ========== 变量定义 ========== */
:root {
    --jd-red: #ff6700;
    --jd-red-dark: #e55c00;
    --jd-orange: #f56c2d;
    --jd-price-red: #ff6700;
    --jd-text: #333;
    --jd-text-light: #999;
    --jd-text-mid: #666;
    --jd-border: #e8e8e8;
    --jd-bg: #f5f5f5;
    --jd-card-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --jd-container: 100%;
}

/* ========== 全局重置（保证宽屏全宽） ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; margin: 0; padding: 0; background: #f5f5f5; }
.syhuo-main { width: 100%; max-width: 100%; margin: 0; padding: 0; }
.jd-page * { box-sizing: border-box; }

/* ========== 1. 搜索框通用形态（频道条内嵌框已移除，现仅 store.php 店内搜索等复用本类名） ========== */
.jd-search-form { display: flex; flex-direction: row; flex-wrap: nowrap; width: 100%; height: 34px; border: 1px solid var(--jd-border); overflow: hidden; background: #fff; border-radius: 17px; transition: border-color .18s, box-shadow .18s; }
.jd-search-form:focus-within { border-color: var(--jd-red); box-shadow: 0 0 0 2px rgba(255,103,0,0.1); }
.jd-search-form input { flex: 1; min-width: 0; border: none; outline: none; padding: 0 14px; font-size: 13px; color: #333; background: transparent; height: 32px; line-height: 32px; }
.jd-search-form input::placeholder { color: #bbb; }
.jd-search-form button { background: transparent; color: var(--jd-red); border: none; padding: 0 16px 0 10px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 5px; height: 32px; flex-shrink: 0; transition: color .2s; }
.jd-search-form button:hover { color: var(--jd-red-dark); }
/* 频道条内不再有搜索框：弹簧下发到 .jd-channel-desc（margin-left:auto），保证行尾始终有内容 */

/* ========== 3. Banner 区域（三栏布局：分类侧栏 + 轮播 + 右侧面板） ========== */
.jd-banner-section { background: var(--jd-bg); padding: 10px 0; }
.jd-banner-inner { max-width: var(--jd-container); margin: 0 auto; display: flex; gap: 0; padding: 0 30px; position: relative; }

/* 分类侧栏 — S3 换血：白底深字品牌化（原深色半透明与门户橙调割裂）；不设 position 使面板定位基准上移到 banner 容器 */
.jd-cat-sidebar { width: 210px; flex-shrink: 0; background: #fff; color: var(--jd-text); overflow: visible; border-right: 1px solid #f2f2f2; }
.jd-cat-sidebar h3 { padding: 12px 16px 10px; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--jd-red), var(--jd-orange)); margin: 0; }
.jd-cat-list { list-style: none; margin: 0; padding: 2px 0; }
/* 关键：固定行高，强制水平对齐 */
.jd-cat-list li > a { display: flex !important; align-items: center; height: 42px; padding: 0 14px; color: #555; text-decoration: none; font-size: 13px; box-sizing: border-box; transition: all .15s; white-space: nowrap; overflow: hidden; gap: 10px; }
.jd-cat-list li > a:hover, .jd-cat-list li > a.active, .jd-cat-list li.has-child:hover > a { background: var(--jd-red); color: #fff; }
.jd-cat-list li > a .cat-name { flex: 1; line-height: 42px; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; }
.jd-cat-list li > a .cat-arrow { font-size: 11px; opacity: 0.5; transition: opacity .15s; flex-shrink: 0; line-height: 42px; }
.jd-cat-list li.has-child:hover > a .cat-arrow { opacity: 1; }

/* 子分类弹出面板 — 固定悬浮在侧栏顶部，定位基准为 banner 容器；面板刚好覆盖轮播图区域（右边缘与轮播图右边缘严格对齐，不盖到右侧面板）：left=30px内边距+210px侧栏，right=30px内边距+210px右侧面板 */
.jd-cat-panel { display: none; position: absolute; left: 240px; right: 240px; top: 0; width: auto; height: auto; max-height: 480px; background: #fff; border: 1px solid #e8e8e8; border-left: none; box-shadow: 6px 4px 20px rgba(0,0,0,0.12); z-index: 999; padding: 8px 0; overflow-y: auto; overflow-x: hidden; }
.jd-cat-panel.show { display: block; animation: jdPanelIn .12s ease-out; }
@keyframes jdPanelIn { from { opacity:0; transform:translateX(-6px); } to { opacity:1; transform:translateX(0); } }
/* 面板内行：统一行高，水平严格对齐 */
.jd-cat-panel-inner { display: flex; flex-direction: column; }
.jd-cat-row { display: flex !important; align-items: flex-start; padding: 0 20px; border-bottom: 1px solid #f5f5f5; min-height: 48px; box-sizing: border-box; transition: background .15s; }
.jd-cat-row:last-child { border-bottom: none; }
.jd-cat-row:hover { background: #fafafa; }
/* 二级标题：固定宽度，红色突出，京东式 */
.jd-cat-l2 { display: flex; align-items: center; width: 90px; flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--jd-red); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 48px; padding: 0 8px 0 0; box-sizing: border-box; border-right: 1px solid #f0f0f0; margin-right: 14px; }
.jd-cat-l2::after { content: '>'; margin-left: 6px; font-size: 11px; color: #bbb; font-weight: normal; flex-shrink: 0; }
.jd-cat-l2:hover { color: var(--jd-red-dark); text-decoration: underline; }
.jd-cat-l2 i { display: none; }
/* 三级标签：与二级共用行高，多列排布 */
.jd-cat-l3 { display: flex !important; flex-wrap: wrap; align-items: center; flex: 1; min-height: 48px; gap: 0; padding: 6px 0; align-content: center; }
.jd-cat-l3 a { font-size: 13px; color: #666; text-decoration: none; line-height: 1.6; padding: 4px 10px; margin: 2px 4px 2px 0; white-space: nowrap; border-radius: 3px; transition: all .15s; }
.jd-cat-l3 a:hover { color: var(--jd-red); background: #fff5ee; }

/* 分类树（悬停面板内，逐级缩进展示，与后台类目同步） */
.jd-cat-tree { padding: 4px 0; }
.jd-tree-node a { display: block; padding: 5px 14px 5px 16px; font-size: 13px; color: #666; text-decoration: none; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all .15s; }
.jd-tree-node a:hover { color: var(--jd-red); background: #fff5ee; }
.jd-tree-d0 > a { font-weight: 600; color: #333; }
.jd-tree-d0 > a:hover { color: var(--jd-red); }
.jd-tree-d1 > a { padding-left: 34px; }
.jd-tree-d2 > a { padding-left: 52px; }
.jd-tree-d3 > a { padding-left: 70px; }
.jd-tree-d4 > a { padding-left: 88px; }
.jd-tree-d5 > a { padding-left: 106px; }

/* 轮播区 */
.jd-slide-wrap { flex: 1; position: relative; overflow: hidden; background: #eee; min-height: 360px; }
.jd-slide { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.jd-slide-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.jd-slide-item.active { opacity: 1; }
.jd-slide-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jd-slide-dots { position: absolute; bottom: 12px; right: 16px; display: flex; gap: 6px; z-index: 5; }
.jd-slide-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all .2s; }
.jd-slide-dots span.active { background: #fff; width: 20px; border-radius: 4px; }
.jd-slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 50px; background: rgba(0,0,0,0.2); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; z-index: 5; transition: background .2s; }
.jd-slide-arrow:hover { background: rgba(0,0,0,0.5); }

/* ========== 3.5 S4 金刚区：分类快捷入口（首页专属，Banner 下一行八卡） ========== */
.jd-kingkong { background: #fff; margin: 12px auto; max-width: var(--jd-container); padding: 18px 30px 14px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px 6px; }
.jd-kingkong .kk-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.jd-kingkong .kk-ico { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, #ff9a4d, #ff6700); box-shadow: 0 6px 14px rgba(255,103,0,.22); transition: transform .2s, box-shadow .2s; }
.jd-kingkong .kk-item:nth-child(2n) .kk-ico { background: linear-gradient(135deg, #ffb26b, #f56c2d); }
.jd-kingkong .kk-item:nth-child(3n) .kk-ico { background: linear-gradient(135deg, #ff7b3d, #e55c00); }
.jd-kingkong .kk-item:hover .kk-ico { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(255,103,0,.3); }
.jd-kingkong .kk-name { font-size: 13px; color: var(--jd-text); }
.jd-kingkong .kk-item:hover .kk-name { color: var(--jd-red); }

/* Banner纯CSS样式 */
.jd-banner-slide { background: linear-gradient(135deg, #ff6700 0%, #e55c00 50%, #8a0f1a 100%); display: flex; align-items: center; justify-content: center; }
.jd-banner-content { text-align: center; color: #fff; }
.jd-banner-content h2 { font-size: 42px; font-weight: 800; margin: 0 0 12px; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.jd-banner-content p { font-size: 16px; margin: 0 0 16px; opacity: 0.9; letter-spacing: 1px; }
.jd-banner-tag { display: inline-block; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); padding: 6px 20px; border-radius: 20px; font-size: 14px; }
.jd-slide-prev { left: 0; }
.jd-slide-next { right: 0; }

/* 右侧面板 */
.jd-side-panel { width: 210px; flex-shrink: 0; background: #fff; display: flex; flex-direction: column; overflow: hidden; }
.jd-side-user { padding: 16px 14px 12px; border-bottom: 1px solid var(--jd-border); text-align: center; }
.jd-side-user .avatar { width: 50px; height: 50px; border-radius: 50%; background: #f0f0f0; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #ccc; overflow: hidden; }
.jd-side-user .avatar img { width: 100%; height: 100%; object-fit: cover; }
.jd-side-user .uname { font-size: 13px; color: #333; margin-bottom: 8px; font-weight: 500; }
.jd-side-user .login-btns { display: flex; gap: 8px; justify-content: center; }
.jd-side-user .login-btns a { padding: 4px 16px; font-size: 12px; border-radius: 2px; text-decoration: none; }
.jd-side-user .btn-reg { background: var(--jd-red); color: #fff; }
.jd-side-user .btn-reg:hover { background: var(--jd-red-dark); }
.jd-side-user .btn-login { border: 1px solid var(--jd-red); color: var(--jd-red); }
.jd-side-user .btn-login:hover { background: #fff5ee; }
.jd-side-news { flex: 1; padding: 10px 14px; overflow: hidden; }
.jd-side-news h4 { font-size: 13px; color: #333; margin: 0 0 8px; display: flex; align-items: center; justify-content: space-between; }
.jd-side-news h4 a { font-size: 12px; color: #999; font-weight: normal; }
.jd-side-news ul { list-style: none; margin: 0; padding: 0; }
.jd-side-news ul li { padding: 4px 0; }
.jd-side-news ul li a { font-size: 12px; color: #666; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jd-side-news ul li a:hover { color: var(--jd-red); }
.jd-side-news ul li a .tag { display: inline-block; padding: 1px 4px; font-size: 10px; color: #fff; background: var(--jd-red); border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.jd-side-shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--jd-border); }
.jd-side-shortcuts a { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; font-size: 11px; color: #666; text-decoration: none; transition: color .15s; }
.jd-side-shortcuts a:hover { color: var(--jd-red); }
.jd-side-shortcuts a i { font-size: 20px; margin-bottom: 4px; }

/* ========== 4. 秒杀专区 ========== */
.jd-flash-section { background: #fff; margin: 12px auto; max-width: var(--jd-container); padding: 0 30px; }
.jd-flash-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; border-bottom: 1px solid var(--jd-border); }
.jd-flash-title { display: flex; align-items: center; gap: 10px; }
.jd-flash-title h2 { font-size: 20px; color: var(--jd-red); margin: 0; font-weight: 700; }
.jd-flash-title .flash-icon { font-size: 22px; color: var(--jd-red); }
.jd-flash-countdown { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #666; }
.jd-flash-countdown .cd-num { display: inline-block; min-width: 22px; height: 22px; line-height: 22px; text-align: center; background: linear-gradient(135deg, #ff6700, #e55c00); color: #fff; font-size: 13px; font-weight: 700; border-radius: 3px; padding: 0 3px; }
.jd-flash-countdown .cd-sep { color: #333; font-weight: 700; }
.jd-flash-more { font-size: 13px; color: #999; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.jd-flash-more:hover { color: var(--jd-red); }
.jd-flash-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 12px 0; }
.jd-flash-item { text-align: center; padding: 12px 8px; border: 1px solid #f5f5f5; border-radius: 8px; transition: all .2s; cursor: pointer; text-decoration: none; display: block; }
.jd-flash-item:hover { border-color: var(--jd-red); box-shadow: 0 2px 12px rgba(228,57,60,0.1); transform: translateY(-2px); }
.jd-flash-item img { width: 120px; height: 120px; object-fit: cover; margin-bottom: 8px; border-radius: 8px; }
/* S5 秒杀升级：已抢进度条 */
.jd-flash-item .flash-progress { margin-top: 6px; height: 6px; border-radius: 3px; background: #ffe6d5; overflow: hidden; }
.jd-flash-item .flash-progress i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ff9a4d, #ff6700); }
.jd-flash-item .flash-sold { margin-top: 4px; font-size: 11px; color: var(--jd-red); font-weight: 600; }
.jd-flash-item .flash-name { font-size: 12px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.jd-flash-item .flash-price { font-size: 16px; color: var(--jd-red); font-weight: 700; }
.jd-flash-item .flash-price em { font-size: 12px; font-style: normal; }
.jd-flash-item .flash-orig { font-size: 12px; color: #999; text-decoration: line-through; }

/* ========== 5. 楼层专区 ========== */
.jd-floor-section { background: #fff; margin: 12px auto; max-width: var(--jd-container); padding: 0 30px; }
.jd-floor-header { display: flex; align-items: center; gap: 16px; padding: 14px 0 10px; border-bottom: 2px solid var(--jd-red); }
.jd-floor-header h2 { font-size: 20px; color: #333; margin: 0; font-weight: 700; }
.jd-floor-header .floor-tabs { display: flex; gap: 0; }
.jd-floor-header .floor-tabs a { padding: 0 14px; font-size: 13px; color: #666; text-decoration: none; line-height: 1; border-right: 1px solid #e8e8e8; }
.jd-floor-header .floor-tabs a:last-child { border-right: none; }
.jd-floor-header .floor-tabs a:hover, .jd-floor-header .floor-tabs a.active { color: var(--jd-red); }
.jd-floor-body { display: flex; gap: 0; padding: 12px 0; }
.jd-floor-banner { width: 210px; flex-shrink: 0; background: #f7f7f7; overflow: hidden; border-radius: 4px; }
.jd-floor-banner img { width: 100%; height: 100%; object-fit: cover; }
.jd-floor-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

/* ========== 5.5 S6 店铺精选楼（有启用店铺才由服务端渲染本节容器） ========== */
.jd-shop-section { background: #fff; margin: 12px auto; max-width: var(--jd-container); padding: 0 30px; }
.jd-shop-sub { font-size: 12px; color: #999; }
.jd-shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 12px 0 16px; }
.jd-shop-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #f0f0f0; border-radius: 10px; text-decoration: none; transition: all .2s; }
.jd-shop-card:hover { border-color: var(--jd-red); box-shadow: 0 6px 18px rgba(255,103,0,.1); transform: translateY(-2px); }
.jd-shop-card .shop-logo { position: relative; width: 56px; height: 56px; border-radius: 12px; background: #fff3e6; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.jd-shop-card .shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.jd-shop-card .shop-logo i { font-size: 26px; color: var(--jd-red); }
.jd-shop-card .shop-logo:not(.noimg) i { display: none; }
.jd-shop-card .shop-logo.noimg img { display: none; }
.jd-shop-card .shop-body { flex: 1; min-width: 0; }
.jd-shop-card .shop-name { font-size: 14px; font-weight: 700; color: var(--jd-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jd-shop-card .shop-meta { display: flex; gap: 10px; margin-top: 4px; font-size: 12px; color: var(--jd-text-mid); }
.jd-shop-card .shop-meta i { color: var(--jd-red); margin-right: 2px; }
.jd-shop-card .shop-meta em { font-style: normal; color: #f7a100; }
.jd-shop-card .shop-sales { margin-top: 4px; font-size: 11px; color: var(--jd-text-light); }
.jd-shop-card .shop-enter { flex-shrink: 0; font-size: 12px; color: var(--jd-red); border: 1px solid #ffd7bf; background: #fff5ee; border-radius: 14px; padding: 5px 12px; transition: all .2s; }
.jd-shop-card:hover .shop-enter { background: var(--jd-red); color: #fff; }

/* ========== 6. 商品网格 ========== */
.jd-product-section { background: #fff; margin: 12px auto; max-width: var(--jd-container); padding: 0 30px; }
.jd-section-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; }
.jd-section-header h2 { font-size: 20px; color: #333; margin: 0; font-weight: 700; position: relative; padding-left: 12px; }
.jd-section-header h2::before { content: ''; position: absolute; left: 0; top: 2px; width: 4px; height: 18px; background: var(--jd-red); border-radius: 2px; }
.jd-section-header .more-link { font-size: 13px; color: #999; text-decoration: none; }
.jd-section-header .more-link:hover { color: var(--jd-red); }

.jd-prod-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 8px 0 16px; }
.jd-prod-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; overflow: hidden; transition: all .25s; cursor: pointer; text-decoration: none; display: block; }
.jd-prod-card:hover { border-color: var(--jd-red); box-shadow: 0 4px 16px rgba(228,57,60,0.08); transform: translateY(-3px); }
.jd-prod-card .prod-img { width: 100%; aspect-ratio: 1; overflow: hidden; background: #f8f8f8; position: relative; }
.jd-prod-card .prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.jd-prod-card .prod-img .spu-badge { position: absolute; top: 8px; left: 8px; background: #ff6700; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 3px; z-index: 2; }
.jd-prod-card:hover .prod-img img { transform: scale(1.05); }
.jd-prod-card .prod-info { padding: 8px 10px 12px; }
.jd-prod-card .prod-name { font-size: 13px; color: #333; line-height: 18px; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 6px; word-break: break-all; text-align: justify; }
.jd-prod-card .prod-name .tag-self { display: inline-block; padding: 1px 4px; font-size: 10px; color: #fff; background: var(--jd-red); border-radius: 2px; margin-right: 3px; vertical-align: middle; }
.jd-prod-card .prod-price { font-size: 18px; color: var(--jd-red); font-weight: 700; }
.jd-prod-card .prod-price em { font-size: 12px; font-style: normal; }
.jd-prod-card .prod-price .orig { font-size: 12px; color: #999; text-decoration: line-through; font-weight: normal; margin-left: 6px; }
.jd-prod-card .prod-tags { display: flex; gap: 4px; margin-top: 4px; }
.jd-prod-card .prod-tags span { font-size: 10px; padding: 1px 4px; border: 1px solid var(--jd-red); color: var(--jd-red); border-radius: 2px; }
.jd-prod-card .prod-comment { font-size: 11px; color: #999; margin-top: 4px; }

/* ========== 7. 分页 ========== */
.jd-pagination { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 20px 0 30px; }
.jd-pagination a, .jd-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 10px; border: 1px solid #ddd; border-radius: 2px; font-size: 13px; color: #333; text-decoration: none; transition: all .15s; }
.jd-pagination a:hover { border-color: var(--jd-red); color: var(--jd-red); }
.jd-pagination .active { background: var(--jd-red); color: #fff; border-color: var(--jd-red); }
.jd-pagination .disabled { color: #ccc; cursor: not-allowed; }

/* ========== 8. 底部服务保障 ========== */
.jd-service-bar { background: #fff; border-top: 1px solid var(--jd-border); margin-top: 20px; }
.jd-service-inner { max-width: var(--jd-container); margin: 0 auto; display: flex; align-items: center; justify-content: space-around; padding: 24px 30px; }
.jd-service-item { display: flex; align-items: center; gap: 10px; }
.jd-service-item i { font-size: 28px; color: var(--jd-red); }
.jd-service-item .svc-text h4 { font-size: 14px; color: #333; margin: 0 0 2px; font-weight: 600; }
.jd-service-item .svc-text p { font-size: 12px; color: #999; margin: 0; }

/* ========== 9. 空状态 / 提示 ========== */
.jd-empty { text-align: center; padding: 60px 20px; color: #999; }
.jd-empty i { font-size: 48px; margin-bottom: 12px; display: block; color: #ddd; }
.jd-empty p { font-size: 14px; }

/* ========== 9.5 商品详情页样式 ========== */
.product-container { width: 100%; max-width: 100%; margin: 0; padding: 20px 30px; background: var(--jd-bg); box-sizing: border-box; }
.product-main { background: #fff; padding: 30px; display: flex; gap: 40px; box-sizing: border-box; }

/* 图片区域 - 左侧缩略图 + 右侧主图 */
.product-images { width: 500px; display: flex; gap: 15px; flex-shrink: 0; }
.thumbs-list { width: 80px; display: flex; flex-direction: column; gap: 10px; max-height: 500px; overflow-y: auto; }
.thumbs-list .thumb-item { width: 80px; height: 80px; border: 2px solid var(--jd-border); cursor: pointer; display: flex; align-items: center; justify-content: center; background: #fff; }
.thumbs-list .thumb-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumbs-list .thumb-item:hover { border-color: var(--jd-red); }
.thumbs-list .thumb-item.active { border-color: var(--jd-red); }
.main-image { flex: 1; height: 500px; border: 1px solid var(--jd-border); display: flex; align-items: center; justify-content: center; background: #fff; }
.main-image img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* 商品信息区域 */
.product-info-detail { flex: 1; min-width: 0; }
/* 店铺橱窗栏（店铺名 + 关注 + 私信，横跨商品区顶部） */
.shop-info-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; margin-bottom: 16px; background: #f9f9f9; border: 1px solid var(--jd-border); border-radius: 6px; }
.shop-info-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--jd-text); }
.shop-info-name i { color: var(--jd-red); font-size: 18px; }
.shop-info-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--jd-border); }
.shop-info-name a { color: var(--jd-text); text-decoration: none; }
.shop-info-name a:hover { color: var(--jd-red); }
.shop-info-slogan { font-size: 12px; font-weight: 400; color: var(--jd-text-light); margin-left: 6px; }
.shop-info-actions { display: flex; align-items: center; gap: 10px; }
.shop-info-actions .follow-btn { height: 34px; padding: 0 16px; background: #fff; border: 1px solid var(--jd-border); border-radius: 17px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #666; cursor: pointer; transition: all 0.3s; white-space: nowrap; }
.shop-info-actions .follow-btn i { color: #ccc; font-size: 14px; transition: color 0.3s; }
.shop-info-actions .follow-btn:hover { border-color: var(--jd-red); color: var(--jd-red); }
.shop-info-actions .follow-btn:hover i { color: var(--jd-red); }
.shop-info-actions .follow-btn.active { border-color: var(--jd-red); color: var(--jd-red); }
.shop-info-actions .follow-btn.active i { color: var(--jd-red); }
.shop-info-actions .msg-btn { height: 34px; padding: 0 16px; background: #fff; border: 1px solid var(--jd-border); border-radius: 17px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #666; text-decoration: none; transition: all 0.3s; white-space: nowrap; }
.shop-info-actions .msg-btn:hover { border-color: var(--jd-red); color: var(--jd-red); }
.product-info-detail h1 { font-size: 24px; color: var(--jd-text); margin-bottom: 15px; font-weight: normal; }
.product-info-detail .subtitle { color: var(--jd-text-light); font-size: 14px; margin-bottom: 20px; }
.product-info-detail .price-box { background: var(--jd-bg); padding: 20px; margin-bottom: 25px; }
.product-info-detail .price-box .price { color: var(--jd-red); font-size: 32px; font-weight: bold; }
.product-info-detail .price-box .price span { font-size: 18px; }
.product-info-detail .price-box .original { color: var(--jd-text-light); font-size: 14px; text-decoration: line-through; margin-left: 15px; }

/* 秒杀样式 */
.flash-sale-box { background: linear-gradient(135deg, var(--jd-red), var(--jd-red-dark)); padding: 20px; margin-bottom: 25px; color: #fff; }
.flash-sale-box .flash-tag { display: inline-block; background: #fff; color: var(--jd-red); padding: 3px 10px; font-size: 12px; font-weight: bold; margin-bottom: 10px; }
.flash-sale-box .flash-countdown { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; font-size: 14px; }
.flash-sale-box .flash-countdown .time-block { background: rgba(0,0,0,0.3); padding: 4px 8px; font-weight: bold; min-width: 30px; text-align: center; }
.flash-sale-box .flash-price-large { font-size: 36px; font-weight: bold; }
.flash-sale-box .flash-price-large span { font-size: 20px; }
.flash-sale-box .flash-original { font-size: 14px; text-decoration: line-through; opacity: 0.8; margin-left: 15px; }
.flash-sale-box .flash-stock-info { margin-top: 10px; font-size: 13px; opacity: 0.9; }
.flash-sale-box .flash-progress-bar { margin-top: 8px; height: 8px; background: rgba(255,255,255,0.3); overflow: hidden; }
.flash-sale-box .flash-progress-bar div { height: 100%; background: #fff; }

/* 规格选择 */
.product-info-detail .specs { margin-bottom: 25px; }
.product-info-detail .specs .label { color: var(--jd-text); font-size: 14px; margin-bottom: 10px; }
.product-info-detail .specs .options { display: flex; gap: 10px; flex-wrap: wrap; }
.product-info-detail .specs .options button { padding: 8px 20px; border: 1px solid var(--jd-border); background: #fff; cursor: pointer; font-size: 14px; color: var(--jd-text); }
.product-info-detail .specs .options button:hover { border-color: var(--jd-red); color: var(--jd-red); }
.product-info-detail .specs .options button.active { border-color: var(--jd-red); background: var(--jd-red); color: #fff; }

/* 数量选择 */
.product-info-detail .quantity { margin-bottom: 25px; }
.product-info-detail .quantity .label { color: var(--jd-text); font-size: 14px; margin-bottom: 10px; }
.product-info-detail .quantity .controls { display: flex; align-items: center; gap: 5px; }
.product-info-detail .quantity .controls button { width: 35px; height: 35px; border: 1px solid var(--jd-border); background: #fff; cursor: pointer; font-size: 18px; }
.product-info-detail .quantity .controls input { width: 60px; height: 35px; border: 1px solid var(--jd-border); text-align: center; font-size: 14px; }
.product-info-detail .quantity .stock { color: var(--jd-text-light); font-size: 12px; margin-left: 10px; }

/* 购买按钮 */
.product-info-detail .actions { display: flex; gap: 15px; margin-bottom: 25px; }
.product-info-detail .actions button { flex: 1; height: 50px; border: none; cursor: pointer; font-size: 16px; }
.product-info-detail .actions .buy-now { background: var(--jd-red); color: #fff; }
.product-info-detail .actions .add-cart { background: #fff; color: var(--jd-red); border: 1px solid var(--jd-red); }
.product-info-detail .actions .favorite-btn { flex: 0 0 50px; background: #fff; border: 1px solid var(--jd-border); display: flex; align-items: center; justify-content: center; font-size: 24px; transition: all 0.3s; }
.product-info-detail .actions .favorite-btn i { font-size: 26px; color: #ff6700; }
.product-info-detail .actions .favorite-btn:hover { border-color: var(--jd-red); }
.product-info-detail .actions .favorite-btn.active { color: var(--jd-red); border-color: var(--jd-red); }
.product-info-detail .actions .service-btn { flex: 0 0 50px; background: #fff; border: 1px solid var(--jd-border); display: flex; align-items: center; justify-content: center; font-size: 22px; color: #666; text-decoration: none; transition: all 0.3s; }
.product-info-detail .actions .service-btn:hover { border-color: var(--jd-red); color: var(--jd-red); }
.product-info-detail .actions .follow-btn { flex: 0 0 auto; height: 50px; padding: 0 16px; background: #fff; border: 1px solid var(--jd-border); border-radius: 25px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: #666; cursor: pointer; transition: all 0.3s; white-space: nowrap; }
.product-info-detail .actions .follow-btn i { color: #ccc; font-size: 15px; transition: color 0.3s; }
.product-info-detail .actions .follow-btn:hover { border-color: var(--jd-red); color: var(--jd-red); }
.product-info-detail .actions .follow-btn:hover i { color: var(--jd-red); }
.product-info-detail .actions .follow-btn.active { border-color: var(--jd-red); color: var(--jd-red); }
.product-info-detail .actions .follow-btn.active i { color: var(--jd-red); }
.product-info-detail .favorite-info { font-size: 12px; color: var(--jd-text-light); margin-bottom: 15px; }
.product-info-detail .favorite-info .info-sep { color: #e0e0e0; margin: 0 6px; }
.product-info-detail .favorite-info .action-link { color: var(--jd-red); text-decoration: none; }
.product-info-detail .favorite-info .action-link:hover { text-decoration: underline; }
.product-info-detail .actions .restock-btn { background: #ff9800; }
.product-info-detail .actions .restock-btn:disabled { opacity: .7; cursor: default; }
/* 促销活动区（预售/拼团/砍价/组合） */
#promoZone { margin-top: 15px; display: flex; flex-direction: column; gap: 10px; }
.promo-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--jd-border); border-radius: 6px; background: #fff; }
.promo-tag { flex: 0 0 auto; padding: 2px 8px; border-radius: 3px; color: #fff; font-size: 12px; }
.promo-presale .promo-tag { background: #e91e63; }
.promo-group .promo-tag { background: #ff5722; }
.promo-bargain .promo-tag { background: #9c27b0; }
.promo-bundle .promo-tag { background: #2196f3; }
.promo-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.promo-body b { font-size: 14px; color: var(--jd-text); }
.promo-sub { font-size: 12px; color: var(--jd-text-light); }
.promo-btn { flex: 0 0 auto; padding: 6px 16px; border: none; border-radius: 4px; background: var(--jd-red); color: #fff; font-size: 13px; cursor: pointer; }
.bundle-row { display: flex; justify-content: space-between; gap: 10px; }

/* 服务保障 */
.product-info-detail .services { border-top: 1px solid var(--jd-border); padding-top: 20px; display: flex; gap: 30px; flex-wrap: wrap; }
.product-info-detail .services div { color: var(--jd-text-light); font-size: 13px; }

/* 商品详情/评价标签页 */
.product-detail { background: #fff; margin-top: 20px; }
.product-detail .tabs { display: flex; border-bottom: 1px solid var(--jd-border); }
.product-detail .tabs div { padding: 15px 30px; cursor: pointer; font-size: 15px; color: var(--jd-text); }
.product-detail .tabs div.active { color: var(--jd-red); border-bottom: 2px solid var(--jd-red); }
.product-detail .content { padding: 30px; }
.product-detail .content img { max-width: 100%; }

/* 评价列表 */
.review-item { padding: 20px 0; border-bottom: 1px solid var(--jd-border); }
.review-item .header { display: flex; align-items: center; margin-bottom: 10px; }
.review-item .header .avatar { width: 40px; height: 40px; background: var(--jd-border); border-radius: 50%; margin-right: 10px; }
.review-item .header .name { font-size: 14px; color: var(--jd-text); }
.review-item .rating { color: var(--jd-red); margin-bottom: 8px; }
.review-item .review-content { color: var(--jd-text); font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
.review-item .images { display: flex; gap: 8px; margin-bottom: 8px; }
.review-item .images img { width: 80px; height: 80px; border: 1px solid var(--jd-border); object-fit: contain; }
.review-item .time { color: var(--jd-text-light); font-size: 12px; }

/* 在线咨询 */
.consult-form { background: #fafafa; border: 1px solid var(--jd-border); border-radius: 8px; padding: 16px; margin-bottom: 24px; }
.consult-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--jd-border); border-radius: 6px; padding: 10px 12px; font-size: 14px; font-family: inherit; resize: vertical; color: var(--jd-text); background: #fff; }
.consult-form textarea:focus { outline: none; border-color: var(--jd-red); }
.consult-form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.consult-anonymous { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--jd-text-light); cursor: pointer; }
.consult-submit { background: var(--jd-red); color: #fff; border: none; border-radius: 6px; padding: 8px 26px; font-size: 14px; cursor: pointer; }
.consult-submit:hover { opacity: .9; }
.consult-login-tip { display: flex; justify-content: space-between; align-items: center; }
.consult-login-tip span { font-size: 14px; color: var(--jd-text-light); }
.consult-item { padding: 20px 0; border-bottom: 1px solid var(--jd-border); }
.consult-item:last-child { border-bottom: none; }
.consult-q { display: flex; }
.consult-avatar { width: 40px; height: 40px; background: var(--jd-border); border-radius: 50%; margin-right: 10px; flex: none; }
.consult-body { flex: 1; }
.consult-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.consult-name { font-size: 14px; color: var(--jd-text); font-weight: 600; }
.consult-time { font-size: 12px; color: var(--jd-text-light); }
.consult-question { color: var(--jd-text); font-size: 14px; line-height: 1.6; }
.consult-answer { margin-top: 10px; background: #fff8f0; border: 1px solid #ffe7ba; border-radius: 6px; padding: 10px 12px; font-size: 13px; color: var(--jd-text); line-height: 1.6; }
.consult-answer-tag { color: #ff6700; font-weight: bold; margin-right: 6px; }
.consult-answer-time { font-size: 12px; color: var(--jd-text-light); margin-top: 6px; }
.consult-pending { margin-top: 8px; font-size: 12px; color: var(--jd-text-light); }
.consult-empty, .consult-loading { padding: 40px 0; text-align: center; color: var(--jd-text-light); }

/* 猜你喜欢 */
.recommend-section { background: #fff; margin-top: 20px; padding: 20px 30px 30px; }
.recommend-section h3 { font-size: 18px; color: var(--jd-text); margin-bottom: 20px; font-weight: 600; display: flex; align-items: center; }
.recommend-section h3::before { content: '\1F4A1'; margin-right: 8px; }
.recommend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.recommend-item { display: block; background: #fff; border: 1px solid var(--jd-border); transition: all 0.3s; text-decoration: none; }
.recommend-item:hover { border-color: var(--jd-red); box-shadow: 0 2px 8px rgba(0,0,0,0.1); transform: translateY(-2px); }
.recommend-item img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.recommend-item .recommend-name { padding: 12px 10px 5px; font-size: 14px; color: var(--jd-text); height: 45px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; line-clamp: 2; -webkit-box-orient: vertical; }
.recommend-item .recommend-price { padding: 0 10px 12px; color: var(--jd-red); font-size: 16px; font-weight: bold; }

/* ========== 9.6 商品详情：同城即送 / 快递配送 双履约 ==========
   两行并陈：选中项左侧橙色竖条；同城不可用时保留行并说明原因，避免用户误以为系统坏了 */
.pd-deliv { border: 1px solid #f0f0f0; border-radius: 6px; overflow: hidden; margin-bottom: 15px; background: #fff; }
.pd-deliv-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f7f7f7; position: relative; transition: background .18s, box-shadow .18s; }
.pd-deliv-row:last-child { border-bottom: 0; }
.pd-deliv-icon { width: 30px; height: 30px; border-radius: 50%; background: #f5f5f5; color: #bbb; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.pd-deliv-main { flex: 1; min-width: 0; }
.pd-deliv-title { font-size: 14px; font-weight: 600; color: var(--jd-text); display: flex; align-items: center; gap: 8px; }
.pd-deliv-badge { font-size: 10px; font-weight: 400; padding: 1px 6px; border-radius: 8px; background: #fff2e8; color: var(--jd-red); border: 1px solid #ffd7bf; white-space: nowrap; }
.pd-deliv-badge.gray { background: #f6f6f6; color: #999; border-color: #eaeaea; }
.pd-deliv-desc { font-size: 12px; color: var(--jd-text-mid); margin-top: 4px; line-height: 1.6; }
.pd-deliv-meta { font-size: 11px; color: var(--jd-text-light); margin-top: 3px; }
.pd-deliv-side { flex-shrink: 0; font-size: 12px; color: var(--jd-text-light); text-align: right; }
.pd-deliv-link a { color: var(--jd-red); text-decoration: none; }
.pd-deliv-link a:hover { text-decoration: underline; }
.pd-deliv-pick { color: var(--jd-red); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.pd-deliv-row.is-ok .pd-deliv-icon { background: #fff2e8; color: var(--jd-red); }
.pd-deliv-row.is-express .pd-deliv-icon { background: #eef4ff; color: #4a7cf6; }
.pd-deliv-row.is-off .pd-deliv-title { color: #999; }
.pd-deliv-row.is-off .pd-deliv-desc { color: #bbb; }
.pd-deliv-row.is-pick { background: linear-gradient(90deg, #fffaf5, #fff); box-shadow: inset 3px 0 0 var(--jd-red); }
/* 履约方式可选态：两行变单选，点击/键盘切换，选中右侧圆点填充 + “已选” */
.pd-deliv-pickable { cursor: pointer; user-select: none; }
.pd-deliv-pickable:hover { background: #fafafa; }
.pd-deliv-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d9d9d9; background: #fff; display: inline-block; vertical-align: middle; transition: border-color .18s, background .18s, box-shadow .18s; }
.pd-deliv-row.is-pick .pd-deliv-radio { border-color: var(--jd-red); background: var(--jd-red); box-shadow: inset 0 0 0 3px #fff; }
.pd-deliv-picktxt { display: none; margin-left: 6px; color: var(--jd-red); font-weight: 600; vertical-align: middle; }
.pd-deliv-row.is-pick .pd-deliv-picktxt { display: inline; }
.pd-deliv-pickable:focus-visible { outline: 2px solid var(--jd-red); outline-offset: -2px; }
.pd-deliv-city { padding: 8px 14px; font-size: 12px; color: #8a6d3b; background: #fffbe6; border-top: 1px solid #ffe58f; }
.pd-deliv-city i { margin-right: 4px; color: var(--jd-red); }
.pd-deliv-city a { color: var(--jd-red); margin-left: 6px; }
@media (max-width: 767.98px) {
    .pd-deliv-row { padding: 8px 10px; gap: 8px; }
    .pd-deliv-icon { width: 26px; height: 26px; font-size: 12px; }
    .pd-deliv-title { font-size: 13px; flex-wrap: wrap; gap: 5px; }
    .pd-deliv-side .pd-deliv-link { display: none; }
    .pd-deliv-meta { white-space: normal; }
}

/* ========== 2.5 频道栏（同城购 / 国内购 + 商城搜索 + 城市选择器） ==========
   S1 头部并入全站后频道条吸顶：top 用 --syhuo-header-h（header.php 实测 sticky 顶栏高度回写），
   桌面=52px、手机折行后≈94px，自动贴齐顶栏下沿，不再被深色顶栏压住半截
   视觉：白底吸顶 + 橙色胶囊选中态，与分类导航条拉开层级；右侧城市胶囊带定位按钮
   响应式规则在本节内自带（类名均为频道层独有，不与后面通用断点冲突） */
.jd-channel-bar { position: sticky; top: var(--syhuo-header-h, 52px); z-index: 320; background: #fff; border-bottom: 1px solid var(--jd-border); box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.jd-channel-inner { max-width: var(--jd-container); margin: 0 auto; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 8px 30px; }
.jd-channel-tabs { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.jd-channel-tab { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 18px; border-radius: 18px; font-size: 15px; font-weight: 600; color: var(--jd-text); background: #f7f8fa; text-decoration: none; white-space: nowrap; transition: background .18s, color .18s, box-shadow .18s; }
.jd-channel-tab i { font-size: 14px; color: var(--jd-text-mid); transition: color .18s; }
.jd-channel-tab:hover { background: #fff5ee; color: var(--jd-red); }
.jd-channel-tab:hover i { color: var(--jd-red); }
.jd-channel-tab.active { background: linear-gradient(135deg, #ff6700, #f56c2d); color: #fff; box-shadow: 0 4px 12px rgba(255,103,0,.28); }
.jd-channel-tab.active i { color: #fff; }
/* 单频道（后台只开了一个）时不摆 Tab，城市选择器靠右 */
.jd-channel-bar[data-single="1"] .jd-channel-tabs,
.jd-channel-bar[data-single="1"] .jd-channel-desc { display: none; }
.jd-channel-bar[data-single="1"] .jd-channel-inner { justify-content: flex-start; }
.jd-channel-bar[data-single="1"] .jd-channel-city { margin-left: auto; }
/* 频道说明：原内嵌搜索框的弹簧接手者 —— 自己靠右，并携带城市组贴到行尾 */
.jd-channel-desc { flex: 0 1 auto; min-width: 0; margin-left: auto; text-align: right; font-size: 12px; color: var(--jd-text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 城市胶囊 + 定位按钮（紧接说明文字，自然落在行尾） */
.jd-channel-city { position: relative; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* 国内购下城市与商品无关，整块隐掉（服务端首屏就下这个类，避免 JS 接管前闪现） */
.jd-channel-city.is-off { display: none; }
.jd-city-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--jd-border); border-radius: 18px; background: #fff; color: var(--jd-text); font-size: 14px; cursor: pointer; transition: border-color .18s, color .18s, box-shadow .18s; }
.jd-city-chip .fa-map-marker-alt { color: var(--jd-red); font-size: 14px; }
.jd-city-chip .fa-angle-down { font-size: 12px; color: var(--jd-text-light); transition: transform .2s; }
.jd-city-chip:hover, .jd-city-chip[aria-expanded="true"] { border-color: var(--jd-red); color: var(--jd-red); box-shadow: 0 2px 8px rgba(255,103,0,.12); }
.jd-city-chip[aria-expanded="true"] .fa-angle-down { transform: rotate(180deg); }
.jd-city-geo { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border: 1px dashed rgba(255,103,0,.5); border-radius: 18px; background: #fff8f3; color: var(--jd-red); font-size: 13px; cursor: pointer; transition: background .18s, border-color .18s; }
.jd-city-geo:hover { background: #fff1e6; border-color: var(--jd-red); }
.jd-city-geo.is-loading { cursor: progress; opacity: .75; }

/* 城市面板 */
.jd-city-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 380px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--jd-border); border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.14); padding: 12px; z-index: 330; animation: jdCityPanelIn .18s ease-out; }
.jd-city-panel[hidden] { display: none; }
@keyframes jdCityPanelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.jd-city-panel::before { content: ''; position: absolute; right: 58px; top: -6px; width: 10px; height: 10px; background: #fff; border-left: 1px solid var(--jd-border); border-top: 1px solid var(--jd-border); transform: rotate(45deg); }
.jd-city-search { width: 100%; height: 34px; border: 1px solid #efefef; border-radius: 17px; padding: 0 14px; font-size: 13px; outline: none; background: #fafafa; transition: border-color .18s, background .18s; }
/* 面板首行（城市搜索）与下方城市九宫格之间给一条分隔：原先两者只靠 list 的 margin-top 挨着，
   搜索框看起来像格子的第一格 */
.jd-city-panel-head { padding-bottom: 10px; border-bottom: 1px solid #f2f2f2; }
.jd-city-search:focus { border-color: var(--jd-red); background: #fff; }
.jd-city-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 300px; overflow-y: auto; margin-top: 10px; padding: 2px; }
.jd-city-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border: 1px solid #f0f0f0; border-radius: 6px; background: #fafafa; cursor: pointer; text-align: left; transition: border-color .15s, background .15s, color .15s; }
.jd-city-item > i { display: none; }
.jd-city-item .c-nm { font-size: 13px; color: var(--jd-text); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jd-city-item .c-cnt { font-style: normal; font-size: 11px; color: var(--jd-text-light); }
.jd-city-item:hover { border-color: var(--jd-red); background: #fff7f1; }
.jd-city-item:hover .c-nm, .jd-city-item:hover .c-cnt { color: var(--jd-red); }
.jd-city-item.active { border-color: var(--jd-red); background: linear-gradient(135deg, #fff3e9, #ffe7d6); }
.jd-city-item.active .c-nm { color: var(--jd-red); }
.jd-city-none { grid-column: 1 / -1; text-align: center; font-size: 13px; color: var(--jd-text-light); padding: 22px 0; margin: 0; }
.jd-city-tip { font-size: 11px; color: #bbb; line-height: 1.6; margin: 10px 0 0; }

/* 商品卡：同城角标 + 店铺/距离行 */
.jd-prod-card .prod-deliv-tag { position: absolute; top: 8px; right: 8px; padding: 2px 7px; font-size: 10px; line-height: 16px; color: #fff; border-radius: 3px; background: linear-gradient(135deg, #00b578, #12a3ad); box-shadow: 0 2px 6px rgba(0,181,120,.28); z-index: 2; }
.jd-prod-card .prod-shop { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11px; color: var(--jd-text-mid); }
.jd-prod-card .prod-shop > i { color: var(--jd-red); font-size: 10px; flex-shrink: 0; }
.jd-prod-card .prod-shop .shop-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jd-prod-card .prod-shop .prod-dist { font-style: normal; flex-shrink: 0; color: var(--jd-red); font-weight: 600; }

/* 商品区副标题 / 空态补充说明 */
.jd-feed-sub { flex: 1; margin: 4px 0 0 12px; font-size: 12px; color: #00a870; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-empty-sub { font-size: 12px; color: #bbb; margin: -2px 0 14px; }

/* AJAX 刷新态：骨架屏 + 商品区降透明 */
#jdProductList { transition: opacity .18s; }
.jd-feed-loading { opacity: .55; pointer-events: none; }
.jd-skeleton { pointer-events: none; border-color: #f5f5f5; box-shadow: none; transform: none !important; }
.jd-skeleton .prod-img { background: #f2f2f2; }
.jd-skeleton .sk-line { height: 12px; border-radius: 6px; margin: 8px 0; background: linear-gradient(90deg, #f2f2f2 25%, #e9e9e9 37%, #f2f2f2 63%); background-size: 400% 100%; animation: jdSkShimmer 1.3s ease-in-out infinite; }
.jd-skeleton .sk-line.w80 { width: 80%; }
.jd-skeleton .sk-line.w60 { width: 60%; }
.jd-skeleton .sk-line.w40 { width: 40%; height: 16px; }
@keyframes jdSkShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) {
    .jd-skeleton .sk-line, .jd-city-panel { animation: none; }
    .jd-city-chip[aria-expanded="true"] .fa-angle-down { transition: none; }
}

/* 轻提示 */
.jd-mall-toast { position: fixed; left: 50%; top: 68%; z-index: 9999; transform: translate(-50%, -50%) scale(.92); max-width: 80vw; padding: 10px 20px; border-radius: 20px; background: rgba(0,0,0,.78); color: #fff; font-size: 14px; line-height: 1.5; text-align: center; opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s, visibility .22s; }
.jd-mall-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

/* 断点统一（2026-09-21）：原 1024 对齐全站平板档 992 */
@media (max-width: 991.98px) {
    .jd-channel-inner { padding: 8px 16px; }
    .jd-channel-desc { display: none; }
    /* 说明文字隐藏后，弹簧改挂城市组 */
    .jd-channel-city { margin-left: auto; }
}
@media (max-width: 767.98px) {
    /* 频道条保持吸顶：旧版因顶栏折行高度不定而退回 static（滚动时被顶栏压住），
       现 top 改用实测 --syhuo-header-h 自动贴齐顶栏下沿，无需再取消吸顶 */
    .jd-channel-inner { flex-wrap: wrap; min-height: 48px; padding: 6px 12px; gap: 8px; }
    .jd-channel-tabs { flex: 1 1 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .jd-channel-tab { height: 32px; padding: 0 13px; font-size: 14px; }
    .jd-city-chip { height: 32px; padding: 0 11px; font-size: 13px; }
    .jd-city-geo { height: 32px; padding: 0 10px; }
    .jd-city-panel { width: auto; left: 0; right: 0; max-width: none; }
    .jd-city-panel::before { display: none; }
    .jd-city-list { grid-template-columns: repeat(3, 1fr); max-height: 44vh; }
}
/* 断点统一：原 480 并入标准小屏档 576 */
@media (max-width: 575.98px) {
    .jd-city-geo span { display: none; }
    .jd-city-list { grid-template-columns: repeat(2, 1fr); }
    .jd-prod-card .prod-deliv-tag { top: 6px; right: 6px; padding: 1px 5px; }
    .jd-prod-card .prod-shop { font-size: 10px; }
}

/* ========== 10. 响应式（断点统一：原 1024 → 992）========== */
@media (max-width: 991.98px) {
    .jd-cat-sidebar { display: none; }
    .jd-side-panel { display: none; }
    .jd-banner-inner { padding: 0 30px; }
    .jd-slide-wrap { min-height: 260px; }
    .jd-flash-list { grid-template-columns: repeat(3, 1fr); }
    .jd-prod-grid { grid-template-columns: repeat(3, 1fr); }
    .jd-floor-grid { grid-template-columns: repeat(3, 1fr); }
    .jd-floor-banner { display: none; }
    /* S4/S6 楼层平板列数 */
    .jd-kingkong { grid-template-columns: repeat(4, 1fr); padding: 14px 16px 10px; }
    .jd-shop-grid { grid-template-columns: repeat(2, 1fr); }
    .product-images { width: 400px; }
    .main-image { height: 400px; }
    .recommend-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
    .product-main { flex-direction: column; padding: 20px; }
    .product-images { width: 100%; }
    .main-image { height: 300px; }
    .thumbs-list { flex-direction: row; width: 100%; max-height: none; overflow-x: auto; }
    .thumbs-list .thumb-item { flex-shrink: 0; }
    .product-detail .tabs div { padding: 12px 20px; font-size: 14px; }
    .recommend-grid { grid-template-columns: repeat(2, 1fr); }
    /* 内容区左右内边距收紧，适应手机屏 */
    .jd-flash-section, .jd-floor-section, .jd-product-section { padding: 0 12px; margin: 8px auto; }
    .jd-banner-inner { padding: 0 12px; }
    .jd-service-inner { padding: 16px 12px; }
    .product-container { padding: 12px; }
    .recommend-section { padding: 14px 12px 20px; }
    .jd-section-header h2, .jd-floor-header h2, .jd-flash-title h2 { font-size: 17px; }
    /* 分类侧栏移动端：横向滚动胶囊（S3 换血后同走白底橙调，不再深色） */
    .jd-banner-section { padding: 6px 0; }
    .jd-banner-inner { flex-direction: column; }
    .jd-cat-sidebar { width: 100% !important; display: block; overflow-x: auto; background: #fff; border-right: none; }
    .jd-cat-sidebar h3 { display: none; }
    .jd-cat-list { display: flex !important; flex-wrap: nowrap; padding: 4px 10px; gap: 4px; }
    .jd-cat-list li { flex-shrink: 0; }
    .jd-cat-list li > a { height: 32px; line-height: 30px; padding: 0 12px; border-radius: 16px; background: #fff5ee; color: #666; font-size: 12px; gap: 6px; }
    .jd-cat-list li > a:hover, .jd-cat-list li.has-child:hover > a { background: var(--jd-red); color: #fff; }
    .jd-cat-panel { display: none !important; } /* 移动端不展开面板 */
    /* S4/S6 楼层移动端列数 */
    .jd-kingkong { grid-template-columns: repeat(4, 1fr); padding: 12px 12px 8px; }
    .jd-kingkong .kk-ico { width: 46px; height: 46px; font-size: 21px; border-radius: 14px; }
    .jd-shop-grid { grid-template-columns: 1fr; }
    /* Banner */
    .jd-slide-wrap { min-height: 180px; order: -1; }
    .jd-side-panel { display: none; }
    .jd-flash-list { grid-template-columns: repeat(2, 1fr); }
    .jd-prod-grid { grid-template-columns: repeat(2, 1fr); }
    .jd-floor-grid { grid-template-columns: repeat(2, 1fr); }
    .jd-flash-section .jd-flash-list { gap: 8px; }
    /* 服务保障手机端 2×2 对称排布：每项固定半宽居中，避免 3+1 掉队错位 */
    .jd-service-inner { flex-wrap: wrap; gap: 14px 0; padding: 16px 8px; }
    .jd-service-item { width: 50%; justify-content: center; }
}
/* 断点统一：原 480 并入标准小屏档 576 */
@media (max-width: 575.98px) {
    /* 店铺栏手机适配：店名单行省略、隐藏口号、按钮收紧，避免挤压换行错乱 */
    .shop-info-bar { padding: 10px 12px; gap: 8px; }
    .shop-info-name { flex: 1; min-width: 0; }
    .shop-info-name a { display: inline-block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
    .shop-info-slogan { display: none; }
    .shop-info-actions { flex-shrink: 0; gap: 8px; }
    .shop-info-actions .follow-btn,
    .shop-info-actions .msg-btn { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 15px; }
    /* 超窄屏：搜索按钮只留图标、购物车只留图标，商品卡片信息压缩 */
    .jd-search-form button span { display: none; }
    .jd-search-form button { padding: 0 14px; }
    .jd-prod-grid { gap: 8px; }
    .jd-prod-card .prod-info { padding: 6px 8px 10px; }
    .jd-prod-card .prod-name { font-size: 12px; line-height: 16px; height: 32px; }
    .jd-prod-card .prod-price { font-size: 15px; }
    .jd-flash-item img { width: 90px; height: 90px; }
    .jd-flash-item .flash-sold { font-size: 10px; }
    .jd-banner-content h2 { font-size: 26px; }
    .jd-banner-content p { font-size: 13px; }
    .jd-pagination a, .jd-pagination span { min-width: 28px; height: 28px; padding: 0 8px; font-size: 12px; }
    .product-info-detail .actions { gap: 8px; }
    .product-info-detail .actions button { height: 44px; font-size: 14px; }
}
@media (min-width: 1400px) {
    :root { --jd-container: 100%; }
    .jd-flash-list { grid-template-columns: repeat(6, 1fr); }
    .jd-prod-grid { grid-template-columns: repeat(6, 1fr); }
    .jd-floor-grid { grid-template-columns: repeat(5, 1fr); }
    .jd-cat-sidebar { width: 220px; }
    .jd-side-panel { width: 220px; }
    /* 大屏：侧栏与右侧面板均为220px，面板左右偏移同步调整，保持与轮播图区域对齐 */
    .jd-cat-panel { left: 250px; right: 250px; }
    .jd-slide-wrap { min-height: 400px; }
}