/**
 * TENWAYS Greener Forward Case Study — 页面专属布局（.wd-tw-* 前缀）。
 * 来源：tenways-greener-forward.html（bundler 导出）解包模板的内联 style 抽取。
 * 原型色值与共享 --wd-* token 完全对应（accent #BDF37F / surface #141313 / line #2A2927 …），无本页局部色。
 * Eurobike 浅色反白区（原型 bg #F2F1EE）在 .wd-tw-eurobike-section 局部覆盖同名 --wd-* 语义 token，
 * 段内元件自动切深色文字，无需逐元素硬编码。
 * 构图性渐变遮罩用 rgba(10,10,10,x)（= --wd-bg #0A0A0A 底色；CSS 渐变无法对 var 直接加 alpha，
 * 故保留字面 rgba 并注明对应 token）。
 * 桌面优先，多列 grid 在 ≤768px 单列降级。
 */

/* ---------- 通用排版元件 ---------- */
.wd-tw-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-accent);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}
.wd-tw-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-tw-h3 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.wd-tw-p {
    margin: 0 0 16px;
    color: var(--wd-text-2);
    text-wrap: pretty;
}
.wd-tw-p:last-child { margin-bottom: 0; }
.wd-tw-p--ink { color: var(--wd-text); }
.wd-tw-p--strong { color: var(--wd-text); font-weight: 500; }
.wd-tw-prose { max-width: 760px; }
.wd-tw-sidelabel {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-text-3);
}
.wd-tw-sidelabel--stack { margin-bottom: 24px; }
.wd-tw-em { font-style: normal; color: var(--wd-text); }
.wd-tw-inkstrong { color: var(--wd-text); font-weight: 500; }
.wd-tw-accent { color: var(--wd-accent); }
.wd-tw-caption {
    padding: 12px 4px 0;
    font-size: 14px;
    color: var(--wd-text-3);
}
/* 两栏 label + 正文（原型 grid minmax(140px,220px) 1fr） */
.wd-tw-split {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 48px;
}

