/* ==========================================================================
   Workshop & Exhibitions — About 页「工厂车间 + 展会现场」区块
   --------------------------------------------------------------------------
   来源：oawell-light/about.html 的 .section--workshop 区块，移植进 oawell-web。
   约定：
   - 只作用于 .section--workshop / .ws-* 前缀，不污染全局。
   - 图片由 Html.WebPicture 输出单一 <img>（命中同名 .webp 时直接指向 webp）；
     大图与视频走独立 lightbox，不与证书墙的 #certLightbox 共用（避免样式串味）。
   - 视频首帧用 poster 占位；preload="none"，点开才下载（服务器出口带宽有限）。
   ========================================================================== */

.section--workshop{
  position:relative;padding:88px 0 96px;overflow:hidden;
  background:linear-gradient(168deg,#070f1a 0%,#0b1c30 55%,#070f1a 100%);
}
/* 两团柔光 + 顶部一条青蓝分隔线，呼应证书墙的暗色系 */
.section--workshop::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(680px 340px at 16% 0%,rgba(0,200,174,.13),transparent 70%),
             radial-gradient(780px 420px at 86% 100%,rgba(0,112,224,.17),transparent 72%);
}
.section--workshop::after{
  content:'';position:absolute;left:0;right:0;top:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(0,200,174,.5),rgba(0,112,224,.4),transparent);
}
.section--workshop .container{position:relative;z-index:2}
.section--workshop .section__title h2{color:#fff}
.section--workshop .section__title p{color:rgba(255,255,255,.6);max-width:680px}

/* ===== 卡片墙 ===== */
.ws-wall{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.ws-tile{
  position:relative;display:block;width:100%;aspect-ratio:4/5;padding:0;overflow:hidden;
  font:inherit;text-align:left;border:1px solid rgba(255,255,255,.1);border-radius:14px;
  background:#0c1725;cursor:pointer;
  box-shadow:0 20px 44px -26px rgba(0,0,0,.9);
  transition:border-color .35s,transform .35s,box-shadow .35s;
}
.ws-tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s cubic-bezier(.2,.7,.3,1)}
.ws-tile:hover{transform:translateY(-4px);border-color:rgba(0,200,174,.45);box-shadow:0 26px 54px -26px rgba(0,0,0,.95),0 0 0 1px rgba(0,200,174,.14)}
.ws-tile:hover img{transform:scale(1.05)}
.ws-tile:focus-visible{outline:2px solid #00c8ae;outline-offset:3px}

.ws-tile__scrim{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(4,10,18,0) 26%,rgba(4,10,18,.30) 58%,rgba(4,10,18,.92) 100%)}

/* 放大镜：照片卡右上角 */
.ws-tile__zoom{
  position:absolute;top:12px;right:12px;width:30px;height:30px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:#fff;
  background:rgba(6,14,24,.5);border:1px solid rgba(255,255,255,.32);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  opacity:0;transform:translateY(-4px);transition:opacity .3s,transform .3s,background .3s,border-color .3s;
}
.ws-tile:hover .ws-tile__zoom{opacity:1;transform:none;border-color:rgba(0,200,174,.7);background:rgba(0,200,174,.28)}
.ws-tile__zoom svg{width:14px;height:14px}

/* 播放按钮：视频卡居中 */
.ws-play{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.45);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  transition:background .35s,border-color .35s,transform .35s,box-shadow .35s;
}
.ws-play svg{width:22px;height:22px;margin-left:3px}
.ws-tile:hover .ws-play{background:rgba(0,200,174,.88);border-color:rgba(0,200,174,.95);transform:translate(-50%,-50%) scale(1.08);box-shadow:0 0 0 10px rgba(0,200,174,.12)}

/* 时长徽标：视频卡左上角 */
.ws-badge{
  position:absolute;top:13px;left:13px;display:inline-flex;align-items:center;gap:6px;
  white-space:nowrap;padding:4px 9px;border-radius:999px;
  font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:#04121f;background:rgba(0,200,174,.92);
}
.ws-badge svg{width:11px;height:11px}

