/* 粉熊导航 - 手机端自适应样式 */
/* 适用于屏幕宽度小于768px的设备 */

/* ============= 全局设置 ============= */
@media screen and (max-width: 768px) {
    /* 隐藏不需要的PC端元素 */
        .header-right,.all-nav-wrapper,.copyright,.bottom-center,.bottom-right{
        display: none !important;
    }
    /* 调整header为移动端布局 */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 10px 15px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    header .logo img {
        height: 30px;
    }
    .mobile-menu-btn{
        display:block;
    }
    
    /* 顶部导航栏移动端优化 */
    .main-nav {
        display: none;
    }

    /* 移动端菜单按钮（可选） */
    .menu-container {
    margin-top: 10px;
   }
    .mobile-menu-btn {
        display: block;
        position: fixed;
        right: 15px;
        z-index: 1001;
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 8px;
        display: flex;
        border-radius: 10px;
        justify-content: center;
        cursor: pointer;
    }
.mobile-menu-btn .menu-g{
        background-color: #000000;
        display: block;
        height: 3px;
        margin-top: -1px;
        position: relative;
        top: 50%;
        transition: all .3s cubic-bezier(.7,0,.3,1) 0s;
        -webkit-transition: all .3s cubic-bezier(.7,0,.3,1) 0s;
        -ms-transition: all .3s cubic-bezier(.7,0,.3,1) 0s;
        width: 25px;
        border-radius: 3px
    }

    .mobile-menu-btn .menu-g:after,.mobile-menu-btn .menu-g:before {
        background-color: #161414;
        content: "";
        display: block;
        height: 3px;
        left: 0;
        position: absolute;
        transition: all .3s cubic-bezier(.7,0,.3,1) 0s;
        -webkit-transition: all .3s cubic-bezier(.7,0,.3,1) 0s;
        -ms-transition: all .3s cubic-bezier(.7,0,.3,1) 0s;
        width: 30px;
        border-radius: 3px
    }

    .mobile-menu-btn .menu-g:after {
        top: 9px;
    }

    .mobile-menu-btn .menu-g:before {
        top: -8px
    }
 .menu-g.selected:after, .menu-g.selected:before {
        top: 0;
    }
        .menu-g.selected{
        background-color: transparent !important;
    }
      .menu-g.selected:before {
        transform: translateY(0px) rotate(-45deg);
        -webkit-transform: translateY(0px) rotate(-45deg);
        -ms-transform: translateY(0px) rotate(-45deg)
    }

    .menu-g.selected:after {
        transform: translateY(0px) rotate(45deg);
        -webkit-transform: translateY(0px) rotate(45deg);
        -ms-transform: translateY(0px) rotate(45deg)
    }
     /* 左侧导航栏移动端适配 */
.left-nav {
    top: 0;
    z-index: 2000;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
    margin-top: 60px;
}

.left-nav.show {
    display: block;
    transform: translateX(0);
}

/* 遮罩层 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show {
    display: block;
    opacity: 1;
}
    /* 主体内容区域调整 */
    .app {
        margin-left: 0;
        padding-top: 20px;
        min-height: 100vh;
        /* z-index: 9999999; */
    }

    .main-content {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    /* 搜索区域优化 */
    .search-section {
        padding: 20px 15px;
    }
    .search-engine-icon {
    margin-right: 0;
    }
    
    .search-section .logo {
        margin-bottom: 15px;
    }

    .search-section .logo img {
        height: 35px;
    }

    /* 搜索引擎标签适配 */
    .search-tabs {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .search-tab {
        padding: 6px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* 搜索框适配 */
    .new-search-box {
        width: 100%;
        padding: 0 8px;
    }
.new-search-box .ai {
    padding: 0;}

    .new-search-box .ai i {
    width: 15px;}
    .new-search-box input {
        font-size: 14px;
        height: 44px;
    }

    .new-search-btn {
        width: 44px;
        height: 44px;
    }

    /* 热门标签适配 */
    .tags {
        flex-wrap: wrap;
        flex-wrap: nowrap;
        overflow: hidden;
         gap: 8px;
        margin-top: 12px;
    }

    .tags span,
    .tags a {
        flex-shrink: 0;
    }

    .tags > *:nth-child(n+5) {
        display: none;
    }
    
    /* 自定义网站模块适配 */
    .custom {
        display: none;
    }

    .custom-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }

    .custom-toolbar-left {
        width: 100%;
    }

    .custom-title {
        font-size: 16px;
    }

    .custom-category-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        white-space: nowrap;
    }

    .custom-category-tabs::-webkit-scrollbar {
        height: 0;
    }

    .custom-add-category-tab,
    .custom-category-tab {
        padding: 6px 12px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .custom-edit-wrapper {
        width: 100%;
    }

    .custom-edit-btn {
        width: 100%;
        padding: 8px;
        font-size: 13px;
    }
     .hot-grid {
    grid-template-columns: repeat(3, 1fr);
}
.hot-card-title {
    font-size: 12px;}
    /* 内容区域网格适配 */
    .custom-tab-content {
        padding: 10px 0;
    }

    .custom-websites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .custom-website-item {
        padding: 12px;
    }

    .custom-website-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .custom-website-name {
        font-size: 13px;
    }

    .custom-website-desc {
        font-size: 11px;
        display: none;
    }

    /* 分页圆点适配 */
    .custom-pagination-dots {
        margin-top: 15px;
        padding: 10px 0;
    }

    /* 模态框适配 */
    .custom-modal-dialog {
        width: 95%;
        max-height: 85vh;
        margin: 10px;
    }

    .custom-modal-header {
        padding: 15px 20px;
    }

    .custom-modal-title {
        font-size: 16px;
    }

    .custom-modal-body {
        padding: 20px;
        max-height: 60vh;
    }

    .custom-modal-footer {
        padding: 12px 20px;
    }

    .custom-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* 表单元素适配 */
    .custom-form-group {
        margin-bottom: 15px;
    }

    .custom-form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .custom-form-control {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* 友链区域适配 */
    .friendlink {
        margin:0;
    }

    .friendlink .title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .friendlink-list li a {
        font-size: 13px;
        margin: 5px 8px;
    }

    /* 底部信息区域适配 */
    .bottom-section {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 16px;
    }

    .section-desc {
        font-size: 12px;
        line-height: 1.6;
    }

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


    .nav-icon {
        width: 32px;
        height: 32px;
    }

    .nav-text {
        font-size: 12px;
    }

    /* 修复友链li标签样式 */
    .friendlink ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .friendlink li {
        float: none;
        display: inline-block;
    }

    /* Agent智能体卡片移动端适配 */
    .card-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .card-list .title,.course-header h2{
        font-size:16px;
    }
    .card {
        width: 100%;
        padding: 12px;
        box-sizing: border-box;
    }

    .card-icon {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }

    .card-title {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .card-desc {
        font-size: 12px;
        line-height: 1.3;
    }

    .card-descs {
        display: none;
    }
    /* 课程卡片移动端适配 - 一排两个 */
    .course-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .course-card .card-content {
    padding: 5px;
}
    .course-card .card-image {
        height: 100px;
    }

    .course-card .card-title {
        font-size: 13px;
        /* padding: 0 10px; */
    }

    .course-card .card-price {
        font-size: 14px;
        padding: 0 10px;
    }

    .course-card .card-meta {
        font-size: 11px;
        padding: 0 10px 10px;
    }
        /* 移动端底部容器 固定在页面最底部 */
.mobile-copyright {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft Yahei", sans-serif;
      margin-top: 10px;
      display: block;
}

/* 标题H3 公司名称 */
.mobile-copyright .title {
  font-size: 12px;
  color: #666666;
  font-weight: normal;
}

/* 保障描述行 */
.mobile-copyright .protect-desc {
  font-size: 12px;
  color: #666666;
  margin: 0 0 16px 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

   .new-hot-grid {
                grid-template-columns: 1fr;
                gap: 15px;
                padding: 15px;
            }
            
            .new-hot-card-header {
                padding: 10px;
            }
            
            .new-hot-card-content {
                padding: 15px;
            }
            .new-hot-card-text h3 {
    font-size: 15px;}
    .new-hot-card-text p {
    font-size: 12px;}
            .new-hot-title {
    font-size: 13px;}
            .new-hot-item {
                padding: 10px 0;
            }
            .new-hot-h img{
            width: 120px;
        }


    .search-section {
        padding: 15px;
    }

    .custom-modal-dialog {
        max-height: 90vh;
    }

    .custom-modal-body {
        max-height: 70vh;
    }
    

    .hot-card.placeholder .hot-card-title {
        height: 14px;
    }
    
    /* 课程卡片占位符移动端适配 */
    .course-card.placeholder .card-image .skeleton-box {
        height: 120px;
    }
    
    .course-card.placeholder .card-tags .skeleton-box {
        width: 50px;
        height: 18px;
    }
    
    .course-card.placeholder .card-title .skeleton-box {
        height: 18px;
    }
}

