/* ==========================================
   京东风格全局样式 (JD.com Inspired)
   主色调: 京东红 #c91623
   ========================================== */

/* ===== Logo 修复 ===== */
a.logo{display:inline-flex!important;align-items:center!important;gap:8px;text-decoration:none;white-space:nowrap;color:inherit;max-height:44px}
a.logo img{height:36px!important;width:auto!important;flex-shrink:0;display:block;object-fit:contain;border:none;margin:0;padding:0}
.logo-text{font-size:18px;font-weight:700;letter-spacing:1px;white-space:nowrap;line-height:1.2}

/* ===== Header 京东风格：白色背景 + 红色底边 ===== */
.public-layout .header.el-header{
  background:#fff!important;color:#333!important;
  height:64px!important;display:flex!important;align-items:center!important;
  padding:0 24px!important;
  box-shadow:0 2px 8px rgba(0,0,0,.06)!important;
  border-bottom:3px solid #c91623!important;
}
.public-layout .header a.logo{color:#333!important}
.public-layout .nav-link{color:#666!important;padding:8px 18px!important;border-radius:4px!important;transition:.2s;font-weight:500}
.public-layout .nav-link:hover{color:#c91623!important;background:rgba(201,22,35,.06)!important}
.public-layout .nav-link.router-link-active{color:#c91623!important;background:rgba(201,22,35,.08)!important;font-weight:600}

/* ===== Banner/轮播 京东风格 ===== */
.banner-wrap{padding:0!important;margin-bottom:0!important}
.banner-wrap .el-carousel{border-radius:0;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.banner-img{width:100%;max-height:420px;object-fit:cover!important;display:block}

.el-carousel__container{height:420px!important}
.el-carousel__item{display:flex;align-items:center;justify-content:center}
.el-carousel__item img{width:100%;height:100%;object-fit:cover;max-height:420px}

/* ===== 移动端适配 ===== */
@media screen and (max-width:768px){
  .el-carousel__container{height:240px!important}
  .el-carousel__item img{max-height:240px!important}
  .banner-img{max-height:240px!important}

  .header-inner{flex-direction:column!important;align-items:flex-start!important}
  .nav{display:flex!important;flex-direction:column!important;width:100%!important;margin-left:0!important;gap:0!important}
  .nav-link{display:block!important;padding:10px 0!important;border-bottom:1px solid #f0f0f0!important;font-size:14px!important;color:#666!important}
  .nav-link:hover,.nav-link.router-link-active{color:#c91623!important;background:rgba(201,22,35,.04)!important}
  .public-layout .header.el-header{height:auto!important;padding:12px 24px!important;flex-direction:column!important;align-items:stretch!important}

  .main{padding:10px!important}
  .article-list{padding:0!important}

  .article-card .el-row{flex-direction:column}
  .article-card .el-col{width:100%!important}
  .cover-thumb{width:100%;max-height:200px}

  .product-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
  .product-card{margin-bottom:10px}

  .product-detail-wrap .el-row{flex-direction:column}
  .product-detail-wrap .el-col{width:100%!important}

  .footer{padding:15px!important;font-size:13px}
}

/* ===== Article 页面产品参数区块 京东风格 ===== */
.product-detail-box{
  background:linear-gradient(135deg,#fff5f5,#fff);
  border:2px solid #ffe0e0;
  border-radius:8px;
  padding:18px 22px;
  margin:16px 0 20px;
}
.product-detail-box .pd-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:8px;font-size:14px;line-height:1.6}
.product-detail-box .pd-row:last-child{margin-bottom:0}
.product-detail-box .pd-label{color:#999;min-width:70px;font-weight:500}
.product-detail-box .pd-val{color:#333;font-weight:600}
.product-detail-box .pd-price{color:#c91623!important;font-size:22px!important;font-weight:700}
.product-detail-box .pd-tag{display:inline-block;padding:2px 10px;border-radius:2px;font-size:12px;font-weight:600;margin-right:5px;color:#fff}
.pd-tag.pd-featured{background:linear-gradient(135deg,#c91623,#e4393c)}
.pd-tag.pd-stock{background:linear-gradient(135deg,#52c41a,#73d13d)}
.pd-tag.pd-pre{background:linear-gradient(135deg,#1677ff,#4096ff)}
.pd-tag.pd-out{background:linear-gradient(135deg,#fa8c16,#ffa940)}
.product-detail-box .pd-stats{gap:12px;padding-top:6px;border-top:1px solid #ffe0e0;margin-top:6px}
.product-detail-box .pd-stat{font-size:13px;color:#666;background:#fff;padding:2px 10px;border-radius:2px}
.product-detail-box .pd-btn{
  display:inline-block;margin-top:10px;padding:10px 28px;
  background:linear-gradient(135deg,#c91623,#e4393c);
  color:#fff;text-decoration:none;border-radius:20px;
  font-weight:600;font-size:14px;transition:.25s
}
.product-detail-box .pd-btn:hover{background:linear-gradient(135deg,#b0141f,#d9363a);transform:translateY(-1px);box-shadow:0 4px 12px rgba(201,22,35,.35)}

@media screen and (max-width:768px){
  .product-detail-box{padding:12px 15px}
  .product-detail-box .pd-label{min-width:60px;font-size:13px}
  .product-detail-box .pd-val{font-size:13px}
  .product-detail-box .pd-price{font-size:16px!important}
}

@media screen and (max-width:480px){
  .el-carousel__container{height:200px!important}
  .el-carousel__item img{max-height:200px!important}
  .banner-img{max-height:200px!important}
  .product-grid{grid-template-columns:1fr!important}
}

/* ===== 产品详情页 - 画廊增强 京东风格 ===== */
.gallery-card{position:relative;border:1px solid #f0f0f0}
.gallery-card .gallery-stage img{transition:transform .3s}
.gallery-card .gallery-stage img:hover{transform:scale(1.03)}
.gallery-card .thumb{flex-shrink:0;border:2px solid transparent;transition:.2s}
.gallery-card .thumb:hover,.gallery-card .thumb.active{border-color:#c91623}
.gallery-card .gallery-nav{user-select:none}

/* ===== 产品详情页 - 规格卡片动画 京东风格 ===== */
.spec-panel .spec-item{transition:transform .15s,box-shadow .15s}
.spec-panel .spec-item:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(201,22,35,.1);border-color:#ffccc7!important}

/* ===== 产品列表页 - 卡片增强 京东风格 ===== */
.product-card .img-wrap{background:#f5f5f5}
.product-card .img-wrap img{transition:transform .4s}
.product-card:hover .img-wrap img{transform:scale(1.05)}

/* ===== 移动端基础增强 ===== */
@media screen and (max-width:640px){
  /* 增大点击区域 */
  .nav-link,a.logo,.header a,button,.filter-btn,.cta-btn{
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
  }
  .header-search-inject{max-width:150px!important;margin-left:6px!important}
  .header-search-inject input{height:28px!important;font-size:11px!important}
  .header-search-inject button{height:28px!important;padding:0 8px!important;font-size:11px!important}
  .logo-text{font-size:14px!important}
  .logo a img{height:28px!important}
  /* 防止横向溢出 */
  body{overflow-x:hidden}
  img{max-width:100%}
}

/* ===== 搜索框注入样式 ===== */
.header-search-inject{
  display:inline-flex!important;align-items:center!important;
  margin-left:10px;flex:1;max-width:240px;
}
.header-search-inject input{
  flex:1;height:30px;border:2px solid #c91623;border-right:none;outline:none;
  padding:0 8px;font-size:12px;font-family:inherit;color:#333;background:#fff;
}
.header-search-inject button{
  height:30px;padding:0 10px;background:#c91623;color:#fff;border:none;
  cursor:pointer;font-size:12px;white-space:nowrap;font-weight:600;
}
.header-search-inject button:hover{background:#b0141f}
@media(prefers-color-scheme:dark){
  .gallery-stage{background:#1a1a1a}
  .spec-item{background:#1e1e1e;border-color:#333}
  .spec-item:hover{background:#2a2a2a}
}

/* ==========================================
   京东风格首页布局
   ========================================== */
.public-layout{
  background:#f4f4f4!important;
  min-height:100vh!important;
}

/* 京东风格文章卡片 */
.public-layout .article-card{
  background:#fff;border-radius:4px!important;overflow:hidden;
  box-shadow:none!important;border:1px solid #f0f0f0!important;
  transition:all .2s!important;
}
.public-layout .article-card:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 4px 20px rgba(0,0,0,.1)!important;
  border-color:#c91623!important;
}
.public-layout .card-title{
  font-weight:700!important;color:#333!important;font-size:15px!important;
}
.public-layout .article-list{
  background:transparent!important;padding:20px!important;
}
.public-layout .main{padding:0!important}
.public-layout .footer{
  background:#fafafa!important;color:#999!important;
  padding:40px 20px!important;margin-top:40px!important;
  border-top:1px solid #f0f0f0!important;
}
.public-layout .pagination{background:#fff;border-radius:4px;padding:16px!important;box-shadow:none;border:1px solid #f0f0f0}

/* ===== 首页文章网格（4列京东风格） ===== */
.public-layout .article-list{
  display:grid!important;
  grid-template-columns:repeat(4,1fr)!important;
  gap:12px!important;
  padding:12px 16px!important;
}
.public-layout .article-card{
  border-radius:2px!important;overflow:hidden;
  transition:all .2s!important;
  height:100%!important;
  background:#fff!important;
  border:1px solid #f0f0f0!important;
  box-shadow:none!important;
}
.public-layout .article-card:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 4px 16px rgba(0,0,0,.08)!important;
  border-color:#c91623!important;
}
.public-layout .article-card .el-card__body{
  padding:0!important;display:flex;flex-direction:column;height:100%
}
.public-layout .article-card .el-row{
  flex:1;margin:0!important;display:flex;flex-direction:column
}
.public-layout .article-card .el-col:first-child{
  width:100%!important;max-width:100%!important;flex:none!important;
  padding:12px 12px 8px!important;order:2
}
.public-layout .article-card .el-col:last-child{
  width:100%!important;max-width:100%!important;flex:none!important;
  padding:0!important;order:1
}
.public-layout .article-card .cover-thumb{
  width:100%!important;height:200px!important;
  border-radius:0!important;object-fit:cover!important;
  background:#f5f5f5!important;
}
.public-layout .article-card .card-title{
  font-size:14px!important;font-weight:600!important;color:#333!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  margin-bottom:4px!important;line-height:1.3!important;
}
.public-layout .article-card .card-summary{
  font-size:12px!important;color:#999!important;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;line-height:1.5!important;margin-bottom:8px!important;
}
.public-layout .article-card .card-meta{
  font-size:11px!important;color:#bbb!important;
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  padding-top:6px!important;border-top:1px solid #f5f5f5;
}
.public-layout .article-card .card-meta .el-tag{
  background:#fff0f0!important;color:#c91623!important;
  border:1px solid #ffccc7!important;font-weight:500;padding:1px 6px!important;
  border-radius:2px!important;
}

/* 移动端：3列 → 2列 */
@media screen and (max-width:1024px){
  .public-layout .article-list{grid-template-columns:repeat(3,1fr)!important;gap:10px!important}
  .public-layout .article-card .cover-thumb{height:170px!important}
}
@media screen and (max-width:768px){
  .public-layout .article-list{grid-template-columns:repeat(2,1fr)!important;gap:8px!important}
  .public-layout .article-card .cover-thumb{height:140px!important}
}
@media screen and (max-width:480px){
  .public-layout .article-list{grid-template-columns:repeat(2,1fr)!important;gap:8px!important}
  .public-layout .article-card .cover-thumb{height:120px!important}
}
