/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

/* 导航栏 */
.navbar {
    background: #003087;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffd700;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
}

/* 页面头部 */
.page-header {
    position: relative;
    text-align: center;
    color: white;
}

.page-header img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header-content p {
    font-size: 1.2em;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ffd700;
    color: #003087;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #e6c200;
}

/* 轮播图（首页） */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

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

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-text h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.slide-text p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* 特色模块（首页） */
.features {
    padding: 50px 20px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

/* 新闻模块（首页、新闻与活动页面） */
.news {
    padding: 50px 20px;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item .date {
    font-size: 0.9em;
    color: #666;
    margin: 10px 0;
}

/* 快速导航（首页） */
.quick-links {
    padding: 50px 20px;
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.links-grid a {
    display: block;
    padding: 15px;
    background: #003087;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.links-grid a:hover {
    background: #0040b3;
}

/* 学校简介、使命与愿景（关于我们） */
.overview,
.mission-vision {
    padding: 50px 20px;
    text-align: center;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 历史时间线（关于我们） */
.history {
    padding: 50px 20px;
}

.timeline {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.timeline li {
    display: flex;
    margin-bottom: 20px;
}

.timeline .year {
    font-weight: bold;
    color: #003087;
    width: 100px;
}

/* 领导团队、校园设施（关于我们） */
.leadership,
.facilities {
    padding: 50px 20px;
    text-align: center;
}

.leadership-grid,
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.leader img,
.facility-item img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

/* 学院概览、课程设置、师资力量、学术资源（学院与课程） */
.colleges,
.programs,
.faculty,
.resources {
    padding: 50px 20px;
    text-align: center;
}

.colleges-grid,
.programs-grid,
.faculty-grid,
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.college-item img,
.faculty-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 课程选项卡（学院与课程） */
.programs-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.tab {
    margin-bottom: 20px;
}

.tab input {
    display: none;
}

.tab label {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f0;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
}

.tab input:checked + label {
    background: #003087;
    color: white;
}

.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
}

.tab input:checked ~ .tab-content {
    display: block;
}

.tab-content ul {
    list-style: none;
    padding: 0;
}

.tab-content li {
    margin: 10px 0;
}

/* 招生政策、申请流程、学费、奖学金、FAQ（招生信息） */
.admissions-policy,
.application-process,
.tuition,
.scholarships,
.faq {
    padding: 50px 20px;
    text-align: center;
}

.admissions-policy ul,
.scholarships ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 20px auto;
}

.admissions-policy li,
.scholarships li {
    margin: 10px 0;
}

.process-steps {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.process-steps li {
    margin: 20px 0;
    text-align: left;
}

.tuition-table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
}

.tuition-table th,
.tuition-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.tuition-table th {
    background: #003087;
    color: white;
}

.scholarships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.faq-item {
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
}

.faq-item h3 {
    margin-bottom: 10px;
}

/* 学生组织、住宿、餐饮、体育与活动（校园生活） */
.student-organizations,
.housing,
.dining,
.sports-activities {
    padding: 50px 20px;
    text-align: center;
}

.organizations-grid,
.housing-grid,
.dining-grid,
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.organization-item img,
.housing-item img,
.dining-item img,
.activity-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 新闻与活动页面 */
.events,
.announcements {
    padding: 50px 20px;
    text-align: center;
}

.events-grid {
    display: grid;
    grid-template-columns

: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.event-item .date {
    font-size: 0.9em;
    color: #666;
    margin: 10px 0;
}

.announcements-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.announcements-list li {
    margin: 20px 0;
    text-align: left;
}

.announcements-list .date {
    font-size: 0.9em;
    color: #666;
    margin: 10px 0;
}

/* 联系方式、校园地图、反馈表单（联系我们） */
.contact-info,
.campus-map,
.contact-form {
    padding: 50px 20px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-item {
    text-align: center;
}

.map-container {
    max-width: 800px;
    margin: 20px auto;
}

.map-container img {
    width: 100%;
    height: auto;
}

.contact-form form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003087;
}

.contact-form .btn {
    display: inline-block;
    width: auto;
    padding: 10px 30px;
}

/* 隐私政策页面 */
.policy-overview,
.info-collection,
.info-usage,
.info-sharing,
.data-protection,
.user-rights,
.contact-policy {
    padding: 50px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.policy-overview h2,
.info-collection h2,
.info-usage h2,
.info-sharing h2,
.data-protection h2,
.user-rights h2,
.contact-policy h2 {
    text-align: center;
}

.policy-overview ul,
.info-collection ul,
.info-usage ul,
.info-sharing ul,
.data-protection ul,
.user-rights ul {
    list-style: disc;
    padding-left: 20px;
    margin: 20px 0;
}

.policy-overview p,
.info-collection p,
.info-usage p,
.info-sharing p,
.data-protection p,
.user-rights p,
.contact-policy p {
    margin: 10px 0;
}

/* 页脚 */
footer {
    background: #003087;
    color: white;
    padding: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 5px 0;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    color: #ffd700;
}

.social-links img {
    width: 30px;
    margin: 0 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ffd700;
}