/**
 * 具象模板演示插件 - 前台样式 (完全无颜色限制版)
 * 
 * @package NexThemeDisplay
 */

/* ============================================
   通用容器
   ============================================ */
.nex-td-frontend-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.nex-td-frontend-wrapper * {
    box-sizing: border-box;
}

/* ============================================
   头部
   ============================================ */
.nex-td-frontend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8eaed;
}

.nex-td-frontend-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nex-td-frontend-stats {
    font-size: 14px;
}

.nex-td-frontend-count {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
}

/* ============================================
   筛选栏 - 左右布局
   ============================================ */
.nex-td-frontend-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px 18px;
    border-radius: 8px;
    align-items: flex-start;
    border: 1px solid #e8eaed;
}

/* 左侧：分类按钮 - 占据剩余空间 */
.nex-td-frontend-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

/* 右侧：搜索区域 - 固定宽度，顶端对齐，上下结构 */
.nex-td-frontend-search-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex-shrink: 0;
    min-width: 280px;
}

/* 搜索框行 */
.nex-td-search-row {
    display: flex;
    width: 100%;
    align-items: center;
}

.nex-td-search-row input {
    flex: 1;
    padding: 6px 14px;
    border: 1px solid #dcdcde;
    border-radius: 20px 0 0 20px;
    font-size: 13px;
    outline: none;
    min-height: 36px;
    background: transparent;
    transition: border-color 0.2s;
}

.nex-td-search-row input:focus {
    border-color: #2271b1;
}

.nex-td-search-row .nex-td-search-btn {
    padding: 6px 16px;
    border: 1px solid #dcdcde;
    border-left: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    min-height: 36px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    color: inherit;
}

.nex-td-search-row .nex-td-search-btn:hover {
    border-color: #bbb;
}

/* 标签行 */
.nex-td-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    width: 100%;
}

.nex-td-tags-label {
    font-size: 12px;
    color: #999;
}

.nex-td-tag-suggestion {
    display: inline-block;
    padding: 1px 12px;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: inherit;
}

.nex-td-tag-suggestion:hover {
    border-color: #2271b1;
}

.nex-td-tag-suggestion .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    margin-right: 2px;
}

/* 提示文本 */
.nex-td-search-hint {
    font-size: 12px;
    color: #999;
}

.nex-td-filter-btn {
    padding: 6px 16px;
    border: 1px solid #dcdcde;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    background: transparent;
}

.nex-td-filter-btn:hover {
    border-color: #bbb;
}

.nex-td-filter-btn.active {
    border-color: #2271b1;
}

.nex-td-filter-btn.active:hover {
    border-color: #135e96;
}

.nex-td-filter-count {
    font-size: 11px;
}

/* ============================================
   模板网格
   ============================================ */
.nex-td-frontend-grid-wrapper {
    margin-bottom: 30px;
}

.nex-td-frontend-grid {
    display: grid;
    gap: 24px;
}

.nex-td-frontend-grid.grid {
    grid-template-columns: repeat(4, 1fr);
}

.nex-td-frontend-grid.grid.nex-td-grid-3cols {
    grid-template-columns: repeat(3, 1fr);
}

.nex-td-frontend-grid.grid.nex-td-grid-4cols {
    grid-template-columns: repeat(4, 1fr);
}

.nex-td-frontend-grid.grid.nex-td-grid-6cols {
    grid-template-columns: repeat(6, 1fr);
}

.nex-td-frontend-grid.list {
    grid-template-columns: 1fr;
}

/* ============================================
   网格项
   ============================================ */
.nex-td-grid-item {
    border: 1px solid #e8eaed;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    
}

.nex-td-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #c3c4c7;
}

.nex-td-grid-item-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nex-td-grid-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.nex-td-grid-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nex-td-grid-item:hover .nex-td-grid-thumbnail img {
    transform: scale(1.03);
}

.nex-td-no-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 14px;
}

.nex-td-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nex-td-grid-item:hover .nex-td-grid-overlay {
    opacity: 1;
}

.nex-td-view-detail-btn {
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
}

.nex-td-view-detail-btn:hover {
    transform: scale(1.05);
}

.nex-td-view-detail-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.nex-td-grid-info {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nex-td-grid-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.nex-td-grid-title button {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: color 0.2s;
    font-family: inherit;
}

.nex-td-grid-version {
    display: inline-block;
    font-size: 12px;
}

.nex-td-grid-excerpt {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.6 !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word;
    max-height: none !important;
}

/* 标签 */
.nex-td-frontend-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0 4px;
}

.nex-td-tag {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid #e8eaed;
}

/* 元信息 */
.nex-td-grid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f1;
    font-size: 12px;
}

.nex-td-grid-category {
    padding: 2px 12px;
    border-radius: 12px;
    border: 1px solid #e8eaed;
}

