/*
 * 首页“Industrial Working Line”专用样式。
 * 公共按钮、字体和站点宽度继续使用 theme.css 的变量；这里仅描述首页的工作线布局，
 * 避免把首页的复杂结构带到产品、方案和案例内页。
 */
:root {
    --wl-ink: #151a1c;
    --wl-ink-soft: #293033;
    --wl-paper: #f5f6f2;
    --wl-white: #fff;
    --wl-steel: #c7cdd0;
    --wl-steel-light: #e5e8e6;
    --wl-muted: #626b6e;
    --wl-teal: #008a87;
    --wl-teal-dark: #006865;
    --wl-signal: #f4b41a;
    --wl-width: 1240px;
}

.working-line {
    overflow: hidden;
    background: var(--wl-paper);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

/*
 * 工作线原型使用 Segoe UI 作为首页内容的正文环境。
 * 字体只放在 .working-line 主内容上，不能放在 body.home：
 * body.home 会同时包住顶部公共导航，导致首页导航和内页出现不同的字宽、行高和按钮位置。
 */
.working-line .button {
    min-height: 50px;
    padding: 12px 22px;
    font-size: 16px;
    line-height: 1.6;
}

.working-line h1,
.working-line h2,
.working-line h3,
.working-line strong,
.working-line dt,
.working-line dd,
.working-line button {
    font-family: Bahnschrift, "Arial Narrow", Arial, sans-serif;
}

.working-line h1,
.working-line h2,
.working-line h3,
.working-line p {
    margin-top: 0;
}

.working-line .site-shell {
    width: min(calc(100% - 64px), var(--wl-width));
    margin-inline: auto;
}

.working-line .button--ghost {
    border: 1px solid rgba(255, 255, 255, .72);
    background: transparent;
    color: var(--wl-white);
}

.working-line .button--ghost:hover {
    border-color: var(--wl-white);
    background: var(--wl-white);
    color: var(--wl-ink);
}

.wl-eyebrow {
    margin-bottom: 14px;
    color: var(--wl-teal-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.wl-text-link {
    color: var(--wl-teal-dark);
    font-weight: 800;
    text-underline-offset: 5px;
}

.wl-text-link span {
    display: inline-block;
    margin-left: 6px;
    transition: transform 160ms ease;
}

.wl-text-link:hover span {
    transform: translateX(4px);
}

.wl-text-link--dark {
    display: inline-block;
    margin-top: 28px;
}

/* Hero 是网站的第一条“工程结论”：客户先看到完整产线，再决定进入哪个阶段。 */
.wl-hero {
    position: relative;
    height: clamp(590px, calc(100svh - 118px), 690px);
    min-height: 590px;
    overflow: hidden;
    background: var(--wl-ink);
    color: var(--wl-white);
}

.wl-hero__media,
.wl-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wl-hero__media {
    object-fit: cover;
    object-position: center 65%;
    filter: brightness(.48) saturate(.82);
}

.wl-hero__shade {
    background: rgba(5, 11, 12, .2);
}

.wl-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    min-height: 0;
    align-items: flex-end;
    padding-bottom: 142px;
}

.wl-hero__copy {
    max-width: 840px;
}

.wl-hero .wl-eyebrow {
    color: #80d7d1;
}

.wl-hero h1 {
    max-width: 810px;
    margin-bottom: 23px;
    font-size: 68px;
    line-height: 1.01;
}

.wl-hero__description {
    max-width: 660px;
    margin-bottom: 31px;
    color: #e5e9e7;
    font-size: 18px;
}

.wl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.wl-hero__caption {
    position: absolute;
    right: max(32px, calc((100vw - var(--wl-width)) / 2));
    bottom: 139px;
    z-index: 3;
    max-width: 270px;
    margin: 0;
    padding-left: 14px;
    border-left: 3px solid var(--wl-signal);
    color: #edf0ee;
    font-size: 12px;
}

.wl-hero__caption strong {
    display: block;
    margin-bottom: 4px;
    color: var(--wl-white);
    font-size: 13px;
}

.wl-process {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    background: rgba(21, 26, 28, .96);
}

.wl-process__inner {
    display: grid;
    grid-template-columns: 210px 1fr;
    align-items: stretch;
}

.wl-process__label {
    display: grid;
    min-height: 112px;
    align-content: center;
    padding-right: 28px;
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.wl-process__label small {
    color: #91a0a2;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.wl-process__label strong {
    margin-top: 5px;
    font-size: 16px;
}

.wl-process__tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(112px, 1fr));
    overflow-x: auto;
    scrollbar-width: thin;
}

.wl-process__tab {
    position: relative;
    display: grid;
    min-width: 112px;
    min-height: 112px;
    align-content: center;
    padding: 14px 18px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .12);
    background: transparent;
    color: #bdc6c7;
    text-align: left;
    cursor: pointer;
}

