/**
 * Gravity Case Study — 页面专属布局（.wd-gv-* 前缀）。
 * 来源：dotnfilm-optisolex/project/Gravity Case Study.dc.html 内联 style 抽取。
 * 共享暗色底沿用 --wd-* token（design-system.css）。本设计另有两处原型专属颜色，
 * 抽为本页局部 token（挂在 #main-content 上，仅本模板生效，不污染共享层）：
 *   --wd-gv-blue / --wd-gv-blue-hover —— 原型科幻蓝 #4A6BFF / #5F7DFF（品牌第二强调色，共享层无对应）。
 *   Honest notes 亮色反白区（原型 bg #F2F1EE）在 .wd-gv-notes-section 局部覆盖同名 --wd-* 语义 token，
 *   使段内所有元件自动切到深色文字，无需逐元素硬编码。
 * 构图性渐变遮罩用 rgba(10,10,10,x)（= --wd-bg #0A0A0A 底色；CSS 渐变无法对 var 直接加 alpha，
 * 故保留字面 rgba 并注明对应 token）。
 * 桌面优先，多列 grid / meta / 卡片在 ≤768px 单列降级；planets 父容器 overflow-hidden。
 */

/* ---------- 本页局部 token（挂 #main-content，作用域限本模板） ---------- */
#main-content {
    --wd-gv-blue: #4A6BFF;
    --wd-gv-blue-hover: #5F7DFF;
}

/* ---------- 通用排版元件 ---------- */
.wd-gv-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-gv-blue);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}
.wd-gv-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-gv-h2--flush { margin: 0; }
.wd-gv-p {
    margin: 0 0 16px;
    color: var(--wd-text-2);
    text-wrap: pretty;
}
.wd-gv-p:last-child { margin-bottom: 0; }
.wd-gv-p--strong {
    color: var(--wd-text);
    font-weight: 500;
}
.wd-gv-prose { max-width: 760px; }
.wd-gv-sidelabel {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-text-3);
}
/* 正文内的强调短语：原型用 #F2F1EE（= --wd-text） */
.wd-gv-inkstrong { color: var(--wd-text); }
/* 大字排版里的蓝色强调分句 */
.wd-gv-accent { color: var(--wd-gv-blue); }

/* ---------- Hero（原型 37-50 行） ---------- */
.wd-gv-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.wd-gv-hero__img,
.wd-gv-hero__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
/* 构图遮罩：rgba(5,5,7,x)→改用 rgba(10,10,10,x) = --wd-bg 底色叠加渐变 */
.wd-gv-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0) 40%, rgba(10, 10, 10, 0.92) 100%);
}
.wd-gv-hero__inner {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px 56px;
    box-sizing: border-box;
}
.wd-gv-hero__title {
    margin: 0;
    font-size: clamp(44px, 7vw, 100px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    max-width: 1100px;
    text-wrap: balance;
}
.wd-gv-hero__lede {
    margin: 24px 0 0;
    font-size: clamp(17px, 1.8vw, 22px);
    color: var(--wd-text-2);
    max-width: 640px;
    text-wrap: pretty;
}
.wd-gv-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: 820px;
}
.wd-gv-meta-item__label { color: var(--wd-text-3); margin-bottom: 4px; }
.wd-gv-meta-item__value { font-weight: 500; }

/* ---------- Walkthrough banner（原型 52-63 行） ---------- */
.wd-gv-banner-section { border-bottom: 1px solid var(--wd-line); }
.wd-gv-banner {
    padding-top: 24px;
    padding-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.wd-gv-banner__title {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.025em;
}
.wd-gv-banner__note {
    font-size: 15px;
    color: var(--wd-text-2);
    margin-top: 4px;
}
.wd-gv-banner__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.wd-gv-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    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), border-color 200ms cubic-bezier(0.4, 0, 0.2, 1), color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-gv-btn--solid {
    background: var(--wd-accent);
    color: var(--wd-bg);
}
.wd-gv-btn--solid:hover {
    background: var(--wd-accent-hover);
    color: var(--wd-bg);
}
.wd-gv-btn--ghost {
    border: 1px solid var(--wd-text);
    color: var(--wd-text);
}
.wd-gv-btn--ghost:hover {
    border-color: var(--wd-accent);
    color: var(--wd-accent);
}