/* 文案压在图底部 */
.ws-tile__cap{position:absolute;left:0;right:0;bottom:0;padding:16px 16px 15px;color:#fff;pointer-events:none}
.ws-tile__cap b{display:block;font-family:'Sora','Segoe UI',Roboto,Arial,sans-serif;font-size:13.5px;font-weight:700;letter-spacing:-.005em;margin-bottom:4px}
.ws-tile__cap span{display:block;font-size:11.5px;line-height:1.5;color:rgba(255,255,255,.62)}

/* ===== 分隔条：On the Show Floor ===== */
.ws-divider{
  display:flex;align-items:center;gap:16px;margin:52px 0 24px;
  font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(255,255,255,.5);
}
.ws-divider::before,.ws-divider::after{content:'';height:1px;flex:1;background:linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent)}
.ws-divider span{white-space:nowrap;display:inline-flex;align-items:center;gap:8px}
.ws-divider svg{width:13px;height:13px;color:#00c8ae;flex:none}

/* ===== 展会墙：2 列 16:10 ===== */
.ws-expo{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.ws-expo .ws-tile{aspect-ratio:16/10}
.ws-expo .ws-tile__cap{padding:14px 16px 13px}
.ws-expo .ws-tile__cap b{font-size:12.5px;margin-bottom:0;letter-spacing:.005em}

/* ===== Lightbox（视频 + 大图共用一个舞台） ===== */
.ws-lb{
  position:fixed;inset:0;z-index:1001;display:none;align-items:center;justify-content:center;
  padding:40px 24px;background:rgba(4,11,20,.95);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  opacity:0;transition:opacity .25s ease;
}
.ws-lb.is-open{display:flex;opacity:1}
.ws-lb__stage{max-width:min(1080px,92vw);max-height:100%;display:flex;flex-direction:column;gap:14px;align-items:center}
.ws-lb__img{display:none;max-width:100%;max-height:calc(100vh - 150px);width:auto;border-radius:6px;box-shadow:0 40px 90px -30px rgba(0,0,0,.95)}
.ws-lb__video{display:none;max-width:min(400px,86vw);max-height:calc(100vh - 110px);width:auto;border-radius:10px;background:#000;box-shadow:0 40px 90px -30px rgba(0,0,0,.95)}
.ws-lb.is-photo .ws-lb__img{display:block}
.ws-lb.is-film .ws-lb__video{display:block}
.ws-lb__cap{display:none;font-size:13px;font-weight:600;letter-spacing:.03em;color:rgba(255,255,255,.72);text-align:center}
.ws-lb.is-photo .ws-lb__cap{display:block}
.ws-lb__cap:empty{display:none!important}
.ws-lb__close{
  position:absolute;top:22px;right:26px;width:44px;height:44px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  font-size:22px;line-height:1;color:#fff;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.18);
  transition:background .2s,border-color .2s,transform .2s;
}
.ws-lb__close:hover{background:rgba(0,200,174,.2);border-color:rgba(0,200,174,.5);transform:rotate(90deg)}
body.lightbox-open{overflow:hidden}

/* ===== 响应式 ===== */
@media(max-width:1024px){
  .section--workshop{padding:72px 0 80px}
  .ws-wall{grid-template-columns:repeat(2,1fr);gap:14px}
}
@media(max-width:768px){
  .ws-expo{grid-template-columns:1fr}
  .ws-divider{margin:40px 0 20px;font-size:10px;letter-spacing:.12em}
  .ws-play{width:54px;height:54px}
  .ws-play svg{width:18px;height:18px}
  .ws-tile__cap{padding:13px 13px 12px}
  .ws-tile__cap b{font-size:12.5px}
  .ws-tile__cap span{font-size:10.5px}
  .ws-lb{padding:24px 14px}
  .ws-lb__close{top:12px;right:12px;width:38px;height:38px}
}
@media(max-width:430px){
  .ws-wall{grid-template-columns:1fr}
  .ws-expo .ws-tile{aspect-ratio:16/11}
}
