/**
 * HUANUO Ergo360 Case Study — 页面专属布局（.wd-hn-* 前缀）。
 * 来源：dotnfilm-optisolex 2/project/HUANUO Ergo360 Case Study.dc.html 内联 style 抽取。
 * 颜色一律引用共享层 --wd-* token；原型未出现共享表外的新颜色，无需局部色变量。
 * 浅色反白区（Hero #EDEDEE、Four curves #F2F1EE）用「局部覆盖同名 --wd-* token」手法，
 *   段内元件自动切换配色，零属性硬编码 hex。
 * 构图性渐变遮罩用字面 rgba(...)（CSS 渐变无法直接对 var 加 alpha），旁注对应 token。
 * 桌面优先，多列 grid ≤768px 单列降级；phones 容器 overflow-hidden、内层 overflow-y:auto。
 */

/* ---------- 通用排版元件 ---------- */
.wd-hn-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-text-2);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}
.wd-hn-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-hn-p {
    margin: 0 0 16px;
    color: var(--wd-text-2);
    text-wrap: pretty;
}
.wd-hn-p:last-child { margin-bottom: 0; }
.wd-hn-p--strong {
    color: var(--wd-text);
    font-weight: 500;
}
/* 段内高亮词：反白到主 text（原型 span color:#F2F1EE font-weight:500） */
.wd-hn-strong { color: var(--wd-text); font-weight: 500; }
.wd-hn-prose { max-width: 760px; }
.wd-hn-sidelabel {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-text-3);
}
.wd-hn-accent { color: var(--wd-accent); }

/* ---------- Hero（原型 32-45 行）：浅色反白区 ----------
   原型 background:#EDEDEE color:#0A0A0A，局部覆盖同名 token 让段内元件自动反白 */
.wd-hn-hero {
    /* 浅底反白：局部覆盖语义 token（对应原型 #EDEDEE 底 + #0A0A0A/#3A3937/#6E6D6A 字） */
    --wd-text: #0A0A0A;
    --wd-text-2: #3A3937;
    --wd-text-3: #6E6D6A;
    --wd-line-soft: rgba(10, 10, 10, 0.2);
    position: relative;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: #EDEDEE; /* = 反白区底色，共享暗色 token 表无对应值，随段落局部定义 */
    color: var(--wd-text);
}
.wd-hn-hero__img,
.wd-hn-hero__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}
/* 构图遮罩：rgba(237,237,238,x) = 反白区 #EDEDEE 底色叠加渐变（浅区专用，非全站 --wd-bg） */
.wd-hn-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(237, 237, 238, 0.25) 0%, rgba(237, 237, 238, 0) 40%, rgba(237, 237, 238, 0.9) 82%, rgba(237, 237, 238, 0.97) 100%);
}
.wd-hn-hero__inner {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px 56px;
    box-sizing: border-box;
}
.wd-hn-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-hn-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-hn-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-hn-meta-item__label { color: var(--wd-text-3); margin-bottom: 4px; }
.wd-hn-meta-item__value { font-weight: 500; }