.wl-process__tab::after {
    position: absolute;
    right: 0;
    bottom: 22px;
    color: #6c7779;
    content: "→";
}

.wl-process__tab:last-child::after {
    display: none;
}

.wl-process__tab small {
    color: #718082;
    font: 700 10px/1 "Segoe UI", sans-serif;
}

.wl-process__tab strong {
    margin-top: 7px;
    font-size: 13px;
}

.wl-process__tab:hover,
.wl-process__tab[aria-selected="true"] {
    background: var(--wl-teal);
    color: var(--wl-white);
}

.wl-process__tab[aria-selected="true"] small {
    color: #c9f1ee;
}

.wl-section {
    padding: 108px 0;
}

.wl-section-heading {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: end;
    margin-bottom: 48px;
    gap: 80px;
}

.wl-section-heading h2 {
    margin-bottom: 0;
    font-size: 48px;
    line-height: 1.08;
}

.wl-section-heading > p {
    max-width: 560px;
    margin-bottom: 5px;
    color: var(--wl-muted);
}

.wl-section-heading--dark > p {
    color: #b9c1c1;
}

.wl-materials {
    display: grid;
    min-height: 480px;
    grid-template-columns: .72fr 1.28fr;
    border-top: 1px solid var(--wl-ink);
    border-bottom: 1px solid var(--wl-steel);
}

.wl-materials__tabs {
    border-right: 1px solid var(--wl-steel);
}

.wl-materials__tab {
    display: grid;
    width: 100%;
    min-height: 90px;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    padding: 16px 26px 16px 10px;
    border: 0;
    border-bottom: 1px solid var(--wl-steel);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.wl-materials__tab:last-child {
    border-bottom: 0;
}

.wl-materials__number {
    color: #8a9395;
    font: 700 11px/1 Bahnschrift, sans-serif;
}

.wl-materials__tab strong {
    font-size: 21px;
    line-height: 1.2;
}

.wl-materials__tab > span:last-child {
    color: var(--wl-teal-dark);
    font-size: 19px;
}

.wl-materials__tab:hover,
.wl-materials__tab[aria-selected="true"] {
    background: var(--wl-white);
}

.wl-materials__tab[aria-selected="true"] {
    box-shadow: inset 5px 0 0 var(--wl-signal);
}

.wl-materials__panel {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    background: var(--wl-white);
}

.wl-materials__copy {
    display: flex;
    flex-direction: column;
    padding: 52px;
}

.wl-materials__copy h3 {
    margin-bottom: 15px;
    font-size: 32px;
    line-height: 1.16;
}

.wl-materials__copy > p:not(.wl-eyebrow) {
    color: var(--wl-muted);
}

.wl-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 26px 0 32px;
    border-top: 1px solid var(--wl-steel);
}

.wl-specs div {
    padding: 17px 12px 13px 0;
    border-bottom: 1px solid var(--wl-steel-light);
}

.wl-specs dt {
    color: var(--wl-muted);
    font: 800 10px/1.3 "Segoe UI", sans-serif;
    text-transform: uppercase;
}

.wl-specs dd {
    margin: 5px 0 0;
    font-size: 17px;
}

.wl-materials__copy .wl-text-link {
    margin-top: auto;
}

.wl-materials__media {
    display: grid;
    min-height: 100%;
    place-items: center;
    overflow: hidden;
    background: #edf0ed;
}

.wl-materials__media img {
    width: 100%;
    height: 100%;
    /* 现有 Solution 图片多为 4:3 产品图，不能用 cover 填充高容器，否则会裁掉设备主体。 */
    box-sizing: border-box;
    padding: 24px;
    object-fit: contain;
    object-position: center;
    transition: opacity 180ms ease;
}

