/* 案例展示页 */
.case-page {
    position: relative;
    min-height: 100vh;
    background: #F5F7FA;
}

/* 顶部 Hero */
.case-hero {
    position: relative;
    padding-top: calc(86px * var(--layout-scale));
    box-sizing: border-box;
    overflow: visible;
}

.case-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(1122px * var(--layout-scale));
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.case-hero-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.case-hero-inner {
    position: relative;
    z-index: 1;
    width: calc(1440px * var(--layout-scale));
    margin: 0 auto;
    min-height: calc((1122px - 86px) * var(--layout-scale));
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow: visible;
    /* padding-bottom: calc(32px * var(--layout-scale)); */
}

.case-hero-head {
    text-align: center;
    padding-top: calc(48px * var(--layout-scale));
}

.case-hero-title {
    margin: 0;
    font-size: calc(48px * var(--font-scale));
    font-weight: bold;
    color: #070B12;
    line-height: calc(67px * var(--layout-scale));
}

.case-hero-title em {
    font-style: normal;
    background: linear-gradient(35.55deg, #3676FF 0%, #003AFF 50%, #01ABFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.case-hero-desc {
    margin: calc(16px * var(--layout-scale)) auto 0;
    max-width: calc(900px * var(--layout-scale));
    font-size: calc(20px * var(--font-scale));
    font-weight: 400;
    color: #5C6573;
    line-height: calc(28px * var(--layout-scale));
}

/* 3D 轮播 */
.case-hero-carousel {
    position: relative;
    z-index: 2;
    width: 100vw;
    margin-top: calc(32px * var(--layout-scale));
    align-self: center;
    overflow: visible;
}

.case-hero-carousel-stage {
    position: relative;
    width: 100%;
    height: calc(460px * var(--layout-scale));
    perspective: calc(1400px * var(--layout-scale));
    perspective-origin: 50% 42%;
    overflow: visible;
}

.case-hero-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.case-hero-slide {
    position: absolute;
    left: 50%;
    top: 46%;
    width: calc(520px * var(--layout-scale));
    transform-style: preserve-3d;
    transform: translate(-50%, -50%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
    will-change: transform, opacity;
    cursor: pointer;
    backface-visibility: hidden;
}

.case-hero-slide.is-active {
    cursor: default;
}

.case-hero-slide-panel {
    position: relative;
    width: 100%;
    height: calc(400px * var(--layout-scale));
    border-radius: calc(20px * var(--layout-scale));
    overflow: hidden;
    background: linear-gradient(180deg, #0B1A33 0%, #050B18 100%);
    box-shadow: 0 calc(20px * var(--layout-scale)) calc(48px * var(--layout-scale)) rgba(7, 11, 18, 0.28);
}

.case-hero-slide.is-active .case-hero-slide-panel {
    box-shadow: 0 calc(28px * var(--layout-scale)) calc(64px * var(--layout-scale)) rgba(7, 11, 18, 0.36);
}

.case-hero-slide-panel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(5, 11, 24, 0) 0%, rgba(5, 11, 24, 0.92) 100%);
    pointer-events: none;
}

.case-hero-slide-cover {
    width: 100%;
    height: 100%;
}

.case-hero-slide-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-hero-slide-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(24px * var(--layout-scale));
    z-index: 1;
    margin: 0;
    padding: 0 calc(24px * var(--layout-scale));
    text-align: center;
    font-size: calc(20px * var(--font-scale));
    font-weight: 500;
    color: #FFFFFF;
    line-height: calc(28px * var(--layout-scale));
    text-shadow: 0 calc(2px * var(--layout-scale)) calc(8px * var(--layout-scale)) rgba(0, 0, 0, 0.35);
}

/* 台子 + 下滑提示 */
.case-hero-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: calc(24px * var(--layout-scale));
}

.case-hero-stage {
    width: calc(1536px * var(--layout-scale));
}

.case-hero-stage img {
    display: block;
    width: 100%;
    height: auto;
}

.case-hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.case-hero-scroll-hint img {
    display: block;
    width: calc(32px * var(--layout-scale));
    height: auto;
    animation: case-scroll-hint-bounce 1.8s ease-in-out infinite;
}

