/* ========== 客户案例页面专属样式 ========== */

/* ---- Stats 数字背后的信任（复用 about.html 数据亮点结构） ---- */
.case-stats.data-highlights-section {
    background: #F4FBFF;
    padding: clamp(3rem, 7vw, 5rem) 0;
}
.case-stats .insight-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.case-stats .insight-title {
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: bold;
    color: #222222;
    margin-bottom: 0;
}
.case-stats .text-primary-blue {
    color: #0534BA;
    font-size: clamp(24px, 3vw, 40px);
}

/* 数据亮点三段式（number + label + sub），与 about.html 数据亮点同构 */
.data-highlights-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: clamp(1rem, 2vw, 2rem);
}
.data-highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
    gap: clamp(0.3rem, 0.5vw, 0.5rem);
}
.data-highlight-number {
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(28px, 3.6vw, 52px);
    font-weight: bold;
    line-height: 1.2;
    color: #0534BA;
}
.data-highlight-label {
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(13px, 1.2vw, 18px);
    font-weight: 500;
    line-height: 1.3;
    color: #222222;
}
.data-highlight-sub {
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(11px, 1vw, 14px);
    font-weight: normal;
    line-height: 1.5;
    text-align: center;
    color: #666666;
    max-width: 90%;
}
.data-highlight-divider {
    width: 1px;
    height: clamp(40px, 5vw, 60px);
    background: rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    align-self: center;
}

/* ==================== 标杆案例 Section 3 ==================== */
.cockpit-section {
    padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
    background: #F4FBFF;
    overflow: hidden;
}
.cockpit-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---- 内容行：左(Tab+文案) / 右(图片) ---- */
.cockpit-content-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(20px, 3vw, 50px);
    justify-content: space-between;
}
.cockpit-left-col {
    flex: 1 1 52%;
    min-width: 0;
}
.cockpit-right-col {
    flex: 1 1 42%;
    min-width: 0;
}

/* ---- Tabs ---- */
.cockpit-tabs-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-bottom: clamp(20px, 2.5vw, 32px);
    width: 100%;
}
.cockpit-tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    background: #FFFFFF;
    border-radius: 99px;
    padding: 6px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 560px;
}
.cockpit-tab {
    display: flex;
    flex: 1 1 0;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: clamp(8px, 1vw, 10px) clamp(12px, 1.4vw, 24px);
    border-radius: 99px;
    background: transparent;
    border: none;
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(12px, 0.95vw, 14px);
    font-weight: 500;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
    position: relative;
    z-index: 0;
    min-width: 0;
}
.cockpit-tab.active {
    color: #0534BA;
    background: transparent;
    font-weight: 600;
}
@media (min-width: 768px) {
    .cockpit-tab.active::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: clamp(28px, 4vw, 60px);
        height: 3px;
        background: #0534BA;
        border-radius: 2px;
    }
}
.cockpit-tab:hover:not(.active) {
    color: #0534BA;
}

/* ---- 左侧文案 ---- */
.cockpit-left {
    padding-left: 0;
}
.cockpit-label {
    display: inline-block;
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: 500;
    line-height: normal;
    color: #0534BA;
    margin-bottom: 12px;
}
.cockpit-title {
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: bold;
    line-height: normal;
    color: #222222;
    margin-bottom: 8px;
}
.cockpit-subtitle {
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(22px, 3vw, 48px);
    font-weight: bold;
    line-height: normal;
    color: #0534BA;
    margin-bottom: clamp(20px, 2.5vw, 36px);
}

/* ---- 功能列表 ---- */
.cockpit-feature-list {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.5vw, 18px);
    margin: 0 0 clamp(24px, 3vw, 40px);
    padding: 0;
}
.cockpit-feature-item {
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: normal;
    line-height: normal;
    color: #222222;
    margin: 0;
    padding: 0;
}
.cockpit-feature-item strong {
    font-weight: 600;
    margin-right: 4px;
}