/* 首页专用图按 9:16 竖图准备，可以铺满右侧窄列；回退的 Solution 横图仍保持 contain，避免裁掉设备。 */
.wl-materials__media img[data-image-source="homepage"] {
    padding: 0;
    object-fit: cover;
}

/* 浏览器默认的 hidden 属性优先隐藏没有配置图片的物料入口，防止旧图片继续占位。 */
.wl-materials__media img[hidden],
.wl-materials__media span[hidden] {
    display: none;
}

.wl-materials__media > span,
.wl-workbench__placeholder,
.wl-equipment-row__media > span {
    padding: 24px;
    color: var(--wl-muted);
    font-size: 13px;
    text-align: center;
}

.wl-line {
    background: var(--wl-ink);
    color: var(--wl-white);
}

.wl-line .wl-eyebrow {
    color: #73cbc6;
}

.wl-workbench {
    display: grid;
    min-height: 520px;
    grid-template-columns: 1.25fr .75fr;
    border-top: 1px solid #536063;
    border-bottom: 1px solid #536063;
}

.wl-workbench__visual {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 420px;
    place-items: center;
    overflow: hidden;
    background: #f1f3ef;
}

.wl-workbench__visual img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    opacity: 1;
    transition: opacity 180ms ease;
}

/* JavaScript 只在新图片已经加载完成后短暂降低透明度，因此切换时不会闪出空白背景。 */
.wl-workbench__visual img.is-changing {
    opacity: .2;
}

.wl-workbench__tag {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    padding: 11px 15px;
    background: var(--wl-signal);
    color: var(--wl-ink);
    font-size: 11px;
    font-weight: 800;
}

.wl-workbench__detail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    border-left: 1px solid #536063;
}

.wl-stage-code {
    display: block;
    margin-bottom: 36px;
    color: #73cbc6;
    font: 13px/1 Bahnschrift, Arial, sans-serif;
}

.wl-workbench__detail h3 {
    margin-bottom: 15px;
    font-size: 34px;
    line-height: 1.16;
}

.wl-workbench__detail p {
    color: #b9c1c1;
}

.wl-stage-meta {
    margin: 30px 0;
    border-top: 1px solid #536063;
}

.wl-stage-meta div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #3c4648;
    font-size: 13px;
}

.wl-stage-meta dt {
    color: #8f9b9d;
}

.wl-stage-meta dd {
    margin: 0;
    text-align: right;
}

.wl-workbench__detail .wl-text-link {
    color: var(--wl-signal);
}

.wl-equipment-list {
    border-top: 1px solid var(--wl-ink);
}

.wl-equipment-row {
    display: grid;
    min-height: 310px;
    grid-template-columns: 180px 1fr 1.05fr;
    align-items: stretch;
    border-bottom: 1px solid var(--wl-steel);
}

.wl-equipment-row__index {
    padding: 36px 18px 30px 0;
    color: var(--wl-teal-dark);
    font: 800 12px/1 Bahnschrift, Arial, sans-serif;
}

.wl-equipment-row__copy {
    display: flex;
    flex-direction: column;
    padding: 33px 42px 32px 0;
}

.wl-equipment-row__copy h3 {
    max-width: 480px;
    margin-bottom: 14px;
    font-size: 32px;
    line-height: 1.16;
}

.wl-equipment-row__copy > p:not(.wl-eyebrow) {
    max-width: 520px;
    color: var(--wl-muted);
}

.wl-equipment-row__copy .wl-text-link {
    margin-top: auto;
}

.wl-equipment-row__media {
    display: grid;
    min-height: 310px;
    place-items: center;
    overflow: hidden;
    background: var(--wl-paper);
}

.wl-equipment-row__media img {
    width: 100%;
    height: 100%;
    max-height: 310px;
    padding: 22px;
    object-fit: contain;
    transition: transform 220ms ease;
}

.wl-equipment-row:hover .wl-equipment-row__media img {
    transform: scale(1.035);
}

.wl-projects {
    background: #e8ebe7;
}

.wl-project-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    grid-template-rows: 290px 290px;
    gap: 16px;
}

.wl-project-card {
    position: relative;
    overflow: hidden;
    background: var(--wl-ink);
    color: var(--wl-white);
    text-decoration: none;
}

.wl-project-card--featured {
    grid-row: 1 / 3;
}

