/* WeHow Lightbox v4.0 */
.wehow-lightbox{display:none;position:fixed;inset:0;z-index:99999;background:#000;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
.wehow-lightbox.active{display:flex!important}
.wehow-lb-overlay{position:absolute;inset:0;background:rgba(0,0,0,0.85);z-index:1}
/* 主容器 - 使用flex布局 */
.wehow-lb-container{display:flex;width:100%;height:100vh;overflow:hidden;position:relative;z-index:2}
/* 关闭按钮 - 侧边栏右上角，高度与其他按钮对齐 */
.wehow-lb-close{position:absolute;top:20px;right:8px;width:40px;height:40px;border:none;border-radius:50%;background:rgba(0,0,0,0.6);color:#fff;cursor:pointer;z-index:100001;display:flex;align-items:center;justify-content:center;transition:background .2s}
.wehow-lb-close:hover{background:rgba(255,255,255,0.2)}
.wehow-lb-close:hover{background:rgba(255,255,255,0.2);transform:scale(1.05)}
.wehow-lb-close i{font-size:20px}
/* 页码 - 左上角，与按钮高度对齐 */
.wehow-lb-counter{position:fixed;top:20px;left:20px;background:rgba(0,0,0,0.6);color:#fff;padding:10px 16px;border-radius:20px;font-size:14px;z-index:100000;font-weight:500;box-shadow:0 2px 8px rgba(0,0,0,0.3);line-height:1}
/* 主图区域 - flex:1 自动填充剩余空间 */
.wehow-lb-main{flex:1;min-width:0;position:relative;display:flex;align-items:center;justify-content:center}
/* 全屏按钮 - 图片区域右上角，与关闭按钮高度对齐 */
.wehow-lb-main-controls{position:absolute;top:20px;right:60px;display:flex;gap:10px;z-index:20}
.wehow-lb-fullscreen{width:40px;height:40px;border:none;border-radius:50%;background:rgba(0,0,0,0.6);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,0.3)}
.wehow-lb-fullscreen:hover{background:rgba(255,255,255,0.2)}
.wehow-lb-fullscreen i{font-size:20px}
/* 图片区域容器 */
.wehow-lb-image-wrap{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:grab;background:#000;display:flex;align-items:center;justify-content:center}
.wehow-lb-image-wrap:active{cursor:grabbing}
/* 图片滑动容器 */
.wehow-lb-images-slider{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
/* 图片样式 - 使用GPU加速确保动画流畅 */
.wehow-lb-main-image{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none;-webkit-user-drag:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;will-change:transform,opacity;flex-shrink:0}
.wehow-lb-img-current{z-index:3;opacity:1}
.wehow-lb-img-prev{z-index:1;opacity:0;pointer-events:none;position:absolute;transform:translateX(-100%)}
.wehow-lb-img-next{z-index:1;opacity:0;pointer-events:none;position:absolute;transform:translateX(100%)}
/* 加载动画 */
.wehow-lb-loading{position:absolute;inset:0;display:none;align-items:center;justify-content:center;z-index:10}
.wehow-lb-loading.active{display:flex}
.wehow-lb-spinner{width:50px;height:50px;border:4px solid rgba(255,255,255,0.2);border-top-color:#fff;border-radius:50%;animation:wehow-lb-spin 1s linear infinite}
@keyframes wehow-lb-spin{to{transform:rotate(360deg)}}
/* 翻页按钮 - 固定在图片区域两侧，无选中外圈 */
.wehow-lb-nav{position:absolute;top:50%;transform:translateY(-50%);width:54px;height:54px;border:none;border-radius:50%;background:rgba(0,0,0,0.6);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 10px rgba(0,0,0,0.4);padding:0;z-index:20;outline:none}
.wehow-lb-nav:focus{outline:none;box-shadow:0 2px 10px rgba(0,0,0,0.4)}
.wehow-lb-nav i{font-size:32px;display:flex;align-items:center;justify-content:center}
.wehow-lb-nav:hover{background:rgba(255,255,255,0.25);transform:translateY(-50%) scale(1.05)}
.wehow-lb-prev{left:15px}
.wehow-lb-next{right:15px}
/* 图片说明 - 相对于图片区域定位，紧贴图片底部 */
.wehow-lb-caption-wrap{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);display:flex;justify-content:center;pointer-events:none;z-index:20;max-width:calc(100% - 120px)}
.wehow-lb-caption{color:#fff;font-size:13px;text-align:center;line-height:1.4;background:rgba(0,0,0,0.2);padding:10px 20px;border-radius:4px;backdrop-filter:blur(2px);pointer-events:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
/* 移动端缩略图 - 固定在底部 */
.wehow-lb-thumbs-mobile{display:none;position:fixed;bottom:60px;left:0;right:0;height:80px;overflow-x:auto;overflow-y:hidden;padding:10px 0;background:rgba(0,0,0,0.8);backdrop-filter:blur(4px);z-index:10;-webkit-overflow-scrolling:touch}
.wehow-lb-thumbs-inner{display:flex;gap:10px;padding:0 20px;min-width:min-content;height:100%}
.wehow-lb-thumbs-inner .wehow-lb-thumb{flex-shrink:0;width:80px;height:60px;border-radius:6px;overflow:hidden;cursor:pointer;border:2px solid transparent;transition:border-color .2s,transform .2s;background:rgba(255,255,255,0.05)}
.wehow-lb-thumbs-inner .wehow-lb-thumb:hover{border-color:rgba(255,255,255,0.4);transform:scale(1.05)}
.wehow-lb-thumbs-inner .wehow-lb-thumb.active{border-color:#fff}
.wehow-lb-thumbs-inner .wehow-lb-thumb img{width:100%;height:100%;object-fit:cover;display:block}
/* 右侧侧边栏 - 加宽以容纳4列缩略图，固定宽度 */
.wehow-lb-sidebar{width:360px;height:100vh;background:rgba(15,15,15,0.98);border-left:1px solid rgba(255,255,255,0.1);padding:60px 0 20px 0;display:flex;flex-direction:column;overflow:hidden;flex-shrink:0;box-sizing:border-box;scrollbar-width:thin;scrollbar-gutter:stable}
.wehow-lb-sidebar.hidden{display:none}
.wehow-lb-article-title{font-size:14px;font-weight:600;color:#fff;line-height:1.5;padding:0 15px 15px;border-bottom:1px solid rgba(255,255,255,0.1);margin-bottom:15px;flex-shrink:0;word-break:break-word}
/* GALLERY和SHARE标题 - 与PROJECT INFO左侧对齐 */
.wehow-lb-thumbs-title{font-size:11px;color:rgba(255,255,255,0.5);text-transform:uppercase;letter-spacing:1px;margin-bottom:12px;padding:0 15px}
/* 缩略图外层滚动容器 - 占满侧边栏宽度，滚动条在最右侧 */
.wehow-lb-thumbs-wrapper{width:360px;margin:0 0 16px 0;max-height:340px;min-height:200px;overflow-y:auto;overflow-x:visible;flex-shrink:0}
.wehow-lb-thumbs-wrapper::-webkit-scrollbar:horizontal{display:none}
.wehow-lb-thumbs-wrapper::-webkit-scrollbar{width:4px}
.wehow-lb-thumbs-wrapper::-webkit-scrollbar-track{background:rgba(255,255,255,0.05);border-radius:2px}
.wehow-lb-thumbs-wrapper::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.2);border-radius:2px}
/* 缩略图网格 - 纯缩略图内容，无overflow，outline可自由溢出 */
.wehow-lb-thumbs{display:grid;grid-template-columns:repeat(4,69px);grid-auto-rows:69px;gap:8px;padding:4px;width:300px;margin:0 auto}
/* 缩略图 - 尺寸微调与整体对齐 */
.wehow-lb-thumb{position:relative;width:69px;height:69px;border-radius:6px;overflow:visible;cursor:pointer;background:rgba(255,255,255,0.05);box-sizing:border-box;flex-shrink:0;transition:outline .2s}
.wehow-lb-thumb img{width:69px;height:69px;border-radius:6px;object-fit:cover;display:block;box-sizing:border-box}
/* 选中状态使用outline，允许溢出显示（容器overflow-x:visible） */
.wehow-lb-thumb:hover{outline:2px solid rgba(255,255,255,0.4);outline-offset:0}
.wehow-lb-thumb.active{outline:2px solid #fff;outline-offset:0}
/* 分享按钮 - 与缩略图区域宽度对齐，左对齐 */
.wehow-lb-actions{border-top:1px solid rgba(255,255,255,0.1);padding:20px 15px;margin-bottom:20px;flex-shrink:0}
.wehow-lb-share-label{font-size:11px;color:rgba(255,255,255,0.5);margin-bottom:12px;text-transform:uppercase;letter-spacing:1px}
.wehow-lb-share-buttons{display:flex;justify-content:flex-start;gap:10px;width:300px;margin:0 auto}
.wehow-lb-share-btn{position:relative;width:52px;height:52px;border:none;border-radius:8px;background:rgba(255,255,255,0.1);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s,transform .2s}
.wehow-lb-share-btn:hover{background:rgba(255,255,255,0.2);transform:translateY(-2px)}
.wehow-lb-share-btn i{font-size:20px}
/* 微信hover悬浮 */
.wehow-lb-share-btn[data-share="wechat"] .wehow-lb-wechat-qr{display:none;position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background:#fff;border-radius:12px;padding:15px;margin-bottom:10px;box-shadow:0 4px 20px rgba(0,0,0,0.3);z-index:100}
.wehow-lb-share-btn[data-share="wechat"]:hover .wehow-lb-wechat-qr{display:block}
.wehow-lb-share-btn[data-share="wechat"] .wehow-lb-wechat-qr::after{content:'';position:absolute;top:100%;left:50%;transform:translateX(-50%);border:8px solid transparent;border-top-color:#fff}
.wehow-lb-wechat-qr img,.wehow-lb-wechat-qr canvas{width:150px!important;height:150px!important}
/* 项目信息 - 宽度与缩略图和分享按钮对齐 */
.wehow-lb-project-info{border-top:1px solid rgba(255,255,255,0.1);padding:20px 15px;overflow-y:auto;flex-shrink:1;min-height:0}
.wehow-lb-project-info:empty{display:none}
.wehow-lb-project-title{font-size:11px;color:rgba(255,255,255,0.5);text-transform:uppercase;letter-spacing:1px;margin-bottom:12px}
.wehow-lb-project-items{display:flex;flex-direction:column;gap:8px;width:300px;margin:0 auto}
.wehow-lb-project-item{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid rgba(255,255,255,0.05)}
.wehow-lb-project-item:last-child{border-bottom:none}
.wehow-lb-project-label{color:rgba(255,255,255,0.5);font-size:12px;flex-shrink:0}
.wehow-lb-project-value{color:#fff;font-size:12px;font-weight:500;text-align:right;word-break:break-word}
/* 移动端底部栏 */
.wehow-lb-mobile-bar{display:none;position:fixed;bottom:0;left:0;right:0;background:rgba(0,0,0,0.9);padding:12px 20px;justify-content:center;gap:20px;border-top:1px solid rgba(255,255,255,0.1);z-index:100000}
.wehow-lb-mobile-bar.active{display:flex}
.wehow-lb-mobile-action{display:flex;align-items:center;gap:8px;padding:10px 24px;border:none;border-radius:24px;background:rgba(255,255,255,0.1);color:#fff;cursor:pointer;font-size:14px;transition:background .2s}
.wehow-lb-mobile-action:hover{background:rgba(255,255,255,0.2)}
.wehow-lb-mobile-action i{font-size:18px}
/* 微信弹窗 */
.wehow-lb-wechat-modal{position:fixed;inset:0;z-index:100002;display:flex;align-items:center;justify-content:center}
.wehow-lb-wechat-overlay{position:absolute;inset:0;background:rgba(0,0,0,0.8)}
.wehow-lb-wechat-content{position:relative;background:#fff;border-radius:12px;padding:30px;text-align:center;z-index:1;min-width:280px}
.wehow-lb-wechat-close{position:absolute;top:10px;right:10px;width:32px;height:32px;border:none;border-radius:50%;background:rgba(0,0,0,0.1);cursor:pointer;display:flex;align-items:center;justify-content:center}
.wehow-lb-wechat-close:hover{background:rgba(0,0,0,0.2)}
.wehow-lb-wechat-close i{font-size:18px;color:#333}
.wehow-lb-wechat-title{font-size:18px;font-weight:600;color:#333;margin-bottom:20px}
.wehow-lb-wechat-qr-modal{width:200px;height:200px;margin:0 auto 20px;background:#f5f5f5;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.wehow-lb-wechat-qr-modal img,.wehow-lb-wechat-qr-modal canvas{max-width:100%;max-height:100%}
.wehow-lb-wechat-tip{font-size:13px;color:#666;line-height:1.6}
/* Toast */
.wehow-lb-toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%) translateY(20px);background:rgba(0,0,0,0.9);color:#fff;padding:12px 28px;border-radius:28px;font-size:14px;opacity:0;transition:opacity .3s,transform .3s;z-index:100001;pointer-events:none}
.wehow-lb-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
/* 响应式 - Pad按比例缩小侧边栏，但缩略图尺寸不变 */
@media(max-width:1024px){
.wehow-lb-sidebar{width:280px}
.wehow-lb-thumbs-wrapper{width:280px}
.wehow-lb-thumbs{grid-template-columns:repeat(4,59px);grid-auto-rows:59px;width:260px}
.wehow-lb-thumb{width:59px;height:59px}
.wehow-lb-thumb img{width:59px;height:59px}
.wehow-lb-share-buttons{width:260px;gap:8px}
.wehow-lb-share-btn{width:46px;height:46px}
.wehow-lb-project-items{width:260px}
.wehow-lb-next{right:10px}
.wehow-lb-prev{left:10px}
}
@media(max-width:768px){
.wehow-lb-sidebar{display:none!important}
.wehow-lb-main-controls{display:none!important}
.wehow-lb-close{top:20px;right:15px;width:40px;height:40px;border-radius:50%}
.wehow-lb-close i{font-size:20px}
.wehow-lb-counter{top:20px;left:20px;font-size:12px;padding:10px 14px}
.wehow-lb-nav{width:44px;height:44px}
.wehow-lb-nav i{font-size:24px}
.wehow-lb-thumbs-mobile{display:none!important}
.wehow-lb-mobile-bar.active{display:flex!important}
.wehow-lb-caption{font-size:12px;padding:8px 16px;background:rgba(0,0,0,0.2)}
.wehow-lb-caption-wrap{bottom:72px;max-width:calc(100% - 40px)}
.wehow-lb-share-btn[data-share="wechat"] .wehow-lb-wechat-qr{display:none!important}
}
@media(max-width:480px){
.wehow-lb-thumbs-inner .wehow-lb-thumb{width:60px;height:45px}
.wehow-lb-thumbs-inner{gap:8px}
}