:root {
    --primary-color: #1A3A8F;
    --secondary-color: #E6ECFF;
    --accent-color: #3A5FBF;
    --light-color: #FFFFFF;
    --dark-color: #0F2259;
    --text-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: #FFFFFF;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #FFFFFF, #F5F8FF);
    color: var(--text-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid #E6ECFF;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 3px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    background: url('images/Slider.jpg') center/cover no-repeat;
    color: #0a0539;
    text-align: center;
    padding: 5rem 1rem;
    margin-bottom: 3rem;
}

.hero-content {
    background-color: rgba(229, 230, 233, 0.8);
    padding: 2rem;
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero p {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem;
}

.stat-item {
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:nth-child(1) {
    background-color: rgba(230, 247, 255, 0.95);
}

.stat-item:nth-child(2) {
    background-color: rgba(255, 245, 230, 0.95);
}

.stat-item:nth-child(3) {
    background-color: rgba(240, 255, 240, 0.95);
}

.stat-item:nth-child(4) {
    background-color: rgba(255, 240, 245, 0.95);
}

.stat-item:nth-child(5) {
    background-color: rgba(245, 240, 255, 0.95);
}

.stat-item:nth-child(6) {
    background-color: rgba(255, 255, 230, 0.95);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.stat-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stat-item p {
    color: #555555;
    font-size: 0.95rem;
}

.stat-item h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Main Sections */
.section {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 500;
    display: inline-block;
    background-color: #FFFFFF;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    color: var(--primary-color);
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background-color: var(--accent-color);
    z-index: 1;
}

.section-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.section-img {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    min-height: 350px;
    border: 1px solid #E6ECFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-text {
    flex: 1;
    background-color: rgba(230, 236, 255, 0.7);
    padding: 2rem;
    border-radius: 8px;
}

.section-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-text p {
    margin-bottom: 1.5rem;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.program-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-header {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.program-header i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.program-body {
    padding: 1.5rem;
}

.program-body ul {
    list-style: none;
    margin: 1.5rem 0;
}

.program-body li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

.program-body li i {
    margin-right: 10px;
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* Contact Section */
.contact-info {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background-color: #F5F8FF;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #E6ECFF;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.address {
    font-size: 1.1rem;
    margin: 1.5rem 0;
    line-height: 1.8;
}

.address i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #F5F8FF, #E6ECFF);
    color: var(--text-color);
    padding: 3rem 0 1.5rem;
    text-align: center;
    border-top: 1px solid #E6ECFF;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icons {
    margin: 1.5rem 0;
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--dark-color);
    transform: translateY(-5px);
}

.copyright {
    margin-top: 0.5rem 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    width: 100%;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-content {
        flex-direction: column;
    }
    
    .section-img {
        min-height: 300px;
        width: 100%;
    }
    
    .stats {
        gap: 1.5rem;
    }
    
    .stat-item {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    nav ul {
        gap: 0.8rem;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* 回中文网站链接样式 */
.chinese-site-link {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #8B4513;
    color: white !important;
    padding: 12px 18px;
    border-radius: 25px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.chinese-site-link:hover {
    background: #A0522D !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    text-decoration: none !important;
}

.chinese-site-link:visited {
    color: white !important;
    text-decoration: none !important;
}

/* 回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #A0522D;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Contact区块样式 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.map-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.map-container h3 {
    margin-bottom: 20px;
    color: #120351;
    font-size: 24px;
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    flex: 1;
}

.map-wrapper iframe {
    height: 100%;
    min-height: 350px;
}

.map-link {
    text-align: center;
    margin-top: auto;
}

.map-link a {
    color: #8B4513;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1px 1px;
    /* border: 2px solid #8B4513; */
    border-radius: 25px;
    transition: all 0.3s ease;
}

.map-link a:hover {
    background: #8B4513;
    color: white;
    transform: translateY(-2px);
}

/* 响应式设计更新 */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info,
    .map-container {
        min-height: auto;
    }
    
    .map-container {
        padding: 20px;
    }
    
    .map-wrapper iframe {
        height: 300px;
        min-height: 300px;
    }
}