/* 作品集页专属样式 · 正式编辑风（与首页共用字体 / 配色变量 / 分隔线语言） */
.pf-hero { position: relative; padding: 130px 22px 56px; text-align: center; border-bottom: 1px solid var(--border); }
.pf-hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }
.pf-hero .section-tag { justify-content: center; }
.pf-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 6vw, 56px); margin: 10px 0 8px; letter-spacing: .5px; color: var(--text); }
.pf-hero p { color: var(--muted); font-family: var(--mono); letter-spacing: 2px; font-size: 12px; text-transform: uppercase; }

.pf-filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.pf-filters button { font-family: var(--mono); font-size: 13px; padding: 9px 18px; border-radius: 999px; cursor: pointer; background: transparent; border: 1px solid var(--border); color: var(--muted); transition: .25s; }
.pf-filters button:hover { color: var(--text); border-color: var(--border-strong); }
.pf-filters button.active { background: var(--primary); color: #fff; border-color: transparent; }

.pf-masonry { columns: 3; column-gap: 18px; padding: 10px 0 60px; max-width: var(--maxw); margin: 0 auto; }
@media (max-width: 880px) { .pf-masonry { columns: 2; } }
@media (max-width: 560px) { .pf-masonry { columns: 1; } }

.pf-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-brd); background: var(--glass-bg); backdrop-filter: blur(10px) saturate(150%); -webkit-backdrop-filter: blur(10px) saturate(150%); cursor: pointer; position: relative; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s, border-color .3s; }
.pf-item.in { opacity: 1; transform: none; }
.pf-item:hover { border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.pf-item img { width: 100%; display: block; transition: transform .5s; }
.pf-item:hover img { transform: scale(1.04); }
.pf-item .pf-badge { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; background: rgba(20,23,26,.7); color: #fff; backdrop-filter: blur(4px); }
.pf-item .pf-meta { padding: 14px 16px; }
.pf-item .pf-meta h3 { font-size: 15px; font-weight: 600; font-family: var(--display); color: var(--text); }
.pf-item .pf-meta p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.pf-item .pf-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; color: #fff; background: rgba(20,23,26,.28); opacity: 0; transition: opacity .3s; }
.pf-item:hover .pf-play { opacity: 1; }

.pf-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; display: none; background: rgba(15,18,16,.92); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb-stage { position: relative; width: min(92vw, 1180px); height: min(84vh, 860px); }
.lb-frame { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; will-change: transform, opacity; }
.lb-frame > img, .lb-frame > video {
  max-width: min(92vw, 1180px); max-height: min(84vh, 860px);
  width: auto; height: auto; object-fit: contain;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform-origin: center center; transition: transform .12s ease-out; will-change: transform;
}
.lb-frame.enter-right { animation: stackInRight .52s cubic-bezier(.2,.7,.2,1) both; }
.lb-frame.enter-left { animation: stackInLeft .52s cubic-bezier(.2,.7,.2,1) both; }
.lb-frame.exit-left { animation: stackOutLeft .52s cubic-bezier(.2,.7,.2,1) both; z-index: 0; }
.lb-frame.exit-right { animation: stackOutRight .52s cubic-bezier(.2,.7,.2,1) both; z-index: 0; }
@keyframes stackInRight { 0% { transform: translateX(70px) scale(.92); opacity: 0; } 100% { transform: translateX(0) scale(1); opacity: 1; } }
@keyframes stackInLeft { 0% { transform: translateX(-70px) scale(.92); opacity: 0; } 100% { transform: translateX(0) scale(1); opacity: 1; } }
@keyframes stackOutLeft { 0% { transform: translateX(0) scale(1); opacity: 1; } 100% { transform: translateX(-60px) scale(.82); opacity: 0; } }
@keyframes stackOutRight { 0% { transform: translateX(0) scale(1); opacity: 1; } 100% { transform: translateX(60px) scale(.82); opacity: 0; } }

.lb-close { position: absolute; top: 22px; right: 26px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: rgba(27,31,34,.6); color: #fff; cursor: pointer; backdrop-filter: blur(8px); display: grid; place-items: center; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border); background: rgba(27,31,34,.6); color: #fff; cursor: pointer; backdrop-filter: blur(8px); transition: background .25s, transform .25s; display: grid; place-items: center; }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-close:hover, .lb-nav:hover { background: var(--primary); border-color: transparent; color: #fff; }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }

/* 缩放控制条 */
.lb-zoom { position: absolute; top: 22px; right: 82px; display: flex; align-items: center; gap: 4px; z-index: 5; background: rgba(27,31,34,.6); border: 1px solid var(--border); border-radius: 999px; padding: 5px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lb-zoom button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; transition: background .2s; display: grid; place-items: center; }
.lb-zoom button:hover { background: var(--primary); }
.lb-zoom #lbZoomVal { color: #fff; font-family: var(--mono); font-size: 12px; min-width: 44px; text-align: center; user-select: none; }
.lb-cap { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); text-align: center; color: #fff; max-width: 80vw; }
.lb-cap .c-d { font-size: 13px; color: #b8c2bc; margin-top: 4px; }
.lb-counter { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: rgba(255,255,255,.72); }

.footer { border-top: 1px solid var(--border); padding: 36px 24px; text-align: center; color: var(--muted); font-size: 13px; }
.footer-admin { display: inline-block; margin-left: 12px; font-family: var(--mono); font-size: 12px; color: var(--primary); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; }
.footer-admin:hover { background: var(--surface); }
