/* ========= 荣誉资质样式开始 ========= */
.qualifications {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    text-align: center;
}

.qualifications-section-sub {
    text-align: center;
    max-width: 720px;
    margin: 12px auto 0;
    color: #4a627a !important;
    font-size: 1rem;
}

.honors-section {
    /*background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);*/
    background: url("/img/ryzz_02.jpg") center no-repeat;
    padding: 40px 0;
}

/* 确保标题区域有足够对比度 */
.honors-section .section-title {
    position: relative;
    z-index: 2;
}

.honors-section .why-title {
    text-align: center;
}

.honors-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    z-index: 2;
}

.honors-carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 24px;
}

.honors-carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    width: 100%;
}

.honor-card-group {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 8px 4px;
}

.honor-card {
    /*background: white;*/
    /*border-radius: 20px;*/
    /*padding: 28px 16px;*/
    text-align: center;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);*/
    transition: all 0.3s ease;
    /*border: 1px solid rgba(0, 82, 204, 0.08);*/
    /*cursor: default;*/
}

.honor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 82, 204, 0.12);
}

.honor-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);*/
    margin-bottom: 12px;
    object-fit: contain;
    display: block;
}

.honor-badge {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #FFFFFF;
    background: transparent;
    padding: 8px 8px;
    border-radius: 0;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
}

/* 切换按钮样式 */
.honor-tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.honor-tab-btn {
    padding: 10px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    background: #f0f2f8;
    color: #4a627a;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.honor-tab-btn.active {
    background: linear-gradient(135deg, #0052cc 0%, #0a6cff 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.honor-tab-btn:hover:not(.active) {
    background: #e4e8f0;
    transform: translateY(-2px);
}

/* 左右切换按钮 */
.carousel-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0052cc;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.15);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: #0052cc;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 82, 204, 0.25);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* 轮播指示点 */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    /*margin-top: 32px;*/
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dots .dot.active {
    width: 28px;
    background: black;
}

.honors-section .fade-scroll-top {
    opacity: 0;
    transform: translateY(-160px);
    transition: opacity 2s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.honors-section .fade-scroll-top.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .honor-card-group {
        gap: 16px;
    }

    .honor-badge {
        font-size: 0.9rem;
        padding: 6px 6px;
    }
}

@media (max-width: 992px) {
    .honor-card-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .honors-carousel-wrapper {
        gap: 8px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .honor-card-group {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .honor-tab-btn {
        padding: 8px 24px;
        font-size: 1.1rem;
    }

    .qualifications {
        font-size: 2.2rem;
    }
}

/* 基础容器调整 */
@media (max-width: 768px) {
    .honors-section {
        padding: 40px 0;
        overflow: hidden;
    }

    /* 标题区域 */
    .honors-section .section-title h2 {
        font-size: 1.6rem;
        text-align: center;
    }

    .qualifications-section-sub {
        font-size: 0.85rem;
        text-align: center;
        margin-top: 8px;
    }

    /* 切换按钮组 - 固定在顶部，不随滚动 */
    .honor-tab-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin: 24px 0 20px;
        position: relative;
        z-index: 5;
    }

    .honor-tab-btn {
        padding: 8px 28px;
        font-size: 0.9rem;
        border-radius: 40px;
        background: #f1f5f9;
        color: #334155;
        border: none;
        font-weight: 500;
        transition: all 0.2s;
        cursor: pointer;
    }

    .honor-tab-btn.active {
        background: #0052cc;
        color: white;
        box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
    }

    /* 轮播外层包装 - 相对定位 */
    .honors-carousel-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 10px 0;
    }

    /* 轮播容器 - 支持触摸滑动 */
    .honors-carousel-container {
        flex: 1;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        border-radius: 16px;
        scrollbar-width: none; /* 隐藏滚动条 Firefox */
    }

    .honors-carousel-container::-webkit-scrollbar {
        display: none; /* 隐藏滚动条 Chrome/Safari */
    }

    /* 轮播内容 - 横向布局 */
    .honors-carousel {
        display: flex;
        flex-direction: row;
        gap: 0;
        width: 100%;
    }

    /* 每组卡片 - 占满整个视口宽度 */
    .honor-card-group {
        flex: 0 0 100%;
        scroll-snap-align: start;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 8px 12px;
        box-sizing: border-box;
    }

    /* 卡片样式 - 统一高度自适应 */
    .honor-card {
        border-radius: 16px;
        padding: 16px 12px;
        transition: transform 0.2s ease;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        min-height: 180px;
        box-sizing: border-box;
    }

    .honor-card:active {
        transform: scale(0.97);
    }

    /* 图片样式 - 固定比例区域 */
    .honor-card img {
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }

    /* 文字标签 - 始终在图片下方 */
    .honor-badge {
        font-size: 0.7rem;
        line-height: 1.4;
        margin-top: 12px;
        color: white;
        font-weight: 500;
        text-align: center;
        word-break: break-word;
        max-width: 100%;
    }

    /* 左右导航按钮 */
    .carousel-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        z-index: 10;
    }

    .carousel-btn:active {
        background: rgba(0, 0, 0, 0.7);
        transform: scale(0.95);
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
        stroke: white;
    }

    /* 指示点 */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .carousel-dots .dot {
        width: 8px;
        height: 8px;
        background: #cbd5e1;
        border-radius: 50%;
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .carousel-dots .dot.active {
        width: 24px;
        border-radius: 12px;
        background: #0052cc;
    }
}

