/* 移动端适配样式 */


/* 基础重置 - 移除PC端最小宽度限制 */

@media (max-width: 1023px) {
    body {
        min-width: auto !important;
        overflow-x: hidden;
    }
}


/* 移动端断点设计 */


/* 大屏手机 (376px - 768px) */

@media (min-width: 376px) and (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
}


/* 通用移动端样式 (≤768px) */

@media (max-width: 768px) {
    /* 头部导航移动端优化 */
    .header {
        padding: 12px 0;
    }
    .header-container {
        max-width: 100%;
        padding: 0 16px;
        position: relative;
    }
    .header-left {
        flex: 1;
    }
    .logo img {
        height: 36px;
    }
    /* 隐藏PC端导航，显示移动端菜单按钮 */
    .header-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        margin-left: 0;
        gap: 0;
    }
    .header-nav.active {
        display: flex;
    }
    .nav-item {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 16px;
        text-align: center;
    }
    .nav-item:last-child {
        border-bottom: none;
    }
    /* 移动端菜单按钮 */
    .mobile-menu-toggle {
        display: block;
        width: 24px;
        height: 24px;
        cursor: pointer;
        position: relative;
        z-index: 1000;
    }
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #333;
        margin: 4px 0;
        transition: all 0.3s ease;
    }
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 0px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -3px);
    }
    .header-right {
        gap: 12px;
    }
    .language-selector {
        font-size: 12px;
    }
    .login-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    /* Banner区域移动端适配 */
    /* .banner {
        height: 45vh;
        min-height: 450px;
    } */
    .banner-content {
        top: 74px;
        gap: 24px
        /* position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 90%;
        gap: 24px; */
    }
    /* .brand-logo {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    } */
    .brand-logo img {
        height: 20px;
    }
    .brand-logo span {
        font-size: 12px;
    }
    .taglines {
        /* flex-direction: column;
        gap: 8px;
        align-items: center; */
    }
    .taglines span {
        /* font-size: 14px; */
    }
    .taglines .dot {
        /* display: none; */
    }
    /* 关于我们区域 */
    .about-content {
        flex-direction: column-reverse;
        gap: 30px;
        text-align: center;
    }
    .about-text {
        width: 100%;
        order: 2;
    }
    .about-text p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    .about-stats {
        width: 100%;
        order: 1;
        grid-template-columns: repeat(2, 1fr);
        gap: 0px;
        margin-bottom: 0;
    }
    .stat-item {
        text-align: center;
        width: calc(50%);
    }
    .stat-img {
        width: 40px;
        height: 40px;
        margin: 0 auto 12px;
    }
    .stat-item h3 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    .stat-item p {
        font-size: 12px;
    }
    /* 课程展示区域 */
    .courses {
        padding: 60px 0 80px;
    }
    .course-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        overflow: visible;
        margin-bottom: 0;
    }
    .tab-btn {
        padding: 12px 8px;
        font-size: 11px;
        text-align: center;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        transition: all 0.3s ease;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
    }
    .tab-btn.active {
        background: #FF8F1F;
        color: white;
        border-color: #FF8F1F;
    }
    /* .course-content {
        margin-top: 20px;
    } */
    .course-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .course-img {
        width: 100%;
        margin-bottom: 0;
    }
    .course-img img {
        width: 100%;
        height: auto;
        border-radius: 12px;
    }
    .course-info {
        width: 100%;
        padding: 0;
    }
    .course-title h3 {
        font-size: 20px;
    }
    .course-desc {
        font-size: 14px;
        line-height: 1.6;
        text-align: left;
    }
    /* 上课模式区域 */
    .mode-container {
        /* flex-direction: column; */
        /* gap: 40px; */
    }
    .mode-item {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .mode-img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .mode-content {
        width: 100%;
        padding: 0;
    }
    .mode-title {
        font-size: 20px;
        margin-bottom: 20px;
        text-align: center;
    }
    .mode-features {
        gap: 12px;
    }
    .feature-item {
        gap: 12px;
        align-items: flex-start;
    }
    .feature-item img {
        width: 16px;
        height: 16px;
        margin-top: 2px;
        flex-shrink: 0;
    }
    .feature-item p {
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
    }
    /* 我们的优势区域 */
    .advantages {
        padding: 40px 0;
        gap: 40px;
    }
    .advantages-items {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        order: 2;
    }
    .advantage-card {
        padding: 20px 12px;
        text-align: center;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border: 1px solid #f0f0f0;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    .advantage-card.active {
        /* background: #fff5f0;
        border-color: #FF8F1F; */
    }
    .advantage-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 8px;
    }
    .advantage-header img {
        width: 32px;
        height: 32px;
        margin: 0 auto;
    }
    .advantage-header h4 {
        font-size: 14px;
        margin: 0;
    }
    .advantage-card p {
        font-size: 12px;
        line-height: 1.4;
        margin: 0;
    }
    .advantages-image {
        width: 100%;
        order: 1;
        margin-bottom: 20px;
    }
    .advantages-image img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        position: relative;
    }
    /* 名师授课团队 */
    .teachers {
        padding: 40px 0;
        gap: 20px;
    }
    .teachers-bg {
        top: -20px;
    }
    .teachers-header {
        flex-direction: column;
        /* gap: 20px; */
        margin-bottom: 0;
    }
    .slider-nav {
        display: none;
    }
    .teachers-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0;
    }
    .teachers-slider::-webkit-scrollbar {
        display: none;
    }
    .teacher-card {
        /* min-width: 280px; */
        scroll-snap-align: start;
        margin: 0;
        padding: 20px;
        border-radius: 12px;
        width: 100%;
    }
    /* .teacher-card:last-child {
        margin-right: 16px;
    } */
    .teacher-profile {
        margin-bottom: 16px;
    }
    .teacher-avatar {
        width: 60px;
        height: 60px;
    }
    .teacher-info h4 {
        font-size: 16px;
    }
    .teacher-info p {
        font-size: 12px;
    }
    .teacher-bio {
        font-size: 12px;
        line-height: 1.5;
    }
    /* 滑动指示器 */
    .slider-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }
    .indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ccc;
        transition: background 0.3s ease;
        cursor: pointer;
    }
    .indicator.active {
        background: #FF8F1F;
    }
    /* 我们的成就区域 */
    .achievements {
        padding: 40px 0;
    }
    .achievement-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .achievement-tab {
        padding: 12px 8px;
        font-size: 12px;
        text-align: center;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background: white;
        transition: all 0.3s ease;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .achievement-tab.active {
        background: #FF8F1F;
        color: white;
        border-color: #FF8F1F;
    }
    /* 联系我们区域 */
    .contact {
        padding: 90px 0;
    }
    .contact-info {
        order: 1;
    }
    .contact-header h2 {
        font-size: 28px;
    }
    .contact-header p {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .qr-code {
        width: 200px;
        height: auto;
        margin: 0 auto;
    }
    .plane-img {
        width: 30% !important;
        order: 2;
        margin: 0 auto;
    }
    /* 页脚优化 */
    .footer-info {
        flex-direction: column;
        gap: 24px;
    }
    .footer-locations,
    .footer-contact {
        gap: 12px;
    }
    .footer-location p,
    .footer-email p,
    .footer-phone p {
        font-size: 12px;
    }
}


/* 平板端适配 (769px - 1024px) */

@media (min-width: 769px) and (max-width: 1024px) {
    .header-container {
        padding: 0 40px;
    }
    .section-title {
        font-size: 36px;
    }
    .banner-content {
        /* left: 40px; */
        /* width: auto; */
    }
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    .course-tabs {
        grid-template-columns: repeat(3, 1fr);
    }
    .advantages-items {
        grid-template-columns: repeat(3, 1fr);
    }
    .achievement-tabs {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* 性能优化 - 减少移动端动画 */

@media (max-width: 768px) {
    .section-title,
    .about-content,
    .stat-item,
    .advantage-card,
    .teacher-card,
    .section-title {
        animation: none !important;
    }
    * {
        transition-duration: 0.2s !important;
    }
}


/* 触摸优化 - 增加触摸目标大小 */

@media (max-width: 768px) {
    .tab-btn,
    .achievement-tab,
    .advantage-card,
    .language-option,
    .login-btn {
        min-height: 44px;
        min-width: 44px;
    }
}


/* 文字可读性优化 */

@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.6;
    }
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        line-height: 1.3;
    }
    p {
        line-height: 1.6;
    }
}


