/* ==========================================================================
   国科云链 · 工业品采购商城 —— 局部微调覆盖层（tweaks.css）
   用途：只放截图评审中发现的「对齐 / 间距 / 字号 / 颜色 / 元素显隐」类像素级修补。
         结构性改动（层级、DOM、交互逻辑）不放这里，交回主线处理。
   加载：必须在 styles.css 之后加载（各 .html 的 </head> 前最后一行），
         覆盖优先级靠「后加载 + 选择器收敛」，不靠 !important。
   约束：不改 DOM、不改 JS；选择器一律收敛到具体页面容器（如 .home-page .xxx），
         避免污染其他页面；颜色/圆角等优先复用 :root 变量
         （--red / --red-deep / --red-soft / --ink / --ink-2 / --ink-3 /
           --line / --line-soft / --bg / --paper / --brand / --radius / --font）。
   注释约定：每条规则上方一行 —— fix: 问题描述（页面 路径），说明改什么、为什么。
   ========================================================================== */

/* ===== 已应用的修复清单（追加规则时同步登记一行，便于回滚） =====
   1. 价格区：含税·免运费改紧贴价格的标签；市场价 13px 淡灰          （product.html）
   2. 阶梯价表：统一行高、单价/节省右对齐、斑马纹、当前档位左侧红标    （product.html）
   3. 采购按钮组：主按钮固定 190–250px、整组 44px 高、12px 间距、收藏右对齐（product.html）
   4. 图墙缩略图：选中态由 :first-child 改为 .is-active（修复点击不跟随）+ 尺寸收紧（product.html）
   5. 主图：补 1px 内描边，和缩略图区分层次                            （product.html）
   6. 四大 tab：15px、30px 间距、hover 淡红下划线（不含选中项）        （product.html）
   7. 规格参数表：3 列改 2 列、label 96px 同行对齐、末项跨列           （product.html）
   8. 供应商卡：dl 行距与虚线分隔、放大 4.8 评分、按钮区拉开           （product.html）
   9. 响应式：≤1400 两栏间距、≤900 缩略图/主图字号/价格/按钮组         （product.html）
   ===== */

/* ==========================================================================
   以下为修复规则区：新增条目请按 fix 注释 → 收敛选择器 → 单行单规则的顺序追加。
   ========================================================================== */

/* ==========================================================================
   商品详情页（product.html）—— .detail / .detail-* / .supplier-card 专属作用域
   ========================================================================== */

/* fix: 价格区「含税·免运费」用 margin-left:auto 顶到价格条最右端，1920 下距价格 700px+，读起来像孤立文本；
   改为紧贴价格的浅红标签，价格加粗到 32px，市场价（划线）降为 13px 淡灰以强化主次（product.html） */