/* 极小屏幕（宽度≤480px）进一步优化 */
@media (max-width: 480px) {
    .honor-card-group {
        gap: 12px;
        padding: 8px 10px;
    }

    .honor-card {
        padding: 12px 8px;
        min-height: 160px;
    }

    .honor-card img {
        height: 100%;
    }

    .honor-badge {
        font-size: 0.9rem;
        margin-top: 10px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }

    .honor-tab-btn {
        padding: 6px 20px;
        font-size: 1.1rem;
    }
}

/* 平板尺寸（769px - 1024px）保持两列但优化间距 */
@media (min-width: 769px) and (max-width: 1024px) {
    .honors-carousel-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .honors-carousel {
        display: flex;
        flex-direction: row;
    }

    .honor-card-group {
        flex: 0 0 90%;
        scroll-snap-align: start;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 8px;
    }

    .honor-card img {
        height: 100%;
    }
}

/* ========= 荣誉资质样式结束 ========= */

/* ========= 合作案例样式开始 ========= */
.cases-section {
    background: #f8faff;
    padding: 60px 0;
}

.cases-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.cases-title h2 {
    font-size: 2.2rem;
    color: #1a2c3e;
    margin-bottom: 8px;
}

.cases-title .section-sub {
    font-size: 1rem;
    color: #0052cc;
    letter-spacing: 2px;
    font-weight: 500;
}

.cases-more-link {
    position: absolute;
    right: 0;
    top: 15px;
    color: #0052cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.cases-more-link:hover {
    color: #003d99;
    transform: translateX(3px);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    align-items: stretch;
}

.case-item {
    background: white;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 82, 204, 0.06);
    cursor: default;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 82, 204, 0.1);
    border-color: rgba(0, 82, 204, 0.15);
}

.case-item img {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
    filter: grayscale(0%);
    transition: all 0.3s;
}

.case-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.case-item span {
    display: block;
    font-size: 1rem;
    color: #4a627a;
    font-weight: 500;
}

.case-more {
    background: linear-gradient(135deg, #0052cc 0%, #0a6cff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.case-more:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 82, 204, 0.3);
    background: linear-gradient(135deg, #0044aa 0%, #0055dd 100%);
}

.case-more-content {
    text-align: center;
}

.case-more-content a:first-child {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.case-more-content a:last-child {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: normal;
}

.case-more-content span {
    display: block;
    color: white;
}

/* 合作案例响应式 */
@media (max-width: 992px) {
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cases-more-link {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }

    .cases-title {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ========= 合作案例样式结束 ========= */