/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

#navbar ul {
    display: flex;
    list-style: none;
}

#navbar ul li {
    margin-left: 20px;
}

#navbar ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

#navbar ul li a:hover,
#navbar ul li a.active {
    color: #e74c3c;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 轮播图样式 */
.slider-section {
    position: relative;
    margin-bottom: 2rem;
}

.slider-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: #e74c3c;
}

/* 内容区域样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section {
    margin: 2rem 0;
}

.illustration {
    max-width: 300px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* 新闻网格样式 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 1rem;
}

.news-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.news-item h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.news-item h3 a {
    color: #e74c3c;
    text-decoration: none;
}

.news-item p {
    margin-bottom: 5px;
}

.date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 校友卡片样式 */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 1rem;
}

.alumni-card {
    text-align: center;
}

.alumni-card .img-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.alumni-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alumni-card h4 {
    margin-bottom: 5px;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #c0392b;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #navbar ul {
        margin-top: 1rem;
        flex-direction: column;
        width: 100%;
    }
    
    #navbar ul li {
        margin: 5px 0;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .alumni-grid {
        grid-template-columns: 1fr;
    }
    
    .slide img {
        height: 300px;
    }
}