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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 链接样式 */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0056b3;
    border-color: #004085;
}

.btn-white {
    color: #007bff;
    background-color: #fff;
    border-color: #fff;
}

.btn-white:hover {
    color: #0056b3;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    padding: 1rem 0;
}

.navbar-brand .logo {
    height: 40px;
}

.navbar-nav .nav-item {
    margin-left: 1rem;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #007bff;
}

.navbar-nav .nav-link.active {
    color: #007bff;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #007bff;
}

/* 自定义工具类 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .bg-gradient-primary {
        background: linear-gradient(135deg, #165DFF 0%, #0A3EBD 100%);
    }
    
    /* 计数器样式 */
    .counter-item {
        transition: all 0.3s ease;
    }
    .counter-item:hover {
        transform: scale(1.05);
    }
    
    /* 课程卡片样式 */
    .course-card {
        transition: all 0.3s ease;
    }
    .course-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    .tab-active {
        border-bottom: 3px solid #165DFF;
        color: #165DFF;
    }
    
    /* 教师卡片样式 */
    .teacher-card {
        transition: all 0.3s ease;
    }
    .teacher-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    .teacher-card:hover .teacher-overlay {
        opacity: 1;
    }
    
    /* 新闻卡片样式 */
    .card-hover {
        transition: all 0.3s ease;
    }
    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    
    /* 资源卡片样式 */
    .resource-card {
        transition: all 0.3s ease;
    }
    .resource-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    .resource-download {
        transition: all 0.3s ease;
    }
    .resource-download:hover {
        background-color: #0A3EBD;
        transform: translateY(-2px);
    }
    
    /* 成果卡片样式 */
    .stat-card {
        transition: all 0.3s ease;
    }
    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    .achievement-card {
        transition: all 0.3s ease;
    }
    .achievement-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    
    /* 学员天地样式 */
    .story-card {
        transition: all 0.3s ease;
    }
    .story-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    .work-card {
        transition: all 0.3s ease;
    }
    .work-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
}

/* 下拉菜单样式 */
.dropdown-menu {
    .content-auto {
        content-visibility: auto;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .bg-gradient-primary {
        background: linear-gradient(135deg, #165DFF 0%, #0A3EBD 100%);
    }
    
    /* 计数器样式 */
    .counter-item {
        transition: all 0.3s ease;
    }
    .counter-item:hover {
        transform: scale(1.05);
    }
    
    /* 课程卡片样式 */
    .course-card {
        transition: all 0.3s ease;
    }
    .course-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    .tab-active {
        border-bottom: 3px solid #165DFF;
        color: #165DFF;
    }
    
    /* 教师卡片样式 */
    .teacher-card {
        transition: all 0.3s ease;
    }
    .teacher-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    .teacher-card:hover .teacher-overlay {
        opacity: 1;
    }
    
    /* 新闻卡片样式 */
    .card-hover {
        transition: all 0.3s ease;
    }
    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    
    /* 资源卡片样式 */
    .resource-card {
        transition: all 0.3s ease;
    }
    .resource-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    .resource-download {
        transition: all 0.3s ease;
    }
    .resource-download:hover {
        background-color: #0A3EBD;
        transform: translateY(-2px);
    }
    
    /* 成果卡片样式 */
    .stat-card {
        transition: all 0.3s ease;
    }
    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    .achievement-card {
        transition: all 0.3s ease;
    }
    .achievement-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    
    /* 学员天地样式 */
    .story-card {
        transition: all 0.3s ease;
    }
    .story-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    .work-card {
        transition: all 0.3s ease;
    }
    .work-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
}

/* 下拉菜单样式 */
.dropdown-menu {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* 区块标题样式 */
.section-title {
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #007bff;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background-color: #007bff;
    margin-top: 0.5rem;
}

.section-title p {
    color: #666;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Banner样式 */
.banner {
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
    height: 500px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 800px;
}

.banner-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* Swiper导航按钮样式 */
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #fff;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #007bff;
}

/* 关于我们区块样式 */
.about {
    padding: 6rem 0;
}

.about-content {
    padding-right: 2rem;
}

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

.about-stats {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item .count {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.stat-item p {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 课程区块样式 */
.courses {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.course-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: 1.5rem;
}

.course-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #f8f9fa;
    color: #666;
    font-size: 0.85rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.course-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.course-title a {
    color: #333;
}

.course-title a:hover {
    color: #007bff;
}

.course-teacher {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.course-teacher i {
    margin-right: 0.5rem;
}

.course-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #007bff;
}

/* 师资团队区块样式 */
.teachers {
    padding: 6rem 0;
}

.teacher-card {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.teacher-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.teacher-position {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.teacher-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.teacher-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #f8f9fa;
    color: #666;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.teacher-social a:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-3px);
}

/* 最新资讯区块样式 */
.news {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.news-date i {
    margin-right: 0.5rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-title a {
    color: #333;
}

.news-title a:hover {
    color: #007bff;
}

.news-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #007bff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* 教学成果区块样式 */
.achievements {
    padding: 6rem 0;
}

.achievement-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.achievement-image {
    height: 200px;
    overflow: hidden;
}

.achievement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.achievement-card:hover .achievement-image img {
    transform: scale(1.05);
}

.achievement-content {
    padding: 1.5rem;
}

.achievement-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.achievement-title a {
    color: #333;
}

.achievement-title a:hover {
    color: #007bff;
}

.achievement-excerpt {
    color: #666;
    line-height: 1.6;
}

/* 联系我们区块样式 */
.contact {
    padding: 6rem 0;
    background-color: #007bff;
    color: #fff;
}

.contact-info h2,
.contact-form h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

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

.contact-item i {
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-social {
    display: flex;
    gap: 1rem;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background-color: #fff;
    color: #007bff;
    transform: translateY(-3px);
}

.contact-form form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

/* 确保所有表单元素都不会有绿色焦点 */
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* 页脚样式 */
.footer {
    background-color: #212529;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-about {
    margin-bottom: 2rem;
}

.footer-about .logo-white {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

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

.footer-links li,
.footer-contact li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    margin-right: 0.8rem;
    color: #007bff;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .banner-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .navbar-nav .nav-item {
        margin-left: 0;
    }
    
    .about-image {
        margin-top: 2rem;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .swiper-slide {
        height: 400px;
    }
    
    .contact-info,
    .contact-form {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .banner-content h2 {
        font-size: 1.8rem;
    }
    
    .banner-content p {
        display: none;
    }
    
    .course-image,
    .news-image,
    .achievement-image {
        height: 150px;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}