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

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

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1e88e5;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    background-color: #1e88e5;
}

.primary-btn:hover {
    background-color: #1976d2;
}

.secondary-btn {
    background-color: #fff;
    color: #1e88e5;
    border: 2px solid #1e88e5;
}

.secondary-btn:hover {
    background-color: #1e88e5;
    color: #fff;
}

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

.section-title h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
}

.title-line {
    width: 80px;
    height: 4px;
    background-color: #1e88e5;
    margin: 0 auto;
    border-radius: 2px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    font-size: 24px;
    color: #1e88e5;
    font-weight: 700;
}

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

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

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

.nav-links a:hover {
    color: #1e88e5;
}

.contact-btn .btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

/* 首页横幅样式 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-content h2 {
    font-size: 56px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 500;
    opacity: 0.9;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
    background-color: #fff;
}

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

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    color: #1e88e5;
}

.feature i {
    font-size: 20px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 学校介绍样式 */
.school-info {
    padding: 100px 0;
    background-color: #f8f9fa;
}

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

.school-image {
    flex: 1;
    min-width: 300px;
}

.school-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.school-text {
    flex: 1;
    min-width: 300px;
}

.school-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
}

/* 招生专业样式 */
.programs {
    padding: 100px 0;
    background-color: #fff;
}

.programs-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background-color: #f8f9fa;
    color: #666;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: #1e88e5;
    color: #fff;
}

.tab-btn:hover:not(.active) {
    background-color: #e9ecef;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.program-card h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.program-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    min-height: 80px;
}

.program-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #1e88e5;
}

.program-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 学习方式样式 */
.learning-method {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.method-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.method-icon {
    width: 80px;
    height: 80px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #1e88e5;
}

.method-card h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.method-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 项目优势样式 */
.advantages {
    padding: 100px 0;
    background-color: #fff;
}

.advantages-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-item {
    display: flex;
    gap: 20px;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.advantage-icon {
    font-size: 32px;
    color: #4caf50;
    flex-shrink: 0;
    margin-top: 5px;
}

.advantage-text h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.advantage-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 数据统计样式 */
.stats {
    background: linear-gradient(rgba(30, 136, 229, 0.9), rgba(30, 136, 229, 0.9)), url('images/stats-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: #fff;
}

.stats-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-item .stat-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

/* 学员故事样式 */
.testimonials {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    display: none;
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.author-info h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 5px;
}

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

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #1e88e5;
    color: #1e88e5;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn:hover, .next-btn:hover {
    background-color: #1e88e5;
    color: #fff;
}

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

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

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question h3 {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 500;
}

.faq-question i {
    font-size: 20px;
    color: #1e88e5;
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 0 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* 报名流程样式 */
.enrollment-process {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 180px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #1e88e5;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.step-content h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.process-arrow {
    font-size: 32px;
    color: #1e88e5;
    margin: 0 10px;
    display: none;
}

@media (min-width: 768px) {
    .process-arrow {
        display: block;
    }
}

/* 联系方式样式 */
.contact {
    padding: 100px 0;
    background-color: #fff;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 24px;
    color: #1e88e5;
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.qr-code-container {
    margin-top: 15px;
    text-align: center;
}

.qr-code {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}

.qr-code-container p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

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

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

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

.contact-form .btn {
    width: 100%;
}

/* 底部信息样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 80px 0 40px;
}

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

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

.social-item {
    position: relative;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.social-link:hover {
    background-color: #1e88e5;
    transform: translateY(-3px);
}

.qr-code-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-align: center;
}

.qr-code-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.qr-code-popup img {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.qr-code-popup p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.social-item:hover .qr-code-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* 调整不同图标的位置，避免重叠 */
.weixin-popup {
    left: -150%;
    transform: translateX(0);
}

.weixin-popup::after {
    left: 60px;
}

.social-item:hover .weixin-popup {
    transform: translateX(0) translateY(-5px);
}

.qq-popup {
    left: -150%;
    transform: translateX(0);
}

.qq-popup::after {
    left: 60px;
}

.social-item:hover .qq-popup {
    transform: translateX(0) translateY(-5px);
}

.footer-qr-code {
    text-align: center;
}

.footer-qr-code img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-qr-code p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1e88e5;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1976d2;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 48px;
    }
    
    .hero-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .contact-btn {
        display: none;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content h3 {
        font-size: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .process-step {
        flex-direction: row;
        text-align: left;
        min-width: auto;
    }
    
    .step-number {
        margin-right: 20px;
        margin-bottom: 0;
    }
    
    .qr-code {
        width: 100px;
        height: 100px;
    }
    
    .footer-qr-code img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 28px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content h3 {
        font-size: 18px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .about-features {
        justify-content: center;
    }
    
    .program-cards {
        grid-template-columns: 1fr;
    }
    
    .method-cards {
        grid-template-columns: 1fr;
    }
    
    .advantages-content {
        grid-template-columns: 1fr;
    }
    
    .stats-content {
        gap: 20px;
    }
    
    .stat-item .stat-number {
        font-size: 36px;
    }
    
    .testimonial-text {
        font-size: 16px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}