/* ========================================================
   picture 元素显示修复
   --------------------------------------------------------
   问题：为支持 webp，<img> 被包进了 <picture>。
        <picture> 默认是 inline 元素，宽度收缩到图片固有宽度，
        img 的 max-width:100% 只相对该固有宽度计算，
        结果图片无法随父容器放大 —— 首页 banner 只显示 1600px，
        在 1920 宽屏右侧露白；产品页大图同理。
   修复：让 <picture> 撑满父容器，img 才能正确 max-width:100%
   日期：2026-10-26
   ======================================================== */

picture {
    display: block;
    width: 100%;
    max-width: 100%;
}

picture > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* banner 内的图片必须撑满幻灯片 */
#banner picture,
#banner li > picture {
    display: block;
    width: 100%;
    line-height: 0;
}

#banner picture > img {
    width: 100%;
    height: auto;
    display: block;
}

/* 行内场景（如文字中夹小图标）保持行内，避免撑破排版 */
#banner li .content picture,
.sidebar_fix picture,
.lang picture {
    display: inline-block;
    width: auto;
}

/* img-box 缩略图容器内保持填满 */
.img-box picture,
a.img-box picture {
    display: block;
    width: 100%;
    height: 100%;
}

.img-box picture > img,
a.img-box picture > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
