/* 客户案例页样式 */

.page-cases {
    background: #ffffff;
    /* 为固定导航预留高度 */
    padding-top: var(--header-height);
}

.page-cases .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: 120px;
    padding-right: 120px;
    box-sizing: border-box;
}

/* ========== 白底导航 ========== */
.site-header--light {
    position: fixed;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.site-header--light.is-scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.site-header--light .nav-list a {
    color: #1a1a1a;
}

.site-header--light .nav-list a::after {
    background: #0162e4;
    opacity: 0;
}

.site-header--light .nav-list a:hover::after,
.site-header--light .nav-list a.is-active::after {
    opacity: 1;
}

.site-header--light .logo img {
    filter: none;
}

.site-header--light .header-login {
    color: #1a1a1a;
    border-color: rgba(26, 26, 26, 0.22);
    background: transparent;
}

.site-header--light .header-login:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ========== Banner：1920x640 ========== */
.cases-hero {
    position: relative;
    width: 100%;
    height: clamp(360px, 33.33vw, 640px);
    overflow: hidden;
    background-color: #eef5ff;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.cases-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    /* 文案顶部留距，对齐设计稿（不上不下居中） */
    padding-top: 30px;
    box-sizing: border-box;
}

.cases-hero-copy {
    max-width: 720px;
    text-align: center;
}

.cases-hero-title {
    margin: 0;
    font-family: 'Alimama ShuHeiTi', '阿里妈妈数黑体', 'PingFang SC',
        'Microsoft YaHei', sans-serif;
    font-size: 40px;
    font-weight: bold;
    line-height: normal;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #222222;
    text-align: center;
}

.cases-hero-desc {
    margin: 12px 0 0;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: normal;
    text-align: center;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #666666;
}

/* cases 页 Hero 按钮：紧跟描述文字下方的 CTA 行（文档流定位，避免与文字重叠） */
.cases-hero .hero-actions {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: 24px;
    justify-content: center;
    gap: 130px;
}

/* ========== 案例区块 ========== */
.case-section {
    position: relative;
    width: 100%;
    background: #F4F9FF;
    overflow: visible;
}

.case-section--alt {
    background: #f7faff;
}

/*
 * 图二红框核心布局：
 * 左文案 + 右弧形大图（素材自带左弧透明与蓝色描边）
 */
.case-intro {
    position: relative;
    display: flex;
    min-height: clamp(480px, 45.8vw, 880px);
    padding: 100px 0;
    box-sizing: border-box;
}

.case-intro-copy {
    position: relative;
    z-index: 2;
    width: 42%;
    max-width: 560px;
    padding-left: 120px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.case-badge {
    display: block;
    width: 140px;
    height: 52px;
    margin-bottom: 60px;
}

/* 标题区：CASE STUDY 水印叠在主标题后方 */
.case-title-wrap {
    position: relative;
    margin-bottom: 38px;
}

.case-watermark {
    position: absolute;
    left: 0;
    top: -20px;
    z-index: 0;
    display: block;
    width: 536px;
    max-width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.case-title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(26px, 2.2vw, 40px);
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
}

.case-subtitle {
    margin: 0 0 16px;
    font-size: clamp(16px, 1.15vw, 20px);
    font-weight: 600;
    line-height: 1.55;
    color: #0162e4;
}

/* 蓝色渐变装饰线 */
.case-divider {
    display: block;
    width: 60px;
    height: 4px;
    margin: 50px 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #0162e4 0%, rgba(1, 98, 228, 0) 100%);
}

.case-desc {
    margin: 0 0 50px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    color: #4b5563;
}

/*
 * 成效高亮盒：还原 icon_good_bg（686x134）白底 + 蓝色硬阴影
 * 用 CSS 实现以便文案自适应高度
 */
.case-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    width: 686px;
    min-height: 134px;
    padding: 18px 24px 18px 18px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 16px;
    /* 对齐素材：右下蓝色硬投影 */
    box-shadow: 8px 8px 0 0 #0162e4;
}

.case-highlight-icon {
    flex-shrink: 0;
    width: 72px;
    height: 73px;
    object-fit: contain;
}

.case-highlight p {
    margin: 0;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 20px;
    font-weight: normal;
    line-height: normal;
    text-transform: uppercase;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #333333;
}

/* 右侧弧形大图：1170x880，贴右溢出，左弧与文案区交错 */
.case-intro-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 61%;
    max-width: 1170px;
    pointer-events: none;
}

.case-intro-visual img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 1170px;
}

/* ========== 项目成效 ========== */
.case-results {
    position: relative;
    z-index: 2;
    padding: 60px 0 80px;
    background: #ffffff;
}

.case-results-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 0 0 60px;
    font-size: 40px;
    font-weight: 700;
    color: #222222;
}