/* ---- 右侧图片 ---- */
.cockpit-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(10px, 2vw, 20px);
}
.cockpit-img {
    display: none;
    width: 100%;
    height: auto;
    max-width: 560px;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.92);
}
.cockpit-img img {
    width: 100%;
    height: auto;
    display: block;
}
.cockpit-img.active {
    display: block;
}
.cockpit-img.show {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cockpit-img.exiting {
    display: block;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.22s cubic-bezier(0.55, 0.06, 0.68, 0.19),
                transform 0.22s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

/* ---- 右侧引用/图注 ---- */
.cockpit-caption {
    display: none;
    margin-top: 14px;
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.6;
    color: #666666;
    text-align: left;
    width: 100%;
    max-width: 560px;
}
.cockpit-caption.active {
    display: block;
}

/* ---- 左侧文案出场动画 ---- */
@keyframes cockpitSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.cockpit-left.animating .cockpit-title,
.cockpit-left.animating .cockpit-subtitle,
.cockpit-left.animating .cockpit-feature-item {
    animation: cockpitSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.cockpit-left.animating .cockpit-subtitle {
    animation-delay: 0.05s;
}
.cockpit-left.animating .cockpit-feature-item:nth-child(1) {
    animation-delay: 0.1s;
}
.cockpit-left.animating .cockpit-feature-item:nth-child(2) {
    animation-delay: 0.15s;
}
.cockpit-left.animating .cockpit-feature-item:nth-child(3) {
    animation-delay: 0.2s;
}
.cockpit-left.animating .cockpit-feature-item:nth-child(4) {
    animation-delay: 0.25s;
}

/* ---- Partners 合作伙伴 ---- */
.case-partners {
    padding: clamp(40px, 6vw, 80px) 0;
    background: #F4FBFF;
}
.partners-title {
    text-align: center;
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: bold;
    color: #222222;
    margin-bottom: 12px;
}
.partners-title .text-primary-blue {
    color: #0534BA;
    font-size: clamp(24px, 3vw, 40px);
}
.partners-subtitle {
    text-align: center;
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(12px, 1.1vw, 16px);
    color: #666666;
    line-height: 1.6;
    margin-bottom: clamp(24px, 3vw, 40px);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* LOGO 网格：PC 每行 4 个 */
.partners-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    align-content: center;
    gap: clamp(10px, 1.2vw, 18px);
}
.partner-logo-card {
    flex: 1 1 calc((100% - 3 * clamp(10px, 1.2vw, 18px)) / 4);
    max-width: calc((100% - 3 * clamp(10px, 1.2vw, 18px)) / 4);
    background: #FFFFFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 1.5vw, 22px);
    height: clamp(60px, 5.5vw, 96px);
    box-sizing: border-box;
    transition: transform 0.3s, box-shadow 0.3s;
}
.partner-logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.partner-logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* 滚动公司名称：两排一起横向滚动 */
.partner-names-scroll {
    width: 100%;
    margin-top: clamp(12px, 2vw, 20px);
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 0.8vw, 12px);
}
.partner-names-row {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}
.partner-names-track {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(8px, 0.8vw, 12px);
    animation: partnerNamesScroll 60s linear infinite;
    white-space: nowrap;
    will-change: transform;
}
.partner-names-track-reverse {
    animation: partnerNamesScrollReverse 60s linear infinite;
}
.partner-name-item {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding: 20px;
    gap: 6px;
    background: #FFFFFF;
    border-radius: 4px;
    font-family: "Source Han Sans", "Noto Sans SC", sans-serif;
    font-size: clamp(12px, 1vw, 14px);
    color: #222222;
    flex-shrink: 0;
}
.partner-name-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}
@keyframes partnerNamesScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes partnerNamesScrollReverse {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}
.partner-names-row:hover .partner-names-track {
    animation-play-state: paused;
}

/* ---- Section 3: 服务项目 ---- */
.service-section {
    padding: clamp(40px, 6vw, 80px) 0;
    background: #F4FBFF;
}

.service-section .container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.service-header {
    text-align: center;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.service-label {
    display: block;
    color: #0534BA;
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: 500;
    margin-bottom: 8px;
}

.service-title {
    font-size: clamp(24px, 3.2vw, 40px);
    font-weight: bold;
    color: #222;
    margin-bottom: clamp(10px, 1.5vw, 16px);
}

.service-title .text-primary-blue {
    color: #0534BA;
}

.service-desc {
    color: #666;
    font-size: clamp(12px, 1.1vw, 16px);
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto;
}

.service-subheader-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: clamp(20px, 3vw, 32px);
}

.service-tags strong {
    display: block;
    color: #0534BA;
    font-size: clamp(13px, 1.2vw, 16px);
    margin-bottom: 4px;
}

.service-tags span {
    color: #666;
    font-size: clamp(12px, 1vw, 14px);
}

.service-count {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #0534BA;
}

.service-count strong {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: bold;
    line-height: 1;
}

.service-count span {
    font-size: clamp(14px, 1.5vw, 18px);
    color: #222;
}

.service-scroll-stage {
    position: relative;
    width: 100%;
    height: clamp(200px, 26vw, 300px);
    /* 控制滚动速度：数值越大滚动越慢 */
    --duration: 60s;
}

.service-columns {
    position: relative;
    display: flex;
    gap: clamp(10px, 2vw, 24px);
    height: 100%;
    padding-right: clamp(56px, 7vw, 100px);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.18) 8%,
        rgba(0, 0, 0, 0.65) 22%,
        #000 38%,
        #000 54%,
        rgba(0, 0, 0, 0.65) 70%,
        rgba(0, 0, 0, 0.18) 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.18) 8%,
        rgba(0, 0, 0, 0.65) 22%,
        #000 38%,
        #000 54%,
        rgba(0, 0, 0, 0.65) 70%,
        rgba(0, 0, 0, 0.18) 92%,
        transparent 100%
    );
}