.wl-project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.72);
    transition: transform 260ms ease, filter 260ms ease;
}

.wl-project-card:hover img {
    transform: scale(1.025);
    filter: brightness(.58);
}

.wl-project-card__copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 8px;
    padding: 24px 28px;
    background: rgba(21, 26, 28, .86);
}

.wl-project-card__copy small {
    color: #8edbd6;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.wl-project-card__copy strong {
    font-size: 22px;
    line-height: 1.2;
}

.wl-project-card__copy > span {
    color: var(--wl-signal);
    font-size: 13px;
    font-weight: 800;
}

.wl-project-card--featured .wl-project-card__copy strong {
    font-size: 30px;
}

.wl-empty {
    padding: 28px 0;
    border-top: 1px solid var(--wl-ink);
    border-bottom: 1px solid var(--wl-steel);
    color: var(--wl-muted);
}

.wl-proof {
    padding: 78px 0;
    background: var(--wl-white);
}

.wl-proof__layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 90px;
}

.wl-proof h2 {
    max-width: 500px;
    margin-bottom: 0;
    font-size: 48px;
    line-height: 1.08;
}

.wl-proof__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--wl-ink);
    list-style: none;
}

.wl-proof__list li {
    display: grid;
    min-height: 130px;
    grid-template-columns: 40px 1fr;
    padding: 24px 22px 20px 0;
    gap: 12px;
    border-bottom: 1px solid var(--wl-steel);
}

.wl-proof__list li:nth-child(even) {
    padding-left: 22px;
    border-left: 1px solid var(--wl-steel);
}

.wl-proof__list li > span {
    color: var(--wl-teal-dark);
    font: 700 13px/1.4 Bahnschrift, Arial, sans-serif;
}

.wl-proof__list strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.2;
}

.wl-proof__list p {
    margin: 0;
    color: var(--wl-muted);
    font-size: 13px;
}

/* 公司区只承载后台可编辑的主文案，不重复列出上一个区块已经展示过的服务项目。 */
.wl-company {
    padding: 86px 0;
    background: var(--wl-white);
}

.wl-company__layout {
    display: grid;
    grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
    gap: 80px;
}

.wl-company__label {
    margin: 0;
    padding-top: 8px;
    border-top: 4px solid var(--wl-signal);
    font-size: 13px;
    font-weight: 800;
}

.wl-company h2 {
    max-width: 780px;
    margin-bottom: 16px;
    font-size: 42px;
    line-height: 1.08;
}

.wl-company__layout > div > p:last-child {
    max-width: 800px;
    margin-bottom: 0;
    color: var(--wl-muted);
    font-size: 18px;
}

.wl-inquiry {
    background: var(--wl-teal-dark);
    color: var(--wl-white);
}

.wl-inquiry__layout {
    display: grid;
    min-height: 360px;
    grid-template-columns: .86fr 1.14fr;
    align-items: center;
    gap: 70px;
    padding-block: 70px;
}

.wl-inquiry .wl-eyebrow {
    color: #9ee1dc;
}

.wl-inquiry h2 {
    max-width: 680px;
    margin-bottom: 14px;
    font-size: 48px;
    line-height: 1.08;
}

.wl-inquiry p:not(.wl-eyebrow) {
    max-width: 560px;
    margin-bottom: 0;
    color: #cce3e0;
}

.wl-inquiry__action {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.wl-inquiry__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #cce3e0;
    font-size: 12px;
}

.wl-inquiry__steps span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wl-inquiry__steps b {
    color: var(--wl-signal);
}

