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

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

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

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    background-color: #007bff;
    color: #fff;
}

.contact-info i {
    margin: 0 10px;
}

.social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 18px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ffc107;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    color: #666;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #007bff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 英雄区样式 */
.hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    background-color: #ffc107;
    color: #333;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    margin-right: 20px;
}

.btn-primary:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid #fff;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 通用section样式 */
section {
    padding: 80px 0;
}

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

.section-title h3 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

.section-title p {
    font-size: 18px;
    color: #666;
}

/* 服务介绍样式 */
.services {
    background-color: #fff;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.service-item .icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.service-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.service-item p {
    color: #666;
    font-size: 16px;
}

/* 优势展示样式 */
.advantages {
    background-color: #f8f9fa;
}

.advantage-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.advantage-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.advantage-item .icon {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 15px;
}

.advantage-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.advantage-item p {
    color: #666;
    font-size: 14px;
}

/* 合作院校样式 */
.partners {
    background-color: #fff;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.partner-logo {
    width: 180px;
    height: 80px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    font-size: 18px;
    color: #333;
    font-weight: bold;
    transition: all 0.3s;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

/* 学员评价样式 */
.testimonials {
    background-color: #f8f9fa;
}

.testimonial-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-item .quote {
    font-size: 48px;
    color: #007bff;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-item p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    padding-top: 20px;
}

.author {
    display: flex;
    align-items: center;
}

.author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author .info h5 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.author .info p {
    font-size: 14px;
    color: #999;
    margin: 0;
    padding: 0;
}

/* 常见问题样式 */
.faq {
    background-color: #fff;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}

.faq-question {
    font-size: 18px;
    color: #333;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #007bff;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
    color: #007bff;
}

.faq-answer {
    margin-top: 15px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question::after {
    content: '-';
}

/* 联系我们样式 */
.contact-section {
    background-color: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 24px;
    color: #007bff;
    margin-right: 20px;
    min-width: 30px;
}

.info-item h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.info-item p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

/* 底部样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #007bff;
}

.footer-logo p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #007bff;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links a:hover,
.footer-services a:hover {
    color: #007bff;
}

.footer-contact p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        padding: 10px 0;
        text-align: center;
    }
    
    .contact-info {
        margin-bottom: 10px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .btn-primary,
    .btn-secondary {
        font-size: 16px;
        padding: 10px 20px;
        margin-right: 10px;
        margin-bottom: 10px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title h3 {
        font-size: 28px;
    }
    
    .section-title p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 24px;
    }
    
    .service-items,
    .advantage-items,
    .testimonial-items,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .partner-logo {
        width: 150px;
        height: 70px;
        font-size: 16px;
    }
    
    .btn-primary,
    .btn-secondary {
        display: block;
        width: 80%;
        margin: 0 auto 15px;
        text-align: center;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item,
.advantage-item,
.testimonial-item {
    animation: fadeIn 0.5s ease-out;
}

.service-item:nth-child(2) { animation-delay: 0.1s; }
.service-item:nth-child(3) { animation-delay: 0.2s; }
.service-item:nth-child(4) { animation-delay: 0.3s; }

/* 滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 表单提交成功样式 */
.form-success {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* 加载动画 */
.loader {
    display: none;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #007bff;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}