/* About页面移动端适配 */

@media (max-width: 768px) {
    .about-page {
        padding: 0;
    }
    .about-banner {
        padding: 60px 0 40px;
        text-align: center;
    }
    .about-banner h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    .about-banner p {
        font-size: 14px;
    }
    .about-xueertong {
        padding: 40px 0;
    }
    .about-xueertong .content-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .about-xueertong .text-content {
        order: 2;
    }
    .about-xueertong .image-content {
        order: 1;
    }
    .about-xueertong .text-content img {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
    }
    .about-xueertong h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }
    .about-xueertong p {
        font-size: 14px;
        line-height: 1.6;
        text-align: left;
    }
    .core-values {
        padding: 40px 0;
    }
    .core-values .content-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .value-card {
        padding: 20px 16px;
        text-align: center;
    }
    .value-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    .value-card p {
        font-size: 12px;
        line-height: 1.4;
    }
    .join-us {
        padding: 40px 0;
    }
    .join-us h2 {
        font-size: 24px;
        margin-bottom: 24px;
        text-align: center;
    }
    .job-card {
        padding: 24px 16px;
        border-radius: 12px;
    }
    .job-card-header {
        margin-bottom: 20px;
    }
    .job-card-header img {
        width: 32px;
        height: 32px;
    }
    .job-card-header h3 {
        font-size: 18px;
    }
    .job-card h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    .job-card ul {
        padding-left: 0;
    }
    .job-card li {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 8px;
        padding-left: 16px;
        position: relative;
    }
    .job-card li::before {
        content: "•";
        position: absolute;
        left: 0;
        color: #FF8F1F;
    }
}


