/* ==================== 首页专属样式 ==================== */

/* ==================== Hero Section - Swiper 轮播图 ==================== */
.hero-section {
    position: relative;
    padding-top: 0;
    background: #010E28;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 600px;
    background: #010E28;
}

.hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* wenzi 文字图片 - 浮层与 container 对齐 */
.hero-side {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    max-width: 1320px;
    display: flex;
    align-items: center;
}

.hero-side img {
    width: 48%;
    max-width: 680px;
    min-width: 360px;
    height: auto;
    object-fit: contain;
}

/* Swiper 分页指示器 */
.hero-swiper .swiper-pagination {
    bottom: 30px;
    z-index: 20;
}

.hero-swiper .swiper-pagination-bullet {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
    width: 50px;
}

@media (max-width: 991.98px) {
    .hero-swiper {
        height: auto;
        min-height: 200px;
    }

    .hero-swiper .swiper-slide {
        height: auto;
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-swiper .swiper-slide img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .hero-side img {
        width: 40%;
        max-width: none;
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .hero-swiper {
        min-height: 160px;
    }

    .hero-swiper .swiper-slide {
        min-height: 160px;
    }

    .hero-side img {
        width: 50%;
    }
}

@media (max-width: 575.98px) {
    .hero-swiper {
        min-height: 120px;
    }

    .hero-swiper .swiper-slide {
        min-height: 120px;
    }

    .hero-side img {
        width: 45%;
    }

    .hero-swiper .swiper-pagination {
        bottom: 10px;
    }

    .hero-swiper .swiper-pagination-bullet {
        width: 16px;
        height: 3px;
    }

    .hero-swiper .swiper-pagination-bullet-active {
        width: 22px;
    }
}

/* ==================== 区块标题通用样式 ==================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 40px;
}

.section-decoration {
    display: flex;
    align-items: center;
}

.section-decoration img {
    width: 90px;
    height: auto;
    object-fit: contain;
}

.section-decoration.decoration-flip img {
    transform: scaleX(-1);
}

.section-title-wrap {
    text-align: center;
}

.section-title-wrap .section-title {
    margin: 0 0 8px;
    color: #1a2b4a !important;
}

.section-title-wrap .section-subtitle {
    margin: 0;
}

/* ==================== 核心业务 ==================== */
.core-business-section {
    padding: 80px 0;
    background: #fff;
}

.core-business-section .section-subtitle {
    color: #888;
    font-size: 16px;
}

.business-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.business-swiper-container {
    position: relative;
    width: 100%;
    padding: 0 44px;
}

.business-swiper {
    padding: 8px 4px 12px;
    width: 100%;
}

.business-swiper-button-prev,
.business-swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    outline: none;
}

.business-swiper-button-prev {
    left: -6px;
}

.business-swiper-button-next {
    right: -6px;
}

.business-swiper-button-prev:hover,
.business-swiper-button-next:hover {
    background: #005BAC;
    color: #fff;
    border-color: #005BAC;
    box-shadow: 0 6px 16px rgba(0, 91, 172, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.business-swiper-button-prev.swiper-button-disabled,
.business-swiper-button-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .business-swiper-container {
        padding: 0 36px;
    }

    .business-swiper-button-prev {
        left: -4px;
        width: 34px;
        height: 34px;
    }

    .business-swiper-button-next {
        right: -4px;
        width: 34px;
        height: 34px;
    }
}

.business-swiper .swiper-slide {
    height: auto;
}

.business-swiper .business-card {
    height: 100%;
}

.business-swiper .swiper-pagination {
    bottom: 0;
}

.business-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #c8d6e5;
    opacity: 1;
}

.business-swiper .swiper-pagination-bullet-active {
    background: #005BAC;
    width: 22px;
    border-radius: 4px;
}

.business-card {
    text-align: left;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.business-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 91, 172, 0.15);
}

.business-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.business-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.business-card:hover .business-img img {
    transform: scale(1.05);
}

.business-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
}

.business-info h4 {
    font-size: 17px;
    font-weight: 600;
    color: #1a2b4a;
    margin: 0;
}

.business-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #005bac !important;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.business-arrow svg {
    display: block;
}

.business-card:hover .business-arrow {
    background: #005bac !important;
    color: #fff !important;
    transform: translateX(4px);
}

/* ==================== 数据统计 ==================== */
.stats-section {
    padding: 40px 0;
    background: url('../static/home/横条.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 30, 60, 0.4);
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.stat-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
}

.stat-img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.stat-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==================== 典型案例 ==================== */
.cases-section {
    padding: 80px 0;
    background: #fff;
}

/* 案例分类导航 */
.case-tabs {
    border-bottom: 1px solid #e5e7eb;
    justify-content: center;
    margin-bottom: 48px;
}

.case-tabs .nav-item {
    margin: 0 28px;
}

.case-tabs .nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    padding: 12px 4px;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    border-radius: 0;
    transition: color 0.3s ease;
}

.case-tabs .nav-link:hover {
    color: #005bac;
    background: transparent;
    border-bottom-color: transparent;
}

.case-tabs .nav-link.active {
    color: #005bac;
    font-weight: 600;
    border-bottom-color: #005bac;
    background: transparent;
}

