@charset "utf-8";
/* CSS Document */
/* ============================================
   1. 基础重置与通用工具
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background: #f5f6f8;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================
   2. 顶部导航（三页通用）
   ============================================ */
.ab_header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ab_nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ab_logo {
    font-size: 24px;
    font-weight: 700;
    color: #e63946;
    flex-shrink: 0;
}
.ab_logo img{ height:55px; display:block;}
.ab_nav_menu {
    display: flex;
    gap: 32px;
    margin-left: 40px;
    flex: 1;
}

.ab_nav_menu li a {
    color: #333;
    font-size: 15px;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s;
}

.ab_nav_menu li.active a,
.ab_nav_menu li a:hover {
    color: #e63946;
}

.ab_nav_menu li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e63946;
    border-radius: 1px;
}

.ab_search {
    flex: 0 0 360px;
    position: relative;
    flex-shrink: 0;
}

.ab_search input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 16px;
    border: 1px solid #e0e4e8;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

.ab_search input:focus {
    border-color: #e63946;
}

.ab_search_btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 18px;
}

/* 手机端汉堡按钮 */
.ab_mobile_btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    line-height: 1;
    margin-left: 16px;
    flex-shrink: 0;
    user-select: none;
}

/* 手机端遮罩 */
.ab_mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.ab_mask.show {
    display: block;
}

/* 手机端侧边导航 */
.ab_mobile_menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    padding: 60px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.ab_mobile_menu.show {
    right: 0;
}

.ab_mobile_close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    transition: color 0.3s;
    user-select: none;
}

.ab_mobile_close:hover {
    color: #e63946;
}

.ab_mobile_menu li {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.ab_mobile_menu li a {
    color: #333;
    font-size: 16px;
    display: block;
    transition: color 0.3s;
}

.ab_mobile_menu li.active a,
.ab_mobile_menu li a:hover {
    color: #e63946;
}

.ab_mobile_search {
    margin-top: 30px;
    position: relative;
}

.ab_mobile_search input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 15px;
    border: 1px solid #e0e4e8;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.ab_mobile_search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 16px;
}

/* ============================================
   3. 顶部幻灯片轮播（首页通用）
   ============================================ */
.ab_banner {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #222; margin-bottom:40px
}

.ab_banner_list {
    position: relative;
    width: 100%;
    height: 100%;
}

.ab_banner_item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.ab_banner_item.active {
    opacity: 1;
}

.ab_banner_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ab_banner_prev,
.ab_banner_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 30px;
    line-height: 80px;
    text-align: center;
    transition: background 0.3s;
    z-index: 10;
    user-select: none;
}

.ab_banner_prev:hover,
.ab_banner_next:hover {
    background: rgba(0,0,0,0.6);
}

.ab_banner_prev {
    left: 20px;
}

.ab_banner_next {
    right: 20px;
}

.ab_banner_dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.ab_banner_dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.ab_banner_dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   4. 分类快捷导航（首页+列表页通用）
   ============================================ */
.ab_category {
    max-width: 1280px;
    margin: 30px auto 20px;
    padding: 0 20px;
}

.ab_cat_list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ab_cat_item {
    padding: 10px 28px;
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 24px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
}

.ab_cat_item:hover {
    border-color: #e63946;
    color: #e63946;
}

.ab_cat_item.active {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
}

/* ============================================
   5. 通用板块与网格卡片（三页通用）
   ============================================ */
.ab_section {
    max-width: 1280px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.ab_section_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

.ab_section_title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    position: relative;
    padding-left: 12px;
}

.ab_section_title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: #e63946;
    border-radius: 2px;
}

.ab_section_more {
    color: #999;
    font-size: 14px;
    transition: color 0.3s;
}

.ab_section_more:hover {
    color: #e63946;
}