.service-col {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.service-col-track {
    display: flex;
    flex-direction: column;
    will-change: transform;
    animation: serviceScroll var(--duration, 60s) linear infinite;
}

.service-col:nth-child(2) .service-col-track {
    animation-delay: calc(var(--duration, 30s) * -0.35);
}

.service-col:nth-child(3) .service-col-track {
    animation-delay: calc(var(--duration, 30s) * -0.7);
}

.service-col-track:hover {
    animation-play-state: paused;
}

@keyframes serviceScroll {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

.service-item {
    text-align: center;
    padding: clamp(2px, 0.35vw, 5px) 0;
    font-size: clamp(12px, 1.05vw, 16px);
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
    transform-origin: center;
}

.service-item.in-focus {
    opacity: 1;
    color: #0534BA;
    transform: scale(1.18);
    font-weight: 700;
}

.service-search-frame {
    position: absolute;
    left: 0;
    right: 0;
    top: 42%;
    transform: translateY(-50%);
    height: clamp(54px, 7vw, 84px);
    z-index: -1;
    pointer-events: none;
}

.service-search-outer {
    height: 100%;
    border-radius: clamp(48px, 10vw, 124px);
    border: 3px solid rgba(0, 71, 247, 0.4);
    padding: clamp(4px, 0.6vw, 8px);
    box-sizing: border-box;
    background: transparent;
    animation: serviceOuterPulse 5s ease-in-out infinite;
}

@keyframes serviceOuterPulse {
    0%, 100% {
        border-color: rgba(0, 71, 247, 0.5);
    }

    50% {
        border-color: rgba(0, 71, 247, 0);
    }
}

.service-search-inner {
    position: relative;
    height: 100%;
    border-radius: clamp(44px, 9.5vw, 120px);
    background: transparent;
    padding: 3px;
    box-sizing: border-box;
}

.service-search-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 3px;
    background: linear-gradient(95deg, #0047f7 7%, #2eb269 50%, #0047f7 93%);
    background-size: 200% 100%;
    animation: serviceGradientMove 6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes serviceGradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.service-search-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: clamp(8px, 1vw, 14px) clamp(12px, 1.8vw, 24px);
    border-radius: clamp(40px, 8.8vw, 112px);
    background: #fff;
    pointer-events: none;
}

.service-search-btn {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    /* 尺寸与间距随屏幕缩放 */
    width: clamp(56px, 6vw, 72px);
    height: clamp(34px, 3.5vw, 40px);
    padding: clamp(8px, 0.9vw, 12px) clamp(14px, 1.8vw, 24px);
    gap: clamp(6px, 0.9vw, 10px);
    border: none;
    border-radius: clamp(48px, 7vw, 85px);
    background: linear-gradient(270deg, #0534ba 0%, #0047f7 100%);
    cursor: pointer;
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.service-search-btn img {
    display: block;
    /* 图标随屏幕缩放，并与按钮尺寸联动 */
    width: clamp(14px, 1.4vw, 20px);
    height: clamp(14px, 1.4vw, 20px);
    filter: brightness(0) invert(1);
}

.service-search-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

@media (max-width: 767px) {
    .service-subheader-row {
        align-items: flex-start;
    }

    .service-scroll-stage {
        height: clamp(150px, 30vw, 220px);
    }

    .service-search-frame {
        height: clamp(58px, 8vw, 76px);
    }

    /* 小屏：按钮宽高缩小 */
    .service-search-btn {
        width: clamp(42px, 12vw, 52px);
        height: clamp(28px, 8vw, 32px);
        padding: 6px 12px;
        gap: 6px;
    }

    .service-columns {
        padding-right: clamp(40px, 9vw, 64px);
    }
}

@media (max-width: 480px) {
       .service-search-btn {
       display: none;
    }
    .service-subheader-row {
        flex-direction: column;
    }

    .service-count strong {
        font-size: 32px;
    }

    .service-scroll-stage {
        height: clamp(140px, 34vw, 190px);
    }

    /* 超小屏：输入框内边框高度加大 */
    .service-search-frame {
        height: clamp(52px, 14vw, 64px);
    }
}

/* ---- Responsive ---- */

/* 平板横屏：≤1199px */
@media (max-width: 1199px) {
    .data-highlight-number {
        font-size: 42px;
    }
}

/* 平板竖屏：≤991px */
@media (max-width: 991px) {
    .partners-title {
        font-size: 28px;
    }
    .partners-title .text-primary-blue {
        font-size: 28px;
    }

    /* LOGO 网格：4 列 */
    .partner-logo-card {
        flex: 0 0 calc((100% - 3 * clamp(10px, 1.2vw, 18px)) / 4);
        width: calc((100% - 3 * clamp(10px, 1.2vw, 18px)) / 4);
        max-width: none;
        box-sizing: border-box;
    }

    .data-highlights-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .data-highlight-item {
        flex: 0 0 auto;
        min-width: 130px;
    }
    .data-highlight-divider {
        display: none;
    }

    .cockpit-left-col,
    .cockpit-right-col {
        flex: 1 1 100%;
    }
    .cockpit-tabs-wrapper {
        justify-content: center;
    }
    .cockpit-left {
        text-align: left;
    }
    .cockpit-feature-item {
        text-align: left;
    }
    .cockpit-tab {
        padding: 8px 18px;
        font-size: 13px;
    }
}

/* 手机端：≤767px */
@media (max-width: 767px) {
    .case-partners {
        padding: 40px 0;
    }
    .partners-title {
        font-size: 22px;
    }
    .partners-title .text-primary-blue {
        font-size: 22px;
    }
    .partner-logo-card {
        flex: 0 0 calc((100% - 2 * 10px) / 3);
        width: calc((100% - 2 * 10px) / 3);
        max-width: none;
        height: 70px;
        padding: 10px;
    }
    /* 移动端滚动行字号 */
    .partner-name-item {
        padding: 14px 16px;
        font-size: 12px;
    }
    .partner-name-icon {
        width: 12px;
        height: 12px;
    }

    .data-highlights-row {
        gap: 1rem;
    }
    .data-highlight-item {
        flex: 0 0 calc(50% - 0.5rem);
    }
    .data-highlight-number {
        font-size: clamp(24px, 6vw, 32px);
    }
    .data-highlight-label {
        font-size: 13px;
    }
    .data-highlight-sub {
        font-size: 12px;
    }

    .cockpit-section {
        padding: 32px 0 50px;
    }
    .cockpit-tabs-wrapper {
        justify-content: flex-start;
    }
    .cockpit-tabs {
        max-width: 100%;
    }
    .cockpit-tab {
        padding: 8px 14px;
        font-size: 12px;
    }
    .cockpit-right-col {
        margin-top: 20px;
    }
    .cockpit-right {
        padding: 0;
    }
    .cockpit-img {
        max-width: 100%;
    }
    .cockpit-caption {
        text-align: left;
    }
}

/* 小手机：≤480px */
@media (max-width: 480px) {
    .partners-grid {
        gap: 6px;
    }
    .partner-logo-card {
        flex: 0 0 calc((100% - 2 * 6px) / 3);
        width: calc((100% - 2 * 6px) / 3);
        max-width: none;
        height: 56px;
        padding: 6px;
        border-radius: 6px;
        box-sizing: border-box;
    }
    .partner-name-item {
        padding: 12px;
        font-size: 11px;
        border-radius: 3px;
    }
    .partner-name-icon {
        width: 11px;
        height: 11px;
    }

    .data-highlight-number {
        font-size: 22px;
    }
    .data-highlight-label {
        font-size: 12px;
    }
    .data-highlight-sub {
        font-size: 11px;
    }

    .cockpit-tab {
        font-size: 11px;
        padding: 6px 12px;
    }
}