/**
 * PIXBOOM Case Study — 页面专属布局（.wd-px-* 前缀）。
 * 来源：dotnfilm-optisolex/project/PIXBOOM Case Study v2.dc.html 内联 style 抽取。
 * 共享暗色底沿用 --wd-* token（design-system.css）。
 * 浅色 Showcase 反白区（原型 bg #F2F1EE / 文字 #0A0A0A）在 .wd-px-light 局部覆盖同名 --wd-* 语义
 * token（照 gravity .wd-gv-notes-section 手法）——段内所有元件自动切深色文字，不逐元素硬编码、不污染共享层。
 * 构图性渐变遮罩用 rgba(10,10,10,x)（= --wd-bg #0A0A0A 底色；CSS 渐变无法对 var 直接加 alpha，
 * 故保留字面 rgba 并注明对应 token）。原型无视频槽，无 .wd-film-card 相关样式。
 * 桌面优先，多列 grid / 卡片在 ≤768px 单列降级；ticker 与 showcase 横向内容父容器 overflow-hidden。
 */

/* ---------- 通用排版元件 ---------- */
.wd-px-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-accent);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}
.wd-px-eyebrow__link { color: var(--wd-accent); }
.wd-px-eyebrow__link:hover { color: var(--wd-accent-hover); }
.wd-px-h2 {
    margin: 0 0 24px;
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.wd-px-h2--flush { margin: 0; }
.wd-px-p {
    margin: 0 0 16px;
    color: var(--wd-text-2);
    text-wrap: pretty;
}
.wd-px-p:last-child { margin-bottom: 0; }
.wd-px-sidelabel {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-text-3);
}
.wd-px-accent { color: var(--wd-accent); }

/* ---------- Hero（原型 34-42 行） ---------- */
.wd-px-hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.wd-px-hero__img,
.wd-px-hero__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wd-px-hero__img { filter: grayscale(1) contrast(1.02) brightness(0.66); }
/* 构图遮罩：rgba(10,10,10,x) = --wd-bg 底色叠加渐变 */
.wd-px-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.08) 40%, rgba(10, 10, 10, 0.92) 100%);
}
.wd-px-hero__inner {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px 56px;
    box-sizing: border-box;
}
.wd-px-hero__title {
    margin: 0;
    font-size: clamp(48px, 8vw, 112px);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.035em;
    max-width: 1100px;
    text-wrap: balance;
}
.wd-px-hero__lede {
    margin: 24px 0 0;
    font-size: clamp(17px, 1.8vw, 22px);
    color: var(--wd-text-2);
    max-width: 640px;
    text-wrap: pretty;
}

