/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 品牌色定义 - 贴合教育行业，沉稳专业 */
:root {
    --primary: #1e40af; /* 主色调：深蓝 */
    --secondary: #f97316; /* 辅助色：橙 */
    --tertiary: #0ea5e9; /* 次要色：浅蓝 */
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --success: #10b981;
}

body {
    color: var(--dark);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu li a {
    font-weight: 500;
    padding: 8px 0;
    transition: 0.3s;
    position: relative;
}

.nav-menu li a:hover, .nav-menu li a.active {
    color: var(--primary);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-menu li a:hover::after, .nav-menu li a.active::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

/* 通用区块样式 */
section {
    padding: 80px 0;
    margin-top: 0px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark);
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    margin-top: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    line-height: 1.8;
}

/* 首页轮播区 */
.hero {
    height: 700px;
    background: linear-gradient(rgba(30, 64, 175, 0.88), rgba(30, 64, 175, 0.88)), url('../images/banner_bg1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/banner_bg2.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 58px;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-content .tagline {
    font-size: 22px;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--secondary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn:hover {
    background: #ea580c;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    margin-left: 20px;
    box-shadow: none;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    box-shadow: none;
}

/* 品牌介绍 */
.brand-intro {
    background: var(--light);
}

.brand-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.brand-img {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.brand-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.brand-text {
    flex: 1;
}

.brand-text h3 {
    font-size: 30px;
    margin-bottom: 25px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-text h3 i {
    color: var(--secondary);
}

.brand-text .highlight {
    background: rgba(30, 64, 175, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--primary);
    font-weight: 600;
}

.brand-text p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

.brand-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.stat-item .num {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-item .desc {
    color: var(--gray);
    font-size: 14px;
}

/* 课程体系 */
.courses {
    background: white;
}

.course-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.course-tab {
    padding: 12px 28px;
    background: var(--light);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
}

.course-tab.active {
    background: var(--primary);
    color: white;
}

.course-tab:hover:not(.active) {
    background: rgba(30, 64, 175, 0.1);
}

.course-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.course-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
    background: white;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.course-header {
    padding: 25px;
    background: var(--primary);
    color: white;
}

.course-header h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.course-header p {
    font-size: 14px;
    opacity: 0.9;
}

.course-body {
    padding: 25px;
}

.course-features {
    list-style: none;
}

.course-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.course-features li i {
    color: var(--success);
    margin-top: 5px;
}

/* 课程模式 */
.course-modes {
    background: var(--light);
    padding: 80px 0;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.mode-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
    border-top: 4px solid var(--primary);
}

.mode-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.mode-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.mode-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark);
}

.mode-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* 公益服务 */
.public-service {
    background: linear-gradient(rgba(30, 64, 175, 0.95), rgba(30, 64, 175, 0.95)), url('../images/huikui.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.public-service .section-title h2 {
    color: white;
}

.public-service .section-title p {
    color: rgba(255,255,255,0.9);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255,255,255,0.1);
    padding: 35px 25px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s;
}

.service-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.service-card i {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.service-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.service-card p {
    opacity: 0.9;
    line-height: 1.7;
}

/* 办学资质 */
.qualification {
    background: white;
}

.qual-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.qual-text {
    flex: 1;
}

.qual-text h3 {
    font-size: 30px;
    margin-bottom: 25px;
    color: var(--primary);
}

.qual-text p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.qual-list {
    list-style: none;
    margin-top: 20px;
}

.qual-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.qual-list li i {
    color: var(--success);
    font-size: 20px;
}

.qual-img {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.qual-img-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qual-img-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 师资团队 */
.teachers {
    background: var(--light);
}

.teacher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.teacher-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 600px;
}

.teacher-stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.teacher-stat-item .num {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.teacher-stat-item .desc {
    color: var(--gray);
    font-size: 14px;
}

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-items: center;
}

.teacher-card {
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    background: white;
}

.teacher-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.teacher-card img {
    width: 100%;
    height: 523px;
    object-fit: cover;
    display: block;
}

/* 办学成果 */
.achievements {
    background: white;
}

.achieve-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 60px;

}

.achieve-stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--light);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.achieve-stat-item .num {
    font-size: 42px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.achieve-stat-item .desc {
    color: var(--gray);
    font-size: 16px;
}

/* 成功案例 */
.cases {
    background: var(--light);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.case-header {
    padding: 25px;
    background: var(--primary);
    color: white;
}

.case-header h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.case-header .tag {
    font-size: 14px;
    opacity: 0.9;
}

.case-body {
    padding: 25px;
}

.case-body p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.case-result {
    background: rgba(16, 185, 129, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--success);
}

.case-result h5 {
    color: var(--success);
    margin-bottom: 8px;
    font-size: 16px;
}

.case-result p {
    margin-bottom: 0;
    color: var(--dark);
    font-weight: 500;
}

/* 痛点解决 */
.pain-points {
    background: white;
}

.point-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.point-card {
    background: var(--light);
    padding: 30px;
    border-radius: 12px;
    transition: 0.3s;
}

.point-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.point-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.point-card h4 i {
    color: var(--secondary);
}

.point-card .problem {
    color: var(--gray);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.point-card .solution {
    color: var(--dark);
    font-weight: 500;
}

/* 联系我们 */
.contact {
    background: var(--light);
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-item i {
    font-size: 28px;
    color: var(--primary);
    width: 60px;
    height: 60px;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item .info h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.contact-item .info p {
    color: var(--gray);
}

.campus-list {
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.campus-list h4 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 18px;
}

.campus-list ul {
    list-style: none;
    /* columns: 2; */
    gap: 10px;
}

.campus-list ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.campus-list ul li i {
    color: var(--secondary);
    font-size: 12px;
}

.contact-form {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
    font-size: 16px;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* 图片弹窗 */
.img-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.modal-img-container {
    max-width: 90%;
    max-height: 90vh;
    animation: imgModalOpen 0.4s ease;
}

@keyframes imgModalOpen {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.modal-img-container img {
    width: 100%;
    height: auto;
    max-height: 95vh;
    border-radius: 10px;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close-btn:hover {
    color: var(--secondary);
}

/* 页脚 */
footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    font-size: 20px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    bottom: 0;
    left: 0;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
    transition: 0.3s;
}

.footer-col ul li:hover {
    transform: translateX(5px);
}

.footer-col ul li a {
    color: #aaa;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

.footer-col p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 18px;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 14px;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .brand-content, .qual-content, .contact-content {
        flex-direction: column;
    }

    .brand-img, .qual-img {
        width: 100%;
    }

    .teacher-stats {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        padding: 30px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transition: 0.3s;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content .tagline {
        font-size: 18px;
    }

    .hero {
        height: 600px;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 20px;
    }

    .brand-stats, .teacher-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .campus-list ul {
        columns: 1;
    }

    /* 移动端图片弹窗适配 */
    .modal-close-btn {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }

    .img-modal {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .brand-stats, .teacher-stats, .achieve-stats {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 16px;
    }
}