.ab_section_grid,
.ab_list_grid,
.ab_related_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ab_grid_item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ab_grid_item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.ab_grid_img {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.ab_grid_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.ab_grid_item:hover .ab_grid_img img {
    transform: scale(1.08);
}

.ab_grid_info {
    padding: 12px 14px;
}

.ab_grid_title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ab_grid_meta {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

/* ============================================
   6. 面包屑（列表页+详情页）
   ============================================ */
.ab_breadcrumb {
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 20px;
    font-size: 14px;
    color: #999;
}

.ab_breadcrumb a {
    color: #666;
    transition: color 0.3s;
}

.ab_breadcrumb a:hover {
    color: #e63946;
}

.ab_breadcrumb span {
    margin: 0 8px;
}

/* ============================================
   7. 列表页专属样式
   ============================================ */
.ab_filter {
    max-width: 1280px;
    margin: 0 auto 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ab_filter_row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.ab_filter_row:last-child {
    margin-bottom: 0;
}

.ab_filter_label {
    flex: 0 0 60px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.ab_filter_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ab_filter_item {
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.ab_filter_item:hover {
    color: #e63946;
}

.ab_filter_item.active {
    background: #e63946;
    color: #fff;
}

.ab_list_main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 分页 */
.ab_pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.ab_page_item {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    line-height: 36px;
    text-align: center;
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.ab_page_item:hover {
    border-color: #e63946;
    color: #e63946;
}

.ab_page_item.active {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
}

.ab_page_item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   8. 详情页专属样式
   ============================================ */
.ab_detail_main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.ab_detail_header {
    background: #fff;
    padding: 24px 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ab_detail_title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
}

.ab_detail_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #999;
    align-items: center;
}

.ab_detail_meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ab_detail_tag {
    display: inline-block;
    padding: 3px 10px;
    background: #fef0f1;
    color: #e63946;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 8px;
}

.ab_download_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 10px 24px;
    background: #e63946;
    color: #fff;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
}

.ab_download_btn:hover {
    background: #d62839;
    transform: translateY(-2px);
}

/* 图片切换查看器 */
.ab_detail_content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ab_image_viewer {
    position: relative;
    width: 100%;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.ab_viewer_slide {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.ab_viewer_slide.active {
    display: flex;
}

.ab_viewer_slide img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    object-fit: contain;
    cursor: pointer;
}

.ab_viewer_prev,
.ab_viewer_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 48px;
    text-align: center;
    transition: background 0.3s;
    z-index: 10;
    user-select: none;
}

.ab_viewer_prev:hover,
.ab_viewer_next:hover {
    background: rgba(0,0,0,0.75);
}

.ab_viewer_prev {
    left: 20px;
}

.ab_viewer_next {
    right: 20px;
}

.ab_viewer_dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.ab_viewer_dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.ab_viewer_dot.active {
    background: #e63946;
    width: 24px;
    border-radius: 5px;
}

.ab_image_info {
    margin-top: 16px;
    padding: 0 10px;
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ab_image_title {
    color: #333;
    font-weight: 500;
}

/* 上下篇导航 */
.ab_prev_next {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.ab_pn_item {
    flex: 1;
    font-size: 14px;
    color: #666;
}

.ab_pn_item.next {
    text-align: right;
}

.ab_pn_item a {
    color: #333;
    display: inline-block;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    transition: color 0.3s;
}

.ab_pn_item a:hover {
    color: #e63946;
}

/* 相关推荐 */
.ab_related {
    margin-bottom: 40px;
}

/* ============================================
   9. 灯箱（三页通用）
   ============================================ */
.ab_lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}

.ab_lightbox.show {
    display: flex;
}

.ab_lightbox_img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
}

.ab_lightbox_close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s;
}

.ab_lightbox_close:hover {
    transform: rotate(90deg);
}

.ab_lightbox_prev,
.ab_lightbox_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: background 0.3s;
    border-radius: 4px;
}

.ab_lightbox_prev:hover,
.ab_lightbox_next:hover {
    background: rgba(255,255,255,0.1);
}

.ab_lightbox_prev {
    left: 30px;
}

.ab_lightbox_next {
    right: 30px;
}

/* ============================================
   10. 页脚（三页通用）
   ============================================ */
.ab_footer {
    background: #2c3137;
    color: #9aa0a6;
    padding: 40px 20px;
    text-align: center;
    font-size: 13px;
    margin-top: 40px;
}

/* ============================================
   11. 响应式适配（三页通用）
   ============================================ */
@media (max-width: 1200px) {
    .ab_section_grid,
    .ab_list_grid,
    .ab_related_grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ab_banner {
        height: 360px;
    }
    .ab_nav_menu {
        gap: 24px;
        margin-left: 30px;
    }
    .ab_search {
        flex: 0 0 300px;
    }
}

@media (max-width: 900px) {
    .ab_nav_menu {
        display: none;
    }
    .ab_mobile_btn {
        display: block;
    }
    .ab_search {
        flex: 0 0 260px;
    }
}

@media (max-width: 768px) {
    .ab_section_grid,
    .ab_list_grid,
    .ab_related_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ab_banner {
        height: 240px;
    }
    .ab_banner_prev,
    .ab_banner_next {
        width: 36px;
        height: 60px;
        line-height: 60px;
        font-size: 22px;
    }
    .ab_banner_prev { left: 10px; }
    .ab_banner_next { right: 10px; }
    
    .ab_detail_header { padding: 18px 20px; }
    .ab_detail_title { font-size: 20px; }
    .ab_detail_content { padding: 20px 15px; }
    .ab_detail_meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .ab_download_btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }
    .ab_prev_next {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }
    .ab_pn_item.next { text-align: left; }
    
    .ab_viewer_prev,
    .ab_viewer_next {
        width: 40px;
        height: 40px;
        font-size: 20px;
        line-height: 40px;
    }
    .ab_viewer_prev { left: 10px; }
    .ab_viewer_next { right: 10px; }

    .ab_lightbox_prev,
    .ab_lightbox_next {
        font-size: 36px;
        padding: 10px;
    }
    .ab_lightbox_prev { left: 10px; }
    .ab_lightbox_next { right: 10px; }
}

@media (max-width: 560px) {
    .ab_search {
        display: none;
    }
    .ab_banner {
        height: 180px;
    }
    .ab_grid_img {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .ab_section_grid,
    .ab_list_grid,
    .ab_related_grid {
        grid-template-columns: 1fr;
    }
    .ab_filter_label {
        flex: 0 0 100%;
        margin-bottom: 5px;
    }
}
.ab_detail_meta span i{ display: none; font-style: normal;}
.ab_detail_meta span i:last-child{ display: inline-block !important;}

.ab_grid_meta span i{ display: none; font-style: normal;}
.ab_grid_meta span i:last-child{ display: inline-block !important;}

/* 免费cms模板新增分页样式 www.mianfeicms.com */
.pagebar { padding:20px; overflow:hidden; clear:both}
.pagebar .pagination {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.pagination a {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  font-size: 12px;
  padding: 8px 10px;
  margin: 0 2px;
  border-radius: 3px; line-height:100%
}
.pagination span {
    color: #333;
    font-size: 12px;
    padding: 7px 2px;
    margin: 0 2px;
    border-radius: 3px;
}
.pagination a:hover {
  color: #333;
  border: 1px solid #333;
}
.pagination a.page-num-current {
  color: #fff;
  background: #333;
  border: 1px solid #333;
}
.pagination .st{ font-family:宋体}
.text-secondary{ text-align:center; padding:20px 0}