/* ---------- Ticker（原型 44-63 行）：始终显示的纯 CSS 滚动条带 ---------- */
@keyframes wd-px-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wd-px-ticker {
    border-top: 1px solid var(--wd-line);
    border-bottom: 1px solid var(--wd-line);
    overflow: hidden;
    padding: 20px 0;
    background: var(--wd-bg);
}
.wd-px-ticker__track {
    display: flex;
    width: max-content;
    animation: wd-px-ticker 32s linear infinite;
}
.wd-px-ticker__group {
    display: flex;
    gap: 48px;
    padding-right: 48px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.wd-px-ticker__dot { color: var(--wd-accent); }
@media (prefers-reduced-motion: reduce) {
    .wd-px-ticker__track { animation: none; }
}

/* ---------- Statement（原型 65-87 行） ---------- */
.wd-px-statement {
    padding-top: 128px;
    padding-bottom: 128px;
}
.wd-px-statement__label { margin-bottom: 32px; }
.wd-px-statement__lead {
    margin: 0;
    font-size: clamp(30px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 1000px;
    text-wrap: balance;
}
.wd-px-statement__body {
    margin: 32px 0 0;
    max-width: 680px;
}
.wd-px-layers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 64px;
}
.wd-px-layer {
    border: 1px solid var(--wd-line);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-px-layer:hover { border-color: var(--wd-accent); }
.wd-px-layer__num { font-size: 14px; color: var(--wd-text-3); margin-bottom: 8px; }
.wd-px-layer__title {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}
.wd-px-layer__desc { font-size: 15px; color: var(--wd-text-2); text-wrap: pretty; }
.wd-px-statement__stack { margin-top: 24px; font-size: 14px; color: var(--wd-text-3); }

/* ---------- Showcase（原型 89-160 行）：亮色反白区 ---------- */
/* 原型 bg #F2F1EE / 文字 #0A0A0A。局部覆盖同名语义 token → 段内元件自动切深色，不进共享层。 */
.wd-px-light {
    --wd-surface: #F2F1EE;   /* 反白区底色（原型专属） */
    --wd-text: #0A0A0A;      /* 反白区主文字 */
    --wd-text-2: #3A3937;    /* 反白区正文（原型 community/archive 描述用色） */
    --wd-text-3: #6E6D6A;    /* 反白区弱文字（原型此处仍用中灰） */
    --wd-line: #D9D7D1;      /* 反白区分隔线 / 图片描边 */
    background: var(--wd-surface);
    color: var(--wd-text);
}
.wd-px-showcase {
    padding-top: 112px;
    padding-bottom: 128px;
}
.wd-px-showcase__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 48px;
}
.wd-px-showcase__note { font-size: 14px; color: var(--wd-text-3); }

/* 交互 walkthrough CTA：浅底 Showcase 里的一块深底反差卡。
   本卡处于 .wd-px-light 作用域（token 已被覆盖为深色文字），需在卡内把同名语义 token
   还原回共享暗色主题值（照 gravity 局部覆盖手法），段内文字自动切浅色，不逐元素硬编码。 */
.wd-px-walkthrough {
    --wd-surface: #141313;   /* 还原暗色 surface（原型深底卡） */
    --wd-text: #F2F1EE;      /* 还原暗色主文字 */
    --wd-text-2: #A8A7A3;    /* 还原暗色正文 */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 32px;
    margin-bottom: 64px;
    background: var(--wd-bg);
    color: var(--wd-text);
    border-radius: 12px;
}
.wd-px-walkthrough__title {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.025em;
    color: var(--wd-text);
}
.wd-px-walkthrough__note { font-size: 15px; color: var(--wd-text-2); margin-top: 4px; }
.wd-px-walkthrough__cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    background: var(--wd-accent);
    color: var(--wd-bg);
    font-weight: 500;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 980px;
    white-space: nowrap;
    transition: background 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-px-walkthrough:hover .wd-px-walkthrough__cta { background: var(--wd-accent-hover); }
.wd-px-walkthrough:hover { color: var(--wd-text); }

/* 首页大截图外链 */
.wd-px-shot {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--wd-line);
    transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
    /* 原型 box-shadow 0 2px 12px rgba(0,0,0,0.04)：浅底轻投影，构图性，保留字面 rgba */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.wd-px-shot:hover { border-color: var(--wd-accent); }
.wd-px-shot__img,
.wd-px-shot__img img {
    width: 100%;
    display: block;
}
.wd-px-shot__caption {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 4px 0;
    font-size: 14px;
    color: var(--wd-text-3);
}
.wd-px-shot__caption-strong { color: var(--wd-text); font-weight: 500; }

/* 3 列特性截图 */
.wd-px-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 64px;
}
.wd-px-feature__img,
.wd-px-feature__img img {
    width: 100%;
    border-radius: 12px;
    display: block;
    border: 1px solid var(--wd-line);
}
.wd-px-feature__caption { padding: 12px 4px 0; font-size: 14px; color: var(--wd-text-3); }

/* Community / Archive 两栏 */
.wd-px-split {
    display: grid;
    gap: 24px;
    margin-top: 96px;
    align-items: start;
}
.wd-px-split--community { grid-template-columns: 1.5fr 1fr; }
.wd-px-split--archive { grid-template-columns: 1fr 1.5fr; }
.wd-px-split__aside { position: sticky; top: 96px; }
.wd-px-split__kicker {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-text-3);
    margin-bottom: 16px;
}
.wd-px-split__title {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--wd-text);
}
.wd-px-split__p { margin: 0 0 16px; color: var(--wd-text-2); font-size: 15px; text-wrap: pretty; }
.wd-px-split__p--last { margin-bottom: 0; }
.wd-px-split__stack { display: grid; gap: 24px; }
.wd-px-split__img,
.wd-px-split__img img {
    width: 100%;
    border-radius: 12px;
    display: block;
    border: 1px solid var(--wd-line);
}
.wd-px-split__img--sub { margin-top: 24px; }

/* 展会 landing pages（3 列，第三列窄） */
.wd-px-shows { margin-top: 96px; }
.wd-px-shows__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-text-3);
    margin-bottom: 24px;
}
.wd-px-shows__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.62fr;
    gap: 24px;
    align-items: start;
}
.wd-px-shows__img,
.wd-px-shows__img img {
    width: 100%;
    border-radius: 12px;
    display: block;
    border: 1px solid var(--wd-line);
}

