/**
 * QicoBay Case Study — 页面专属布局（.wd-qb-* 前缀）。
 * 来源：dotnfilm-optisolex 2/project/QicoBay Case Study.dc.html 内联 style 抽取。
 * 颜色一律引用共享层 --wd-* token（原型用色全部落在共享 token 表内，无需新增局部色）；
 * 构图性渐变遮罩用 rgba(10,10,10,x)（= --wd-bg #0A0A0A 底色，CSS 渐变无法直接对 var 加 alpha，
 * 故此处保留字面 rgba 并注明对应 token）。
 * 桌面优先，多列 grid 在 ≤768px 单列降级；gallery 父容器 overflow-hidden。
 */

/* ---------- 通用排版元件 ---------- */
.wd-qb-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-accent);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}
.wd-qb-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-qb-p {
    margin: 0 0 16px;
    color: var(--wd-text-2);
    text-wrap: pretty;
}
.wd-qb-p:last-child { margin-bottom: 0; }
.wd-qb-p--strong {
    color: var(--wd-text);
    font-weight: 500;
}
.wd-qb-em { color: var(--wd-text); font-weight: 500; }
.wd-qb-prose { max-width: 760px; }
.wd-qb-sidelabel {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-text-3);
}
.wd-qb-accent { color: var(--wd-accent); }

/* ---------- Hero（原型 32-46 行） ---------- */
.wd-qb-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.wd-qb-hero__img,
.wd-qb-hero__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}
.wd-qb-hero__img { filter: brightness(0.82); }
/* 构图遮罩：rgba(10,10,10,x) = --wd-bg 底色叠加渐变 */
.wd-qb-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.05) 40%, rgba(10, 10, 10, 0.9) 100%);
}
.wd-qb-hero__inner {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px 56px;
    box-sizing: border-box;
}
.wd-qb-hero__title {
    margin: 0;
    font-size: clamp(40px, 6vw, 88px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    max-width: 1100px;
    text-wrap: balance;
}
.wd-qb-hero__lede {
    margin: 24px 0 0;
    font-size: clamp(17px, 1.8vw, 22px);
    color: var(--wd-text-2);
    max-width: 680px;
    text-wrap: pretty;
}
.wd-qb-hero__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--wd-line-soft);
    font-size: 14px;
    max-width: 900px;
}
.wd-qb-meta-item__label { color: var(--wd-text-3); margin-bottom: 4px; }
.wd-qb-meta-item__value { font-weight: 500; }

/* ---------- Brief（原型 48-55 行） ---------- */
.wd-qb-brief {
    padding-top: 112px;
    padding-bottom: 112px;
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 48px;
}