/* ---------- Walkthrough banner（原型 47-55 行） ---------- */
.wd-hn-walkthrough { border-bottom: 1px solid var(--wd-line); }
.wd-hn-walkthrough__link {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.wd-hn-walkthrough__link:hover { color: var(--wd-text); }
.wd-hn-walkthrough__title { font-weight: 700; font-size: 22px; letter-spacing: -0.025em; }
.wd-hn-walkthrough__desc { font-size: 15px; color: var(--wd-text-2); margin-top: 4px; }
.wd-hn-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-hn-walkthrough__link:hover .wd-hn-walkthrough__cta { background: var(--wd-accent-hover); }

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

/* ---------- Four curves（原型 66-90 行）：浅色反白区 ----------
   原型 background:#F2F1EE color:#0A0A0A，局部覆盖同名 token */
.wd-hn-curves-section {
    /* 浅底反白：局部覆盖语义 token（对应原型 #F2F1EE 底 + #0A0A0A/#3A3937/#6E6D6A 字） */
    --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-hn-curves {
    padding-top: 112px;
    padding-bottom: 112px;
}
.wd-hn-curves__intro { max-width: 700px; margin-bottom: 48px; }
.wd-hn-curves__lede { color: var(--wd-text-2); margin: 0; }
.wd-hn-curves__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.wd-hn-curve {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #EDEDEE; /* = 浅区内卡片底，共享暗色 token 无对应值 */
    display: flex;
    flex-direction: column;
}
.wd-hn-curve__img,
.wd-hn-curve__img img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}
.wd-hn-curve__body { padding: 24px; }
.wd-hn-curve__label { font-size: 14px; color: var(--wd-text-3); margin-bottom: 8px; }
.wd-hn-curve__title {
    font-weight: 700;
    font-size: clamp(24px, 2.4vw, 32px);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.wd-hn-curve__desc { margin: 0; font-size: 15px; color: var(--wd-text-2); text-wrap: pretty; }

/* ---------- Brand film（原型 92-134 行） ---------- */
.wd-hn-film {
    padding-top: 112px;
    padding-bottom: 112px;
}
.wd-hn-film__intro {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.wd-hn-film-main {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
}
/* 封面缩放微动效 */
.wd-hn-film-main .wd-film-card__img,
.wd-hn-film-main .wd-film-card__img img {
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-hn-film-main[data-wd-video]:hover .wd-film-card__img img,
.wd-hn-film-main[data-wd-video]:hover .wd-film-card__img { transform: scale(1.03); }
/* 无视频（静态封面）不显示指针手势 */
.wd-hn-film-main:not([data-wd-video]) { cursor: default; }

.wd-hn-chapters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 32px;
}
.wd-hn-chapter { margin: 0; }
.wd-hn-chapter__img,
.wd-hn-chapter__img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.wd-hn-chapter__body { padding: 12px 4px 0; }
.wd-hn-chapter__tag { color: var(--wd-text-3); font-size: 14px; }
.wd-hn-chapter__desc { font-size: 15px; color: var(--wd-text-2); margin-top: 4px; }

/* ---------- Landing page（原型 136-164 行）：深色 surface 区 ---------- */
.wd-hn-landing-section {
    border-top: 1px solid var(--wd-line);
    background: var(--wd-surface);
}
.wd-hn-landing {
    padding-top: 96px;
    padding-bottom: 96px;
}
.wd-hn-landing__intro {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.wd-hn-phones {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
}
.wd-hn-phone {
    width: min(360px, 100%);
    border-radius: 44px;
    border: 1px solid var(--wd-line);
    background: var(--wd-bg);
    padding: 12px;
    box-sizing: border-box;
}
.wd-hn-phone__screen {
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    background: #F2F1EE; /* = 手机内截图底，浅色，共享暗色 token 无对应值 */
}
.wd-hn-phone__scroll {
    height: 640px;
    overflow-y: auto;
    scrollbar-width: none;
}
.wd-hn-phone__scroll::-webkit-scrollbar { display: none; }
.wd-hn-phone__img,
.wd-hn-phone__img img {
    width: 100%;
    display: block;
}
.wd-hn-landing__note {
    padding: 24px 4px 0;
    font-size: 14px;
    color: var(--wd-text-3);
    text-align: center;
}

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

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

/* ==========================================================================
   响应式：多列 grid ≤768px 单列降级（原型桌面优先）
   ========================================================================== */
@media (max-width: 768px) {
    .wd-hn-brief,
    .wd-hn-film__intro,
    .wd-hn-landing__intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .wd-hn-brief { padding-top: 72px; padding-bottom: 72px; }
    .wd-hn-curves { padding-top: 72px; padding-bottom: 72px; }
    .wd-hn-film { padding-top: 72px; padding-bottom: 72px; }
    .wd-hn-landing { padding-top: 72px; padding-bottom: 72px; }
    .wd-hn-methodology { padding-top: 88px; padding-bottom: 88px; }
    .wd-hn-phones { gap: 24px; }
    .wd-hn-closing__inner { padding: 72px 32px 56px; }
}