/* Download页面移动端适配 */

@media (max-width: 768px) {
    .banner {
        /* padding: 60px 0 40px; */
        /* text-align: center; */
        /* position: relative; */
    }
    /* .banner-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
    } */
    /* .banner-content { */
    /* position: relative;
        z-index: 1;
        padding: 0 16px; */
    /* } */
    .banner-title h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    .banner-title p {
        font-size: 14px;
        margin-bottom: 30px;
    }
    .download-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 300px;
        margin: 0 auto;
    }
    .download-btn {
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        min-height: 80px;
        justify-content: center;
    }
    .download-btn img {
        width: 24px;
        height: 24px;
    }
    .download-info {
        padding: 40px 16px;
    }
    .info-card {
        /* margin-bottom: 30px; */
        padding: 24px 16px;
        border-radius: 12px;
        flex-direction: column;
        text-align: center;
    }
    .card-icon {
        margin-bottom: 20px;
        order: 1;
        margin: auto;
    }
    .card-icon img {
        width: 60px;
        height: 60px;
    }
    .card-content {
        order: 2;
    }
    .card-content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .info-group {
        margin-bottom: 20px;
        text-align: left;
    }
    .info-group h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    .info-item {
        margin-bottom: 8px;
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }
    .info-item .dot {
        width: 4px;
        height: 4px;
        background: #FF8F1F;
        border-radius: 50%;
        margin-top: 8px;
        flex-shrink: 0;
    }
    .info-item p {
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }
    .link {
        color: #FF8F1F;
        text-decoration: underline;
    }
    .other-tools {
        padding: 40px 16px;
    }
    .other-tools h2 {
        font-size: 24px;
        margin-bottom: 24px;
        text-align: center;
    }
    .tools-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .tool-card {
        padding: 20px 16px;
        border-radius: 12px;
        text-align: center;
        align-items: center;
        border: 1px solid #f0f0f0;
    }
    .tool-card img {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }
    .tool-info h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    .tool-info p {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 16px;
        color: #666;
    }
    .btn-download-tool {
        background: #FF8F1F;
        color: white;
        padding: 8px 20px;
        border-radius: 20px;
        font-size: 14px;
        text-decoration: none;
        display: inline-block;
    }
    /* Modal适配 */
    .modal {
        padding: 20px;
    }
    .modal-content {
        width: 90%;
        max-width: 300px;
        padding: 24px 20px;
        border-radius: 12px;
    }
    .modal-content h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    .modal-content img {
        width: 200px;
        height: 200px;
        margin-bottom: 12px;
    }
    .close-button {
        font-size: 24px;
        top: 10px;
        right: 15px;
    }
}