/**
 * Work 案例设计系统共享层 — token + 通用组件（nav/footer/lightbox/reveal）。
 * 来源：Claude Design「dotnfilm Studio Design System」（handoff 包 _ds/）。
 * plain CSS 直接 enqueue，不经 PostCSS 构建。设计页专属，不进主站资源。
 */
:root {
    --wd-bg: #0A0A0A;
    --wd-surface: #141313;
    --wd-line: #2A2927;
    --wd-line-soft: rgba(242, 241, 238, 0.25);
    --wd-text: #F2F1EE;
    --wd-text-2: #A8A7A3;
    --wd-text-3: #6E6D6A;
    --wd-accent: #BDF37F;
    --wd-accent-hover: #CBF995;
    --wd-accent-active: #A9E36A;
    --wd-font: 'Helvetica Neue', 'Helvetica', 'Inter Tight', 'Arial', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

.wd-page {
    margin: 0;
    background: var(--wd-bg);
    color: var(--wd-text);
    font-family: var(--wd-font);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.022em;
}
.wd-page a { color: var(--wd-text); text-decoration: none; }
.wd-page a:hover { color: var(--wd-accent); }
.wd-page ::selection { background: var(--wd-accent); color: var(--wd-bg); }

/* 布局容器 */
.wd-container { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
@media (max-width: 640px) { .wd-container { padding-left: 20px; padding-right: 20px; } }

/* 共享 nav（sticky 暗色，磨砂） */
.wd-nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 32px;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--wd-line);
}
.wd-nav__logo { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.wd-nav__right { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.wd-nav__crumb { color: var(--wd-text-3); }
.wd-nav__crumb span { color: var(--wd-text); }
.wd-nav__contact { color: var(--wd-text-2); }

/* 共享 footer */
.wd-footer {
    border-top: 1px solid var(--wd-line);
    padding: 32px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 14px; color: var(--wd-text-3);
    max-width: 1200px; margin: 0 auto; box-sizing: border-box;
}
.wd-footer__logo { font-weight: 700; color: var(--wd-text); }

/* 滚动 reveal（IntersectionObserver 加 .wd-revealed 触发） */
@keyframes wd-reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
[data-wd-reveal] { opacity: 0; }
[data-wd-reveal].wd-revealed { animation: wd-reveal 600ms cubic-bezier(0.4, 0, 0.2, 1) both; }
@media (prefers-reduced-motion: reduce) {
    [data-wd-reveal] { opacity: 1; }
    [data-wd-reveal].wd-revealed { animation: none; }
}

/* 视频位卡片（可点触发弹窗） */
.wd-film-card { position: relative; border-radius: 8px; overflow: hidden; }
.wd-film-card picture, .wd-film-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wd-film-card__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0) 50%, rgba(10,10,10,0.7) 100%); }
.wd-film-card__bar { position: absolute; left: 24px; bottom: 20px; right: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wd-film-card__name { font-weight: 700; font-size: 22px; letter-spacing: -0.025em; }
.wd-film-card__meta { font-size: 14px; color: var(--wd-text-2); }
.wd-film-card__play {
    flex: none; width: 56px; height: 56px; border-radius: 980px;
    background: var(--wd-accent); color: var(--wd-bg);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.wd-film-card[data-wd-video]:hover .wd-film-card__play { background: var(--wd-accent-hover); }
.wd-film-card__play--ghost { background: transparent; color: var(--wd-text); border: 1px solid var(--wd-text); width: 44px; height: 44px; font-size: 15px; }
.wd-film-card[data-wd-video]:hover .wd-film-card__play--ghost { background: transparent; border-color: var(--wd-accent); color: var(--wd-accent); }

/* 缺图占位（helper 兜底输出） */
.wd-img-missing { min-height: 200px; background: var(--wd-surface); border: 1px dashed var(--wd-line); }

/* 视频弹窗（照 .artifact-lightbox 结构，独立类名不耦合） */
.wd-lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.wd-lightbox.hidden { display: none; }
.wd-lightbox__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.92); }
.wd-lightbox__stage { position: relative; width: min(1200px, 92vw); aspect-ratio: 16 / 9; background: #000; }
.wd-lightbox__player { width: 100%; height: 100%; border: 0; display: block; }
.wd-lightbox__close {
    position: absolute; top: 24px; right: 24px;
    background: none; border: 0; color: var(--wd-text); padding: 8px;
}
.wd-lightbox__close:hover { color: var(--wd-accent); }
body.wd-lightbox-open { overflow: hidden; }