/* ---------- 视频区通用（TVCs + Trust） ---------- */
.wd-qb-film {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
}
/* 无视频（静态封面）不显示指针手势 */
.wd-film-card:not([data-wd-video]) { cursor: default; }
/* 封面图缩放微动效（原型 stills 图 transition:transform） */
.wd-qb-film .wd-film-card__img,
.wd-qb-film .wd-film-card__img img {
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-qb-film[data-wd-video]:hover .wd-film-card__img img,
.wd-qb-film[data-wd-video]:hover .wd-film-card__img { transform: scale(1.03); }

/* ---------- The TVCs（原型 57-105 行） ---------- */
.wd-qb-films-section {
    border-top: 1px solid var(--wd-line);
    background: var(--wd-surface);
}
.wd-qb-films { padding-top: 96px; padding-bottom: 96px; }
.wd-qb-films__intro {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.wd-qb-films__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ---------- Trust films（原型 107-153 行） ---------- */
.wd-qb-trust-section {
    border-top: 1px solid var(--wd-line);
    background: var(--wd-surface);
}
.wd-qb-trust { padding-top: 96px; padding-bottom: 96px; }
.wd-qb-trust__intro {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.wd-qb-trust__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.wd-qb-trust__col { display: flex; flex-direction: column; }
.wd-qb-trust__caption { padding: 16px 4px 0; }
.wd-qb-trust__name {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.025em;
}
.wd-qb-trust__desc {
    font-size: 15px;
    color: var(--wd-text-2);
    margin-top: 4px;
    text-wrap: pretty;
}
/* Q-Lab 无封面图纯图标卡（原型 121-128 行）：暗底 + 描边 + 居中播放圈 + 提示文案 */
.wd-qb-film--noimg {
    background: var(--wd-bg);
    border: 1px solid var(--wd-line);
}
/* R&D 封面调暗（原型 filter:brightness(0.7)） */
.wd-qb-film--dim .wd-film-card__img { filter: brightness(0.7); }
.wd-qb-film__center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 1;
}
.wd-qb-film__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--wd-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1), color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-qb-film[data-wd-video]:hover .wd-qb-film__icon { border-color: var(--wd-accent); color: var(--wd-accent); }
.wd-qb-film__hint { font-size: 14px; color: var(--wd-text-3); }

/* ---------- Gallery（原型 155-167 行） ---------- */
.wd-qb-gallery-section {
    padding: 112px 0;
    overflow: hidden;
}
.wd-qb-gallery__head {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.wd-qb-sidelabel--inline { font-weight: 500; }
.wd-qb-gallery__hint { font-size: 14px; color: var(--wd-text-3); }
.wd-qb-gallery__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 32px;
    scrollbar-width: none;
}
.wd-qb-gallery__track::-webkit-scrollbar { display: none; }
.wd-qb-gallery__img,
.wd-qb-gallery__img img {
    height: 340px;
    width: auto;
    border-radius: 8px;
    flex: none;
    display: block;
}

/* ---------- Paid media（原型 169-176 行） ---------- */
.wd-qb-paid {
    padding-top: 112px;
    padding-bottom: 112px;
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 48px;
}

/* ---------- Results（原型 178-203 行） ---------- */
.wd-qb-results-section { border-top: 1px solid var(--wd-line); }
.wd-qb-results {
    padding-top: 96px;
    padding-bottom: 96px;
}
.wd-qb-results__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    margin-bottom: 64px;
}
.wd-qb-stat {
    padding: 8px 32px;
    border-right: 1px solid var(--wd-line);
}
.wd-qb-stat--first { padding-left: 0; }
.wd-qb-stat--last { padding-right: 0; border-right: 0; }
.wd-qb-stat__value {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.wd-qb-stat__value--accent { color: var(--wd-accent); }
.wd-qb-stat__label {
    font-size: 14px;
    color: var(--wd-text-2);
    margin-top: 4px;
}
.wd-qb-formats { max-width: 760px; }
.wd-qb-formats__head {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-text-3);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--wd-line);
}
.wd-qb-formats__row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--wd-line);
}
.wd-qb-formats__key { font-weight: 700; }
.wd-qb-formats__q { color: var(--wd-text-2); }

/* ---------- Methodology（原型 205-209 行） ---------- */
.wd-qb-methodology {
    max-width: 980px;
    padding-top: 128px;
    padding-bottom: 128px;
}
.wd-qb-methodology__label { margin-bottom: 24px; }
.wd-qb-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-qb-methodology__body {
    margin: 32px 0 0;
    max-width: 700px;
}

/* ---------- Closing（原型 211-221 行） ---------- */
.wd-qb-closing {
    position: relative;
    min-height: 64vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-top: 1px solid var(--wd-line);
}
.wd-qb-closing__img,
.wd-qb-closing__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wd-qb-closing__img { filter: brightness(0.8); }
/* 构图遮罩：rgba(10,10,10,x) = --wd-bg 底色叠加渐变 */
.wd-qb-closing__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.1) 45%, rgba(10, 10, 10, 0.9) 100%);
}
.wd-qb-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-qb-closing__eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-text-2);
    margin-bottom: 16px;
}
.wd-qb-closing__title {
    font-size: clamp(34px, 4.5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
}
.wd-qb-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-qb-cta:hover { background: var(--wd-accent-hover); color: var(--wd-bg); }
.wd-qb-cta:active { background: var(--wd-accent-active); color: var(--wd-bg); }

/* ==========================================================================
   响应式：多列 grid ≤768px 单列降级（原型桌面优先）
   ========================================================================== */
@media (max-width: 768px) {
    .wd-qb-brief,
    .wd-qb-films__intro,
    .wd-qb-trust__intro,
    .wd-qb-paid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .wd-qb-brief { padding-top: 72px; padding-bottom: 72px; }
    .wd-qb-films { padding-top: 72px; padding-bottom: 72px; }
    .wd-qb-trust { padding-top: 72px; padding-bottom: 72px; }
    .wd-qb-paid { padding-top: 72px; padding-bottom: 72px; }

    .wd-qb-films__grid,
    .wd-qb-trust__grid { grid-template-columns: 1fr; }

    .wd-qb-results { padding-top: 72px; padding-bottom: 72px; }
    .wd-qb-results__stats { padding-top: 0; }
    /* 单列堆叠时右侧竖线换成底部横线 */
    .wd-qb-stat {
        padding: 24px 0;
        border-right: 0;
        border-bottom: 1px solid var(--wd-line);
    }
    .wd-qb-stat--last { border-bottom: 0; }

    .wd-qb-formats__row { grid-template-columns: 120px 1fr; gap: 16px; }

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