/**
 * Aecooly Case Study — 页面专属布局（.wd-ae-* 前缀）。
 * 来源：dotnfilm-optisolex 2/project/Aecooly Case Study.dc.html 内联 style 抽取。
 * 颜色一律引用共享层 --wd-* token（Aecooly 与 optisolex 同一 design system，palette 完全一致，
 *   共享层无需新增 token）；构图性渐变遮罩用 rgba(10,10,10,x)（= --wd-bg #0A0A0A 底色，
 *   CSS 渐变无法直接对 var 加 alpha，故保留字面 rgba 并注明对应 token）。
 * 浅色反白区：Homepage section（原型 bg #F2F1EE / 文字 #0A0A0A）在 .wd-ae-light 局部覆盖同名
 *   --wd-* 语义 token（照 pixboom 手法），段内元件自动切深色，不逐元素硬编码。
 * 桌面优先，多列 grid 在 ≤768px 单列降级；gallery 父容器 overflow-hidden。
 */

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

/* ---------- Hero（原型 32-47 行） ---------- */
.wd-ae-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.wd-ae-hero__img,
.wd-ae-hero__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}
.wd-ae-hero__img { filter: brightness(0.85); }
/* 构图遮罩：rgba(10,10,10,x) = --wd-bg 底色叠加渐变 */
.wd-ae-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-ae-hero__inner {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px 56px;
    box-sizing: border-box;
}
.wd-ae-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-ae-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-ae-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-ae-meta-item__label { color: var(--wd-text-3); margin-bottom: 4px; }
.wd-ae-meta-item__value { font-weight: 500; }