.nex-td-grid-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nex-td-grid-views .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* ============================================
   列表布局样式
   ============================================ */
.nex-td-frontend-grid.list .nex-td-grid-item-inner {
    flex-direction: row;
}

.nex-td-frontend-grid.list .nex-td-grid-thumbnail {
    width: 260px;
    height: 180px;
    flex-shrink: 0;
}

.nex-td-frontend-grid.list .nex-td-grid-info {
    flex: 1;
}

/* ============================================
   分页
   ============================================ */
.nex-td-frontend-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0 10px;
    border-top: 1px solid #e8eaed;
}

.nex-td-load-more {
    padding: 8px 30px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}

.nex-td-load-more:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.nex-td-pagination-info {
    font-size: 14px;
}

/* ============================================
   空状态
   ============================================ */
.nex-td-empty-message {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    font-size: 16px;
    border-radius: 8px;
    border: 2px dashed #e8eaed;
}

/* ============================================
   底部
   ============================================ */
.nex-td-frontend-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #e8eaed;
    text-align: center;
}

.nex-td-frontend-credit {
    margin: 0;
    font-size: 12px;
}

.nex-td-frontend-credit a {
    text-decoration: none;
}

/* ============================================
   详情弹窗 - 完全无颜色限制
   ============================================ */
/* 灯箱遮罩层 */
.nex-td-frontend-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999 !important;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: nexTdFadeIn 0.25s ease;
}

/* 灯箱内容 */
.nex-td-frontend-modal-content {
    position: relative;
    z-index: 1000000 !important;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: nexTdSlideUp 0.3s ease;
color: #ffffff;
}

@keyframes nexTdFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nex-td-frontend-modal-content {
   
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: nexTdSlideUp 0.3s ease;
}

@keyframes nexTdSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nex-td-frontend-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #e8eaed;
    flex-shrink: 0;
}

.nex-td-frontend-modal-header h2 {
    margin: 0;
    font-size: 20px;
    /* 颜色继承主题 */
}

.nex-td-frontend-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s;
}

.nex-td-frontend-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.nex-td-frontend-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
}

.nex-td-frontend-loading::after {
    content: '...';
    animation: nexTdDot 1.2s steps(3, end) infinite;
}

@keyframes nexTdDot {
    0% { content: ''; }
    33% { content: '.'; }
    66% { content: '..'; }
    100% { content: '...'; }
}

.nex-td-frontend-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e8eaed;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.nex-td-frontend-modal-close-btn {
    padding: 8px 24px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    background: transparent;
}

/* ============================================
   详情内容 - 完全无颜色限制
   ============================================ */
.nex-td-frontend-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 截图区域 */
.nex-td-detail-screenshots {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8eaed;
}

.nex-td-detail-screenshot-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px 16px;
    border-bottom: 1px solid #e8eaed;
}

.nex-td-detail-tab {
    padding: 6px 16px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}

.nex-td-detail-tab.active {
    border-color: #2271b1;
    /* 不设置颜色和背景，完全继承主题 */
}

.nex-td-detail-screenshot-display {
    padding: 16px;
}

.nex-td-detail-screenshot {
    display: none;
}

.nex-td-detail-screenshot.active {
    display: block;
}

.nex-td-detail-screenshot img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nex-td-no-screenshot {
    text-align: center;
    padding: 60px 20px;
}

.nex-td-no-screenshot .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto 12px;
}

/* 详情信息 - 无颜色限制 */
.nex-td-detail-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nex-td-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nex-td-detail-header h2 {
    margin: 0;
    font-size: 22px;
}

.nex-td-detail-version {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 13px;
    border: 1px solid #e8eaed;
}

.nex-td-detail-category {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 13px;
    border: 1px solid #e8eaed;
}

.nex-td-detail-description {
    padding: 14px 18px;
    border-radius: 6px;
    border-left: 3px solid #e8eaed;
    line-height: 1.7;
}

.nex-td-detail-description p:last-child {
    margin-bottom: 0;
}

.nex-td-detail-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    padding: 14px 18px;
    border-radius: 6px;
    border: 1px solid #e8eaed;
}

.nex-td-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.nex-td-detail-meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.nex-td-meta-label {
    font-weight: 500;
}

.nex-td-meta-value a {
    text-decoration: none;
}

.nex-td-meta-value a:hover {
    text-decoration: underline;
}

.nex-td-detail-tags {
    grid-column: 1 / -1;
}

.nex-td-detail-tags .nex-td-tag {
    margin-right: 4px;
}

.nex-td-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #e8eaed;
}

.nex-td-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}

.nex-td-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.nex-td-btn-primary {
    border-color: #2271b1;
}

.nex-td-btn-primary:hover {
    border-color: #135e96;
}

.nex-td-btn-secondary {
    border-color: #dcdcde;
}

.nex-td-btn-secondary:hover {
    border-color: #bbb;
}

