.nav-container {
    width: 100%;
    background-color: #fff;
    overflow: hidden;
}

.nav {
    display: flex;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-color: #ffffff;
}

.nav-scroll::-webkit-scrollbar {
    display: none;
}

.nav-item {
    display: inline-block;
    padding: 0.12rem 0.24rem;
    font-size: 0.16rem;
    color: #50575d;
    text-decoration: none;
    text-align: center;
    position: relative;
    transition: color 0.3s;
}

.nav-item.active a {
    color: #E6212A;
    font-weight: bold;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0.06rem;
    height: 0.06rem;
    background-color: #E6212A;
    border-radius: 50%;
}

.nav-item {
    -webkit-tap-highlight-color: transparent;
}

/* 容器样式 - 适配移动端，居中显示 */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 15px;
    background-color: #f6f6f6;
}

/* 板块标题栏样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    position: relative;
    padding-left: 10px;
}

.section-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5px;
    height: 17px;
    background-color: #e53935;
}

.section-header .more {
    font-size: 14px;
    color: #5d5d5d;
    text-decoration: none;
}

/* 卡片网格布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 17px;
    padding-bottom: 20px;
}

/* 卡片通用样式 */
.card a {
    border-radius: 7px;
    padding-bottom: 10px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    position: relative;
    overflow: hidden;
}

/* 卡片文字样式 */
.card .card-img {
    width: 100%;
    height: 100px;
}

.card .card-img img {
    width: 100%;
    height: 100%;
}

.card .card-desc {
    font-size: 13px;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 最多显示2行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    color: #686060;
    padding: 0 10px;
}

@media screen and (min-width: 750px) {
    body {
        width: 100%;
        background-color: #f6f6f6;
    }

    .container {
        width: 1200px;
        max-width: 1200px;
        margin-top: 30px;
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 99%;
    }

    .list-item {
        width: 47%;
    }

    .card .card-img {
        height: 200px;
    }

    .nav-item {
        padding: 12px 24px;
        font-size: 16px;
    }
}