/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部导航栏样式 */
header {
    background: #004a8f;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
}
#navbar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}
#navbar a {
    color: white;
    font-weight: 500;
}
#navbar a.active {
    color: #ffcc00;
}
.menu-toggle {
    display: none;
    cursor: pointer;
}

/* 轮播图样式 */
.slider-section {
    position: relative;
    margin: 2rem 0;
}
.slide {
    display: none;
    position: relative;
}
.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.slide-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}
.dot.active {
    background-color: #717171;
}

/* 内容区域样式 */
.content-section {
    margin: 3rem 0;
}
h2 {
    margin-bottom: 1.5rem;
    color: #004a8f;
    border-left: 4px solid #ffcc00;
    padding-left: 1rem;
}
.illustration {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 新闻网格布局 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.news-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.date {
    display: block;
    margin-top: 0.5rem;
    color: #6c757d;
}

/* 网格三列布局 */
.grid-three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* 校友卡片样式 */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}
.alumni-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.img-wrapper:hover img {
    transform: scale(1.05);
}

/* 招生表单样式 */
#admissionForm {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin-top: 2rem;
}
#admissionForm label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}
#admissionForm input {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}
.btn-primary:hover {
    background: #0056b3;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    #navbar ul {
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #004a8f;
        padding: 1rem;
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .grid-three-columns {
        grid-template-columns: 1fr;
    }
    .slide img {
        height: 300px;
    }
    .illustration { 
        float: none !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }
}