/* 全局样式 */
body {
    padding-top: 76px;
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: bold;
    color: #2c3e50 !important;
}

.nav-link {
    color: #34495e !important;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 5px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
    background-color: #3498db;
}

/* 轮播图样式 */
.carousel {
    margin-top: -76px;
    margin-bottom: 50px;
}

.carousel-item {
    position: relative;
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}

.carousel-item img {
    height: 600px;
    object-fit: cover;
}

.carousel-caption {
    bottom: 100px;
    z-index: 2;
}

/* 内容区域样式 */
.container {
    max-width: 1200px;
}

h2 {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #3498db;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

.card:hover .card-img-wrapper::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4));
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 25px;
    text-align: center;
    background: #fff;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: -50px auto 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.card-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.card-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* 按钮样式 */
.btn-primary {
    background-color: #3498db;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* 模态框样式 */
.modal-content {
    border: none;
    border-radius: 15px;
}

.modal-header {
    border-bottom: 2px solid #f0f0f0;
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: none;
}

/* 页脚样式 */
footer {
    background-color: #fff;
    padding: 30px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    .carousel {
        margin-top: -66px;
    }
    
    .carousel-item img {
        height: 400px;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .container {
        padding: 0 20px;
    }
} 

/* 活动卡片样式 */
.activity-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.activity-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.activity-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.activity-card:hover .activity-card-image img {
    transform: scale(1.1);
}

.activity-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
}

.activity-date {
    background: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.activity-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
}

.activity-date .month {
    display: block;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

.activity-card-content {
    padding: 25px;
}

.activity-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.activity-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.activity-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

.activity-info span {
    display: flex;
    align-items: center;
}

.activity-info i {
    margin-right: 5px;
    color: #3498db;
}

/* 模态框样式优化 */
.modal-content {
    border: none;
    border-radius: 15px;
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
    border-radius: 15px 15px 0 0;
    padding: 20px 25px;
}

.modal-title {
    font-weight: bold;
    color: #2c3e50;
}

.modal-body {
    padding: 25px;
}

.form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .activity-card-image {
        height: 200px;
    }
    
    .activity-title {
        font-size: 1.25rem;
    }
    
    .activity-info {
        flex-direction: column;
        gap: 10px;
    }
} 

/* 搜索框样式 */
.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-wrapper .form-control {
    padding: 15px 20px 15px 50px;
    border-radius: 30px;
    border: 2px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-size: 1rem;
}

.search-wrapper .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.2);
}

/* 学习卡片样式 */
.study-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.study-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.study-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.study-card:hover .study-card-image img {
    transform: scale(1.1);
}

.study-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #2c3e50;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.study-card-badge i {
    color: #3498db;
    margin-right: 5px;
}

.study-card-content {
    padding: 25px;
}

.study-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.study-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.study-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

.study-meta span {
    display: flex;
    align-items: center;
}

.study-meta i {
    margin-right: 5px;
    color: #3498db;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-wrapper .form-control {
        padding: 12px 20px 12px 45px;
        font-size: 0.95rem;
    }
    
    .study-card-image {
        height: 180px;
    }
    
    .study-title {
        font-size: 1.1rem;
    }
    
    .study-meta {
        flex-direction: column;
        gap: 8px;
    }
} 