/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    position: relative;
}

/* 背景图片 */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../images/bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.school-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e88e5;
    text-decoration: none;
}

.nav-bar ul {
    display: flex;
    list-style: none;
}

.nav-bar ul li {
    margin-left: 2rem;
}

.nav-bar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-bar ul li a:hover,
.nav-bar ul li a.active {
    background-color: #1e88e5;
    color: #fff;
}

/* 主要内容区域 */
main {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding: 0 2rem;
}

.contact-info,
.footer-links {
    flex: 1;
    max-width: 300px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: #1e88e5;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 首页样式 */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: #1e88e5;
    margin-bottom: 1rem;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 8px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.news {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.news h2 {
    color: #1e88e5;
    margin-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* 关于页面样式 */
.about-page {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.about-hero {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
}

.about-content {
    flex: 1;
    padding-right: 2rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

/* 新闻页面样式 */
.news-page {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.news-banner {
    position: relative;
    margin-bottom: 2rem;
}

.news-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.news-banner h1 {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.news-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.news-categories {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-categories h2 {
    color: #1e88e5;
    margin-bottom: 1rem;
}

.news-categories ul {
    list-style: none;
}

.news-categories ul li {
    margin-bottom: 0.5rem;
}

.news-categories ul li a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.news-categories ul li a:hover,
.news-categories ul li a.active {
    background-color: #1e88e5;
    color: #fff;
}

.news-item.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-item.featured img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
}

.read-more {
    display: inline-block;
    color: #1e88e5;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: #1e88e5;
    color: #fff;
    border-color: #1e88e5;
}

/* 教育教学页面样式 */
.education-page {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.education-banner {
    position: relative;
    margin-bottom: 2rem;
}

.education-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.education-banner h1 {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.major-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.major-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.major-item:hover {
    transform: translateY(-5px);
}

.major-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.learn-more {
    display: inline-block;
    color: #1e88e5;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: bold;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.course-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.course-image img {
    width: 100%;
    border-radius: 8px;
}

.course-features {
    list-style: none;
    margin-top: 1rem;
}

.course-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.course-features li:before {
    content: "•";
    color: #1e88e5;
    position: absolute;
    left: 0;
}

/* 招生就业页面样式 */
.admission-page {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.admission-banner {
    position: relative;
    margin-bottom: 2rem;
}

.admission-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.admission-banner h1 {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.info-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.employment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-list {
    list-style: none;
    margin-top: 1rem;
}

.service-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li:before {
    content: "✓";
    color: #1e88e5;
    position: absolute;
    left: 0;
}

.employment-image img {
    width: 100%;
    border-radius: 8px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.data-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.data-info h3 {
    color: #1e88e5;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.story-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.story-item img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.story-title {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.story-desc {
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        text-align: center;
    }

    .nav-bar ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-bar ul li {
        margin: 0.5rem;
    }

    .hero,
    .about-hero,
    .about-intro,
    .news-item.featured,
    .course-content,
    .employment-content {
        grid-template-columns: 1fr;
    }

    .features,
    .news-grid,
    .major-grid,
    .features-grid,
    .info-grid,
    .data-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .news-content {
        grid-template-columns: 1fr;
    }

    .news-categories {
        margin-bottom: 2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-info,
    .footer-links {
        margin-bottom: 2rem;
    }

    .school-name {
        font-size: 1.2rem;
    }
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    text-align: center;
}

.carousel-caption h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.5);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(255,255,255,0.8);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #fff;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
} 