/* 考试中心主内容区域 */
.exam-center-main {
    padding: 90px 0;
    background-color: var(--light-gray);
}

/* 考试分类区域样式 */
.exam-category-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.category-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.category-group {
    margin-bottom: 15px;
}

.category-group:last-child {
    margin-bottom: 0;
}

.category-group label {
    display: inline-block;
    width: 80px;
    color: var(--text-color);
    font-weight: 500;
}

.category-options {
    display: inline-flex;
    gap: 15px;
    flex-wrap: wrap;
}

.category-options a {
    color: var(--text-color);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-options a:hover {
    color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.category-options a.active {
    color: #fff;
    background-color: var(--primary-color);
}

/* 二级分类样式 */
.sub-category-container {
    margin-top: 10px;
    padding-top: 10px;
}

.sub-category-options {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sub-category-options a {
    color: var(--text-color);
    text-decoration: none;
    padding: 3px 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.sub-category-options a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.sub-category-options a.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* 考试列表头部样式 */
.exam-list-header {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.sort-options {
    display: flex;
    gap: 20px;
}

.sort-options a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sort-options a:hover {
    color: var(--primary-color);
}

.sort-options a.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* 考试卡片样式 */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.exam-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.exam-image {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.exam-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exam-content {
    padding: 15px;
}

.exam-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.exam-info {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.exam-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.exam-info i {
    font-size: 14px;
    color: #999;
}

.exam-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exam-price {
    color: #e74c3c;
    font-size: 18px;
    font-weight: 500;
}
.free{
    font-size: 16px;
    color: #52c41a;
    font-weight: bold;
}
.btn-exam {
    background-color: var(--primary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-exam:hover {
    background-color: var(--primary-hover);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .exam-center-main {
        padding: 60px 0;
    }

    .category-container {
        padding: 15px;
        margin-bottom: 15px;
    }

    .category-group {
        margin-bottom: 12px;
    }

    .category-group label {
        display: none;
    }

    .category-options {
        gap: 10px;
    }

    .category-options a {
        padding: 3px 3px;
        font-size: 13px;
    }

    .exam-list-header {
        padding: 12px 15px;
        margin-bottom: 15px;
    }

    .sort-options {
        gap: 15px;
        font-size: 13px;
    }

    .exam-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding:0px 10px;
    }

    .exam-image {
        padding-top: 50%;
    }

    .exam-content {
        padding: 12px;
    }

    .exam-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .exam-info {
        gap: 10px;
        margin-bottom: 10px;
        font-size: 10px;
    }

    .exam-info i {
        font-size: 10px;
    }

    .exam-price {
        font-size: 13px;
    }

    .free {
        font-size: 13px;
    }

    .btn-exam {
        padding: 5px 12px;
        font-size: 13px;
    }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 375px) {
    .exam-center-main {
        padding: 50px 0;
    }

    .category-container {
        padding: 12px;
        margin-bottom: 12px;
    }

    .category-options a {
        padding: 2px 8px;
        font-size: 12px;
    }

    .exam-list-header {
        padding: 10px 12px;
    }

    .sort-options {
        gap: 12px;
        font-size: 12px;
    }

    .exam-grid {
        gap: 12px;
    }

    .exam-image {
        padding-top: 45%;
    }

    .exam-content {
        padding: 10px;
    }

    .exam-title {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .exam-info {
        gap: 8px;
        margin-bottom: 8px;
        font-size: 11px;
    }

    .exam-info i {
        font-size: 11px;
    }

    .exam-price {
        font-size: 15px;
    }

    .free {
        font-size: 13px;
    }

    .btn-exam {
        padding: 4px 10px;
        font-size: 12px;
    }
}

