/* 解决滚动条问题，确保页面没有右侧滚动条 */
.cases-page {
    min-height: 100vh;
    padding-top: 0; /* 移除顶部内边距 */
    overflow-x: hidden; /* 防止水平滚动 */
    position: relative;
}

.cases-page::-webkit-scrollbar {
    width: 0 !important;
    display: none !important;
}

.top-black-bar {
    width: 100%;
    height: 70px; /* 与App.vue中顶栏高度一致 */
    background-color: #000000;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.header-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 0; /* 移除底部间距 */
    margin-top: 0px; /* 添加顶部边距，与顶栏高度一致，确保默认状态下正确显示 */
}
.bg_banner{
    width: 100%;height:550px;
}
.allbannerm {
    max-width: 1200px;
    height: 100%;
    position: relative;
    margin: 0 auto;
}
.allbannerm p:nth-child(2) {
    font-size: 58px;
    color: white;
    left: 44%;
    letter-spacing: 10px;
    top: 9.3%;
    position: absolute;
}
.allbannerm h1 {
    font-size: 50px;
    color: white;
    left: 64.7%;
    letter-spacing: 10px;
    top: 15%;
    position: absolute;
}
.allbannerm p:nth-child(4) {
    font-size: 25px;
    color: #5E8EAC;
    left: 60.4%;
    letter-spacing: 5px;
    top: 33%;
    position: absolute;
}
.allbannerm p:nth-child(5) {
    font-size: 27px;
    color: white;
    left: 59.4%;
    letter-spacing: 5px;
    top: 45%;
    position: absolute;
    width: 500px;
}
.upd2 {
    animation: heart2 1s ease-in-out 0s infinite alternate;
}

.upd2 {
    animation: heart2 1s ease-in-out 0s infinite alternate;
}

@keyframes heart2 {
    from {
        margin-top: 0px;
    }
    to {
        margin-top: -4px;
    }
}


@keyframes heart2 {
    from {
        transform: translate(0, 0)
    }
    to {
        transform: translate(0, 4px)
    }
}

.upd3 {
    animation: heart2 1s ease-in-out 1s infinite alternate;
}

@keyframes heart2 {
    from {
        margin-top: 0px;
    }
    to {
        margin-top: -4px;
    }
}


@keyframes heart2 {
    from {
        transform: translate(0, 0)
    }
    to {
        transform: translate(0, 4px)
    }
}

.joinimg1 {
    position: absolute;
    top: 6%;
    left: -47px;
}

.header-image {
    width: 100%;
    display: block;
}

.container {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 20px;
}

/* 案例内容部分样式 */
.cases-content {
    /*padding: 20px 0;*/
    background-color: #f9f9f9;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.section-title::after {
    display: none;
}

/* 分类标签样式 */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
}

.category-tabs::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #eee;
}

.category-tab {
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #666;
    position: relative;
    background: transparent;
    border: none;
    text-decoration: none;
}

.category-tab:hover {
    color: #333;
}

.category-tab.active {
    color: #333;
    font-weight: bold;
}

.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #333;
}

/* 案例展示行样式 */
.cases-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
}

/* 案例卡片样式 */
.case-card {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 45%;
}

.case-brand {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
}

.brand-label {
    display: inline-block;
    padding: 5px 10px;
    background-color: #ff7f50;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    margin-right: 10px;
}

.case-brand-name{
    font-weight: bold;
    color: #000;
}


.case-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.case-info {
    flex: 1;
}

.info-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 15px;
}