.detail .detail-price-box{padding:14px 18px;gap:6px}
.detail .detail-price-box strong{font-size:32px}
.detail .detail-price-box em{margin-left:14px;padding:2px 8px;background:#fff;border:1px solid #f6cccc;border-radius:3px;color:#e4393c;font-size:12px;line-height:18px}
.detail .market-price{font-size:13px;color:#b6bdc7;margin-left:2px}

/* fix: 阶梯价表行高只有 36px、单价/节省左对齐导致数字不成列、当前档位仅 0.5 度淡粉几乎看不出；
   统一行高与内距、数字列右对齐、加斑马纹，并给当前档位左侧 3px 红色锚点（product.html） */
.detail .tier-table{font-size:12px;margin:14px 0 2px}
.detail .tier-table th{padding:9px 14px;background:#fafbfc;color:#8b93a1}
.detail .tier-table td{padding:10px 14px;color:#3f4854}
.detail .tier-table th:nth-child(2),.detail .tier-table td:nth-child(2),.detail .tier-table th:nth-child(3),.detail .tier-table td:nth-child(3){text-align:right}
.detail .tier-table tbody tr:nth-child(even) td{background:#fcfdfe}
.detail .tier-table tbody tr.is-active td{background:#fff5f5;color:var(--red);font-weight:600}
.detail .tier-table tbody tr.is-active td:first-child{box-shadow:inset 3px 0 0 var(--red)}

/* fix: 「加入采购车」用 flex:1 在 1920 下被拉到 519px，而同排「立即采购 98px / 收藏 77px」过窄，比例失衡；
   主按钮改为固定宽度区间（190–250px），整组统一 44px 高、12px 间距；「收藏」右对齐，让按钮组与
   上方价格条/阶梯价表的左右边线齐平，避免右侧留出 390px 空档（product.html） */
.detail .detail-buy{gap:12px;margin-top:22px}
.detail .detail-buy .qty-picker{height:44px}
.detail .detail-buy .primary-btn{flex:0 0 auto;min-width:190px;max-width:250px;height:44px;padding:0 30px}
.detail .detail-buy .quiet-btn,.detail .detail-buy .fav-btn{height:44px;flex:0 0 auto}
.detail .detail-buy .fav-btn{min-width:88px;margin-left:auto}

/* fix: 缩略图选中态被 styles.css 写死在 :first-child 上，而 JS 只切换 .is-active，点击「细节/包装/场景」红框仍停在第一张；
   改由 .is-active 驱动，2px 红边 + 外发光，并把 84px 压到 76px、补 hover 反馈（product.html） */
.detail .detail-thumbs{gap:10px;margin-top:12px}
.detail .detail-thumbs .thumb{height:76px;border:1px solid #eef0f3;transition:border-color .15s,box-shadow .15s}
.detail .detail-thumbs .thumb:hover{border-color:#f7c9c9}
.detail .detail-thumbs .thumb.is-active{border:2px solid var(--red);box-shadow:0 0 0 2px rgba(247,60,60,.08)}
.detail .detail-thumbs .thumb small{font-size:11px;color:#8b93a1}

/* fix: 主图与缩略图条之间没有分界、浅色底上看不出图区边界；加 1px 内描边（保留每件商品的 --tint 底色）（product.html） */
.detail .detail-art{box-shadow:inset 0 0 0 1px #eef0f3}

/* fix: 四个 tab 只有 14px、下划线紧贴文字且 hover 无任何反馈；提到 15px、间距 30px、hover 出淡红下划线（选中项保持实红）（product.html） */
.detail-block .detail-tabs{gap:30px;margin-bottom:18px}
.detail-block .detail-tabs .tab{padding:11px 2px;font-size:15px;color:#3f4854}
.detail-block .detail-tabs .tab:not(.is-active):hover::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#f7c9c9}

/* fix: 规格参数表是 3 列、label 压在 value 上方，1920 下每格 516px 过于松散且 9 项末尾空一格；
   改 2 列 + label 固定 96px 同行对齐、末项跨两列、偶行淡底（product.html） */
.detail-block .spec-table{grid-template-columns:repeat(2,minmax(0,1fr))}
.detail-block .spec-table div{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:10px;padding:11px 16px}
.detail-block .spec-table span{font-size:12px;color:#98a1ad}
.detail-block .spec-table b{font-size:13px;color:#2b3440}
.detail-block .spec-table div:nth-child(4n+3),.detail-block .spec-table div:nth-child(4n+4){background:#fcfdfe}
.detail-block .spec-table div:last-child{grid-column:1/-1}

/* fix: 供应商卡 dl 行距仅 5px、四行信息糊在一起，4.8 评分和正文同字号，咨询按钮紧贴 dl 无呼吸；
   加行距与虚线分隔、评分放大到 16px、dl 与按钮之间留 14px（product.html） */
.detail .supplier-card{padding:18px 16px 16px}
.detail .supplier-card .supplier-head b{font-size:15px}
.detail .supplier-card dl{margin-bottom:14px}
.detail .supplier-card dl>div{padding:7px 0;border-bottom:1px dashed #f4f6f8}
.detail .supplier-card dl>div:last-child{border-bottom:0}
.detail .supplier-card dd .score{font-size:16px;letter-spacing:.5px}
.detail .supplier-card .primary-btn{height:42px;font-size:14px}

/* fix: ≤1400 三栏收成两栏后，供应商卡与最近浏览卡并排贴得太近，与卡片内距不协调；补 14px 栏间距（product.html） */
@media (max-width:1400px){
  .detail .detail-aside{gap:14px}
}

/* fix: ≤900 单列时缩略图被拉伸成 4 个 204×84 的超宽扁块、价格 32px 过大、采购按钮整行过长且不换行；
   缩略图收到 118px、价格降为 26px、按钮组允许换行并统一 42px（product.html） */
@media (max-width:900px){
  .detail{padding:16px}
  .detail .detail-thumbs{grid-template-columns:repeat(4,minmax(0,118px));gap:8px}
  .detail .detail-thumbs .thumb{height:64px}
  .detail .detail-art{font-size:150px}
  .detail .detail-price-box strong{font-size:26px}
  .detail .detail-buy{flex-wrap:wrap;gap:10px}
  .detail .detail-buy .primary-btn{flex:1 1 150px;max-width:none;min-width:0;height:42px}
  .detail .detail-buy .quiet-btn,.detail .detail-buy .fav-btn{height:42px}
  .detail-block .detail-tabs{gap:18px}
}
