* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.nav-logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #2c3e50;
}

.nav-links a {
    margin-left: 20px;
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

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

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    right: 0;
    width: 200px;
    background: #fff;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mobile-menu a:hover {
    background: #f8f9fa;
}

/* 主体内容 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 页面主体结构 */
body {
    padding-top: 70px; /* 为导航栏留出空间 */
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.banner {
    width: 100%;
    height: 300px;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/int/static/picture/env.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 1.2rem;
}

/* 校园环境展示 */
.gallery-section {
    margin-top: 30px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.campus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.campus-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.campus-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.campus-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.campus-card:hover .campus-image img {
    transform: scale(1.05);
}

.campus-info {
    padding: 20px;
    text-align: center;
}

.campus-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
    height: 1.6rem;
    line-height: 1.6rem;
    overflow: hidden;
}

.campus-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.campus-name a:hover {
    color: #3498db;
}

.campus-location {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px;
    gap: 10px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.pagination a.active {
    background: #3498db;
    color: white;
}

.pagination a:hover:not(.active) {
    background: #f8f9fa;
}

/* 底部 */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .banner {
        height: 200px;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .campus-grid {
        grid-template-columns: 1fr;
    }

    body {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .campus-info {
        padding: 15px;
    }

    .campus-name {
        font-size: 1.1rem;
    }

    .mobile-menu {
        width: 100%;
        right: 0;
        left: 0;
    }
}