/* ---------- Running log（原型 162-211 行） ---------- */
.wd-px-log-section { border-top: 1px solid var(--wd-line); }
.wd-px-log {
    padding-top: 112px;
    padding-bottom: 112px;
}
.wd-px-log__intro { max-width: 760px; margin-bottom: 80px; }
.wd-px-log__h2 { margin-bottom: 24px; }
.wd-px-log__body {
    display: grid;
    grid-template-columns: minmax(160px, 300px) 1fr;
    gap: 64px;
    align-items: start;
}
.wd-px-log__rail { position: sticky; top: 120px; }
.wd-px-log__rail-num {
    font-size: clamp(80px, 10vw, 160px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--wd-accent);
}
.wd-px-log__rail-label {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-top: 16px;
}
.wd-px-log__rail-hint { font-size: 14px; color: var(--wd-text-3); margin-top: 24px; }
.wd-px-step {
    padding: 40px 0;
    border-top: 1px solid var(--wd-line);
}
.wd-px-step__head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
}
.wd-px-step__title {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.025em;
}
.wd-px-step__num { color: var(--wd-text-3); margin-right: 8px; }
.wd-px-step__tag { font-size: 14px; color: var(--wd-text-3); white-space: nowrap; }
.wd-px-step__desc { margin: 0; color: var(--wd-text-2); max-width: 620px; text-wrap: pretty; }
.wd-px-step--now { padding-bottom: 8px; }
.wd-px-step__pulse-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 8px;
    margin-top: 16px;
    font-weight: 500;
}
/* 脉冲点（原型 ds-pulse）：纯 CSS，reduced-motion 停止 */
@keyframes wd-px-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.wd-px-pulse {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 980px;
    background: var(--wd-accent);
    animation: wd-px-pulse 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@media (prefers-reduced-motion: reduce) {
    .wd-px-pulse { animation: none; }
}
.wd-px-log__constant {
    margin-top: 48px;
    padding: 32px;
    background: var(--wd-surface);
    border-radius: 12px;
}
.wd-px-log__constant-label { font-size: 14px; font-weight: 500; color: var(--wd-text-3); margin-bottom: 8px; }
.wd-px-log__constant-text { margin: 0; color: var(--wd-text); font-weight: 500; text-wrap: pretty; }

/* ---------- Methodology（原型 213-217 行） ---------- */
.wd-px-methodology {
    max-width: 980px;
    padding-top: 128px;
    padding-bottom: 128px;
    text-align: left;
}
.wd-px-methodology__label { margin-bottom: 24px; }
.wd-px-methodology__lead {
    margin: 0;
    font-size: clamp(28px, 3.6vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.wd-px-methodology__body {
    margin: 32px 0 0;
    max-width: 700px;
}

/* ---------- Closing（原型 219-229 行） ---------- */
.wd-px-closing {
    position: relative;
    min-height: 64vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-top: 1px solid var(--wd-line);
}
.wd-px-closing__img,
.wd-px-closing__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right bottom;
    transform: scale(1.45);
    transform-origin: right bottom;
    filter: brightness(0.7);
}
/* 构图遮罩：双向渐变，rgba(10,10,10,x) = --wd-bg 底色叠加 */
.wd-px-closing__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.25) 45%, rgba(10, 10, 10, 0.92) 100%),
        linear-gradient(100deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 38%, rgba(10, 10, 10, 0) 65%);
}
.wd-px-closing__inner {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 96px 32px 80px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}
.wd-px-closing__copy { max-width: 640px; }
.wd-px-closing__eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-text-2);
    margin-bottom: 16px;
}
.wd-px-closing__title {
    font-size: clamp(34px, 4.5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
}
.wd-px-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--wd-accent);
    color: var(--wd-bg);
    font-weight: 500;
    font-size: 17px;
    padding: 16px 32px;
    border-radius: 980px;
    white-space: nowrap;
    transition: background 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-px-cta:hover { background: var(--wd-accent-hover); color: var(--wd-bg); }
.wd-px-cta:active { background: var(--wd-accent-active); color: var(--wd-bg); }

/* ==========================================================================
   响应式：多列 grid ≤768px 单列降级（原型桌面优先）
   ========================================================================== */
@media (max-width: 768px) {
    .wd-px-statement { padding-top: 80px; padding-bottom: 80px; }

    .wd-px-showcase { padding-top: 72px; padding-bottom: 80px; }
    .wd-px-walkthrough { padding: 20px 24px; }

    /* 两栏区单列堆叠：sticky 文字回到静态流，archive 文字列还原到图片之上 */
    .wd-px-split--community,
    .wd-px-split--archive {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 64px;
    }
    .wd-px-split__aside { position: static; top: auto; }
    .wd-px-split__aside--left { order: -1; }

    /* 展会 3 列 → 单列 */
    .wd-px-shows { margin-top: 64px; }
    .wd-px-shows__grid { grid-template-columns: 1fr; }

    /* Running log 单列：sticky 区块回静态流 */
    .wd-px-log { padding-top: 72px; padding-bottom: 72px; }
    .wd-px-log__intro { margin-bottom: 48px; }
    .wd-px-log__body { grid-template-columns: 1fr; gap: 32px; }
    .wd-px-log__rail { position: static; top: auto; }
    .wd-px-log__rail-num { font-size: clamp(64px, 18vw, 96px); }

    .wd-px-methodology { padding-top: 88px; padding-bottom: 88px; }
    .wd-px-closing__inner { padding: 72px 32px 56px; }
}