.case-hero-scroll-hint p {
    margin: calc(8px * var(--layout-scale)) 0 0;
    font-size: calc(16px * var(--font-scale));
    font-weight: 400;
    color: #070B12;
    line-height: calc(22px * var(--layout-scale));
}

@keyframes case-scroll-hint-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(calc(6px * var(--layout-scale)));
    }
}

/* 全部案例 */
.case-all {
    position: relative;
    padding: calc(80px * var(--layout-scale)) 0 calc(80px * var(--layout-scale));
    overflow: hidden;
}

.case-all-bg {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: calc(1394px * var(--layout-scale));
    z-index: 0;
    pointer-events: none;
}

.case-all-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.case-all-inner {
    position: relative;
    z-index: 1;
    width: calc(1440px * var(--layout-scale));
    margin: 0 auto;
}

.case-all-title {
    margin: 0 0 calc(40px * var(--layout-scale));
    text-align: center;
    font-size: calc(48px * var(--font-scale));
    font-weight: bold;
    color: #070B12;
    line-height: calc(67px * var(--layout-scale));
}

.case-all-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(24px * var(--layout-scale));
    margin-bottom: calc(32px * var(--layout-scale));
}

.case-all-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: calc(24px * var(--layout-scale));
    flex: 1;
    min-width: 0;
}

.case-all-tab {
    position: relative;
    padding: 0 0 calc(6px * var(--layout-scale));
    border: none;
    background: transparent;
    font-size: calc(16px * var(--font-scale));
    font-weight: 400;
    color: #070B12;
    line-height: calc(22px * var(--layout-scale));
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.case-all-tab::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: calc(32px * var(--layout-scale));
    height: calc(2px * var(--layout-scale));
    transform: translateX(-50%);
    background: transparent;

    transition: background 0.25s ease;
}

.case-all-tab:hover {
    color: #1654FF;
}

.case-all-tab.is-active {
    color: #1654FF;
    font-weight: 500;
}

.case-all-tab.is-active::after {
    background: #1654FF;
}

.case-all-search {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    width: calc(416px * var(--layout-scale));
    height: calc(48px * var(--layout-scale));
    padding: calc(8px * var(--layout-scale));
    /* padding: calc(14px * var(--layout-scale)) calc(16px * var(--layout-scale)); */
    background: #FFFFFF;
    border: calc(1px * var(--layout-scale)) solid #ffffff;
    border-radius: calc(50px * var(--layout-scale));
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.case-all-search-icon {
    flex-shrink: 0;
    display: block;
    width: calc(20px * var(--layout-scale));
    height: calc(20px * var(--layout-scale));
    object-fit: contain;
    margin-left: calc(8px * var(--layout-scale));
}

.case-all-search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0 calc(8px * var(--layout-scale));
    padding: 0;
    border: none;
    background: transparent;
    font-weight: 400;
    font-size: calc(16px * var(--font-scale));
    color: #070B12;
    outline: none;
}

.case-all-search-input::placeholder {
    color: #98A2B3;
}

.case-all-search-btn {
    flex-shrink: 0;

    padding: calc(6px * var(--layout-scale)) calc(16px * var(--layout-scale));
    border: none;
    border-radius: calc(80px * var(--layout-scale));
    background: #1654FF;
    font-size: calc(16px * var(--font-scale));
    font-weight: 400;
    color: #FFFFFF;
    cursor: pointer;
}

.case-all-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: calc(32px * var(--layout-scale));
}

.case-all-card {
    background: #FFFFFF;
    border-radius: calc(16px * var(--layout-scale));
    overflow: hidden;

    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.case-all-card:hover {
    box-shadow: 0 calc(8px * var(--layout-scale)) calc(24px * var(--layout-scale)) rgba(7, 11, 18, 0.1);
    transform: translateY(calc(-4px * var(--layout-scale)));
}

.case-all-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.case-all-card-pic {
    width: 100%;
    height: calc(252px * var(--layout-scale));
    background: #1A1D24;
    overflow: hidden;
}

.case-all-card-pic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-all-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: calc(16px * var(--layout-scale));
    box-sizing: border-box;
}

.case-all-card-title {
    margin: 0;
    font-size: calc(24px * var(--font-scale));
    font-weight: bold;
    color: #000000;
    line-height: calc(34px * var(--layout-scale));
}

