/* 自定义样式 */
body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #0a58ca;
}

/* 顶部信息栏 */
.top-info {
    background-color: #0d6efd;
    font-size: 0.9rem;
}

/* 导航栏 */
.navbar {
    padding: 1rem 0;
}

.navbar-brand h1 {
    font-size: 1.8rem;
    margin: 0;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: #0d6efd;
}

/* 轮播图 */
.carousel-item {
    height: 500px;
    overflow: hidden;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    bottom: 20%;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 卡片样式 */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
}

/* 页脚 */
footer {
    background-color: #212529;
}

footer h5 {
    color: #fff;
    margin-bottom: 1rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: #adb5bd;
}

footer a:hover {
    color: #fff;
}

/* 返回顶部按钮 */
.fixed-bottom-right {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.fixed-bottom-right.visible {
    opacity: 1;
    visibility: visible;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .top-info .col-md-6 {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .navbar-brand h1 {
        font-size: 1.5rem;
    }
}

/* 图片懒加载 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* 表单样式 */
.form-control {
    border-radius: 0.25rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* 课程详情页样式 */
.course-detail h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.course-detail p {
    margin-bottom: 1rem;
}

.course-detail .list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0;
}

/* 新闻详情页样式 */
.news-detail h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.news-detail .meta-info {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.news-detail p {
    margin-bottom: 1rem;
}

/* 合作院校页样式 */
.university-logo {
    max-height: 100px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

.university-card {
    text-align: center;
    padding: 1.5rem;
    height: 100%;
}

/* 常见问题页样式 */
.accordion-button {
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    color: #0d6efd;
    background-color: #f8f9fa;
}

.accordion-body {
    padding: 1rem 1.25rem;
}