/* ---------- Hero（原型 1153-1166 行） ---------- */
.wd-tw-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.wd-tw-hero__img,
.wd-tw-hero__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: brightness(0.8);
}
/* 构图遮罩：rgba(10,10,10,x) = --wd-bg 底色叠加渐变 */
.wd-tw-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.15) 35%, rgba(10, 10, 10, 0.55) 62%, rgba(10, 10, 10, 0.94) 100%);
}
.wd-tw-hero__inner {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px 56px;
    box-sizing: border-box;
}
.wd-tw-hero__title {
    margin: 0;
    font-size: clamp(40px, 6vw, 88px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    max-width: 1100px;
}
.wd-tw-hero__lede {
    margin: 24px 0 0;
    font-size: clamp(17px, 1.8vw, 22px);
    color: var(--wd-text);
    max-width: 680px;
    text-wrap: pretty;
}
.wd-tw-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-tw-meta__label { color: var(--wd-text-3); margin-bottom: 4px; }
.wd-tw-meta__value { font-weight: 500; }

/* ---------- The context（原型 1168-1175 行） ---------- */
.wd-tw-brief { padding-top: 112px; padding-bottom: 112px; }

/* ---------- The idea（原型 1177-1193 行） ---------- */
.wd-tw-idea-section {
    border-top: 1px solid var(--wd-line);
    background: var(--wd-surface);
}
.wd-tw-idea { padding-top: 96px; padding-bottom: 96px; }
.wd-tw-idea__intro { margin-bottom: 64px; }
.wd-tw-stills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.wd-tw-still {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.wd-tw-still__img,
.wd-tw-still__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Brand film（原型 1195-1212 行） ---------- */
.wd-tw-film { padding-top: 112px; }
.wd-tw-film__card {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
}
.wd-tw-film__card .wd-film-card__img,
.wd-tw-film__card .wd-film-card__img img {
    object-position: center 45%;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-tw-film__card[data-wd-video]:hover .wd-film-card__img,
.wd-tw-film__card[data-wd-video]:hover .wd-film-card__img img { transform: scale(1.03); }
/* 无视频（静态封面）不显示指针手势 */
.wd-film-card:not([data-wd-video]) { cursor: default; }
/* 原型遮罩 45% 起渐变、底 0.75（= --wd-bg #0A0A0A），比共享层略深 */
.wd-tw-film__card .wd-film-card__overlay {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 45%, rgba(10, 10, 10, 0.75) 100%);
}
.wd-tw-film__bar { left: 32px; right: 32px; bottom: 28px; }
.wd-tw-film__name { font-size: 28px; color: var(--wd-text); }
.wd-tw-film__card .wd-film-card__meta { margin-top: 4px; }
.wd-tw-film__play {
    flex: none;
    width: 64px;
    height: 64px;
    font-size: 22px;
}

/* ---------- The system（原型 1214-1242 行） ---------- */
.wd-tw-system { padding-top: 112px; padding-bottom: 64px; }
.wd-tw-system__intro { margin-bottom: 48px; }
.wd-tw-rows { border-top: 1px solid var(--wd-line); }
.wd-tw-row {
    display: grid;
    grid-template-columns: 64px 1fr 1.4fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--wd-line);
    align-items: baseline;
    transition: background 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-tw-row:hover { background: var(--wd-surface); }
.wd-tw-row__num { color: var(--wd-text-3); font-size: 14px; }
.wd-tw-row__title { font-weight: 700; font-size: 22px; letter-spacing: -0.025em; }
.wd-tw-row__desc { color: var(--wd-text-2); }

/* ---------- 01 — Website（原型 1244-1259 行） ---------- */
.wd-tw-web { padding-top: 64px; padding-bottom: 112px; }
.wd-tw-web__intro { margin-bottom: 64px; }
.wd-tw-shots { display: grid; gap: 16px; }
.wd-tw-shots__pair {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
}
.wd-tw-shot,
.wd-tw-shot img {
    width: 100%;
    display: block;
    border-radius: 12px;
}
.wd-tw-shot img { border: 1px solid var(--wd-line); box-sizing: border-box; }
.wd-tw-shot--fill,
.wd-tw-shot--fill img {
    height: 100%;
    object-fit: cover;
}

/* ---------- 02 — Eurobike & CES（原型 1261-1276 行）：浅色反白区 ---------- */
.wd-tw-eurobike-section {
    --wd-surface: #F2F1EE;
    --wd-text: #0A0A0A;
    --wd-text-2: #3A3937;
    --wd-text-3: #6E6D6A;
    border-top: 1px solid var(--wd-line);
    background: var(--wd-surface);
    color: var(--wd-text);
}
.wd-tw-eurobike {
    padding-top: 112px;
    padding-bottom: 112px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.wd-tw-eurobike__img,
.wd-tw-eurobike__img img {
    width: 100%;
    display: block;
    border-radius: 12px;
}
.wd-tw-eurobike__img img { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); /* 原型浅底轻投影 */ }

/* ---------- 03 Brand film / 04 Launch event（原型 1278-1294 行） ---------- */
.wd-tw-pair { padding-top: 112px; padding-bottom: 112px; }
.wd-tw-pair__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.wd-tw-pair__frame {
    margin-top: 48px;
    border-radius: 12px;
    overflow: hidden;
}
.wd-tw-pair__img,
.wd-tw-pair__img img { width: 100%; display: block; }

/* ---------- The invisible asset（原型 1296-1303 行） ---------- */
.wd-tw-method-section { border-top: 1px solid var(--wd-line); }
.wd-tw-method {
    max-width: 980px;
    margin: 0 auto;
    padding: 128px 32px;
    box-sizing: border-box;
}
.wd-tw-method__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-tw-method__body { max-width: 700px; }
.wd-tw-method__lead + .wd-tw-method__body { margin-top: 32px; }

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

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .wd-tw-split,
    .wd-tw-stills,
    .wd-tw-shots__pair,
    .wd-tw-eurobike,
    .wd-tw-pair__cols { grid-template-columns: 1fr; }
    .wd-tw-split { gap: 16px; }
    .wd-tw-eurobike { gap: 40px; }
    .wd-tw-row { grid-template-columns: 40px 1fr; gap: 8px 16px; }
    .wd-tw-row__desc { grid-column: 2; }
    .wd-tw-brief,
    .wd-tw-pair,
    .wd-tw-eurobike { padding-top: 72px; padding-bottom: 72px; }
    .wd-tw-idea { padding-top: 64px; padding-bottom: 64px; }
    .wd-tw-film { padding-top: 72px; }
    .wd-tw-system { padding-top: 72px; padding-bottom: 40px; }
    .wd-tw-web { padding-top: 40px; padding-bottom: 72px; }
    .wd-tw-idea__intro,
    .wd-tw-web__intro { margin-bottom: 40px; }
    .wd-tw-method { padding: 88px 20px; }
    .wd-tw-film__bar { left: 20px; right: 20px; bottom: 16px; }
    .wd-tw-film__name { font-size: 20px; }
    .wd-tw-film__play { width: 48px; height: 48px; font-size: 17px; }
    .wd-tw-hero__inner { padding: 0 20px 40px; }
    .wd-tw-closing__inner { padding-top: 72px; padding-bottom: 56px; }
}
