/* ============================================
   资源库页面重新设计样式 - 独立样式文件
   结合参考网站优点 + dhorde风格
   使用说明：在资源页面引入此CSS文件，不会影响其他页面
   文件位置：/static/assets/css/resources-new.css
   ============================================ */

/* 必要的全局样式 - 仅用于资源页面 */
.godetail {
    cursor: pointer;
}

/* 主导航样式 - 确保灰色背景白色文字 */
.heads,
.heads.scrollHeads {
    background: rgba(0, 0, 0, 0.6) !important;
    box-shadow: inset 0px -1px 0px 0px rgba(245, 241, 241, 0.2) !important;
    position: fixed !important;  /* 添加固定定位 */
    top: 0 !important;          /* 固定在顶部 */
    left: 0 !important;         /* 左侧对齐 */
    width: 100% !important;     /* 宽度100% */
    z-index: 1000 !important;   /* 确保在最上层 */
}

.heads .head_inner,
.heads.scrollHeads .head_inner {
    color: #ffffff !important;
}

.heads .tab_box li,
.heads.scrollHeads .tab_box li {
    color: #ffffff !important;
}

.heads .tab_box li a,
.heads.scrollHeads .tab_box li a {
    color: #ffffff !important;
}

.heads .head_login,
.heads.scrollHeads .head_login {
    color: #ffffff !important;
}

.heads .head_login a,
.heads.scrollHeads .head_login a {
    color: #ffffff !important;
}

/* 全局优化 - 仅作用于资源页面容器 */
.resources {
    background: #f5f7fa;
    min-height: 100vh;
    padding-top: 0;
}

/* 兼容现有的 back_color 类 */
.resources.back_color {
    background: #f5f7fa;
}

/* 轮播图样式优化 */
.resources .swiper-container {
    margin-bottom: 0;
}

.resources .swiper-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   主页面样式（资源库首页）
   ============================================ */

/* 分类导航栏 - 保持原有风格但更紧凑 */
.resources .content_1 {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.resources .content_1 .list {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.resources .content_1 .son {
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.resources .content_1 .son a {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: block;
    text-decoration: none;
}

.resources .content_1 .son:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.resources .content_1 .son.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.35);
}

/* 主页面内容区域 - 紧凑布局 */
.resources .content_2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px;
}

.resources .content_2 .con {
    margin-bottom: 50px;
}

.resources .content_2 .con:last-child {
    margin-bottom: 0;
}

/* 分类标题 */
.resources .content_2 .title {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #e2e8f0;
    position: relative;
}

.resources .content_2 .title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 兼容现有HTML结构：.title > .left > .wzz_1 > .text_1 */
.resources .content_2 .title .text_1,
.resources .content_2 .title .left .wzz_1 .text_1 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    padding: 0;
    margin: 0;
}

/* 兼容 w1200 类，但新样式会覆盖宽度限制 */
.resources .content_2.w1200 {
    max-width: 1200px;
    margin: 0 auto;
}

/* 主页面资源列表 - 紧凑卡片式，每排4个 */
/* 使用更高优先级覆盖旧样式 */
.resources .content_2 .list,
.resources .content_2>.con .list,
.resources .content_2.w1200 .list,
.resources.index .content_2 .list,
.index.resources .content_2 .list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: normal !important;
    flex-direction: unset !important;
}

