/* Product List (replica of 10.html) */
/* Fallback: force secondary button solid bg in detail header card */
.product-header .product-actions .pd-actions .btn-outline,
.product-header .product-actions .btn-outline{
  background:#1e40af !important;
  color:#fff !important;
  border:1px solid #1e3a8a !important;
}
.product-header .product-actions .pd-actions .btn-outline:hover,
.product-header .product-actions .btn-outline:hover{
  background:#1b3a9f !important;
  border-color:#1b3a9f !important;
}

/* Detail page: custom actions area */
.pd-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:10px}
.pd-actions .btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:6px;font-size:14px;line-height:1;text-decoration:none;transition:all .2s ease}
/* solid primary */
.pd-actions .btn-primary{background:var(--df-primary, #2563eb);color:#fff;border:1px solid var(--df-primary, #2563eb)}
.pd-actions .btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8}
/* solid secondary */
.pd-actions .btn-outline{background:#1e40af;color:#fff;border:1px solid #1e3a8a}
.pd-actions .btn-outline:hover{background:#1b3a9f;border-color:#1b3a9f}
/* text link */
.pd-actions .btn-text{background:transparent;color:var(--df-primary, #2563eb);border:none;padding:6px 10px}
.pd-actions .btn-text:hover{text-decoration:underline}

:root{
  --brand:#1f6fe5;
  --green:#19b56b;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --bg:#f8fafc;
  --card:#ffffff;
  --save:#e11d48;
  --radius:0;
  --shadow:0 6px 18px rgba(0,0,0,.06);
  --shadow-lg:0 12px 28px rgba(0,0,0,.12);
}
.product-archive{max-width:1180px;margin:0 auto;padding:24px}
.product-list{display:flex;flex-direction:column;gap:20px}
.card{display:grid;grid-template-columns: 1.15fr 1fr;gap:18px;background:#ffffff;border-radius:0;box-shadow:none;align-items:stretch;position:relative}
.card:hover{box-shadow:none}
.card-left{background:var(--green);overflow:hidden;position:relative;z-index:1;aspect-ratio:16/9;align-self:start}
/* 产品列表页缩略图：强制填充裁切（保持比例，不变形） */
.card-left img{width:100%;height:100%;object-fit:cover;aspect-ratio:auto;display:block}
/* 产品列表页：在特色图右侧叠加 30% 宽度的半黑色透明背景，增强右侧文字/元素对比 */
.left-overlay{
  position:absolute;
  inset:0;
  color:#fff;
  padding:28px 30px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:12px;
  /* 右侧 0-30% 为半透明黑色，左侧保持透明，避免整张图被压暗 */
  background:linear-gradient(to right,
    rgba(0,0,0,.70) 0%,
    rgba(0,0,0,.70) 30%,
    transparent 30%,
    transparent 100%
  );
  text-shadow:0 1px 2px rgba(0,0,0,.45);
}
.left-title{font-size:28px;font-weight:800;letter-spacing:.2px}
.left-list{margin:0;padding:0 0 0 10px}
.left-list li{margin:.25em 0;opacity:.98}
.card-right{background:#fff;display:flex;flex-direction:column;overflow:visible;border-left:none;position:relative;z-index:2;}
.cr-body{padding:20px 22px 8px}
.product-archive .cr-body{ padding-bottom:14px; }
.cr-title{font-size:22px;font-weight:500;line-height:1.35;margin:0 0 10px}
.cr-title a{ color:#111827 !important; text-decoration:none; }
.cr-title a:hover{ color:#111827 !important; }
.cr-desc{color:var(--muted);margin:0 0 16px;line-height:1.7}
/* 产品列表页：描述底部分割线（虚线）与内边距 10px */
body.post-type-archive-product .cr-desc,
body.tax-product_cat .cr-desc,
body.tax-product_tag .cr-desc{ border-bottom:1px dotted #ddd; padding-bottom:10px; margin-bottom:10px; }
.cr-bar{background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px;height:80px;padding:0 26px;position:relative;overflow:visible}
/* 去除我们此前添加的分割线（如存在） */
body.post-type-archive-product .cr-bar,
body.tax-product_cat .cr-bar,
body.tax-product_tag .cr-bar{ border-top:none; }
body.post-type-archive-product .cr-bar,
body.tax-product_cat .cr-bar,
body.tax-product_tag .cr-bar{ padding-top:0 !important; align-items:center; }
/* 确保蓝色条内部始终垂直居中 */
.cr-bar{ align-items:center; }
.cr-price{ line-height:1; }
.cr-bar::before{content:"";position:absolute;top:50%;left:-72px;width:0;height:0;z-index:3;pointer-events:none;border-top:40px solid transparent;border-bottom:40px solid transparent;border-right:55px solid var(--brand);transform:translateY(-50%)}
.cr-bar::after{content:"";position:absolute;top:0;left:-18px;width:18px;height:100%;background:var(--brand);z-index:2;pointer-events:none}
.cr-price{font-size:26px;font-weight:900;letter-spacing:.3px}
.cr-actions{display:flex;align-items:center;gap:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:9px 16px;font-weight:700;border:1px solid rgba(255,255,255,.65);color:#fff;transition:all .2s}
.btn:hover{background:rgba(255,255,255,.12)}
.btn-primary{background:rgba(255,255,255,.12)}
.btn-primary:hover{background:rgba(255,255,255,.18)}
.cr-foot{border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;background:#fff}
/* 产品列表页：原价/节省区域的上边框（虚线）与内边距 10px + 与蓝条间距15px */
body.post-type-archive-product .cr-foot,
body.tax-product_cat .cr-foot,
body.tax-product_tag .cr-foot{ border-top:1px dotted #ddd; padding:10px 18px; margin-top:15px; }
.meta-block{display:flex;align-items:center;gap:10px;color:#6b7280}
.meta-label{font-size:13px;color:#9ca3af}
.meta-old del{color:#9ca3af}
.meta-save .amount{color:var(--save);font-weight:800}
@media (max-width:1024px){.card{grid-template-columns:1fr}.left-overlay{padding:22px}.left-title{font-size:24px}}
@media (max-width:560px){.product-archive{padding:16px}.cr-title{font-size:20px}.cr-price{font-size:24px}.cr-actions{gap:10px}.btn{padding:8px 14px}.cr-foot{flex-direction:column;align-items:flex-start;gap:8px}}

/* 调整仅“产品归档/分类/标签”页面的横幅与主体间距为 20px，不影响其他页面 */
body.post-type-archive-product .df-banner,
body.tax-product_cat .df-banner,
body.tax-product_tag .df-banner{ margin-bottom:20px !important; }

/* 移除全局 section{padding:80px 0} 对产品列表页的影响，仅限产品列表页作用域 */
body.post-type-archive-product section.product-list,
body.tax-product_cat section.product-list,
body.tax-product_tag section.product-list{ padding-top:0 !important; }