/* ---------- TVC（原型 65-89 行） ---------- */
.wd-gv-tvc-section {
    border-bottom: 1px solid var(--wd-line);
    background: var(--wd-surface);
}
.wd-gv-tvc { padding-top: 96px; padding-bottom: 96px; }
.wd-gv-tvc__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}
.wd-gv-tvc__note { font-size: 14px; color: var(--wd-text-3); }
.wd-gv-tvc__card {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
}
/* 视频封面图缩放微动效（原型 hover） */
.wd-gv-tvc__card .wd-film-card__img,
.wd-gv-tvc__card .wd-film-card__img img {
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-gv-tvc__card[data-wd-video]:hover .wd-film-card__img img,
.wd-gv-tvc__card[data-wd-video]:hover .wd-film-card__img { transform: scale(1.03); }
/* 无视频（静态封面）不显示指针手势 */
.wd-film-card:not([data-wd-video]) { cursor: default; }
/* 原型 TVC 播放钮用科幻蓝 + 蓝光辉，覆盖共享层绿色播放钮 */
.wd-gv-tvc__play {
    width: 64px;
    height: 64px;
    font-size: 22px;
    background: var(--wd-gv-blue);
    color: var(--wd-text);
    box-shadow: 0 0 40px rgba(74, 107, 255, 0.5); /* = --wd-gv-blue #4A6BFF 光晕 */
}
.wd-gv-tvc__card[data-wd-video]:hover .wd-gv-tvc__play { background: var(--wd-gv-blue-hover); }
.wd-gv-tvc__outro { margin: 24px auto 0; max-width: 760px; }

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

/* ---------- Product scene（原型 101-104 行） ---------- */
.wd-gv-scene-section { padding-bottom: 112px; }
.wd-gv-scene {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}
.wd-gv-scene__img,
.wd-gv-scene__img img {
    width: 100%;
    border-radius: 12px;
    display: block;
}
.wd-gv-scene__caption {
    padding: 12px 4px 0;
    font-size: 14px;
    color: var(--wd-text-3);
}

/* ---------- Why 768（原型 106-114 行） ---------- */
.wd-gv-why-section {
    border-top: 1px solid var(--wd-line);
    border-bottom: 1px solid var(--wd-line);
    background: var(--wd-surface);
}
.wd-gv-why {
    padding-top: 112px;
    padding-bottom: 112px;
}
.wd-gv-why__label { margin-bottom: 32px; }
.wd-gv-why__lead {
    margin: 0;
    max-width: 860px;
    font-size: clamp(30px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.wd-gv-why__body {
    margin: 32px 0 0;
    max-width: 680px;
}

/* ---------- Interaction language（原型 116-141 行） ---------- */
.wd-gv-interaction { padding-top: 112px; padding-bottom: 112px; }
.wd-gv-interaction__intro {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.wd-gv-interaction__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.wd-gv-icard {
    border: 1px solid var(--wd-line);
    border-radius: 12px;
    padding: 32px;
    background: var(--wd-surface);
}
.wd-gv-icard__kicker { font-size: 14px; color: var(--wd-gv-blue); margin-bottom: 16px; }
.wd-gv-icard__title {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}
.wd-gv-icard__desc { font-size: 15px; color: var(--wd-text-2); text-wrap: pretty; }

/* ---------- Planetary time（原型 143-172 行） ---------- */
.wd-gv-planets-section {
    border-top: 1px solid var(--wd-line);
    border-bottom: 1px solid var(--wd-line);
    background: var(--wd-surface);
    overflow: hidden;
}
.wd-gv-planets { padding-top: 96px; padding-bottom: 96px; }
.wd-gv-planets__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}
.wd-gv-planets__note { font-size: 14px; color: var(--wd-text-3); }
.wd-gv-planets__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0;
}
.wd-gv-planet {
    padding: 8px 32px;
    border-right: 1px solid var(--wd-line);
}
.wd-gv-planet--first { padding-left: 0; }
.wd-gv-planet--last { padding-right: 0; border-right: 0; }
.wd-gv-planet__label { font-size: 14px; color: var(--wd-text-3); margin-bottom: 8px; }
.wd-gv-planet__label--hi { color: var(--wd-gv-blue); }
.wd-gv-planet__time {
    font-family: 'Orbitron', ui-monospace, 'SFMono-Regular', 'Menlo', monospace;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}
.wd-gv-planet__time--hi {
    color: var(--wd-gv-blue);
    text-shadow: 0 0 24px rgba(74, 107, 255, 0.45); /* = --wd-gv-blue #4A6BFF 光晕 */
}

/* ---------- Honest notes（原型 174-206 行）：亮色反白区 ---------- */
/* 原型 bg #F2F1EE / 文字 #0A0A0A。局部覆盖同名语义 token → 段内元件自动切深色。 */
.wd-gv-notes-section {
    --wd-surface: #F2F1EE;   /* 反白区底色（原型专属，不进共享层） */
    --wd-text: #0A0A0A;      /* 反白区主文字 */
    --wd-text-2: #3A3937;    /* 反白区正文 */
    --wd-text-3: #6E6D6A;    /* 反白区弱文字（原型此处仍用中灰） */
    --wd-line: #D9D7D1;      /* 反白区分隔线 */
    background: var(--wd-surface);
    color: var(--wd-text);
}
.wd-gv-notes {
    padding-top: 112px;
    padding-bottom: 112px;
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 48px;
}
.wd-gv-notes__sidelabel { font-size: 14px; font-weight: 500; color: var(--wd-text-3); }
.wd-gv-notes__body { max-width: 760px; }
.wd-gv-notes__h2 {
    margin: 0 0 48px;
    color: var(--wd-text);
}
.wd-gv-notes__list { display: grid; gap: 0; }
.wd-gv-note {
    padding: 24px 0;
    border-top: 1px solid var(--wd-line);
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
}
.wd-gv-note--last { border-bottom: 1px solid var(--wd-line); }
.wd-gv-note__num { font-size: 14px; color: var(--wd-text-3); }
.wd-gv-note__title {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
    color: var(--wd-text);
}
.wd-gv-note__desc { margin: 0; color: var(--wd-text-2); text-wrap: pretty; }

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

/* ---------- Closing（原型 214-227 行） ---------- */
.wd-gv-closing {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-top: 1px solid var(--wd-line);
}
.wd-gv-closing__img,
.wd-gv-closing__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
    transform: scaleX(-1); /* 原型收尾图水平翻转 */
}
/* 构图遮罩：rgba(10,10,10,x) = --wd-bg 底色叠加渐变 */
.wd-gv-closing__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.1) 45%, rgba(10, 10, 10, 0.92) 100%);
}
.wd-gv-closing__inner {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 96px 32px 80px;
    box-sizing: border-box;
}
.wd-gv-closing__intro {
    margin: 0 0 48px;
    max-width: 640px;
}
.wd-gv-closing__cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}
.wd-gv-closing__eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-text-2);
    margin-bottom: 16px;
}
.wd-gv-closing__title {
    font-size: clamp(34px, 4.5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
}
.wd-gv-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-gv-cta:hover { background: var(--wd-accent-hover); color: var(--wd-bg); }
.wd-gv-cta:active { background: var(--wd-accent-active); color: var(--wd-bg); }

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

    .wd-gv-tvc { padding-top: 64px; padding-bottom: 64px; }
    .wd-gv-planets { padding-top: 64px; padding-bottom: 64px; }

    /* 行星时间单列堆叠：右侧竖线换成底部横线 */
    .wd-gv-planet {
        padding: 24px 0;
        border-right: 0;
        border-bottom: 1px solid var(--wd-line);
    }
    .wd-gv-planet--last { border-bottom: 0; }

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