/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏 */
header {
    background-color: #4CAF50;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 主要内容区域 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 轮播图 */
.slider {
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    width: 100%;
    height: 400px;
}

.slide-container {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease;
    position: relative;
}

.slide-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    flex: 1;
}

/* 轮播图控制按钮 */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: none;
    padding: 0;
}

.slider-dot.active {
    background: #fff;
}

/* 轮播图箭头 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    border: none;
    z-index: 10;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* 新闻部分 */
.news {
    margin-bottom: 3rem;
}

.news h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2C5530;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item h3 {
    padding: 1rem;
    color: #2C5530;
}

.news-item p {
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin: 1rem;
    color: #4CAF50;
    text-decoration: none;
}

/* 快速链接 */
.quick-links {
    margin-bottom: 3rem;
}

.quick-links h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2C5530;
}

.links-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.link-item {
    text-align: center;
    text-decoration: none;
    color: #333;
    padding: 1rem;
    border-radius: 8px;
    background: #f5f5f5;
    transition: background-color 0.3s;
}

.link-item:hover {
    background: #e0e0e0;
}

.link-item img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

/* 页面头部 */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    background: #f5f5f5;
    border-radius: 8px;
}

.page-header h1 {
    color: #2C5530;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 课程部分 */
.courses {
    margin-bottom: 3rem;
}

.course-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.course-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-item h3 {
    padding: 1rem;
    color: #2C5530;
}

.course-item p {
    padding: 0 1rem 1rem;
}

/* 图书馆部分 */
.library {
    margin-bottom: 3rem;
}

.library-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.library-info img {
    width: 100%;
    border-radius: 8px;
}

.library-text ul {
    list-style: none;
    margin-top: 1rem;
}

.library-text li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.library-text li:before {
    content: "•";
    color: #4CAF50;
    position: absolute;
    left: 0;
}

/* 学习心得 */
.experience-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.experience-item {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.experience-item img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.experience-item .major {
    color: #666;
    margin-bottom: 1rem;
}

/* 表单样式 */
.form-section {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2C5530;
}

.radio-group,
.checkbox-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #4CAF50;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    color: #4CAF50;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links img {
    width: 32px;
    height: 32px;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .news-container,
    .links-container,
    .course-container {
        grid-template-columns: 1fr;
    }

    .library-info {
        grid-template-columns: 1fr;
    }

    .experience-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
} 

/* 添加新的样式 */

/* 社团活动 */
.club-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.club-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.club-item:hover {
    transform: translateY(-5px);
}

.club-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.club-item h3 {
    padding: 1rem;
    color: #2C5530;
}

.club-item p {
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.join-btn {
    display: inline-block;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.join-btn:hover {
    background: #45a049;
}

/* 文体活动 */
.sports-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.sports-info img {
    width: 100%;
    border-radius: 8px;
}

/* 志愿服务 */
.volunteer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.volunteer-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.volunteer-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.volunteer-item h3 {
    padding: 1rem;
    color: #2C5530;
}

.volunteer-item p {
    padding: 0 1rem 1rem;
}

/* 活动日历 */
.calendar-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.calendar-item {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.calendar-item .date {
    font-size: 1.2rem;
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* 食堂 */
.canteen-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.canteen-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.canteen-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.canteen-item h3 {
    padding: 1rem;
    color: #2C5530;
}

.canteen-item p {
    padding: 0 1rem;
}

.canteen-item .info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #666;
}

/* 宿舍生活 */
.dorm-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.dorm-info img {
    width: 100%;
    border-radius: 8px;
}

/* 校园设施和周边服务 */
.facilities-container,
.surroundings-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.facility-item,
.surrounding-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.facility-item img,
.surrounding-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.facility-item h3,
.surrounding-item h3 {
    padding: 1rem;
    color: #2C5530;
}

.facility-item p,
.surrounding-item p {
    padding: 0 1rem 1rem;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .club-container,
    .volunteer-container,
    .calendar-container,
    .canteen-container,
    .facilities-container,
    .surroundings-container {
        grid-template-columns: 1fr;
    }

    .sports-info,
    .dorm-info {
        grid-template-columns: 1fr;
    }
} 