﻿.horizontal-nav {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: sans-serif;
}

.nav-tabs {
    display: flex;
    overflow-x: auto; /* 移动端可左右滑动 */
    border-bottom: 2px solid #007bff;
}

.nav-tab {
    padding: 12px 20px;
    cursor: pointer;
    white-space: nowrap; /* 防换行 */
    flex-shrink: 0; /* 防止被压缩 */
    transition: background 0.3s;
}
.bg-img {
    height: clamp(400px, 55vh, 600px);
    background-image: url(/static/image/bg.jpg);
    background-repeat: no-repeat; /* 防止平铺 */
    background-position: center; /* 居中对齐 */
    background-size: 100% 100%;
}
/* 移动端最小高度 */
@media (max-width: 767px) {
    .bg-img {
        height: 200px;
    }
}

@media (min-width: 1400px) {
    .bg-img {
        height: 600px;
    }
}
    .nav-tab.active {
        color: #007bff;
        border-bottom: 2px solid #007bff;
        font-weight: bold;
    }

    .nav-tab:active {
        background: #f0f0f0; /* 移动端按下效果 */
    }

.nav-contents {
    padding: 16px;
    border: 1px solid #ccc;
    border-top: none;
    font-size: 26px;
}

.nav-content {
    display: none;
    padding: 12px 0;
}

    .nav-content.active {
        display: block;
    }
.service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    padding: 20px;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit; 
    margin: 20px 3px;
    max-width: 600px;
    margin: 12px auto;
}

    .service-card:hover {
        transform: translateY(-8px); /* 往上移动 */
        box-shadow: 0 16px 40px rgba(0,0,0,0.28);
        text-decoration: none;
    }

    .service-card .icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 12px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f0f0ff;
        font-size: 28px; /* 控制字体图标大小 */
        color: #007bff; /* 图标颜色，可按需求改 */
    }

        .service-card .icon i {
            display: block; /* 保证字体图标居中 */
        }
    .service-card .title {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .service-card .desc {
        font-size: 18px;
        color: #666;
        margin-bottom: 12px;
        min-height: 70px;
    }

    .service-card .view-all {
        font-size: 16px;
        font-weight: 600;
        color: #007bff;
        text-decoration: none;
    }

        .service-card .view-all:hover {

        }