/* ==================== 移动端适配 (768px及以下) ==================== */

/* ==================== 通用 ==================== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        display: flex;
        flex-direction: column;
    }

    .yp-header-top {
        order: 0;
    }

    .yp-hero {
        order: 1;
    }

    .yp-category-nav {
        order: 2;
    }

    .yp-news,
    .yp-strip-banner,
    .yp-info,
    .yp-books,
    .yp-why,
    .yp-footer {
        order: 3;
    }

    .yp-container {
        padding: 0 12px;
    }

    /* ==================== 顶部导航 ==================== */
    .yp-header-top-inner {
        height: auto;
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .yp-header-logo-group {
        gap: 6px;
        flex-wrap: wrap;
    }

    .yp-eol-logo-img {
        height: 28px;
    }

    .yp-channel-badge {
        font-size: 16px;
    }

    .yp-header-divider {
        display: none;
    }

    .yp-logo-xhd .xhd-text {
        font-size: 14px;
    }

    .yp-header-hotline {
        display: none;
    }

    /* 列表/详情页头部导航 */
    .yp-list-channel-label {
        font-size: 15px;
    }

    .yp-list-channel-en {
        font-size: 13px;
    }

    .yp-list-nav-menu {
        display: none;
    }

    /* ==================== 分类导航 ==================== */
    .yp-category-inner {
        padding: 24px 12px 0;
    }

    .yp-cat-swiper {
        overflow: hidden;
        padding-bottom: 40px !important;
    }

    .yp-cat-swiper .swiper-wrapper {
        flex-wrap: nowrap;
        gap: 0;
        transform: translate3d(0, 0, 0) !important;
    }

    .yp-cat-swiper .swiper-slide {
        width: 100% !important;
        flex-shrink: 0;
        flex: 0 0 100%;
    }

    .yp-cat-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .yp-cat-item {
        width: 100%;
        height: 36px;
        line-height: 36px;
        padding: 0;
        font-size: 15px;
        background-color: #fff;
        border-radius: 8px;
        color: #393F4A;
        flex-shrink: 0;
    }

    /* .yp-cat-item.active {
        background-color: #FF7033;
        color: #fff;
    } */

    .yp-cat-pagination {
        display: block;
        margin-top: 12px;
        position: static;
    }

    .yp-cat-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
        background: #d0d0d0;
        opacity: 1;
    }

    .yp-cat-pagination .swiper-pagination-bullet-active {
        width: 18px;
        border-radius: 3px;
        background: #FF7033;
    }


    .swiper-horizontal>.swiper-pagination-bullets,
    .swiper-pagination-bullets.swiper-pagination-horizontal,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        bottom: 10px !important;
    }

    /* ==================== Hero Banner ==================== */
    .yp-hero-inner {
        height: 220px;
    }

    .yp-hero-swiper .swiper-slide {
        height: 220px;
    }

    .yp-lead-form {
        right: 10px;
        width: 160px;
        border-radius: 8px;
    }

    .yp-lead-form-header {
        padding: 8px 10px;
    }

    .yp-lead-form-header h3 {
        font-size: 14px;
    }

    .yp-lead-form-header p {
        font-size: 10px;
    }

    .yp-lead-form-body {
        padding: 10px;
    }

    .yp-form-group {
        margin-bottom: 8px;
    }

    .yp-form-group label {
        font-size: 11px;
    }

    .yp-form-group input,
    .yp-form-group select {
        padding: 6px 8px;
        font-size: 12px;
    }

    .yp-form-submit {
        padding: 8px;
        font-size: 13px;
    }

    .yp-form-tips {
        font-size: 10px;
    }

    /* ==================== 次级横幅 ==================== */
    .yp-strip-inner {
        padding: 0 12px;
    }

    .yp-strip-ad-link img {
        height: 50px;
    }

    /* ==================== 最新动态 ==================== */
    .yp-news {
        width: 100%;
        padding: 14px;
        margin: 10px auto;
        border-radius: 0;
    }

    .yp-news-list {
        flex-direction: column;
        gap: 0;
    }

    .yp-news-tag {
        font-size: 13px;
    }

    .yp-news-sep {
        font-size: 13px;
    }

    .yp-news-title {
        font-size: 13px;
        min-width: 0;
    }

    .yp-news-date {
        font-size: 12px;
    }

    .yp-news-col:nth-child(2) {
        display: none;
    }

    /* ==================== 资讯内容 ==================== */
    .yp-info {
        width: 100%;
        margin: 0 auto 20px;
        border-radius: 0;
    }

    .yp-info-inner {
        flex-direction: column;
        gap: 0;
    }

    .yp-info-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 12px;
        gap: 6px;
    }

    .yp-info-nav-item {
        width: auto;
        height: 32px;
        line-height: 32px;
        padding: 0 14px;
        font-size: 13px;
        border-left: none;
        border-bottom: 2px solid transparent;
        flex-shrink: 0;
    }

    .yp-info-nav-item.active {
        border-left: none;
        border-bottom-color: #FF7033;
        background-color: transparent;
    }

    .yp-info-content {
        padding: 14px;
    }

    .yp-info-cols {
        flex-direction: column;
        gap: 0;
    }

    .yp-info-item-title {
        font-size: 13px;
        min-width: 0;
    }

    .yp-info-item-date {
        font-size: 12px;
    }

    /* ==================== 课程推荐 ==================== */
    .yp-course-block {
        margin-top: 16px;
    }

    .yp-block-header {
        padding: 0 12px 12px;
        margin-bottom: 12px;
    }

    .yp-block-header h3 {
        font-size: 16px;
    }

    .yp-books .yp-section-title,
    .yp-why .yp-section-title {
        padding: 0 12px;
        margin-bottom: 16px;
    }

    .yp-course-grid {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
        gap: 12px;
        padding: 0 16px;
        margin: 0 -16px;
    }

    .yp-course-grid::-webkit-scrollbar {
        display: none;
    }

    .yp-course-card {
        flex: 0 0 220px;
        padding-bottom: 14px;
    }

    .yp-course-card-img {
        height: 160px;
    }

    .yp-course-card-title {
        font-size: 16px;
        padding: 10px 14px 6px;
    }

    .yp-course-card-tags {
        padding: 0 14px 10px;
        gap: 8px;
    }

    .yp-course-tag {
        font-size: 12px;
        padding: 3px 10px;
    }

    .yp-course-card-bottom {
        padding: 0 14px;
    }

    .yp-course-card-price {
        font-size: 20px;
    }

    .yp-course-card-btn {
        padding: 6px 18px;
        font-size: 12px;
    }

    /* ==================== 自主研发教材 ==================== */
    .yp-books {
        padding: 20px 0;
    }

    .yp-books .yp-section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .yp-books-filter {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
    }

    .yp-book-filter-item {
        padding: 4px 12px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .yp-books-swiper {
        padding: 0 16px;
    }

    .yp-books-swiper .swiper-button-prev,
    .yp-books-swiper .swiper-button-next {
        display: none;
    }

    .yp-books-swiper .swiper-slide {
        height: 200px;
    }

    .yp-book-cover {
        width: 110px;
        height: 146px;
    }

    .yp-book-name {
        width: 110px;
        font-size: 12px;
    }

    /* ==================== 为什么选择 ==================== */
    .yp-why {
        display: none;
    }

    /* ==================== 底部 ==================== */
    .yp-footer {
        padding: 20px 0;
    }

    .yp-footer-inner {
        flex-direction: column;
        gap: 20px;
        padding: 0 16px;
        align-items: normal;
    }

    .yp-footer-qrcodes {
        order: 1;
        justify-content: space-around;
        gap: 8px;
    }

    .yp-footer-qr-item {
        flex-direction: column-reverse;
        align-items: center;
    }

    .yp-footer-qr-item img {
        width: 80px;
        height: 80px;
        margin-bottom: 0;
        margin-top: 6px;
        border: 1px dashed #d0d0d0;
        padding: 4px;
        border-radius: 4px;
    }

    .yp-footer-qr-label {
        font-size: 11px;
        color: #949698;
    }

    .yp-footer-brand {
        order: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .yp-footer-logo {
        margin-bottom: 0;
        padding: 6px 10px;
        border: 1px dashed #d0d0d0;
        border-radius: 4px;
    }

    .yp-footer-eol-img {
        height: 24px;
    }

    .yp-footer-logo .xhd-text {
        font-size: 14px;
    }

    .yp-fooer-divider {
        width: 1px;
        height: 36px;
        background: #e0e0e0;
    }

    /* .yp-footer-contact {
        text-align: right;
    } */

    .yp-footer-hotline-label {
        font-size: 14px;
        color: #101010;
        margin-bottom: 2px;
    }

    .yp-footer-phone {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .yp-footer-time {
        font-size: 14px;
        color: #101010;
    }

    /* ==================== 面包屑 ==================== */
    .yp-breadcrumb-inner {
        padding: 8px 12px;
        font-size: 12px;
        gap: 4px;
    }

    /* ==================== 列表页 ==================== */
    .yp-list-container {
        flex-direction: column;
        gap: 12px;
        padding: 0 12px;
    }

    .yp-list-sidebar {
        width: 100%;
        order: 2;
    }

    .yp-list-sidebar .yp-course-block {
        margin-top: 12px;
        background-color: #fff;
        border-radius: 0;
        padding: 14px 0;
    }

    .yp-list-sidebar .yp-block-header {
        padding: 0 12px 12px;
        margin-bottom: 12px;
    }

    .yp-list-sidebar .yp-block-header h3 {
        font-size: 16px;
    }

    .yp-list-sidebar .yp-course-grid {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
        gap: 12px;
        padding: 0 16px;
        margin: 0 -16px;
    }

    .yp-list-sidebar .yp-course-grid::-webkit-scrollbar {
        display: none;
    }

    .yp-list-sidebar .yp-course-card {
        flex: 0 0 220px;
        flex-direction: column;
        padding-bottom: 14px;
    }

    .yp-list-sidebar .yp-course-card-img {
        height: 140px;
    }

    .yp-list-sidebar .yp-course-card-title {
        font-size: 14px;
        padding: 8px 12px 6px;
    }

    .yp-list-sidebar .yp-course-card-tags {
        padding: 0 12px 8px;
        gap: 6px;
    }

    .yp-list-sidebar .yp-course-tag {
        font-size: 11px;
        padding: 2px 8px;
    }

    .yp-list-sidebar .yp-course-card-bottom {
        padding: 0 12px;
    }

    .yp-list-sidebar .yp-course-card-price {
        font-size: 18px;
    }

    .yp-list-sidebar .yp-course-card-btn {
        padding: 5px 16px;
        font-size: 12px;
    }

    .yp-list-cards {
        padding: 8px 12px;
        border-radius: 0;
    }

    .yp-list-card {
        gap: 10px;
        padding: 12px 0;
    }

    .yp-list-thumb {
        width: 100px;
        height: 75px;
    }

    .yp-list-info {
        min-height: 75px;
    }

    .yp-list-title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .yp-list-desc {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }

    .yp-list-date {
        font-size: 11px;
    }

    /* 分页 */
    .yp-pagination {
        flex-wrap: wrap;
        gap: 6px;
        display: none;
    }

    .yp-page-num,
    .yp-page-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* 侧边栏 */
    .yp-sidebar-form-body {
        padding: 14px;
    }

    .yp-sidebar-form-group {
        margin-bottom: 10px;
    }

    .yp-sidebar-form-group input,
    .yp-sidebar-form-group select {
        padding: 8px 10px;
        font-size: 13px;
    }

    .yp-sidebar-form-btn {
        padding: 10px;
        font-size: 14px;
    }

    .yp-sidebar-banner img {
        width: 100%;
        height: 74px;
    }

    .m_more {
        display: block;
        font-size: 14px;
        color: #FF7033;
    }

    /* ==================== 相关推荐 ==================== */
    .yp-related {
        padding: 16px 12px;
        border-top: none;
    }

    .yp-related-inner {
        padding: 0;
    }

    .yp-related-header {
        margin-bottom: 14px;
    }

    .yp-related-title {
        font-size: 15px;
    }

    .yp-more-link {
        font-size: 13px;
        color: #949698;
    }

    .yp-related-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .yp-related-tags a {
        width: calc(50% - 5px);
        padding: 10px 0;
        background-color: #f5f5f7;
        border-radius: 8px;
        font-size: 13px;
        color: #393F4A;
        text-align: center;
    }

    .yp-related-tags a:hover {
        background-color: #FFF0E8;
        color: #FF7033;
    }

    /* ==================== 详情页 ==================== */
    .yp-article {
        padding: 16px;
        border-radius: 0;
    }

    .yp-article-title {
        font-size: 18px;
    }

    .yp-article-meta {
        font-size: 12px;
        gap: 6px;
    }

    .yp-article-abstract {
        padding: 10px 12px;
    }

    .yp-abstract-tag {
        font-size: 12px;
    }

    .yp-article-abstract p {
        font-size: 13px;
    }

    .yp-article-body {
        font-size: 14px;
    }

    .yp-article-body h2 {
        font-size: 16px;
    }

    .yp-article-body h3 {
        font-size: 14px;
    }

    /* 服务分类网格 */
    .yp-service-grid {
        gap: 8px;
    }

    .yp-service-card {
        width: calc((100% - 16px) / 2);
        height: 64px;
        gap: 4px;
    }

    .yp-svc-name {
        font-size: 15px;
    }

    .yp-svc-desc {
        font-size: 10px;
    }

    /* 热门推荐 */
    .yp-article-hot-cols {
        flex-direction: column;
        gap: 0;
    }

    .yp-article-hot-col li a {
        font-size: 13px;
    }

    .yp-hot-date {
        font-size: 11px;
    }
}