/* 案例列表 */
.case-list {
    margin-top: 0;
}

/* 案例行布局 */
.case-row {
    display: flex;
    align-items: stretch;
    gap: 60px;
    margin-bottom: 60px;
    cursor: pointer;
}

.case-row:last-child {
    margin-bottom: 0;
}

/* 奇数行：左文字右图片 */
.case-row .case-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-row .case-image {
    flex: 1;
    display: flex;
}

/* 偶数行：左图片右文字 */
.case-row.case-row-alt .case-content {
    order: 1;
}

.case-row.case-row-alt .case-image {
    order: 2;
}

.case-row:not(.case-row-alt) .case-content {
    order: 2;
}

.case-row:not(.case-row-alt) .case-image {
    order: 1;
}

/* 案例内容样式 */
.case-tag {
    display: inline-block;
    align-self: flex-start;
    background: #1B64FF;
    color: #fff;
    font-size: 13px;
    padding: 6px 24px;
    border-radius: 20px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.case-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 20px;
    line-height: 1.3;
    flex-shrink: 0;
}

.case-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 28px;
    flex-shrink: 0;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #1B64FF;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    flex-shrink: 0;
}

.case-link:hover {
    color: #0A2E5C;
    gap: 10px;
}

/* 案例图片 */
.case-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-row:hover .case-image img {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* 响应式 */
@media (max-width: 991.98px) {
    .case-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .case-tabs::-webkit-scrollbar {
        display: none;
    }

    .case-tabs .nav-item {
        margin: 0 16px;
    }

    .case-tabs .nav-link {
        white-space: nowrap;
    }

    .case-row {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }
    
    .case-row.case-row-alt .case-content,
    .case-row.case-row-alt .case-image,
    .case-row:not(.case-row-alt) .case-content,
    .case-row:not(.case-row-alt) .case-image {
        order: unset;
    }
    
    .case-content {
        display: flex;
        flex-direction: column;
    }
    
    .case-image img {
        height: 240px;
    }
    
    .case-title {
        font-size: 22px;
    }
}

/* ==================== 新闻动态 ==================== */
.news-section {
    padding: 80px 0;
    background: #f5f8fc;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.news-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.news-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #1B64FF;
    color: #fff;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 4px;
    font-weight: 500;
}

.news-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-icon {
    flex-shrink: 0;
}

.news-info h5 {
    font-size: 18px;
    font-weight: 600;
    color: #1a2b4a;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #1B64FF;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.news-link:hover {
    color: #0A2E5C;
    gap: 10px;
}

/* ==================== 我们的客户 ==================== */
.clients-section {
    padding: 80px 0;
    background: #fff;
}

.clients-section .section-subtitle {
    color: #888;
    font-size: 14px;
}

/* 客户分类导航 */
.client-tabs {
    border-bottom: 1px solid #e5e7eb;
    justify-content: center;
    margin-bottom: 48px;
}

.client-tabs .nav-item {
    margin: 0 28px;
}

.client-tabs .nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    padding: 12px 4px;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    border-radius: 0;
    transition: color 0.3s ease;
}

.client-tabs .nav-link:hover {
    color: #1B64FF;
    background: transparent;
    border-bottom-color: transparent;
}

.client-tabs .nav-link.active {
    color: #1B64FF;
    font-weight: 600;
    border-bottom-color: #1B64FF;
    background: transparent;
}

/* 客户容器与分类面板 */
.clients-container {
    width: 100%;
    position: relative;
}

.client-category-pane {
    display: none;
}

.client-category-pane.active {
    display: block;
}

/* 客户跑马灯无缝无尽滚动 */
.client-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    user-select: none;
}

.client-marquee-track {
    display: flex;
    width: max-content;
    animation-name: clientMarqueeScroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 60s;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.client-marquee-wrapper:hover .client-marquee-track {
    animation-play-state: paused;
}

.client-marquee-group {
    display: flex;
    gap: 20px;
    padding-right: 20px;
    flex-shrink: 0;
}

.client-slide-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 220px;
    flex-shrink: 0;
}

@keyframes clientMarqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* 客户网格 */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.client-item {
    background: #f5f7fa;
    border-radius: 12px;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.client-item:hover {
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.client-icon {
    width: auto;
    max-width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.client-icon img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

/* 响应式 */
@media (max-width: 991.98px) {
    .client-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .client-tabs::-webkit-scrollbar {
        display: none;
    }

    .client-tabs .nav-item {
        margin: 0 16px;
    }

    .client-tabs .nav-link {
        white-space: nowrap;
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .stat-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 8px;
    }

    .stat-img {
        margin-right: 0;
        margin-bottom: 12px;
        width: 60px;
        height: 60px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 13px;
    }
}

/* ==================== 响应式 ==================== */
@media (max-width: 992px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 24px;
    }

    .section-decoration {
        display: none;
    }

    .section-title-wrap {
        width: 100%;
    }

    .section-title-wrap .section-subtitle {
        font-size: 14px;
        line-height: 1.6;
    }

    .business-img {
        height: 120px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .core-business-section,
    .stats-section,
    .cases-section,
    .news-section,
    .clients-section {
        padding: 50px 0;
    }
}