@media (max-width: 1200px) {
    .resources .content_2 .list,
    .resources .content_2>.con .list,
    .resources .content_2.w1200 .list,
    .resources.index .content_2 .list,
    .index.resources .content_2 .list {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .resources .content_2 .list,
    .resources .content_2>.con .list,
    .resources .content_2.w1200 .list,
    .resources.index .content_2 .list,
    .index.resources .content_2 .list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .resources .content_2>.con .list .son {
        width: 100% !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .resources .content_2 .list,
    .resources .content_2>.con .list,
    .resources .content_2.w1200 .list,
    .resources.index .content_2 .list,
    .index.resources .content_2 .list {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .resources .content_2>.con .list .son {
        width: 100% !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
    }
}

/* 主页面资源卡片 - 紧凑设计 */
/* 兼容 div 和 a 标签 */
.resources .content_2 .list .son,
.resources .content_2>.con .list .son,
.resources .content_2 .list a.son,
.resources.index .content_2 .list .son,
.index.resources .content_2 .list .son {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    border: 1px solid #e2e8f0 !important;
    cursor: pointer !important;
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    align-items: normal !important;
    justify-content: normal !important;
    box-sizing: border-box !important;
}


.resources .content_2 .list .son:hover,
.resources .content_2 .list a.son:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e0;
}

/* 卡片图片 */
.resources .content_2 .list .son .img_1 {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}


.resources .content_2 .list .son .img_1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.resources .content_2 .list .son:hover .img_1 img {
    transform: scale(1.08);
}

/* 卡片内容 */
.resources .content_2 .list .son .right {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resources .content_2 .list .son .right .title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    border: none;
    padding: 0;
}


.resources .content_2 .list .son .right .text_1 {
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 统计信息 */
.resources .content_2 .list .son .wzz {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    align-items: center;
    font-size: 12px;
    color: #a0aec0;
}

.resources .content_2 .list .son .wzz .s {
    display: flex;
    align-items: center;
    gap: 4px;
}

.resources .content_2 .list .son .wzz .s img {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    flex-shrink: 0;
}

.resources .content_2 .list .son .wzz .s span {
    font-size: 12px;
    color: #a0aec0;
    line-height: 1;
}



/* 按钮 - 使用更高优先级覆盖旧样式 */
.resources .content_2 .list .son .button,
.resources .content_2>.con .list .son .button,
.resources .content_2.w1200 .list .son .button,
.resources .content_2 .list .son .right .button,
.resources .content_2>.con .list .son .right .button {
    margin-top: auto !important;
    width: 100% !important;
    display: block !important;
    justify-content: normal !important;
    align-items: normal !important;
}

.resources .content_2 .list .son .button .son,
.resources .content_2>.con .list .son .button .son,
.resources .content_2.w1200 .list .son .button .son,
.resources .content_2 .list a.son .button .son,
.resources .content_2 .list .son .right .button .son,
.resources .content_2>.con .list .son .right .button .son {
    display: block !important;
    width: 100% !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    height: auto !important;
    line-height: normal !important;
    box-sizing: border-box !important;
}

.resources .content_2 .list .son:hover .button .son,
.resources .content_2 .list a.son:hover .button .son,
.resources .content_2>.con .list .son:hover .button .son,
.resources .content_2 .list .son:hover .right .button .son {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

/* 兼容现有的"查看更多"按钮 */
.resources .content_2 .con .resource_top.loadMore {
    text-align: center;
    margin-top: 40px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    width: auto;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 覆盖旧CSS中的flex布局样式 */
@media screen and (min-width: 993px) {
    .resources .content_2>.con .list {
        display: grid !important;
        flex-wrap: nowrap !important;
    }
    
    .resources .content_2>.con .list .son {
        width: 100% !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Banner PC端样式 */
    .details .content_1,
    .resources .details .content_1 {
        margin-top: 62.5px;
        height: 303px;
    }
    
    .details .content_1 .wzz {
        padding-top: 80px;
    }
    
    .details .content_1 .text_1 {
        font-size: 36px;
    }
    
    .details .content_1 .text_2 {
        font-size: 16px;
    }
}

@media screen and (min-width: 0px) and (max-width: 992px) {
    .resources .content_2>.con .list {
        display: grid !important;
        flex-wrap: nowrap !important;
    }
    
    .resources .content_2>.con .list .son {
        width: 100% !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
}

.resources .content_2 .con .resource_top.loadMore:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* ============================================
   分类详情页样式（左右两栏布局）
   ============================================ */

/* 详情页容器 */
.resources .resource-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 24px;
}

/* 左侧边栏 - 标签筛选 */
.resources .resource-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.resources .resource-sidebar .sidebar-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.resources .resource-sidebar .sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resources .resource-sidebar .sidebar-title .view-all {
    font-size: 13px;
    font-weight: 500;
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resources .resource-sidebar .sidebar-title .view-all:hover {
    color: #764ba2;
}

/* 标签列表 */
.resources .resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resources .resource-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 16px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.resources .resource-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.resources .resource-tag.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.resources .resource-tag .tag-count {
    margin-left: 4px;
    opacity: 0.8;
    font-size: 12px;
}

/* 右侧内容区 - 资源列表 */
.resources .resource-content {
    flex: 1;
    min-width: 0;
}

/* 面包屑导航 */
.resources .resource-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #718096;
}

.resources .resource-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resources .resource-breadcrumb a:hover {
    color: #764ba2;
}

.resources .resource-breadcrumb .separator {
    margin: 0 8px;
    color: #cbd5e0;
}

/* 分类标签导航 */
.resources .resource-category-nav {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.resources .resource-category-nav .category-label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-right: 12px;
}

.resources .resource-category-nav .category-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

/* 搜索框样式 - 与分类标签按钮风格一致 */
.resources .resource-search-box {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.resources .resource-search-box .search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resources .resource-search-box .search-input {
    width: 280px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #4a5568;
    background: #f7fafc;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.resources .resource-search-box .search-input:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.resources .resource-search-box .search-input::placeholder {
    color: #a0aec0;
}

.resources .resource-search-box .search-btn {
    height: 36px;
    padding: 0 20px;
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.resources .resource-search-box .search-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.resources .resource-category-nav .category-item {
    padding: 6px 16px;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.resources .resource-category-nav .category-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
}

.resources .resource-category-nav .category-item.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
    border-color: transparent;
}

/* 资源列表 - 紧凑列表式 */
.resources .resource-list {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
}

.resources .resource-item {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.resources .resource-item:last-child {
    border-bottom: none;
}

.resources .resource-item:hover {
    background: #f7fafc;
    border-radius: 8px;
    transform: translateX(4px);
}

.resources .resource-item .item-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.resources .resource-item:hover .item-title {
    color: #667eea;
}

.resources .resource-item .item-description {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resources .resource-item .item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.resources .resource-item .item-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #a0aec0;
}

.resources .resource-item .item-action {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.resources .resource-item .item-action:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

/* 分页 */
.resources .resource-pagination {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.resources .resource-pagination .pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: #ffffff;
    color: #4a5568;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    min-width: 40px;
    height: 40px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
}

.resources .resource-pagination .pagination-btn:hover {
    background: #f8f9fa;
    border-color: #cbd5e1;
    color: #2773ff;
}

.resources .resource-pagination .pagination-btn.prev,
.resources .resource-pagination .pagination-btn.next {
    font-size: 20px;
    line-height: 1;
}

.resources .resource-pagination .pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resources .resource-pagination .pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #ffffff;
    color: #64748b;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    min-width: 40px;
    height: 40px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
}

.resources .resource-pagination .pagination-page:hover {
    background: #f8f9fa;
    border-color: #cbd5e1;
    color: #2773ff;
}

.resources .resource-pagination .pagination-page.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
    cursor: default;
}

.resources .resource-pagination .pagination-page.active:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.resources .resource-pagination .pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: #94a3b8;
    font-size: 14px;
    min-width: 40px;
    height: 40px;
    text-align: center;
    cursor: default;
}

/* ============================================
   响应式设计
   ============================================ */

@media (max-width: 1200px) {
    .resources .content_2 .list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .resources .resource-detail-page {
        flex-direction: column;
    }
    
    .resources .resource-sidebar {
        width: 100%;
    }
    
    .resources .resource-sidebar .sidebar-box {
        margin-bottom: 20px;
    }
    
    .resources .content_2 .list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .resources .content_1 {
        padding: 12px 0;
        margin-bottom: 20px;
    }
    
    .resources .content_1 .list {
        gap: 8px;
        padding: 0 15px;
    }
    
    .resources .content_1 .son {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .resources .content_2 {
        padding: 0 15px 30px;
    }
    
    .resources .content_2 .list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .resources .content_2 .title {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .resources .content_2 .title .text_1 {
        font-size: 20px;
    }
    
    .resources .resource-detail-page {
        padding: 15px;
        gap: 16px;
    }
    
    .resources .resource-item {
        padding: 16px;
    }
    
    .resources .resource-item .item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .resources .resource-item .item-action {
        width: 100%;
        text-align: center;
    }
    
    /* 详情页移动端优化 */
    .details .content_1,
    .resources .details .content_1 {
        margin-top: 64px;
        height: 200px;
    }
    
    .details .content_1 .wzz {
        padding: 20px;
        padding-top: 60px;
    }
    
    .details .content_1 .text_1 {
        font-size: 20px;
    }
    
    .details .content_1 .text_2 {
        font-size: 12px;
    }
    
    .details .content_2 {
        padding: 30px 15px;
        margin-top: -15px;
        border-radius: 12px;
    }
    
    .details .content_2 .title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .details .content_2 .title .right_button {
        float: none;
        display: block;
        width: 100%;
        margin-top: 16px;
    }
    
    .details .content_2 .text {
        font-size: 15px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .resources .content_1 .list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .resources .content_1 .son {
        flex: 0 0 auto;
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .resources .resource-category-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resources .resource-category-nav .category-list {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .resources .resource-category-nav .category-item {
        flex: 0 0 auto;
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .resources .resource-search-box {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
    }
    
    .resources .resource-search-box .search-form {
        width: 100%;
    }
    
    .resources .resource-search-box .search-input {
        flex: 1;
        width: auto;
    }
    
    .resources .content_2 .list,
    .resources .content_2>.con .list,
    .resources .content_2.w1200 .list {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .resources .content_2>.con .list .son {
        width: 100% !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
    }
    
    .resources .content_2 .list .son .img_1 {
        height: 160px;
    }
    
    .resources .content_2 .list .son .right {
        padding: 16px;
    }
    
    .resources .content_2 .list .son .right .title {
        font-size: 15px;
    }
    
    .details .content_1 .text_1 {
        font-size: 20px;
    }
    
    .details .content_2 {
        padding: 24px 12px;
    }
    
    .details .content_2 .title {
        font-size: 20px;
    }
}

/* 加载状态 */
.resources .resource-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    color: #667eea;
    font-size: 14px;
}

.resources .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   资源详情页样式优化
   ============================================ */

/* 资源详情页容器 */
.details {
    background: #f5f7fa;
    min-height: 100vh;
    padding-top: 0;
}

/* 详情页头部 - Banner区域 */
.details .content_1 {
    width: 100%;
    background: url('https://static.dhorde.com/static/index/images/banner_4.png') no-repeat;
    background-size: 100% 100%;
    margin-bottom: 0;
    position: relative;
}

/* Resources页面中的Banner样式 */
.resources .details {
    background: transparent;
    min-height: auto;
    padding-top: 0;
}

.resources .details .content_1 {
    width: 100%;
    background: url('https://static.dhorde.com/static/index/images/banner_4.png') no-repeat;
    background-size: 100% 100%;
    margin-bottom: 0;
    position: relative;
}

.details .content_1 .wzz {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.details .content_1 .text_1 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.details .content_1 .text_2 {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
    margin-top: 10px;
}

/* 详情页内容区 */
.details .content_2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-top: -20px;
    position: relative;
    z-index: 1;
}

.details .content_2 .title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 24px;
    line-height: 1.4;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.details .content_2 .title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.details .content_2 .title .right_button {
    float: right;
    padding: 12px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.details .content_2 .title .right_button:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* 视频播放器样式 */
.details .content_2 .n_video {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: #000;
    position: relative;
}

.details .content_2 .n_video .video-play {
    width: 100%;
    position: relative;
}

.details .content_2 .n_video video {
    width: 100%;
    height: auto;
    display: block;
}

.details .content_2 .n_video .video-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.details .content_2 .n_video .video-img:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.details .content_2 .n_video .video-img img {
    width: 80px;
    height: 80px;
    opacity: 0.9;
}

/* 详情内容文本 */
.details .content_2 .text {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin-top: 30px;
}

.details .content_2 .text p {
    margin-bottom: 16px;
}

.details .content_2 .text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 相关链接 */
.details .content_2 .link_title {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.details .content_2 .link_title_a,
.details .content_2 .link_title_b {
    display: inline-block;
    padding: 6px 16px;
    margin: 4px 8px 4px 0;
    background: #f7fafc;
    color: #667eea;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.details .content_2 .link_title_a:hover,
.details .content_2 .link_title_b:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.details .content_2 .link_zixun {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 24px 0 16px;
}

.details .content_2 .link_arr {
    margin-bottom: 24px;
}

.details .content_2 .link_arr a {
    display: block;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.details .content_2 .link_arr a:hover {
    background: #ffffff;
    color: #667eea;
    border-left-color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateX(4px);
}

.details .content_2 .link_arr .moreNews {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.details .content_2 .link_arr .moreNews:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

/* 移动端下载按钮 */
.details .content_2 .pcdownload {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.details .content_2 .pcdownload:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* 打印样式优化 */
@media print {
    .resources .content_1 {
        display: none;
    }
    
    .resources .resource-sidebar {
        display: none;
    }
    
    .details .content_1 {
        display: none;
    }
}