/* ---------- Walkthrough banner（原型 49-57 行） ---------- */
.wd-ae-walkthrough-section { border-bottom: 1px solid var(--wd-line); }
.wd-ae-walkthrough {
    padding-top: 24px;
    padding-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.wd-ae-walkthrough:hover { color: var(--wd-text); }
.wd-ae-walkthrough__title {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.025em;
}
.wd-ae-walkthrough__note {
    font-size: 15px;
    color: var(--wd-text-2);
    margin-top: 4px;
}
.wd-ae-walkthrough__pill {
    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-ae-walkthrough:hover .wd-ae-walkthrough__pill { background: var(--wd-accent-hover); }

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

/* ---------- TVC（原型 67-93 行）：dark surface 区 ---------- */
.wd-ae-tvc-section {
    border-top: 1px solid var(--wd-line);
    background: var(--wd-surface);
}
.wd-ae-tvc { padding-top: 96px; padding-bottom: 96px; }
.wd-ae-tvc__intro {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.wd-ae-tvc-card {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
}
/* TVC 封面缩放微动效（原型 cursor:pointer 播放态卡片） */
.wd-ae-tvc-card .wd-film-card__img,
.wd-ae-tvc-card .wd-film-card__img img {
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-ae-tvc-card[data-wd-video]:hover .wd-film-card__img img,
.wd-ae-tvc-card[data-wd-video]:hover .wd-film-card__img { transform: scale(1.03); }
/* 无视频（静态封面）不显示指针手势 */
.wd-film-card:not([data-wd-video]) { cursor: default; }
/* TVC 卡片 bar 用原型 32px/28px 内边距与更大片名字号 */
.wd-ae-tvc-card .wd-film-card__bar { left: 32px; bottom: 28px; right: 32px; }
.wd-ae-tvc-card .wd-film-card__name { font-size: 28px; }
.wd-ae-tvc-card .wd-film-card__play { width: 64px; height: 64px; font-size: 22px; }

/* ---------- Landing page（原型 95-121 行） ---------- */
.wd-ae-lp {
    padding-top: 112px;
    padding-bottom: 112px;
}
.wd-ae-lp__intro {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.wd-ae-lp__gallery {
    display: grid;
    gap: 16px;
}
.wd-ae-lp__banner,
.wd-ae-lp__banner img {
    width: 100%;
    border-radius: 12px;
    display: block;
    border: 1px solid var(--wd-line);
}
.wd-ae-lp__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.wd-ae-lp__shot,
.wd-ae-lp__shot img {
    width: 100%;
    border-radius: 12px;
    display: block;
    border: 1px solid var(--wd-line);
}
.wd-ae-lp__captions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
}
.wd-ae-lp__caption-title {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}
.wd-ae-lp__caption-desc {
    margin: 0;
    font-size: 15px;
    color: var(--wd-text-2);
    text-wrap: pretty;
}

/* ---------- Homepage（原型 123-135 行）：浅色反白区 ---------- */
/* 原型 bg #F2F1EE / 文字 #0A0A0A。局部覆盖同名语义 token → 段内元件自动切深色，不进共享层。 */
.wd-ae-light {
    --wd-surface: #F2F1EE;   /* 反白区底色（原型专属） */
    --wd-text: #0A0A0A;      /* 反白区主文字 */
    --wd-text-2: #3A3937;    /* 反白区正文（原型 homepage 描述用色） */
    --wd-text-3: #6E6D6A;    /* 反白区弱文字（原型此处仍用中灰） */
    --wd-line: #D9D7D1;      /* 反白区分隔线 / 图片描边 */
    background: var(--wd-surface);
    color: var(--wd-text);
    border-top: 1px solid var(--wd-line);
}
.wd-ae-homepage {
    padding-top: 112px;
    padding-bottom: 112px;
}
.wd-ae-homepage__intro {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.wd-ae-homepage__img,
.wd-ae-homepage__img img {
    width: 100%;
    border-radius: 12px;
    display: block;
    /* 构图性投影：rgba(0,0,0,x) 浅色区柔和阴影，保留字面写法 */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* ---------- Gallery（原型 137-150 行）：横向滚动图墙 ---------- */
.wd-ae-gallery-section {
    padding: 112px 0;
    overflow: hidden;
}
.wd-ae-gallery__head {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.wd-ae-gallery__hint { font-size: 14px; color: var(--wd-text-3); }
.wd-ae-gallery__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 32px;
    scrollbar-width: none;
}
.wd-ae-gallery__track::-webkit-scrollbar { display: none; }
.wd-ae-gallery__img,
.wd-ae-gallery__img img {
    height: 340px;
    width: auto;
    border-radius: 8px;
    flex: none;
    display: block;
}

/* ---------- Methodology（原型 152-159 行） ---------- */
.wd-ae-methodology {
    max-width: 980px;
    padding-top: 128px;
    padding-bottom: 128px;
    border-top: 1px solid var(--wd-line);
    text-align: left;
}
.wd-ae-methodology__label { margin-bottom: 24px; }
.wd-ae-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-ae-methodology__body {
    margin: 32px 0 0;
    max-width: 700px;
}

/* ---------- Closing（原型 161-171 行） ---------- */
.wd-ae-closing {
    position: relative;
    min-height: 64vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-top: 1px solid var(--wd-line);
}
.wd-ae-closing__img,
.wd-ae-closing__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
/* 构图遮罩：rgba(10,10,10,x) = --wd-bg 底色叠加渐变 */
.wd-ae-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-ae-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-ae-closing__eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-text-2);
    margin-bottom: 16px;
}
.wd-ae-closing__title {
    font-size: clamp(34px, 4.5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
}
.wd-ae-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;
    transition: background 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-ae-cta:hover { background: var(--wd-accent-hover); color: var(--wd-bg); }
.wd-ae-cta:active { background: var(--wd-accent-active); color: var(--wd-bg); }

/* ==========================================================================
   响应式：多列 grid ≤768px 单列降级（原型桌面优先）
   ========================================================================== */
@media (max-width: 768px) {
    .wd-ae-brief,
    .wd-ae-tvc__intro,
    .wd-ae-lp__intro,
    .wd-ae-homepage__intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .wd-ae-brief { padding-top: 72px; padding-bottom: 72px; }
    .wd-ae-tvc { padding-top: 72px; padding-bottom: 72px; }
    .wd-ae-lp { padding-top: 72px; padding-bottom: 72px; }
    .wd-ae-homepage { padding-top: 72px; padding-bottom: 72px; }

    .wd-ae-lp__pair { grid-template-columns: 1fr; }
    .wd-ae-lp__captions { grid-template-columns: 1fr; gap: 32px; }

    .wd-ae-gallery-section { padding: 72px 0; }

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