:root {
    --primary-color: #1a237e;
    --secondary-color: #ff6f00;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
}

header {
    background-color: var(--primary-color);
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

main {
    max-width: 1632px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.9), rgba(57, 73, 171, 0.9));
    color: white;
    text-align: center;
    padding: 0;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 726px;
    max-width: 1632px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-button:hover {
    background-color: #ff8f00;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide:nth-child(1) {
    animation: carousel 15s infinite;
}

.carousel-slide:nth-child(2) {
    animation: carousel 15s infinite 5s;
}

.carousel-slide:nth-child(3) {
    animation: carousel 15s infinite 10s;
}

@keyframes carousel {
    0%, 26.66%, 100% {
        opacity: 0;
    }
    33.33%, 60% {
        opacity: 1;
    }
    66.66%, 93.33% {
        opacity: 0;
    }
}

#features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 30%;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#testimonials {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-container {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.testimonial {
    width: 48%;
    font-style: italic;
    position: relative;
    padding: 1.5rem;
    background-color: #f0f4f8;
    border-radius: 10px;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    top: -20px;
    left: 10px;
    opacity: 0.3;
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-section {
    width: 30%;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 1632px) {
    .hero {
        height: 0;
        padding-top: 44.48%; /* 726 / 1632 * 100 */
    }

    .hero-content {
        padding: 0 5%;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin: 0 0.5rem;
    }
    
    .hero {
        height: 0;
        padding-top: 75%; /* 适应移动设备的更方形比例 */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
    
    #features, .testimonial-container {
        flex-direction: column;
    }
    
    .feature-card, .testimonial {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 1rem;
    }
}/* 课程页面样式 */
#courses {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.course-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-img {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 1.5rem;
    flex: 1;
}

.course-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.course-content ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1rem;
}

.course-content ul li {
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ff8f00;
}

@media (max-width: 768px) {
    .course-card {
        flex-direction: column;
    }

    .course-img {
        width: 100%;
        height: 200px;
    }
}/* 师资团队页面样式 */
#team {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.team-member {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.member-info {
    padding: 1.5rem;
    flex: 1;
}

.member-info h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    margin-bottom: 1rem;
}

.member-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.member-expertise span {
    background-color: #f0f4f8;
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .team-member {
        flex-direction: column;
    }

    .member-img {
        width: 100%;
        height: 250px;
    }
}/* 联系我们页面样式 */
#contact {
    display: flex;
    gap: 2rem;
}

.contact-info, .contact-form {
    flex: 1;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info h2, .contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.map {
    margin-top: 1rem;
}

.map-img {
    width: 100%;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

@media (max-width: 768px) {
    #contact {
        flex-direction: column;
    }
}/* 关于我们页面样式 */
#about {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 1rem;
}

.about-content ul {
    list-style-type: none;
    padding-left: 0;
}

.about-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-content ul li::before {
    content: "•";
    color: var(--secondary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}