/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    color: #1A365D;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #5B92E5;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1A365D;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1A365D;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #5B92E5;
}

.btn-gold {
    background-color: #C9A227;
}

.btn-gold:hover {
    background-color: #d9b137;
}

/* 页眉样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background-color: #1A365D;
    color: #fff;
    padding: 10px 0;
    font-size: 0.9rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1A365D;
}

.logo span {
    color: #C9A227;
}

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

nav ul li {
    position: relative;
}

nav ul li a {
    color: #1A365D;
    font-weight: 600;
    padding: 10px 0;
    display: block;
}

nav ul li a:hover {
    color: #C9A227;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #1A365D;
    padding: 10px 20px;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

/* 横幅样式 */
.banner {
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.banner-content {
    position: relative;
    color: #fff;
    max-width: 600px;
    margin-left: 50px;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

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

/* 关于我们部分 */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #C9A227;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 课程部分 */
.programs-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.program-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.program-image {
    height: 200px;
    overflow: hidden;
}

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

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-content {
    padding: 20px;
}

.program-content h3 {
    margin-bottom: 10px;
}

.program-content p {
    margin-bottom: 20px;
    color: #666;
}

/* 新闻部分 */
.news-section {
    padding: 80px 0;
    background-color: #fff;
}

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

.news-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

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

.news-content {
    padding: 20px;
}

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

.news-content h3 {
    margin-bottom: 10px;
}

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

/* 快速链接部分 */
.quick-links {
    padding: 50px 0;
    background-color: #1A365D;
    color: #fff;
}

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

.quick-link-item h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.quick-link-item ul {
    list-style: none;
}

.quick-link-item ul li {
    margin-bottom: 10px;
}

.quick-link-item ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.quick-link-item ul li a:hover {
    color: #C9A227;
}

/* 页脚样式 */
footer {
    background-color: #0f2342;
    color: #ccc;
    padding: 30px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #ccc;
    margin-left: 20px;
}

.footer-links a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .banner-content {
        margin-left: 20px;
        max-width: 500px;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-main .container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
    }
    
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .banner {
        height: 400px;
    }
    
    .banner-content {
        text-align: center;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}