@media (max-width: 1040px) {
    .wl-hero h1 {
        font-size: 56px;
    }

    .wl-hero__caption {
        display: none;
    }

    .wl-process__inner {
        grid-template-columns: 160px 1fr;
    }

    .wl-materials__panel {
        grid-template-columns: 1fr;
    }

    .wl-materials__media {
        min-height: 260px;
    }

    .wl-workbench {
        grid-template-columns: 1fr 360px;
    }

    .wl-equipment-row {
        grid-template-columns: 90px 1fr 1fr;
    }

    .wl-inquiry__action {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 820px) {
    .working-line .site-shell {
        width: min(calc(100% - 40px), var(--wl-width));
    }

    .wl-hero {
        height: 700px;
        min-height: 700px;
    }

    .wl-hero__media {
        object-position: 61% center;
    }

    .wl-hero__inner {
        align-items: flex-start;
        padding-top: 78px;
        padding-bottom: 138px;
    }

    .wl-process__inner {
        grid-template-columns: 1fr;
    }

    .wl-process__label {
        display: none;
    }

    .wl-process__tabs {
        grid-template-columns: repeat(6, 132px);
    }

    .wl-section-heading,
    .wl-proof__layout,
    .wl-company__layout,
    .wl-inquiry__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .wl-materials {
        grid-template-columns: 1fr;
    }

    .wl-materials__tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(140px, 1fr));
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--wl-steel);
    }

    .wl-materials__tab {
        min-width: 140px;
        grid-template-columns: 28px 1fr;
        padding: 14px;
        border-right: 1px solid var(--wl-steel);
        border-bottom: 0;
    }

    .wl-materials__tab > span:last-child {
        display: none;
    }

    .wl-materials__tab strong {
        font-size: 17px;
    }

    .wl-materials__tab[aria-selected="true"] {
        box-shadow: inset 0 5px 0 var(--wl-signal);
    }

    .wl-workbench {
        grid-template-columns: 1fr;
    }

    .wl-workbench__detail {
        border-top: 1px solid #536063;
        border-left: 0;
    }

    .wl-equipment-row {
        grid-template-columns: 64px 1fr;
    }

    .wl-equipment-row__media {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .wl-equipment-row__index {
        grid-row: 2;
    }

    .wl-equipment-row__copy {
        grid-row: 2;
        padding-right: 0;
    }

    .wl-project-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 420px 270px;
    }

    .wl-project-card--featured {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .wl-inquiry__layout {
        padding-block: 64px;
    }
}

@media (max-width: 560px) {
    .working-line .site-shell {
        width: min(calc(100% - 32px), var(--wl-width));
    }

    .wl-hero {
        height: 690px;
        min-height: 690px;
    }

    .wl-hero__media {
        object-position: 60% center;
        filter: brightness(.38) saturate(.8);
    }

    .wl-hero__inner {
        padding-top: 68px;
    }

    .wl-hero h1 {
        font-size: 43px;
    }

    .wl-hero__description {
        font-size: 16px;
    }

    .wl-actions {
        display: grid;
        max-width: 260px;
        grid-template-columns: 1fr;
    }

    .wl-section {
        padding: 68px 0;
    }

    .wl-section-heading {
        margin-bottom: 34px;
    }

    .wl-section-heading h2,
    .wl-proof h2,
    .wl-company h2,
    .wl-inquiry h2 {
        font-size: 36px;
    }

    .wl-materials__panel {
        display: flex;
        flex-direction: column-reverse;
    }

    .wl-materials__copy {
        padding: 30px 24px;
    }

    .wl-materials__copy h3 {
        font-size: 27px;
    }

    .wl-materials__media {
        min-height: 230px;
    }

    /* 手机屏幕较窄，竖图只保留舒适的展示高度，避免图片占满整屏。 */
    .wl-materials__media img[data-image-source="homepage"] {
        aspect-ratio: 4 / 3;
    }

    .wl-workbench__visual {
        min-height: 280px;
    }

    .wl-workbench__detail {
        padding: 30px 24px;
    }

    .wl-workbench__detail h3 {
        font-size: 29px;
    }

    .wl-equipment-row {
        grid-template-columns: 46px 1fr;
    }

    .wl-equipment-row__media {
        min-height: 240px;
    }

    .wl-equipment-row__copy {
        padding: 27px 0 30px;
    }

    .wl-equipment-row__copy h3 {
        font-size: 27px;
    }

    .wl-equipment-row__index {
        padding-top: 30px;
    }

    .wl-project-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 320px);
    }

    .wl-project-card--featured {
        grid-column: auto;
    }

    .wl-project-card__copy {
        padding: 22px;
    }

    .wl-project-card--featured .wl-project-card__copy strong {
        font-size: 24px;
    }

    .wl-proof__list {
        grid-template-columns: 1fr;
    }

    .wl-proof__list li:nth-child(even) {
        padding-left: 0;
        border-left: 0;
    }

    .wl-inquiry__action {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .working-line *,
    .working-line *::before,
    .working-line *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
