/* 全局样式 */
:root {
    --primary-color: #00356B;
    /* 传统大学蓝色 */
    --secondary-color: #8B0000;
    /* 暗红色，象征传统和庄重 */
    --accent-color: #FFD700;
    /* 金色点缀 */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --footer-bg: #1c2331;
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    font-weight: 600;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

/* 导航栏样式 */
.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 10px 15px;
    margin: 0 5px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white;
    border-bottom: 2px solid var(--accent-color);
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    margin-bottom: 50px;
}

.carousel-item {
    height: 600px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 25%;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption .btn {
    padding: 10px 25px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 学校简介部分 */
.intro-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-text {
    font-size: 1rem;
    color: #666;
}

/* 学院设置部分 */
.faculties-section {
    padding: 60px 0;
}

.faculty-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-10px);
}

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

.faculty-card h3 {
    padding: 20px 20px 10px;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.faculty-card p {
    padding: 0 20px 15px;
    color: #666;
}

.faculty-card .btn {
    margin: 0 20px 20px;
}

/* 学术研究部分 */
.research-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.research-highlight {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
}

.research-highlight h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* 新闻活动部分 */
.news-section {
    padding: 60px 0;
}

.news-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
}

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

.news-content {
    padding: 20px;
}

.news-date {
    display: inline-block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.news-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
}

.read-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 校园生活部分 */
.campus-life-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.life-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.life-card:hover {
    transform: translateY(-10px);
}

.life-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.life-card h3 {
    padding: 15px 15px 5px;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.life-card p {
    padding: 0 15px 15px;
    color: #666;
}

/* 页脚样式 */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 50px 0 20px;
}

footer h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

footer h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

footer p {
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

.copyright a {
    color: rgba(255, 255, 255, 0.8);
}

.copyright a:hover {
    color: white;
    text-decoration: underline;
}

/* 页面标题部分 */
.page-title {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0;
    margin-bottom: 50px;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: var(--accent-color);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* 关于页面样式 */
.about-intro {
    padding: 60px 0;
}

/* 历史沿革时间线 */
.history-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-badge {
    left: -25px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid white;
    top: 20px;
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
    top: 20px;
    left: -10px;
}

/* 使命与愿景 */
.mission-vision {
    padding: 60px 0;
}

.mission-card,
.vision-card {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.mission-card {
    border-left: 5px solid var(--primary-color);
}

.vision-card {
    border-left: 5px solid var(--secondary-color);
}

.mission-card ul,
.vision-card ul {
    padding-left: 20px;
}

.mission-card li,
.vision-card li {
    margin-bottom: 10px;
}

/* 校园设施 */
.facilities {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.facility-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

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

.facility-card h3 {
    padding: 20px 20px 10px;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

.facility-card p {
    padding: 0 20px 20px;
    color: #666;
}

/* 领导团队 */
.leadership {
    padding: 60px 0;
}

.leader-card {
    text-align: center;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    background-color: white;
}

.leader-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
}

.leader-card h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.leader-title {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

/* 学院设置页面 */
.academics-intro {
    padding: 60px 0;
}

.college-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    padding: 30px;
}

.college-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.college-card h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 20px 0 10px;
}

.college-card img {
    border-radius: 5px;
    margin-bottom: 15px;
}

.colleges-section {
    padding-bottom: 60px;
}

/* 教育特色 */
.education-features {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    background-color: white;
    height: 100%;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* 学术资源 */
.academic-resources {
    padding: 60px 0;
}

.resource-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.resource-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.resource-card h3 {
    padding: 20px 20px 10px;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
}

.resource-card p {
    padding: 0 20px 20px;
    color: #666;
}

.resource-card .btn {
    margin: 0 20px 20px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .carousel-item {
        height: 450px;
    }

    .carousel-caption h2 {
        font-size: 2.5rem;
    }

    .carousel-caption p {
        font-size: 1.2rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-badge {
        left: 6px;
        margin-left: 0;
        top: 15px;
    }

    .timeline-item:nth-child(even) .timeline-badge {
        left: 6px;
    }

    .timeline-item:nth-child(odd) .timeline-content::after {
        display: none;
    }

    .timeline-item:nth-child(even) .timeline-content::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 350px;
    }

    .carousel-caption {
        bottom: 20%;
    }

    .carousel-caption h2 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }
}