/* ==================== 移动端首页样式 ==================== */

/* pc端隐藏移动端内容 */
.m-home {
    display: none;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {

    /* 隐藏pc端内容 */
    .header-top,
    .header-main,
    .header-nav-bar,
    .banner-section,
    .home-main-wrapper,
    .home-footer {
        display: none !important;
    }

    /* 显示移动端内容 */
    .m-home {
        display: block;
    }

    /* 移动端菜单侧边栏 - 显示 */
    .mobile-menu-drawer {
        display: block;
    }

    /* 全局重置 */
    body {
        background-color: #f5f5f5;
    }

    /* ==================== 顶部导航 ==================== */
    .m-header {
        position: sticky;
        top: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        background-color: #fff;
        border-bottom: 1px solid #f0f0f0;
    }

    .m-header-logo {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .m-logo-icon {
        font-size: 20px;
    }

    .m-logo-text {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .m-header-search {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        height: 32px;
        padding: 0 12px;
        background-color: #f5f5f5;
        border-radius: 16px;
        min-width: 0;
    }

    .m-search-icon {
        font-size: 14px;
        flex-shrink: 0;
    }

    .m-search-placeholder {
        font-size: 13px;
        color: #999;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .m-header-icons {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }

    .m-header-icon {
        font-size: 20px;
        color: #666;
    }

    /* ==================== 通用区块 ==================== */
    .m-section {
        background-color: #fff;
        margin: 0 16px 20px;
        border-radius: 8px;
        padding: 16px;
    }

    .m-section-title {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 26px;
    }

    .m-title-text {
        flex: 1;
        font-size: 18px;
        font-weight: 600;
        color: #101010;
    }

    .m-title-more {
        font-size: 14px;
        color: #949698;
        text-decoration: none;
    }

    /* 快捷下载标题底纹 */
    .m-section-title::after {
        content: '';
        position: absolute;
        top: 16px;
        left: 32px;
        z-index: 1;
        width: 26px;
        height: 22px;
        background: url(/uploads/image/eckaoshi/shouyebt.png) no-repeat center;
        background-size: 100%;
    }

    /* ==================== 考试入口卡片网格 ==================== */
    .m-exam-entry {
        /* background: transparent; */
        background: url(/uploads/image/eckaoshi/m_bg1.png) no-repeat top left;
        padding: 24px 16px 20px;
        margin: 0;
    }

    .m-exam-entry .m-section-title {
        padding: 0 4px;
        margin-bottom: 22px;
    }

    .m-entry-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .m-entry-card {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 12px;
        border-radius: 10px;
        text-decoration: none;
        overflow: hidden;
        min-height: 80px;
        background-repeat: no-repeat;
        background-position: top left;
    }

    .m-entry-blue {
        background: url(/uploads/image/eckaoshi/m_bg.png), linear-gradient(135deg, #e8f0fe 0%, #f0f7ff 100%);
    }

    .m-entry-orange {
        background: url(/uploads/image/eckaoshi/m_bg.png), linear-gradient(135deg, #fff4e6 0%, #fff8f0 100%);
    }

    .m-entry-green {
        background: url(/uploads/image/eckaoshi/m_bg.png), linear-gradient(135deg, #e6fff0 0%, #f0fff5 100%);
    }

    .m-entry-red {
        background: url(/uploads/image/eckaoshi/m_bg.png), linear-gradient(135deg, #ffebee 0%, #fff0f0 100%);
    }

    .m-entry-cyan {
        background: url(/uploads/image/eckaoshi/m_bg.png), linear-gradient(135deg, #e0f7ff 0%, #f0fbff 100%);
    }

    .m-entry-purple {
        background: url(/uploads/image/eckaoshi/m_bg.png), linear-gradient(135deg, #f0e8ff 0%, #f7f0ff 100%);
    }

    .m-entry-info {
        position: relative;
        z-index: 2;
    }

    .m-entry-name {
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 4px 0;
    }

    .m-entry-blue .m-entry-name {
        color: #1890ff;
    }

    .m-entry-orange .m-entry-name {
        color: #fa8c16;
    }

    .m-entry-green .m-entry-name {
        color: #52c41a;
    }

    .m-entry-red .m-entry-name {
        color: #e4393c;
    }

    .m-entry-cyan .m-entry-name {
        color: #13c2c2;
    }

    .m-entry-purple .m-entry-name {
        color: #722ed1;
    }

    .m-entry-pinyin {
        font-size: 10px;
        color: #aaa;
        margin: 0;
        letter-spacing: 0.5px;
        opacity: 0.4;
    }

    .m-entry-arrow {
        position: absolute;
        top: 12px;
        right: 12px;
        font-size: 16px;
        color: #bbb;
        z-index: 2;
    }

    .m-entry-icon {
        position: absolute;
        bottom: -4px;
        right: -2px;
        width: 48px;
        height: 48px;
        opacity: 0.9;
        z-index: 1;
        object-fit: contain;
    }

    /* ==================== 快捷下载（swiper轮播 2行5列） ==================== */
    .m-quick-swiper {
        width: 100%;
        padding-bottom: 24px !important;
    }

    .m-quick-swiper .swiper-slide {
        width: 100%;
    }

    .m-quick-page {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 12px 8px;
    }

    .m-quick-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-decoration: none;
    }

    .m-quick-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        object-fit: contain;
    }

    .m-quick-1 {
        background-color: #dce7ff;
    }

    .m-quick-2 {
        background-color: #e0eeea;
    }

    .m-quick-3 {
        background-color: #feeaeb;
    }

    .m-quick-4 {
        background-color: #f8f1ec;
    }


    .m-quick-red {
        background-color: #e4393c;
    }

    .m-quick-blue {
        background-color: #1890ff;
    }

    .m-quick-green {
        background-color: #52c41a;
    }

    .m-quick-orange {
        background-color: #fa8c16;
    }

    .m-quick-purple {
        background-color: #722ed1;
    }

    .m-quick-name {
        font-size: 13px;
        color: #666;
    }

    .m-quick-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
        background: #d9d9d9;
        opacity: 1;
    }

    .m-quick-pagination .swiper-pagination-bullet-active {
        background: #2a7de1;
        width: 18px;
        border-radius: 3px;
    }

    /* ==================== 资料下载 ==================== */
    .m-download-section {
        position: relative;
        background: linear-gradient(to bottom, #cbdaff, #e2ecfd);
        margin: 0 16px 12px;
        border-radius: 12px;
        padding: 16px;
    }

    .m-download-section::before {
        content: '';
        position: absolute;
        top: 10px;
        z-index: 1;
        left: 48px;
        width: 162px;
        height: 30px;
        background: url(/uploads/image/eckaoshi/dl.png) no-repeat center;
    }

    .m-download-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
    }

    .m-download-title {
        font-size: 18px;
        font-weight: 600;
        color: #101010;
    }

    .m-download-more {
        font-size: 14px;
        color: #999;
        text-decoration: none;
    }

    .m-download-wrap {
        background-color: #fff;
        border-radius: 8px;
    }

    .m-download-content {
        padding: 0 12px;
    }

    .m-download-tabs {
        display: flex;
        gap: 20px;
        margin-bottom: 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 16px;
    }

    .m-download-tabs::-webkit-scrollbar {
        display: none;
    }

    .m-download-tab {
        flex-shrink: 0;
        font-size: 16px;
        color: #666;
        padding: 8px 0;
        position: relative;
        cursor: pointer;
    }

    .m-download-tab.active {
        color: #2a7de1;
        font-weight: 600;
    }

    .m-download-tab.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translatex(-50%);
        width: 24px;
        height: 3px;
        background-color: #2a7de1;
        border-radius: 2px;
    }

    .m-download-pane {
        display: none;
    }

    .m-download-pane.active {
        display: block;
    }

    .m-download-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .m-download-item:last-child {
        border-bottom: none;
    }

    .m-download-icon {
        width: 28px;
        height: 28px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .m-download-name {
        flex: 1;
        font-size: 14px;
        color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .m-download-action {
        flex-shrink: 0;
        font-size: 18px;
        color: #2a7de1;
    }

    /* ==================== 考试日历横向滚动 ==================== */
    .m-calendar-scroll {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .m-calendar-scroll::-webkit-scrollbar {
        display: none;
    }

    .m-calendar-card {
        flex-shrink: 0;
        width: 200px;
        padding: 12px;
        background-color: #fff;
        border-radius: 8px;
        border: 1px solid #f0f0f0;
        position: relative;
    }

    .m-calendar-active {
        background: linear-gradient(135deg, #e6f0ff 0%, #f0f7ff 100%);
        border-left: 3px solid #1890ff;
    }

    .m-calendar-tag {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 11px;
        color: #fff;
        margin-bottom: 8px;
    }

    .m-tag-jg {
        background-color: #1890ff;
    }

    .m-tag-ck {
        background-color: #e4393c;
    }

    .m-tag-yy {
        background-color: #52c41a;
    }

    .m-calendar-name {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin: 0 0 6px 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .m-calendar-date {
        font-size: 12px;
        color: #999;
        margin: 0 0 8px 0;
    }

    .m-calendar-countdown {
        font-size: 12px;
        color: #e4393c;
        margin: 0;
        font-weight: 500;
    }

    /* ==================== 分类板块 ==================== */
    .m-cat-section {
        background: #fff;
        border-radius: 10px;
        padding: 14px;
        margin: 0 16px 20px;
    }

    .m-cat-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .m-cat-title-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .m-cat-icon {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: contain;
        flex-shrink: 0;
    }

    .m-cat-red {
        background-color: #e4393c;
    }

    .m-cat-blue {
        background-color: #1890ff;
    }

    .m-cat-green {
        background-color: #52c41a;
    }

    .m-cat-purple {
        background-color: #722ed1;
    }

    .m-cat-navy {
        background-color: #1d39c4;
    }

    .m-cat-name {
        font-size: 18px;
        font-weight: 700;
        color: #101010;
    }

    .m-cat-guide {
        font-size: 14px;
        color: #949698;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .m-guide-icon {
        font-size: 12px;
    }

    /* 分类标签（圆角按钮式） */
    .m-cat-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        margin-bottom: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .m-cat-tabs::-webkit-scrollbar {
        display: none;
    }

    .m-cat-tab {
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 15px;
        color: #393f4a;
        background: #f3f4f5;
        border-radius: 6px;
        cursor: pointer;
        white-space: nowrap;
        text-decoration: none;
    }

    .m-cat-tab.active {
        background: #2a7de1;
        color: #fff;
        font-weight: 500;
    }

    /* 分类内容面板 */
    .m-cat-pane {
        display: none;
    }

    .m-cat-pane.active {
        display: block;
    }

    /* 分类新闻列表（圆点 标题 日期） */
    .m-cat-news-list {
        list-style: none;
        padding: 0;
        margin: 0 0 14px 0;
    }

    .m-cat-news-item {
        display: flex;
        align-items: center;
        padding: 7px 0;
        font-size: 16px;
    }

    .m-cat-news-dot {
        color: #bbb;
        font-size: 18px;
        line-height: 1;
        margin-right: 6px;
        flex-shrink: 0;
    }

    .m-cat-news-title {
        flex: 1;
        color: #393f4a;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-right: 10px;
    }

    .m-cat-news-date {
        font-size: 16px;
        color: #949698;
        flex-shrink: 0;
    }

    /* 查看更多按钮 */
    .m-cat-more-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px;
        background: #e7f0ff;
        border-radius: 6px;
        font-size: 14px;
        color: #2d6cde;
        text-decoration: none;
    }

    .m-more-icon {
        font-size: 14px;
    }

    /* ==================== 大家都在问 ==================== */
    .m-ask-section {
        background: #fff;
        border-radius: 10px;
        padding: 14px;
        margin: 10px 16px 20px;
    }

    .m-ask-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .m-ask-title {
        font-size: 18px;
        font-weight: 700;
        color: #101010;
        margin: 0;
    }

    .m-ask-more {
        font-size: 13px;
        color: #999;
        text-decoration: none;
    }

    .m-ask-tabs {
        display: flex;
        gap: 0;
        margin-bottom: 14px;
        border-bottom: 1px solid #f0f0f0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .m-ask-tabs::-webkit-scrollbar {
        display: none;
    }

    .m-ask-tab {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 14px;
        color: #666;
        cursor: pointer;
        position: relative;
        white-space: nowrap;
    }

    .m-ask-tab.active {
        color: #2a7de1;
        font-weight: 600;
    }

    .m-ask-tab.active::after {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 50%;
        transform: translatex(-50%);
        width: 28px;
        height: 2px;
        background-color: #2a7de1;
        border-radius: 1px;
    }

    .m-ask-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .m-ask-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid #f5f5f5;
    }

    .m-ask-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .m-ask-content {
        flex: 1;
        min-width: 0;
        padding-right: 12px;
    }

    .m-ask-question {
        font-size: 16px;
        color: #393f4a;
        margin: 0 0 6px 0;
        font-weight: 400;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .m-ask-views {
        font-size: 12px;
        color: #8c8e90;
    }

    .m-ask-rank {
        width: 28px;
        height: 34px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 4px;
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        flex-shrink: 0;
        clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
    }

    .m-ask-rank.rank-1 {
        background: #e4393c;
    }

    .m-ask-rank.rank-2 {
        background: #f59e0b;
    }

    .m-ask-rank.rank-3 {
        background: #4a6fa5;
    }

    .m-ask-rank.rank-4 {
        background: #c0c4cc;
    }

    .m-ask-rank.rank-5 {
        background: #c0c4cc;
    }

    /* ==================== 大数据资讯 ==================== */
    .m-data-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .m-data-card {
        text-decoration: none;
        border-radius: 6px;
        overflow: hidden;
        background-color: #fff;
        border: 1px solid #f0f0f0;
    }

    .m-data-thumb {
        width: 100%;
        height: 90px;
    }

    .m-data-red {
        background: linear-gradient(135deg, #ff6b6b 0%, #e4393c 100%);
    }

    .m-data-purple {
        background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    }

    .m-data-orange {
        background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    }

    .m-data-green {
        background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
    }

    .m-data-title {
        font-size: 12px;
        color: #333;
        padding: 8px;
        margin: 0;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* ==================== 精品课程推荐 ==================== */
    .m-course-section {
        margin: 0 0 50px;
        padding: 0 16px;
        background-color: transparent;
    }

    .m-course-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding: 0 2px;
    }

    .m-course-header .m-course-title {
        font-size: 18px;
        font-weight: 700;
        color: #101010;
        margin: 0;
    }

    .m-course-more {
        font-size: 13px;
        color: #999;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .m-more-grid {
        font-size: 14px;
    }

    .m-course-scroll {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .m-course-scroll::-webkit-scrollbar {
        display: none;
    }

    .m-course-card {
        flex-shrink: 0;
        width: 260px;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        padding: 8px 8px 16px;
    }

    .m-course-cover {
        position: relative;
        width: 100%;
        height: 140px;
        overflow: hidden;
    }

    .m-course-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .m-course-cover-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 4px 8px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 4px;
    }

    .m-badge-main {
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        line-height: 1.2;
    }

    .m-badge-sub {
        font-size: 11px;
        color: #fff;
        opacity: 0.9;
        line-height: 1.2;
    }

    .m-course-name {
        font-size: 15px;
        font-weight: 500;
        color: #393f4a;
        margin: 12px 0 16px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .m-course-tag {
        display: inline-block;
        margin: 0;
        padding: 3px 10px;
        font-size: 12px;
        color: #c57412;
        background: #f9ede1;
        border-radius: 4px;
    }

    /* ==================== 移动端底部 ==================== */
    .m-footer {
        margin-top: 10px;
        background-color: #fff;
        padding: 20px 16px;
    }

    .m-footer-qrcodes {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-bottom: 20px;
    }

    .m-footer-qr {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .m-qr-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0;
    }

    .m-qr-sub {
        font-size: 14px;
        color: #999;
        margin: 0 0 6px 0;
    }

    .m-qr-code {
        width: 120px;
        height: 120px;
        padding: 6px;
        border: 1px dashed #ccc;
        background-color: #fff;
    }

    .m-qr-code img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .m-footer-links {
        text-align: center;
        font-size: 13px;
        color: #999;
        margin-bottom: 14px;
    }

    .m-footer-links a {
        color: #999;
        text-decoration: none;
    }

    .m-link-divider {
        margin: 0 10px;
        color: #ddd;
    }

    .m-icp {
        color: #999;
    }

    .m-footer-copyright {
        text-align: center;
        font-size: 13px;
        color: #bbb;
        line-height: 1.8;
    }

    .m-footer-copyright p {
        margin: 0;
    }
}