/* ============================================
   响应式
   ============================================ */
@media screen and (max-width: 1200px) {
    .nex-td-frontend-grid.grid.nex-td-grid-6cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .nex-td-frontend-grid.grid.nex-td-grid-4cols,
    .nex-td-frontend-grid.grid.nex-td-grid-6cols {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nex-td-frontend-grid.list .nex-td-grid-thumbnail {
        width: 200px;
        height: 150px;
    }
}

@media screen and (max-width: 768px) {
    .nex-td-frontend-grid.grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
    
    .nex-td-frontend-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .nex-td-frontend-categories {
        justify-content: center;
    }
    
    .nex-td-frontend-search-wrapper {
        width: 100%;
        min-width: unset;
    }
    
    .nex-td-frontend-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nex-td-frontend-title {
        font-size: 24px;
    }
    
    .nex-td-frontend-grid.list .nex-td-grid-item-inner {
        flex-direction: column;
    }
    
    .nex-td-frontend-grid.list .nex-td-grid-thumbnail {
        width: 100%;
        height: 180px;
    }
    
    .nex-td-frontend-modal-content {
        max-width: 100%;
        max-height: 98vh;
        border-radius: 8px;
        margin: 10px;
    }
    
    .nex-td-detail-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .nex-td-detail-header h2 {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .nex-td-frontend-grid.grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .nex-td-frontend-filter-bar {
        padding: 12px;
    }
    
    .nex-td-filter-btn {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .nex-td-frontend-title {
        font-size: 20px;
    }
    
    .nex-td-grid-thumbnail {
        height: 160px;
    }
    
    .nex-td-detail-screenshot-tabs {
        padding: 8px 10px;
    }
    
    .nex-td-detail-tab {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .nex-td-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 分类图标样式 */
.nex-td-category-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
    /* 如果图标加载失败，隐藏 */
    border: none;
}

/* 图标加载失败时隐藏 */
.nex-td-category-icon[src=""],
.nex-td-category-icon:not([src]) {
    display: none;
}

/* 使用背景色占位 */
.nex-td-filter-btn .nex-td-category-icon {
    border-radius: 4px;
}

.nex-td-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border: 1px solid #dcdcde;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    background: transparent;
    line-height: 1.4;
}

.nex-td-filter-btn img.nex-td-category-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nex-td-filter-btn:hover {
    border-color: #bbb;
}

.nex-td-filter-btn.active {
    border-color: #2271b1;
}

.nex-td-filter-btn.active:hover {
    border-color: #135e96;
}

.nex-td-filter-count {
    font-size: 11px;
    opacity: 0.7;
    margin-left: 2px;
}

/* 分类小图标（在模板卡片中） */
.nex-td-category-icon-small {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
    object-fit: contain;
    display: inline-block;
}

.nex-td-grid-category {
    display: inline-flex;
    align-items: center;
    padding: 2px 12px;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    font-size: 12px;
    line-height: 1.6;
}

/* ============================================
   头部 - 左右布局
   ============================================ */
.nex-td-frontend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8eaed;
}

.nex-td-header-left {
    display: flex;
    align-items: center;
}

.nex-td-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nex-td-frontend-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nex-td-frontend-stats {
    font-size: 14px;
}

.nex-td-frontend-count {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
}

/* ============================================
   排序选项
   ============================================ */
.nex-td-sort-options {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    flex-wrap: wrap;
}

.nex-td-sort-label {
    color: #999;
    margin-right: 4px;
}

.nex-td-sort-btn {
    padding: 4px 12px;
    border: 1px solid #dcdcde;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: transparent;
    color: inherit;
    white-space: nowrap;
}

.nex-td-sort-btn:hover {
    border-color: #bbb;
}

.nex-td-sort-btn.active {
    border-color: #2271b1;
}

.nex-td-sort-btn.active:hover {
    border-color: #135e96;
}

/* 响应式 - 修改头部 */
@media screen and (max-width: 768px) {
    .nex-td-frontend-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nex-td-header-right {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nex-td-sort-options {
        flex-wrap: wrap;
    }
}

/* ============================================
   多分类显示
   ============================================ */
.nex-td-grid-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 2px 0;
}

.nex-td-category-name {
    font-size: 12px;
    color: inherit;
}

.nex-td-category-more {
    font-size: 11px;
    color: #999;
    padding: 0 4px;
}

.nex-td-category-icon-small {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
}

/* ============================================
   Other 页面（简化版）底部样式
   ============================================ */
.nex-td-other-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e8eaed;
    text-align: center;
}

.nex-td-other-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nex-td-btn-all {
    display: inline-block;
    padding: 8px 30px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: inherit;
}

.nex-td-btn-all:hover {
    border-color: #2271b1;
    background: rgba(34, 113, 177, 0.05);
}

.nex-td-other-count {
    font-size: 14px;
    color: #999;
}