/* ================================================================
   SYHUO 商城样式 - 京东原版风格 v3.0
   完全对标京东官网视觉：红白配色、双层顶栏、深色分类侧栏
   ================================================================ */

/* ========== 变量定义 ========== */
:root {
    --jd-red: #e4393c;
    --jd-red-dark: #c81623;
    --jd-orange: #f56c2d;
    --jd-price-red: #e4393c;
    --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%;
}

/* ========== 全局重置 ========== */
.jd-page * { box-sizing: border-box; }

/* ========== 0. 顶部工具栏（京东深色顶栏） ========== */
.jd-topbar { background: #333; color: #b0b0b0; font-size: 12px; line-height: 30px; border-bottom: 1px solid #444; }
.jd-topbar-inner { max-width: var(--jd-container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.jd-topbar a { color: #b0b0b0; text-decoration: none; font-size: 12px; transition: color .15s; }
.jd-topbar a:hover { color: #fff; }
.jd-topbar .sep { color: #555; margin: 0 6px; }
.jd-topbar-left, .jd-topbar-right { display: flex; align-items: center; gap: 0; }
.jd-topbar .highlight { color: #e4393c; }

/* ========== 1. 主导航栏 ========== */
.jd-header { background: #fff; position: relative; z-index: 10; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.jd-header-inner { max-width: var(--jd-container); margin: 0 auto; display: flex; align-items: center; height: 80px; padding: 0 30px; gap: 20px; }

/* Logo — 京东红字风格 */
.jd-logo { flex-shrink: 0; }
.jd-logo h1 { display: flex; align-items: center; gap: 4px; cursor: pointer; margin: 0; white-space: nowrap; }
.logo-icon { font-size: 28px; color: var(--jd-red); }
.logo-text { font-size: 24px; font-weight: 800; color: var(--jd-red); letter-spacing: -1px; }
.logo-hl { color: var(--jd-red); }

/* ========== 搜索框（京东大搜索框） ========== */
.jd-search-wrap { flex: 1; max-width: 550px; display: flex; align-items: center; }
.jd-search-form { display: flex; flex-direction: row; flex-wrap: nowrap; width: 100%; height: 36px; border: 2px solid var(--jd-red); overflow: hidden; background: #fff; transition: box-shadow .2s; }
.jd-search-form:focus-within { box-shadow: 0 0 0 2px rgba(228,57,60,0.12); }
.jd-search-form input { flex: 1; min-width: 0; border: none; outline: none; padding: 0 12px; font-size: 13px; color: #333; background: transparent; height: 36px; line-height: 36px; }
.jd-search-form input::placeholder { color: #bbb; }
.jd-search-form button { background: var(--jd-red); color: #fff; border: none; padding: 0 20px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 5px; height: 36px; flex-shrink: 0; transition: background .2s; }
.jd-search-form button:hover { background: var(--jd-red-dark); }

/* 热搜词 */
.jd-hotwords { display: flex; gap: 10px; padding: 4px 0 0 4px; font-size: 12px; }
.jd-hotwords a { color: #999; text-decoration: none; }
.jd-hotwords a:hover { color: var(--jd-red); }

/* 右侧功能区 */
.jd-right-nav { display: flex; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.jd-cart { display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: var(--jd-red); color: #fff; padding: 0 16px; height: 36px; font-size: 13px; text-decoration: none; position: relative; transition: background .2s; white-space: nowrap; border: 1px solid var(--jd-red); }
.jd-cart:hover { background: var(--jd-red-dark); border-color: var(--jd-red-dark); }
.jd-cart-count { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; background: #fff; color: var(--jd-red); font-size: 10px; font-weight: bold; border-radius: 8px; display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0 3px; border: 1px solid var(--jd-red); }
.jd-user-link, .jd-home-link { display: flex; align-items: center; gap: 4px; color: #666; font-size: 12px; text-decoration: none; padding: 6px 10px; transition: color .15s; white-space: nowrap; }
.jd-user-link:hover, .jd-home-link:hover { color: var(--jd-red); }
.jd-home-link i { font-size: 16px; }

/* ========== 2. 横向分类导航栏 ========== */
.jd-catnav { background: #fff; border-bottom: 2px solid var(--jd-red); }
.jd-catnav-inner { max-width: var(--jd-container); margin: 0 auto; display: flex; align-items: center; padding: 0 30px; height: 36px; }
.jd-catnav-trigger { display: flex; align-items: center; gap: 6px; background: var(--jd-red); color: #fff; padding: 0 16px; height: 36px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.jd-catnav-trigger i { font-size: 14px; }
.jd-catnav-links { display: flex; align-items: center; gap: 0; flex: 1; overflow: hidden; }
.jd-catnav-links a { color: #333; text-decoration: none; font-size: 13px; padding: 0 14px; line-height: 36px; white-space: nowrap; transition: color .15s; }
.jd-catnav-links a:hover, .jd-catnav-links a.active { color: var(--jd-red); }

/* ========== 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; }

/* 分类侧栏 — 深色半透明 */
.jd-cat-sidebar { width: 210px; flex-shrink: 0; background: rgba(0,0,0,0.75); color: #fff; overflow: visible; position: relative; z-index: 10; }
.jd-cat-sidebar h3 { padding: 12px 16px 10px; font-size: 14px; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); margin: 0; }
.jd-cat-list { list-style: none; margin: 0; padding: 2px 0; }
.jd-cat-list li { position: relative; }
/* 关键：固定行高，强制水平对齐 */
.jd-cat-list li > a { display: flex !important; align-items: center; height: 38px; padding: 0 16px; color: rgba(255,255,255,0.9); text-decoration: none; font-size: 13px; line-height: 38px; box-sizing: border-box; transition: all .15s; white-space: nowrap; overflow: hidden; }
.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 span { flex: 1; line-height: 38px; vertical-align: middle; }
.jd-cat-list li > a .cat-arrow { font-size: 11px; opacity: 0.5; transition: opacity .15s; flex-shrink: 0; line-height: 38px; }
.jd-cat-list li.has-child:hover > a .cat-arrow { opacity: 1; }

/* 子分类弹出面板 — 京东经典悬停展开 */
.jd-cat-list li.has-child { position: relative; }
.jd-cat-panel { display: none; position: absolute; left: 100%; top: 0; min-width: 620px; height: auto; max-height: 460px; background: #fff; border: 1px solid #e8e8e8; box-shadow: 4px 0 16px rgba(0,0,0,0.1); z-index: 999; padding: 14px 20px; overflow-y: auto; overflow-x: hidden; }
.jd-cat-list li.has-child:hover .jd-cat-panel,
.jd-cat-list li.has-child.active .jd-cat-panel { 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; border-bottom: 1px dashed #f0f0f0; min-height: 44px; box-sizing: border-box; }
.jd-cat-row:last-child { border-bottom: none; }
/* 二级标题：固定宽度，统一行高 */
.jd-cat-l2 { display: block; width: 100px; flex-shrink: 0; font-size: 13px; font-weight: 700; color: #333; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 44px; padding: 0 8px 0 0; box-sizing: border-box; }
.jd-cat-l2:hover { color: var(--jd-red); }
.jd-cat-l2 i { display: none; }
/* 三级标签：与二级共用 44px 行高，保证水平对齐 */
.jd-cat-l3 { display: flex !important; flex-wrap: wrap; align-items: center; flex: 1; min-height: 44px; gap: 0; padding: 0; }
.jd-cat-l3 a { font-size: 12px; color: #666; text-decoration: none; line-height: 44px; padding: 0 12px 0 0; white-space: nowrap; }
.jd-cat-l3 a:hover { color: var(--jd-red); }

/* 轮播区 */
.jd-slide-wrap { flex: 1; position: relative; overflow: hidden; background: #eee; min-height: 360px; }
.jd-slide { position: relative; width: 100%; height: 100%; }
.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); }

/* Banner纯CSS样式 */
.jd-banner-slide { background: linear-gradient(135deg, #e4393c 0%, #c81623 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: #fff5f5; }
.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: #333; 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: 10px 6px; border: 1px solid #f5f5f5; border-radius: 4px; 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; }
.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; }

/* ========== 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: 10px; padding: 8px 0 16px; }
.jd-prod-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 4px; 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; }
.jd-prod-card .prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.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; }

/* 页脚 */
.jd-footer { background: #333; color: #999; padding: 30px 0 20px; margin-top: 0; }
.jd-footer-inner { max-width: var(--jd-container); margin: 0 auto; padding: 0 30px; text-align: center; }
.jd-footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }
.jd-footer-links a { color: #999; text-decoration: none; font-size: 12px; }
.jd-footer-links a:hover { color: #fff; }
.jd-footer-copy { font-size: 12px; color: #666; }

/* ========== 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; }
.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: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 .favorite-info { font-size: 12px; color: var(--jd-text-light); margin-bottom: 15px; }

/* 服务保障 */
.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; }

/* 猜你喜欢 */
.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; }

/* ========== 10. 响应式 ========== */
@media (max-width: 1024px) {
    .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; }
    .jd-catnav { display: none; }
    .jd-topbar { display: none; }
    .product-images { width: 400px; }
    .main-image { height: 400px; }
    .recommend-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .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-header-inner { height: 56px; gap: 10px; padding: 0 20px; }
    .logo-text { font-size: 20px; }
    .logo-icon { font-size: 22px; }
    .jd-search-wrap { max-width: none; }
    .jd-hotwords { display: none; }
    .jd-right-nav .jd-user-link, .jd-right-nav .jd-home-link { display: none; }
    /* 分类侧栏移动端：横向滚动胶囊 */
    .jd-banner-section { padding: 6px 0; }
    .jd-banner-inner { flex-direction: column; }
    .jd-cat-sidebar { width: 100% !important; overflow-x: auto; background: rgba(0,0,0,0.8); }
    .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: rgba(255,255,255,0.12); font-size: 12px; }
    .jd-cat-panel { display: none !important; } /* 移动端不展开面板 */
    /* 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-service-inner { flex-wrap: wrap; gap: 12px; }
}
@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; }
    .jd-slide-wrap { min-height: 400px; }
}