/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 主内容区域样式 */
.main-container {
    background-color: #fff;
    max-width: 1470px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 宣传横幅样式 */
.banner-section {
    padding: 40px 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.banner-image {
    width: 400px;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.banner-text {
    max-width: 500px;
}

.banner-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.banner-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    background-color: #2B53B2;
    color: white;
    padding: 10px 40px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: 500;
}

.btn:hover {
    background-color: #3b78c8;
}

/* 价值点部分样式 */

.section-title {
    text-align: center;
    font-size: 22px;
    color: #2B53B2;
    margin-bottom: 50px;
    position: relative;
}

.section-title::before, .section-title::after {
    content: "————————";
    color: #2B53B2;
    margin: 0 15px;
    position: relative;
    top: -2px;
}

.values-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    flex: 1 1 160px;
    max-width: 220px;
    text-align: center;
    padding: 20px;
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon img {
    width: 100%;
    height: 100%;
}

.value-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

/* 活动资讯部分样式 */
.news-section {
    padding: 40px 0;
}

.news-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.news-content {
    flex: 1;
    min-width: 600px;
}

.news-grid {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.news-card {
    flex: 1 1 200px;
    max-width: 430px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
}

.news-info {
    padding: 15px;
}

.news-title {
    font-size: 16px;
    color: #333;
    font-weight: 700;
}

.news-date {
    font-size: 14px;
    color: #999;
}

.news-description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    line-height: 1.6;
}

/* 更多资讯部分样式 */
.more-news {
    flex: 0 0 300px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 1px 3px 15px 3px #ECEEF4;
}

.more-news-title {
    font-size: 18px;
    color: #2B53B2;
    margin-bottom: 20px;
    font-weight: 700;
}

.more-news-list {
    list-style: none;
}

.more-news-item {
    padding-bottom: 15px;
}

.more-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.more-news-link {
    text-decoration: none;
    color: #666666;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.more-news-link:hover {
    color: #2B53B2;
}

.news-date-small {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    margin-left: 10px;
}

/* 相关服务部分样式 */
.services-section {
    padding: 60px 0;
    background-color: #F5F8FF;
    margin-top: 40px;
}

.services-container {
    max-width: 1470px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    padding: 0 20px;
}

.services-sidebar {
    flex: 0 0 180px;
    background-color: #2B53B2;
    padding: 30px 0;
    border-radius: 10px;
}

.sidebar-list {
    list-style: none;
}

.sidebar-link {
    display: block;
    padding: 12px 10px 12px 22px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: #2B53B2;
    font-weight: 700;
    font-size: 16px;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    font-weight: 700;
}

.services-content {
    flex: 1;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background-color: #fff;
    padding: 12px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 1px 3px 15px 3px #E2E8F4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.course-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.course-info {
    padding-bottom: 20px;
    position: relative;
}

.course-title {
    font-size: 16px;
    color: #333;
    font-weight: 700;
}

.course-date {
    font-size: 12px;
    color: #999;
    position: absolute;
    right: 10px;
    bottom: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .banner-section {
        padding: 40px 0;
    }

    .news-section {
        padding: 40px 0;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .news-container {
        flex-direction: column;
    }

    .news-content {
        min-width: 100%;
    }

    .more-news {
        flex: 1 1 100%;
    }

    .services-container {
        flex-direction: column;
    }

    .services-sidebar {
        flex: 1 1 100%;
    }

    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 24px;
    }

    .section-title::before, .section-title::after {
        display: none;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .values-grid {
        flex-direction: column;
        align-items: center;
    }

    .value-card {
        max-width: 100%;
    }

    .news-grid {
        flex-direction: column;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* 联系我们部分样式 */
.contact-section {
    padding: 40px 0;
    background-color: #fff;
}

.contact-container {
    max-width: 1470px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: center;
}

.contact-content {
    padding-right: 20px;
}

.contact-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

.benefits-list {
    list-style: none;
}

.benefits-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    font-size: 18px;
    color: #666;
    background: url('/wp-content/themes/my-first-theme/assets/imgs/kechengxiangqing-pythonicon.png') left 10px center no-repeat;
    background-size: 18px 18px;
}

.contact-form {
    background-color: #F5F8FF;
    padding: 30px 30px 10px;
    border-radius: 20px;
    min-width: 500px;
}

.service-form-group {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-form-group label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    width: 100px;
}

.service-form-group input,
.service-form-group select {
    width: 80%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
}

.service-form-group input:focus,
.service-form-group select:focus {
    outline: none;
    border-color: #2B53B2;
}

.service-form-group .norequired::before {
    content: " * ";
    color: transparent;
}

.required::before {
    content: " * ";
    color: #F30000;
}

.submit-btn {
    width: 30%;
    background-color: #2B53B2;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 auto;
    display: block;
}

.submit-btn:hover {
    background-color: #3b78c8;
}

.submit-success-pop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 1002;
}

.submit-success-pop.active {
    display: block;
}

.submit-sccess {
    width: 600px;
    height: 400px;
    position: fixed;
    left: 50%;
    top: 50%;
    background: url('/wp-content/themes/my-first-theme/assets/imgs/submit-success.png') no-repeat;
    background-size: 100% 100%;
    transform: translate(-300px, -200px);
}

.submit-success-btn {
    width: 30%;
    background-color: #2B53B2;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 auto;
    display: block;
    position: absolute;
    left: 35%;
    bottom: 10%;
}

@media (max-width: 1337px) {
    .main-container {
        max-width: 1200px;
    }

    .services-container {
        max-width: 1200px;
    }

    .contact-container {
        max-width: 1200px;

    }
}