/* ===== 商品详情：中间 介绍+图片 区（参考 anigift-laravel） ===== */
.pInfo-wrap { padding: 40px 0 60px; }
.pInfo { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.pInfo-view { flex: 0 0 499px; max-width: 100%; }
.pIview-man { width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #f5f5f5; border: 1px solid #eee; }
.pIview-man img { width: 100%; height: 100%; object-fit: cover; }
.pIview-min { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pIview-min img { width: 82px; height: 82px; object-fit: cover; border: 2px solid #eee; cursor: pointer; }
.pIview-min img.active { border-color: #384a7d; }
.pInfo-box { flex: 1 1 360px; min-width: 280px; }
.pInfo-box .name { font-size: 28px; color: #222; }
.pInfo-box .con { color: #777; line-height: 1.8; margin: 13px 0 0; word-break: break-word; overflow-wrap: anywhere; }
/* 商品详情正文来自迁移的富文本，部分 <p> 带内联超大固定宽度会撑破窄栏，强制回退自适应 */
.pInfo-box .con p,
.pInfo-box .con span,
.pInfo-box .con div { max-width: 100% !important; width: auto !important; box-sizing: border-box; }
.pInfo-type { font-size: 18px; margin: 50px 0 0; color: #444; }
.pInfo-box .info { color: #777; line-height: 1.9; margin: 14px 0 0; }
.pInfo-box .info p { padding: 5px 0; border-bottom: 1px dashed #eee; font-size: 13px; }
.but-btn {
    display: inline-block; margin: 29px 0 0; width: 200px; height: 40px; line-height: 40px;
    text-align: center; font-size: 18px; color: #fff; background: #c12e8c; border-radius: 5px;
}
.but-btn:hover { opacity: .92; }
.back-link { display: inline-block; margin: 0 0 18px; color: #384a7d; font-size: 14px; }

/* 图片点击放大光标 */
.pIview-man img,
.pInfo-box .con img { cursor: zoom-in; }

/* ===== 商品图片放大灯箱（参考 anigift-laravel 原生实现，无第三方库） ===== */
.img-lightbox { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .88); }
.img-lightbox.is-open { display: flex; }
.img-lightbox .lb-img { max-width: 92vw; max-height: 86vh; object-fit: contain; background: #fff; padding: 6px; border-radius: 2px; }
.img-lightbox .lb-btn { position: absolute; display: flex; align-items: center; justify-content: center; border: none; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; line-height: 1; transition: background .2s; font-family: inherit; }
.img-lightbox .lb-btn:hover { background: rgba(255, 255, 255, .34); }
.img-lightbox .lb-close { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 26px; border-radius: 50%; }
.img-lightbox .lb-prev,
.img-lightbox .lb-next { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; font-size: 30px; }
.img-lightbox .lb-prev { left: 16px; }
.img-lightbox .lb-next { right: 16px; }
.img-lightbox .lb-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .85); font-size: 13px; letter-spacing: 1px; }
body.lb-open { overflow: hidden; }

/* 联系页验证码图片：原站无专门样式，这里仅补充可点击提示 */
#verify_img { cursor: pointer; }

@media (max-width: 768px) {
    .pInfo { flex-direction: column; gap: 20px; }
    .pInfo-view { flex: 1 1 100%; }
    .img-lightbox .lb-prev,
    .img-lightbox .lb-next { width: 40px; height: 52px; font-size: 24px; }
    .img-lightbox .lb-img { max-width: 94vw; max-height: 78vh; }
}

/* ===== 公告封面图（hb_notice.img，启用原版被注释的 .img-box） ===== */
.news-list .item .img-box { margin-bottom: 12px; border-radius: 6px; overflow: hidden; }
.news-list .item .img-box img { width: 100%; height: 190px; object-fit: cover; display: block; }
.news-page .news-l .img-box { margin-bottom: 18px; border-radius: 6px; overflow: hidden; }
.news-page .news-l .img-box img { width: 100%; display: block; }

/* ===== 18歳確認ゲート（全站公用，写在 home/layout.blade.php body 起始处） ===== */
.agegate { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 99999;
    background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box; }
.agegate-box { background: #fff; border-radius: 10px; width: 100%; max-width: 540px;
    padding: 34px 30px 28px; text-align: center; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.agegate-mark { font-size: 34px; font-weight: 700; letter-spacing: 2px; color: #e4002b; line-height: 1; }
.agegate-q { margin: 18px 0 26px; font-size: 17px; line-height: 1.8; color: #222; }
.agegate-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.agegate-btn { border: 0; border-radius: 6px; padding: 13px 40px; font-size: 16px;
    cursor: pointer; line-height: 1.2; }
.agegate-btn:hover { opacity: .88; }
.agegate-yes { background: #1b6ec2; color: #fff; }
.agegate-no { background: #e6e6e6; color: #333; }
.agegate-note { margin: 20px 0 0; font-size: 12px; line-height: 1.7; color: #999; }
/* 门禁未通过时禁止滚动，避免看到/滑到下层内容 */
html.agegate-on, html.agegate-on body { overflow: hidden; height: 100%; }
@media screen and (max-width: 768px) {
    .agegate-box { padding: 26px 20px 22px; }
    .agegate-q { font-size: 15px; margin: 14px 0 20px; }
    .agegate-btn { padding: 12px 0; width: 45%; }
    .agegate-btns { gap: 10px; }
}