.info-value {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.case-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.qrcode-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.qrcode-text {
    margin-top: 5px;
    font-size: 14px;
}

.case-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff7f50;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.case-image {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    margin-top: 10px;
    height: 300px;
}

.case-image-content {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 分页信息样式 */
.pagination-info {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

/* 分页控件样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    color: #333;
    border: 1px solid #eee;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #333;
    color: #333;
}

.pagination-btn:active:not(:disabled) {
    background: #333;
    color: white;
    border-color: #333;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-icon {
    width: 16px;
    height: 16px;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.page-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #000;
    text-decoration: none;
}

.page-number:hover:not(.active):not(.disabled) {
    background: #f5f5f5;
    border-color: #ddd;
}

.page-number.active {
    background: #333;
    color: white;
    border-color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-number.disabled {
    cursor: default;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .container {
        padding: 0!important;
    }
    .partners-carousel-container::before {
        left: -25px;
    }
    .partners-carousel-container::after {
        right: -25px;
    }
    .partner-item {
        flex: 0 0 160px;
        height: 50px;
    }
    .partner-item img {
        max-width: 100%;
        max-height: 100%;
    }

    .cases-page {
        padding-top: 0px; /* 顶部内边距等于顶栏高度 */
        margin-top:60px!important;
    }

    .top-black-bar {
        height: 60px; /* 移动端顶栏高度 */
    }

    .header-container {
        margin-top: 0px;
        width: 120%; /* 使头图宽度超出屏幕 */
        margin-left: -10%; /* 负边距使图片两侧均超出 */
        overflow: hidden;
    }

    .header-image {
        width: 150%; /* 减小宽度，让两侧显示更多内容 */
        max-width: none;
        margin-left: -25%; /* 调整居中位置 */
        display: block;
        object-fit: cover;
        object-position: center;
        height: 100%;
    }

    .cases-content {
        padding: 20px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .category-tabs {
        gap: 10px;
        margin-bottom: 30px;
    }

    .category-tab {
        padding: 8px 15px;
        font-size: 14px;
    }

    .cases-row {
        flex-direction: column;
        gap: 20px;
    }

    .case-card {
        min-width: auto;
        padding: 20px;
    }
}

/* 更小屏幕设备适配 */
@media (max-width: 480px) {
    .cases-page {
        padding-top: 0; /* 移除顶部内边距 */
        margin-top: 45px!important;
    }

    .top-black-bar {
        height: 0px; /* 更小屏幕的顶栏高度 */
    }


    .cases-content {
        padding: 20px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .category-tabs {
        gap: 8px;
        margin-bottom: 25px;
    }

    .category-tab {
        padding: 6px 12px;
        font-size: 13px;
    }

    .case-brand {
        font-size: 16px;
    }

    .brand-label {
        font-size: 12px;
        padding: 4px 8px;
    }

    .case-description {
        font-size: 13px;
    }

    .info-title {
        font-size: 14px;
    }

    .info-value {
        font-size: 13px;
    }

    .qrcode-image {
        width: 80px;
        height: 80px;
    }
    .case-image {
        height: 200px;
    }

    .dual-image {
        height: 200px;
    }

    .category-tab {
        font-size: 14px;
        padding: 8px 0;
    }

    .category-tabs {
        gap: 20px;
        margin-bottom: 40px;
    }

    .header-image {
        width: 150%;
        margin-left: -25%;
    }
}


.partner-item {
    flex: 0 0 200px;
    height: 100px;
    margin: 0 15px;
    padding: 10px;
    background: rgba(240, 240, 240, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: perspective(800px) rotateY(10deg);
}

.partner-item:hover {
    transform: perspective(800px) rotateY(0deg) translateY(-5px);
    background: rgba(245, 245, 245, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 15px rgba(0, 102, 255, 0.1);
}

.partner-item img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: grayscale(40%);
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
}


/* 添加动画样式 */
.animate-on-scroll {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-up.animated {
    transform: translateY(0);
}

/* 双图展示样式 */
.dual-image {
    display: flex;
    gap: 10px;
    height: 300px;
}

.image-half {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.dual-image-content {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .dual-image {
        height: 250px;
        flex-direction: row; /* 保持水平排列 */
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 25px 0;
        width: 100%;
        margin: 0;
    }

    .contact-title{
        margin-bottom:20px!important;
    }
}
@media (max-width: 480px) {
    .contact-title{
        margin-bottom:20px!important;
    }
    .partners-section {
        padding: 20px 0;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .partners-title h2 {
        font-size: 20px;
    }

    .partner-item {
        flex: 0 0 120px;
        height: 60px;
        margin: 0 8px;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .pagination-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .pagination-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
@media (max-width: 480px) {
    .pagination-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 16px;
    }
}
@media (max-width: 480px) {
    .pagination-container {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 战略合作伙伴区域 */
.partners-section {
    width: 100%;
    max-width: 100%;
    margin-top: 0; /* 移除顶部间距 */
    background-color: white;
    padding: 40px 0;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);*/
    position: relative; /* 确保层叠顺序正确 */
    z-index: 2; /* 确保覆盖在背景之上 */
}

/* 添加顶部过渡效果 */
.partners-section::before {
    /*content: '';*/
    /*position: absolute;*/
    /*top: -15px;*/
    /*left: 0;*/
    /*width: 100%;*/
    /*height: 20px;*/
    /*background: linear-gradient(to bottom, #010522, white);*/
}

.partners-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.partners-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #102048;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.partners-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0066FF, rgba(0, 102, 255, 0.5));
    border-radius: 3px;
}


/* 合作伙伴滚动展示 */
.partners-carousel-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 20px 0;
    position: relative;
}

.partners-carousel-container::before,
.partners-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-carousel-container::before {
    left: 0;
    background: linear-gradient(90deg, white, transparent);
}

.partners-carousel-container::after {
    right: 0;
    background: linear-gradient(-90deg, white, transparent);
}

.partners-carousel {
    display: flex;
    width: 200%;
    animation: scroll 120s linear infinite;
}

.partners-carousel.reverse {
    animation: scroll-reverse 120s linear infinite;
}

.partners-track {
    display: flex;
    width: 100%;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* 动画样式 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-up.animated {
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .bg_banner{
        height: 375px;
    }
    .allbannerm p:nth-child(2){
        font-size: 36px;
        left: 14%;
        top: 0;
    }
    .allbannerm h1 {
        font-size: 36px;
        left: 14.7%;
    }
    .allbannerm p:nth-child(4){
        left: 14.4%;
        width: 72%;
    }
    .allbannerm p:nth-child(5) {
        font-size: 20px;
        left: 14.4%;
        top: 55%;
    }

}

/* 横向滚动容器 */
.scroll-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

.scroll-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
    padding-left: 5px;
}

.scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* 行容器 - 自适应项目布局 */
.scroll-row {
    display: inline-flex;
    gap: 15px;
    padding: 0 5px 15px;
}

/* 内容项样式 - 自适应宽度 */
.item {
    flex: 0 0 auto;
    width: calc(50vw - 30px); /* 移动端默认显示2个 */
    max-width: 280px; /* 最大宽度限制 */
    min-width: 160px; /* 最小宽度限制 */
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.item:hover {
    transform: translateY(-3px);
}

.item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item p {
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 不同行的主题色 */
.row-1 .item { border-left: 4px solid #4285f4; }
.row-2 .item { border-left: 4px solid #34a853; }
.row-3 .item { border-left: 4px solid #ea4335; }

/* 响应式设计 */
@media (min-width: 600px) {
    .item {
        width: calc(33.333vw - 30px); /* 平板显示3个 */
    }
}

@media (min-width: 900px) {
    .item {
        width: calc(25vw - 30px); /* 小桌面显示4个 */
    }
}

@media (min-width: 1200px) {
    .item {
        width: calc(20vw - 30px); /* 大桌面显示5个 */
    }
}