.case-all-card-desc {
    margin: calc(8px * var(--layout-scale)) 0 calc(16px * var(--layout-scale));
    font-size: calc(16px * var(--font-scale));
    font-weight: 400;
    color: #5C6573;
    line-height: calc(22px * var(--layout-scale));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-all-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: calc(8px * var(--layout-scale));
    margin-top: auto;
}

.case-all-tag {
    display: inline-flex;
    align-items: center;
    padding: calc(4px * var(--layout-scale)) calc(12px * var(--layout-scale));
    border-radius: calc(80px * var(--layout-scale));
    background: #F2F2F3;
    font-size: calc(14px * var(--font-scale));
    font-weight: 400;
    color: #84868C;
    line-height: calc(20px * var(--layout-scale));
    white-space: nowrap;
}

.case-all-tag.is-primary {
    background: #E7EEFF;
    color: #1654FF;
}

.case-all-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(80px * var(--layout-scale)) 0 calc(120px * var(--layout-scale));
}

.case-all-empty[hidden] {
    display: none;
}

.case-all-empty img {
    display: block;
    width: calc(120px * var(--layout-scale));
    height: auto;
    object-fit: contain;
}

.case-all-empty p {
    margin: calc(6px * var(--layout-scale)) 0 0;
    font-size: calc(16px * var(--font-scale));
    font-weight: 400;
    color: #5C6573;
    line-height: calc(22px * var(--layout-scale));
}

.case-all-grid[hidden],
.case-all .news-pagination[hidden] {
    display: none !important;
}

.case-all .news-pagination {
    margin-top: calc(40px * var(--layout-scale));
}

