/* 职业列表和详情页样式 */

.classes-section {
    padding: 60px 0;
    min-height: 500px;
}

.classes-grid .class-card .class-image {
    height: 320px;
}

/* 职业详情 */
.class-detail-section {
    padding: 60px 0;
}

.class-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.class-detail-main {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.class-detail-header {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.1) 0%, rgba(15, 25, 35, 0.3) 100%);
    border-bottom: 1px solid var(--border-color);
}

.class-detail-header .class-type {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 70, 85, 0.2);
    color: var(--primary-color);
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 20px;
}

.class-detail-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.class-detail-image {
    width: 100%;
    overflow: hidden;
}

.class-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.class-detail-content {
    padding: 40px;
}

.class-detail-content h2 {
    font-size: 28px;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.class-detail-content p {
    line-height: 2;
    font-size: 16px;
    color: var(--text-primary);
}

.class-skills {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.other-classes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.other-class-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.other-class-item:hover {
    background: rgba(255, 70, 85, 0.1);
    transform: translateX(5px);
}

.other-class-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.other-class-item span {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .class-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .class-detail-header,
    .class-detail-content {
        padding: 20px;
    }

    .class-detail-header h1 {
        font-size: 28px;
    }
}