.case-results-line {
    display: block;
    width: 50px;
    height: 18px;
    flex-shrink: 0;
    object-fit: contain;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.case-metric {
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(1, 98, 228, 0.08);
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-metric:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(1, 98, 228, 0.14);
}

.case-metric-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.case-metric-head > img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.case-metric-copy {
    flex: 1;
    min-width: 0;
}

.case-metric-title {
    display: block;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #222222;
}

.case-metric-text {
    margin: 8px 0 0;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #666666;
}

.case-metric-value {
    display: block;
    margin-top: 20px;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 40px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #0162e4;
    text-align: center;
}

.case-metric-desc {
    margin: 4px 0 0;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 18px;
    font-weight: normal;
    line-height: normal;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #333333;
    text-align: center;
}

/* 客户评价条 */
.case-quote {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: #eaf3ff;
    border-radius: 12px;
    box-sizing: border-box;
}

.case-quote-mark {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.case-quote-text {
    flex: 1;
    margin: 0;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.7;
    color: #0162e4;
}

.case-quote-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding-left: 28px;
    border-left: 1px solid rgba(1, 98, 228, 0.2);
}

.case-quote-user img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.case-quote-user strong {
    display: block;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #222222;
    line-height: normal;
}

.case-quote-user span {
    display: block;
    margin-top: 4px;
    font-family: 'Source Han Sans', 'Source Han Sans SC', '思源黑体',
        'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 18px;
    font-weight: normal;
    line-height: normal;
    letter-spacing: 0em;
    font-variation-settings: 'opsz' auto;
    font-feature-settings: 'kern' on;
    color: #003680;
}

/* 页脚容器对齐 */
.page-cases .site-footer > .container {
    padding-left: 120px;
    padding-right: 120px;
}

/* ========== 响应式 ========== */
@media (max-width: 1440px) {
    .case-intro-copy {
        width: 44%;
        padding-left: 80px;
    }

    .case-intro-visual {
        width: 58%;
    }

    .case-highlight {
        gap: 10px;
        padding: 14px 18px 14px 14px;
        min-height: 110px;
    }

    .case-highlight-icon {
        width: 56px;
        height: 57px;
    }

    .case-highlight p {
        font-size: 16px;
    }
}

@media (max-width: 1200px) {
    .page-cases .container {
        padding-left: 48px;
        padding-right: 48px;
    }

    .case-intro-copy {
        width: 48%;
        padding-left: 48px;
    }

    .case-metrics {
        gap: 16px;
    }

    .case-metric {
        padding: 18px 14px 16px;
    }

    .case-metric-head > img {
        width: 48px;
        height: 48px;
    }

    .case-metric-title {
        font-size: 16px;
    }

    .case-metric-text {
        font-size: 12px;
    }

    .case-metric-value {
        font-size: 28px;
    }

    .case-metric-desc {
        font-size: 14px;
    }

    .case-quote {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .case-quote-user {
        padding-left: 0;
        border-left: none;
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid rgba(1, 98, 228, 0.2);
    }

    .page-cases .site-footer > .container {
        padding-left: 48px;
        padding-right: 48px;
    }
}

@media (max-width: 960px) {
    .case-intro {
        flex-direction: column;
        min-height: 0;
        padding: 48px 0 24px;
    }

    .case-intro-copy {
        width: 100%;
        max-width: none;
        padding: 0 48px;
        order: 1;
    }

    .case-intro-visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: none;
        margin-top: 32px;
        order: 2;
        pointer-events: auto;
    }

    .case-intro-visual img {
        width: 100%;
        max-width: 720px;
        margin: 0 auto;
    }

    .case-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-results {
        padding: 12px 0 56px;
    }

    .case-results-line {
        width: 40px;
        height: 14px;
    }
}

@media (max-width: 640px) {
    .page-cases {
        padding-top: 72px;
    }

    .page-cases .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cases-hero {
        height: auto;
        min-height: 280px;
        padding: 40px 0;
    }

    .cases-hero .hero-actions {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        justify-content: center;
        margin-top: 24px;
    }

    .cases-hero-title {
        font-size: 28px;
    }

    .cases-hero-desc {
        font-size: 14px;
        padding: 0 12px;
    }

    .case-intro-copy {
        padding: 0 20px;
    }

    .case-badge {
        width: 112px;
        height: 42px;
    }

    .case-watermark {
        width: 280px;
        top: -6px;
    }

    .case-title {
        font-size: 22px;
    }

    .case-subtitle {
        font-size: 15px;
    }

    .case-highlight {
        gap: 8px;
        padding: 12px 14px;
        min-height: 0;
        border-radius: 12px;
        box-shadow: 6px 6px 0 0 #0162e4;
    }

    .case-highlight-icon {
        width: 44px;
        height: 45px;
    }

    .case-highlight p {
        font-size: 14px;
    }

    .case-metrics {
        grid-template-columns: 1fr;
    }

    .case-results-title {
        font-size: 22px;
        gap: 12px;
    }

    .case-quote {
        padding: 18px 16px;
    }

    .case-quote-text {
        font-size: 14px;
    }

    .case-quote-user img {
        width: 48px;
        height: 48px;
    }

    .page-cases .site-footer > .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}
