/* ===== 专业详情页专属样式 ===== */
.major-detail-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
}

.major-nav {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.major-nav-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding-left: 8px;
}

.major-nav a {
    display: block;
    padding: 12px 14px;
    color: #555;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 3px;
    border-left: 3px solid transparent;
}

.major-nav a:last-child {
    margin-bottom: 0;
}

.major-nav a:hover {
    background: #f5f7fa;
    color: var(--primary);
    border-left-color: var(--primary-lighter);
}

.major-nav a.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-left-color: rgba(255,255,255,0.5);
    box-shadow: 0 2px 8px rgba(0,112,192,0.25);
}

.major-content {
    background: #fff;
    border-radius: 12px;
    padding: 48px 56px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.major-content h1 {
    font-size: 1.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
    text-align: center;
}

.major-content .major-subtitle {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

/* 引言块 */
.lead-block {
    background: #f5f7fa;
    padding: 24px 28px;
    border-radius: 8px;
    margin-bottom: 36px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
}

/* 内容区块 */
.content-section {
    margin-bottom: 40px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--primary), transparent) 1;
}

.section-header h2 {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-body);
    text-align: justify;
}

.content-section p + p {
    margin-top: 16px;
}

/* 列表样式 */
.content-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-list li {
    position: relative;
    padding-left: 20px;
    padding-bottom: 10px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
}

.content-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
}

.content-list li:last-child {
    padding-bottom: 0;
}

/* 三列卡片 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: #fafbfc;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-lighter);
    box-shadow: 0 4px 12px rgba(0,112,192,0.08);
}

.feature-card h4 {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #666;
}

/* 课程体系图占位 */
.course-diagram {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-top: 20px;
}

.course-diagram img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.course-diagram .placeholder {
    color: #aaa;
    font-size: 0.95rem;
}

/* 附件列表 - 强制覆盖CMS默认下划线 */
.attach-list {
    margin-top: 16px;
}

.attach-item {
    display: block;
    padding: 12px 16px;
    background: #fafbfc;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 5px;
    text-decoration: none !important;
    color: var(--text-dark) !important;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}


.attach-item:hover {
    background: #f0f6ff;
    border-color: var(--primary-lighter);
    color: var(--primary) !important;
}

/* 正文图片默认居中 - 强制覆盖CMS默认 */
.major-content img,
.major-content .img_vsb_content,
.vsbcontent_img img,
.vsbcontent_img .img_vsb_content {
    display: block !important;
    margin: 20px auto !important;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* 响应式 */
@media (max-width: 768px) {
    .major-detail-layout {
        grid-template-columns: 1fr;
    }
    .major-nav {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
    .major-content {
        padding: 24px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