/* 案例展示页响应式 ≤1200px */
@media (max-width: 1200px) {
    .case-page {
        overflow-x: hidden;
    }

    .case-hero {
        overflow-x: hidden;
    }

    .case-hero-bg {
        height: 520px;
    }

    .case-hero-inner,
    .case-all-inner {
        width: 100%;
        max-width: 100%;
        padding-left: 40px;
        padding-right: 40px;
        box-sizing: border-box;
    }

    .case-hero-inner {
        min-height: auto;
        overflow-x: hidden;
    }

    .case-hero-head {
        padding-top: 32px;
    }

    .case-hero-title {
        font-size: 32px;
        line-height: 44px;
    }

    .case-hero-desc {
        max-width: 100%;
        margin-top: 12px;
        font-size: 14px;
        line-height: 22px;
    }

    .case-hero-carousel {
        width: 100%;
        max-width: 100%;
        margin-top: 24px;
        overflow: hidden;
    }

    .case-hero-carousel-stage {
        height: 320px;
        perspective: 900px;
        overflow: hidden;
    }

    .case-hero-slide {
        width: min(56vw, 400px);
    }

    .case-hero-slide-panel {
        height: 280px;
        border-radius: 14px;
    }

    .case-hero-slide-title {
        bottom: 16px;
        padding: 0 16px;
        font-size: 16px;
        line-height: 24px;
    }

    .case-hero-platform {
        margin-top: 16px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .case-hero-stage {
        width: 100%;
        max-width: 720px;
    }

    .case-hero-scroll-hint p {
        font-size: 14px;
        line-height: 20px;
    }

    .case-all {
        padding: 52px 0;
    }

    .case-all-bg {
        height: 100%;
    }

    .case-all-title {
        margin-bottom: 28px;
        font-size: 32px;
        line-height: 44px;
    }

    .case-all-toolbar {
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 24px;
        max-width: 100%;
        overflow: hidden;
    }

    .case-all-tabs {
        gap: 16px 20px;
        max-width: 100%;
    }

    .case-all-tab {
        font-size: 14px;
        line-height: 20px;
    }

    .case-all-search {
        width: 100%;
        max-width: 100%;
        height: 44px;
        border-radius: 44px;
    }

    .case-all-search-input,
    .case-all-search-btn {
        font-size: 14px;
    }

    .case-all-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .case-all-card {
        border-radius: 12px;
    }

    .case-all-card-pic {
        height: auto;
        aspect-ratio: 336 / 252;
    }

    .case-all-card-body {
        padding: 14px;
    }

    .case-all-card-title {
        font-size: 20px;
        line-height: 28px;
    }

    .case-all-card-desc {
        margin: 6px 0 12px;
        font-size: 14px;
        line-height: 22px;
    }

    .case-all-tag {
        font-size: 12px;
        line-height: 18px;
        padding: 3px 10px;
    }

    .case-all .news-pagination {
        justify-content: center;
        gap: 6px;
        margin-top: 28px;
    }

    .case-all .news-pagination-total,
    .case-all .news-pagination-size,
    .case-all .news-pagination-pages a,
    .case-all .news-pagination-pages span,
    .case-all .news-pagination-jump {
        font-size: 14px;
    }

    .case-all .news-pagination-pages a,
    .case-all .news-pagination-pages span {
        min-width: 28px;
        height: 28px;
        padding: 3px 8px;
    }
}

/* 案例展示页响应式 ≤800px */
@media (max-width: 800px) {
    .case-hero {
        padding-top: 64px;
        overflow-x: hidden;
    }

    .case-hero-bg {
        height: 380px;
    }

    .case-hero-inner,
    .case-all-inner {
        padding-left: 32px;
        padding-right: 32px;
        overflow-x: hidden;
    }

    .case-hero-head {
        padding-top: 20px;
    }

    .case-hero-title {
        font-size: 24px;
        line-height: 32px;
    }

    .case-hero-desc {
        margin-top: 10px;
        font-size: 13px;
        line-height: 20px;
    }

    .case-hero-carousel {
        margin-top: 16px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .case-hero-carousel-stage {
        height: 250px;
        perspective: 700px;
        overflow: hidden;
    }

    .case-hero-slide {
        width: min(86vw, 300px);
    }

    .case-hero-slide-panel {
        height: 200px;
        border-radius: 12px;
        box-shadow: 0 12px 28px rgba(7, 11, 18, 0.22);
    }

    .case-hero-slide.is-active .case-hero-slide-panel {
        box-shadow: 0 16px 36px rgba(7, 11, 18, 0.28);
    }

    .case-hero-slide-title {
        bottom: 12px;
        padding: 0 12px;
        font-size: 14px;
        line-height: 20px;
    }

    .case-hero-platform {
        margin-top: 12px;
    }

    .case-hero-stage {
        max-width: 100%;
    }

    .case-hero-scroll-hint img {
        width: 24px;
    }

    .case-hero-scroll-hint p {
        margin-top: 6px;
        font-size: 13px;
        line-height: 18px;
    }

    .case-all {
        padding: 40px 0;
    }

    .case-all-title {
        margin-bottom: 20px;
        font-size: 24px;
        line-height: 32px;
    }

    .case-all-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 16px;
        max-width: 100%;
        overflow: hidden;
    }

    .case-all-tabs {
        flex-wrap: nowrap;
        gap: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .case-all-tabs::-webkit-scrollbar {
        display: none;
    }

    .case-all-tab {
        flex-shrink: 0;
        margin-right: 20px;
        font-size: 14px;
        line-height: 20px;
        padding-bottom: 8px;
    }

    .case-all-tab:last-child {
        margin-right: 0;
    }

    .case-all-search {
        height: 40px;
    }

    .case-all-search-icon {
        width: 16px;
        height: 16px;
    }

    .case-all-search-input,
    .case-all-search-btn {
        font-size: 13px;
    }

    .case-all-search-btn {
        padding: 5px 14px;
    }

    .case-all-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .case-all-card {
        border-radius: 10px;
    }

    .case-all-card:hover {
        transform: none;
    }

    .case-all-card-pic {
        aspect-ratio: 16 / 10;
    }

    .case-all-card-body {
        padding: 12px;
    }

    .case-all-card-title {
        font-size: 16px;
        line-height: 24px;
    }

    .case-all-card-desc {
        margin: 6px 0 10px;
        font-size: 13px;
        line-height: 20px;
        -webkit-line-clamp: 2;
    }

    .case-all-tag {
        font-size: 12px;
        line-height: 16px;
        padding: 2px 8px;
    }

    .case-all-empty {
        padding: 48px 0 64px;
    }

    .case-all-empty img {
        width: 88px;
    }

    .case-all-empty p {
        font-size: 14px;
    }

    .case-all .news-pagination {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
    }

    .case-all .news-pagination-total {
        width: 100%;
        text-align: center;
    }

    .case-all .news-pagination-size,
    .case-all .news-pagination-btn,
    .case-all .news-pagination-pages,
    .case-all .news-pagination-jump {
        font-size: 13px;
    }

    .case-all .news-pagination-pages {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .case-all .news-pagination-pages a,
    .case-all .news-pagination-pages span {
        min-width: 26px;
        height: 26px;
        padding: 2px 6px;
        font-size: 13px;
    }

    .case-all .news-pagination-jump input {
        width: 46px;
        height: 28px;
        font-size: 13px;
    }

    .case-page~.side-float {
        display: none;
    }
}

/* 案例详情页 */
.case-detail-page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F5F7FA;
}

.case-detail-section {
    flex: 1 0 auto;
    padding: calc(118px * var(--layout-scale)) 0 calc(80px * var(--layout-scale));
}

.case-detail-page > .site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

.case-detail-inner {
    width: calc(1440px * var(--layout-scale));
    margin: 0 auto;
}

.case-detail-card {
    display: flex;
    align-items: stretch;
    background: #FFFFFF;
    border-radius: 16px 0px 0px 16px;
    overflow: hidden;

}

.case-detail-card-body {
    flex: 1;
    min-width: 0;
    padding: calc(40px * var(--layout-scale));
    box-sizing: border-box;
}

.case-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: calc(8px * var(--layout-scale));
    margin-bottom: calc(24px * var(--layout-scale));
    font-size: calc(16px * var(--font-scale));
    font-weight: 400;
    line-height: calc(22px * var(--layout-scale));
}

.case-detail-breadcrumb a {
    color: #5C6573;
    text-decoration: none;
}

.case-detail-breadcrumb a:hover {
    color: #1654FF;
}

.case-detail-breadcrumb-sep,
.case-detail-breadcrumb .is-current {
    color: #1654FF;
}

.case-detail-title {
    margin: 0;
    font-size: calc(40px * var(--font-scale));
    font-weight: bold;
    color: #070B12;
    line-height: calc(56px * var(--layout-scale));
}

.case-detail-quote {
    position: relative;
    margin-top: calc(40px * var(--layout-scale));
    padding: calc(32px * var(--layout-scale)) calc(64px * var(--layout-scale)) calc(24px * var(--layout-scale));
}

.case-detail-quote-open,
.case-detail-quote-close {
    position: absolute;
    display: block;
    width: calc(50px * var(--layout-scale));
    height: auto;
    object-fit: contain;
}

.case-detail-quote-open {
    top: 0;
    left: 0;
}

.case-detail-quote-close {
    right: 0;
    bottom: 0;
}

.case-detail-quote-text {
    margin: 0;
    font-size: calc(20px * var(--font-scale));
    font-weight: 400;
    color: #2D3440;
    line-height: calc(28px * var(--layout-scale));
}

.case-detail-card-visual {
    flex: 0 0 calc(667px * var(--layout-scale));
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1A1D24;
    padding: calc(24px * var(--layout-scale));
    box-sizing: border-box;
    border-radius: 0px 16px 16px 0px;
}

.case-detail-card-visual img {
    display: block;
    width: 100%;
    /* max-width: calc(560px * var(--layout-scale)); */
    height: auto;
    object-fit: contain;
}

.case-detail-pages {
    margin-top: calc(120px * var(--layout-scale));
}

.case-detail-pages-title {
    margin: 0 0 calc(48px * var(--layout-scale));
    font-size: calc(48px * var(--font-scale));
    font-weight: bold;
    color: #070B12;
    line-height: calc(67px * var(--layout-scale));
    text-align: center;
}

.case-detail-pages-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
    gap: calc(16px * var(--layout-scale));
}

.case-detail-pages-grid li {
    width: calc(226px * var(--layout-scale));
    border-radius: calc(20px * var(--layout-scale));
    border: calc(1px * var(--layout-scale)) solid #E4E7EC;
}

.case-detail-pages-grid img {
    display: block;
    width: 100%;
    height: calc(490px * var(--layout-scale));
    border-radius: calc(20px * var(--layout-scale));
}