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

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #1472ff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: white;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* 横幅样式 */
.banner {
    background: linear-gradient(135deg, #1472ff, #4a9eff);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* 首页横幅 */
.banner.home {
    padding: 6rem 0;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #1472ff;
    color: white;
    margin-right: 1rem;
}

.btn-primary:hover {
    background-color: #0d5bd6;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #1472ff;
    transform: translateY(-2px);
}

/* 核心功能区域 */
.features {
    padding: 4rem 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1472ff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #1472ff;
    margin-bottom: 1rem;
}

/* 课程介绍页面样式 */
.banner-courses {
    background: linear-gradient(135deg, #1472ff, #4a9eff);
}

.course-filters {
    background-color: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background-color: #e9ecef;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #1472ff;
    color: white;
    border-color: #1472ff;
}

.courses-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.course-info {
    padding: 1.5rem;
}

.course-info h3 {
    color: #1472ff;
    margin-bottom: 0.5rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.course-tags {
    margin: 1rem 0;
}

.tag {
    display: inline-block;
    background-color: #e7f4ff;
    color: #1472ff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-course {
    background-color: #1472ff;
    color: white;
    width: 100%;
    text-align: center;
    display: block;
    padding: 0.75rem;
}

.btn-course:hover {
    background-color: #0d5bd6;
}

/* 资源中心页面样式 */
.banner-resources {
    background: linear-gradient(135deg, #1472ff, #4a9eff);
}

.resource-search {
    background-color: white;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 30px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-box .btn-search {
    background-color: #1472ff;
    color: white;
    padding: 0 1.5rem;
    border: none;
    cursor: pointer;
}

.filter-select {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.resources-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.resources-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resource-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.resource-item:hover {
    transform: translateX(5px);
}

.resource-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
}

.resource-info {
    flex: 1;
}

.resource-info h3 {
    color: #1472ff;
    margin-bottom: 0.5rem;
}

.resource-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.btn-download {
    background-color: #1472ff;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
}

.btn-download:hover {
    background-color: #0d5bd6;
}

/* 关于我们页面样式 */
.banner-about {
    background: linear-gradient(135deg, #1472ff, #4a9eff);
}

.about-section {
    padding: 3rem 0;
    background-color: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    color: #1472ff;
    margin: 2rem 0 1rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.timeline {
    margin-top: 2rem;
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #eee;
}

.timeline-date {
    min-width: 100px;
    font-weight: bold;
    color: #1472ff;
}

.timeline-content h3 {
    color: #1472ff;
    margin-bottom: 0.5rem;
}

.team-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.team-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1472ff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    padding: 1.5rem;
}

.member-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.member-info h3 {
    color: #1472ff;
}

.position {
    color: #666;
    font-style: italic;
    margin: 0.5rem 0;
}

.bio {
    font-size: 0.9rem;
    color: #555;
}

/* 首页新增板块样式 */
.why-us {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.why-us h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1472ff;
}

.services {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1472ff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

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

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

.service-item h3 {
    color: #1472ff;
    margin-bottom: 1rem;
}

.testimonials {
    padding: 4rem 0;
    background-color: white;
}

.testimonials h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1472ff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-card::before {
    content: "\"";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: #1472ff;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #555;
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    margin: 0;
}

.testimonial-author {
    text-align: right;
}

.author-name {
    font-weight: bold;
    color: #1472ff;
}

.partners {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.partners h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1472ff;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner-logo {
    background: white;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    font-weight: bold;
    color: #1472ff;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
}

/* 联系我们页面样式 */
.banner-contact {
    background: linear-gradient(135deg, #1472ff, #4a9eff);
}

.contact-section {
    padding: 3rem 0;
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2, .contact-form h2 {
    color: #1472ff;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #1472ff;
}

.contact-details h3 {
    color: #1472ff;
    margin-bottom: 0.25rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background-color: #1472ff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

.btn-submit:hover {
    background-color: #0d5bd6;
}

.map-section {
    margin-top: 2rem;
}

.map-section h2 {
    color: #1472ff;
    margin-bottom: 1rem;
    text-align: center;
}

.map-container {
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 页脚样式 */
.footer {
    background-color: #1472ff;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer a {
    color: white;
    text-decoration: none;
}

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

/* 公司信息页面样式 */
.company-info {
    padding: 3rem 0;
    background-color: white;
}

.company-info h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1472ff;
}

.company-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-info h3, .company-description h3 {
    color: #1472ff;
    margin-bottom: 1rem;
}

.contact-info p {
    margin: 0.8rem 0;
    font-size: 1.1rem;
}

.contact-info a {
    color: #1472ff;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.company-description p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1472ff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        margin: 0.5rem 0 !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .company-details {
        grid-template-columns: 1fr;
    }
    
    .filter-options {
        justify-content: flex-start;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .resources-grid {
        gap: 1rem;
    }
    
    .resource-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resource-icon {
        margin-bottom: 1rem;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-date {
        margin-bottom: 0.5rem;
    }
}