/* ==========================================================================
   work.css —— 师生作品详情页（work-detail.html）专用版式
   ========================================================================== */

.wk-wrap { max-width: 980px; margin: 0 auto; padding: 34px 20px 8px; }
.wk-cat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--red); background: rgba(230,0,35,.08); padding: 5px 12px; border-radius: 999px; }
.wk-title { margin-top: 14px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: #211922; line-height: 1.45; }
.wk-sub { font-size: 13.5px; color: var(--ink-3); margin: 12px 0 22px; }
.wk-fig { text-align: center; }
.wk-fig img { max-width: 100%; max-height: 78vh; border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.14); }

/* ===== 多图图集 ===== */
.wk-gal__stage { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.14); background:#1A1715; cursor: zoom-in; }
.wk-gal__stage img { width: 100%; max-height: 74vh; object-fit: contain; display: block; background:#111; }
.wk-gal__count { position: absolute; right: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12.5px; letter-spacing: .05em; }
.wk-gal__thumbs-wrap { position: relative; margin-top: 14px; padding: 0 22px; }
.wk-gal__thumbs { display: flex; flex-wrap: nowrap; gap: 10px; margin-top: 0; justify-content: flex-start; overflow-x: auto; scroll-behavior: smooth; padding: 4px 2px; scrollbar-width: none; }
.wk-gal__thumbs::-webkit-scrollbar { display: none; }
.wk-gal__thumb { width: 76px; height: 96px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; opacity: .72; transition: all .18s; background:#F0EDE8; flex: 0 0 auto; }
.wk-gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-gal__thumb:hover { opacity: 1; }
.wk-gal__thumb.is-on { border-color: var(--red); opacity: 1; }
.wk-gal__tharr { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: 0; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; transition: background .18s; padding: 0; }
.wk-gal__tharr:hover { background: rgba(0,0,0,.85); }
.wk-gal__tprev { left: -8px; } .wk-gal__tnext { right: -8px; }
.wk-gal__tharr:disabled { opacity: .25; cursor: not-allowed; }

/* 灯箱 */
.wk-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(10,8,8,.94); display: none; align-items: center; justify-content: center; flex-direction: column; }
.wk-lightbox.is-show { display: flex; }
.wk-lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.wk-lightbox__close { position: absolute; top: 22px; right: 26px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; cursor: pointer; }
.wk-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; }
.wk-lightbox__prev { left: 22px; } .wk-lightbox__next { right: 22px; }
.wk-lightbox__cap { margin-top: 14px; color: rgba(255,255,255,.8); font-size: 13px; }

/* 主图左右切换箭头（仅多图显示） */
.wk-gal__arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(0,0,0,.35); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; align-items: center; justify-content: center; padding: 0 0 3px; transition: background .18s, opacity .18s; }
.wk-gal__arr:hover { background: rgba(0,0,0,.62); }
.wk-gal__prev { left: 14px; } .wk-gal__next { right: 14px; }
@media (max-width:720px){ .wk-gal__arr{ width: 38px; height: 38px; font-size: 22px; } .wk-gal__prev{ left: 8px; } .wk-gal__next{ right: 8px; } }

.wk-desc { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 2.05; color: var(--ink-2); }
.wk-desc p { margin: 0 0 16px; }
.wk-desc__cta { margin: 0; padding: 12px 16px; border-radius: 10px; background: #FAF7F4; font-size: 14.5px; line-height: 1.9; color: var(--ink-3); }
.wk-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.wk-back { color: var(--red); font-weight: 700; text-decoration: none; font-size: 13.5px; }
.wk-back:hover { text-decoration: underline; }
.wk-foot__tel { font-size: 13.5px; color: var(--ink-3); }
.wk-foot__tel a { color: var(--red); font-weight: 700; text-decoration: none; }
@media (max-width: 720px) { .wk-wrap { padding: 22px 16px 4px; } }