/* 参考素材 · reference gallery + lightbox  (2026-10-30) */

/* ---- 画廊 ---- */
.refs-page{padding:48px 56px 22px}
.refs-title{font-size:26px;line-height:1.35;letter-spacing:-.02em;margin:0 0 7px}
.refs-lede{margin:0 0 18px;font-size:12.5px;line-height:1.9;color:#7a7c79}
.refs-jump{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 32px}
.refs-jump a{font-size:12px;line-height:1.6;color:#6d4a44;text-decoration:none;border:1px solid #e5e0d8;background:#faf8f5;border-radius:999px;padding:4px 12px}
.refs-jump a:hover{background:#f4ece6;border-color:#d9cec2}
.refs-group{margin:0 0 38px;scroll-margin-top:110px}
.refs-group-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;border-top:2px solid #343b3c;padding-top:17px;margin:0 0 9px}
.refs-group-head h3{font-size:18px;line-height:1.3;letter-spacing:.01em;margin:0}
.refs-group-head small{font-size:10px;letter-spacing:.19em;color:#a6a79f;font-weight:600}
.refs-group-head span{margin-left:auto;font-size:11.5px;color:#9a9c94;letter-spacing:.04em}
.refs-group-note{margin:0 0 22px;font-size:12.5px;line-height:1.85;color:#83867f}
.refs-row{margin:0 0 24px}
.refs-row:last-child{margin-bottom:0}
.refs-row-title{margin:0 0 9px;font-size:11px;letter-spacing:.15em;color:var(--accent);font-weight:700}
.refs-strip{--refs-tile-h:176px;display:flex;flex-wrap:wrap;gap:16px 13px;align-items:flex-start}
.refs-tile{display:block;width:calc(var(--refs-tile-h) * var(--ar,1.5));max-width:100%;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:zoom-in;border-radius:5px}
.refs-tile .refs-shot{display:block;width:100%;height:auto;aspect-ratio:var(--ar,1.5);object-fit:cover;border-radius:4px;border:1px solid #e7e4dc;background:#efeee9;box-shadow:0 3px 12px #342e2110;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.refs-tile:hover .refs-shot,.refs-tile:focus-visible .refs-shot{transform:translateY(-2px);box-shadow:0 10px 24px #342e2124;border-color:#d5cec3}
.refs-tile:focus-visible{outline:3px solid #b9795f;outline-offset:3px}
.refs-name{display:block;margin-top:7px;font-size:11.5px;line-height:1.55;color:#4f5653}

/* ---- 参考视频 ---- */
.refs-video-group{margin-bottom:34px}
.refs-video-frame{margin:0 0 28px}
.refs-video-frame:last-child{margin-bottom:0}
.refs-video-cap{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin:0 0 9px;font-size:13px;line-height:1.5;color:#3f4643}
.refs-video-cap b{font-weight:650;letter-spacing:.01em}
.refs-video-cap span{flex:0 0 auto;font-size:11.5px;letter-spacing:.05em;color:#9a9c94}
.refs-video{display:block;width:100%;height:auto;max-height:min(64vh,560px);background:#0c0b0a;border-radius:5px;border:1px solid #e6e4dd;box-shadow:0 6px 20px #342e2118;object-fit:contain}
.refs-video-desc{margin:9px 0 0;font-size:12.5px;line-height:1.8;color:#83867f}

/* ---- 大图 ---- */
.refs-lightbox{position:fixed;inset:0;z-index:210;display:flex;flex-direction:column;gap:12px;padding:20px 18px 16px;background:#141211f2;backdrop-filter:blur(9px);color:#f4f1ea}
.refs-lightbox[hidden]{display:none}
.refs-lb-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;gap:8px}
.refs-lb-frame{position:relative;flex:1;min-width:0;height:100%;display:flex;align-items:center;justify-content:center}
.refs-lb-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:3px;filter:blur(4px);opacity:.8;transition:opacity .2s ease}
.refs-lb-img{position:relative;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:3px;box-shadow:0 22px 62px #00000080;opacity:0;transition:opacity .22s ease}
.refs-lb-frame.is-loaded .refs-lb-img{opacity:1}
.refs-lb-frame.is-loaded .refs-lb-thumb{opacity:0}
.refs-lb-nav{flex:0 0 auto;width:46px;height:46px;border-radius:50%;border:1px solid #ffffff2e;background:#ffffff14;color:#fff;font-size:21px;line-height:1;display:grid;place-items:center;cursor:pointer;transition:background .16s ease,transform .16s ease}
.refs-lb-nav:hover{background:#ffffff2e}
.refs-lb-nav:active{transform:scale(.94)}
.refs-lb-close{position:absolute;top:12px;right:14px;z-index:2;width:40px;height:40px;border-radius:50%;border:1px solid #ffffff2e;background:#ffffff14;color:#fff;font-size:21px;line-height:1;display:grid;place-items:center;cursor:pointer}
.refs-lb-close:hover{background:#ffffff2e}
.refs-lb-caption{text-align:center;padding-bottom:2px}
.refs-lb-caption strong{display:block;font-size:16px;font-weight:650;letter-spacing:.02em;color:#f7f4ee}
.refs-lb-caption span{display:block;margin-top:5px;font-size:11.5px;letter-spacing:.05em;color:#a9a29a}
.refs-lightbox :focus-visible{outline:3px solid #e8c9ad;outline-offset:3px}
html.refs-locked,body.refs-locked{overflow:hidden}

@media(max-width:1320px){.refs-page{padding:42px 44px 20px}}
@media(max-width:750px){
  .refs-page{padding:30px 22px 16px}
  .refs-title{font-size:22px}
  .refs-strip{--refs-tile-h:150px;gap:13px 10px}
  .refs-group{margin-bottom:30px}
  .refs-lightbox{padding:14px 10px 12px}
  .refs-lb-stage{gap:2px}
  .refs-lb-nav{width:34px;height:34px;font-size:17px}
  .refs-lb-caption strong{font-size:14px}
  .refs-lb-caption span{font-size:10.5px}
  /* 四个阅读版本在窄屏会超出，改成两行两列 */
  .version-options{flex-wrap:wrap}
  .version-options button{flex:1 1 calc(50% - 3px);padding:6px 9px;font-size:12.5px}
  .refs-group{scroll-margin-top:200px}
}
@media print{.refs-lightbox{display:none!important}}
