/* 全新卡片网格布局样式设计 */

/* ==================== 基础布局重置 ==================== */
* {
    box-sizing: border-box;
}

/* 页面整体背景 */
.bodybgcolor {
    background: #f8fafc;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    padding: 15px 0;
}

.body1000 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航容器 */
.navigation-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 全新顶部导航设计 ==================== */
.new_listhd {
    background: white !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
    padding: 20px 30px !important;
    margin-bottom: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    max-width: 1400px !important;
    height: 110px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    line-height: normal !important;
}

.listhdleft {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
}

.listhdleft a.currentr {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent !important;
    min-height: 45px;
    position: relative;
    overflow: hidden;
}



.listhdleft a.currentr:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5b63ea 0%, #6f42c1 100%);
}

.listhdleft a.currentr::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.listhdleft a.currentr:hover::before {
    left: 100%;
}



.listhdcenter {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    flex: 2;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.listhdcenter span {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 18px;
}

.listhdright {
    flex: 1;
    text-align: right;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.listhdright a {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 45px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}



.listhdright a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
}

.listhdright a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.listhdright a:hover::before {
    left: 100%;
}


@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* ==================== 主要内容布局 ==================== */
.main-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

/* 右侧推荐信息垂直布局 */
.recommend-sidebar {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: 25px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.recommend-sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}



.recommend-section {
    margin-bottom: 30px;
}

.recommend-section:last-child {
    margin-bottom: 0;
}

.recommend-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border-left: 4px solid #6366f1;
}

.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.recommend-item:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.recommend-item img {
    width: 55px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.recommend-item:hover img {
    transform: scale(1.05);
}

.recommend-item a {
    flex: 1;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-item a:hover {
    color: #6366f1;
}

/* ==================== 推荐侧边栏 ==================== */
.recommend {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 25px;
    position: sticky;
    top: 20px;
}

.recommend h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding: 0 0 15px 0;
    border-bottom: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(90deg, #667eea, #764ba2) border-box;
    border-bottom: 3px solid;
    position: relative;
}

/* 信息推荐样式 */
.recommend .top {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.recommend .top li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.recommend .top li:hover {
    background: white;
    border-left-color: #3498db;
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.recommend .top li a:first-child {
    display: block;
    width: 65px;
    height: 50px;
    margin-right: 12px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recommend .top li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommend .top li:hover img {
    transform: scale(1.1);
}

.recommend .top li a:nth-child(2) {
    flex: 1;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend .top li a:nth-child(2):hover {
    color: #3498db;
}

/* 最新信息样式 */
.recommend .bottom {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommend .bottom li {
    margin-bottom: 12px;
    position: relative;
}

.recommend .bottom li a {
    display: block;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    padding: 12px 15px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 10px;
    border-left: 4px solid #95a5a6;
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend .bottom li a:hover {
    color: #e74c3c;
    border-left-color: #e74c3c;
    background: white;
    transform: translateX(5px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

/* ==================== 主列表区域 ==================== */
.infolists {
    background: transparent;
    padding: 0;
}

.section {
    width: 100%;
}

/* 位置导航 */
.location {
    background: white;
    color: #475569;
    padding: 15px 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
   background:url(../images/global/location.gif) no-repeat 5px 17px;
}



/* 卡片网格布局 */
.sep {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 810px;
}

/* ==================== 信息列表项 ==================== */
.media {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: 0;
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 320px;
}

.media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.media:hover::before {
    opacity: 1;
}

/* 置顶样式 */
.media.ding {
    border-color: #f59e0b;
    position: relative;
}

.media.ding::after {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.media.ding::before {
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
    opacity: 1;
}

/* 图片容器 */
.media-cap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.media-cap img {
    width: 98%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border: none;
    padding: 0;
}

.media-cap:hover img {
    transform: scale(1.1);
}

/* 内容区域 */
.media-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.media-body-title {
    margin-bottom: 12px;
    position: relative;
}

.media-body-title .pull-right {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    position: absolute;
    top: 0;
    right: 0;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 12px;
}

.info-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.5;
    display: block;
    margin-bottom: 10px;
    margin-right: 80px;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.info-title:hover {
    color: #6366f1;
    text-decoration: none;
}

.text-red {
    color: #ef4444 !important;
}

.font-bold {
    font-weight: 700 !important;
}

/* 标签样式 */
.img_count,
.tuijian,
.certify {
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    margin-left: 6px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.img_count {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.tuijian {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.certify {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* 内容摘要 */
.typo-small {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* 底部标签 */
.typo-smalls {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.typo-smalls font {
    background: #f8fafc;
    color: #475569;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    font-style: normal;
}

.typo-smalls font:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ==================== 分页样式 ==================== */
.pagination2 {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin: 30px 0;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.pagination2 a {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0px 16px;
    margin: 0 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
    min-width: 40px;
}

.pagination2 a:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.pagination2 span.current {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: 1px solid transparent;
    border-radius: 12px;
    line-height: 17px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    display: inline-block;
    min-width: 40px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .main-content-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 25px;
    }
    
    .sep {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 18px;
    }
    
    .recommend-sidebar {
        padding: 20px;
    }
}

@media (max-width: 1200px) {
    .new_listhd {
        width: 100%;
        max-width: 1400px;
        padding: 20px 25px;
        height: auto;
        min-height: 90px;
        flex-wrap: wrap;
    }
    
    .listhdleft,
    .listhdcenter,
    .listhdright {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .body1000 {
        padding: 0 15px;
    }
    
    .main-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recommend-sidebar {
        order: -1;
        position: static;
        padding: 20px;
    }
    
    .new_listhd {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        width: 100%;
        max-width: 1400px;
        height: auto;
        padding: 20px;
    }
    
    .listhdleft,
    .listhdcenter,
    .listhdright {
        flex: none;
        min-width: auto;
        text-align: center;
    }
    
    .sep {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 18px;
    }
    
    .media {
        min-height: 280px;
    }
    
    .media-cap {
        height: 180px;
    }
    
    .info-title {
        font-size: 15px;
        margin-right: 60px;
    }
    
    .recommend-section {
        margin-bottom: 20px;
    }
    
    .recommend-item {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .body1000 {
        padding: 0 10px;
    }
    
    .new_listhd {
        width: 100%;
        max-width: 1400px;
        height: auto;
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 16px;
    }
    
    .recommend-sidebar,
    .pagination2 {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 16px;
    }
    
    .sep {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .media {
        min-height: 250px;
        border-radius: 16px;
    }
    
    .media-cap {
        height: 150px;
    }
    
    .media-body {
        padding: 15px;
    }
    
    .info-title {
        font-size: 14px;
        margin-right: 50px;
    }
    
    .recommend-item {
        gap: 10px;
        padding: 8px;
    }
    
    .recommend-item img {
        width: 45px;
        height: 35px;
    }
    
    .recommend-section h4 {
        font-size: 14px;
        padding: 6px 10px;
    }
}

/* ==================== 清除浮动 ==================== */
.clearfix::after,
.cfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ==================== 动画效果 ==================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.media {
    animation: slideInUp 0.6s ease forwards;
}

.media:nth-child(even) {
    animation-delay: 0.1s;
}

.media:nth-child(odd) {
    animation-delay: 0.2s;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}
