/* tag-top.css - 未来感高级设计 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 主容器样式 - 支持主题切换 */
.Nan-tag-top-container {
    position: relative;
    padding: 35px;
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 深色主题背景 */
[data-theme="dark"] .Nan-tag-top-container {
    background: linear-gradient(135deg, 
        rgba(13, 13, 25, 0.95) 0%, 
        rgba(18, 18, 35, 0.95) 50%, 
        rgba(23, 23, 45, 0.95) 100%
    );
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(66, 153, 225, 0.1);
}

/* 浅色主题背景 */
[data-theme="light"] .Nan-tag-top-container {
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.95) 0%, 
        rgba(226, 232, 240, 0.95) 50%, 
        rgba(191, 204, 219, 0.95) 100%
    );
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(66, 153, 225, 0.2);
}

/* 背景装饰 - 深色主题 */
[data-theme="dark"] .Nan-tag-top-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(66, 153, 225, 0.15) 0%, transparent 70%),
                radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
    pointer-events: none;
}

/* 背景装饰 - 浅色主题 */
[data-theme="light"] .Nan-tag-top-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(66, 153, 225, 0.08) 0%, transparent 70%),
                radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
    pointer-events: none;
}

/* 标题样式 */
.Nan-tag-top-title {
    position: relative;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 35px;
    font-family: 'Inter', sans-serif;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 1;
}

/* 深色主题标题颜色 */
[data-theme="dark"] .Nan-tag-top-title {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(66, 153, 225, 0.3);
}

/* 浅色主题标题颜色 */
[data-theme="light"] .Nan-tag-top-title {
    color: #0f172a;
    text-shadow: 0 0 10px rgba(66, 153, 225, 0.2);
}

/* 标题装饰 */
.Nan-tag-top-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #4299e1 50%, 
        transparent 100%
    );
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(66, 153, 225, 0.6);
}

/* Tag网格布局 */
.Nan-tag-top-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
    z-index: 1;
}

/* Tag链接样式 - 深色主题 */
[data-theme="dark"] .Nan-tag-top-link {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%
    );
    border-radius: 30px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    word-break: keep-all;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Tag链接样式 - 浅色主题 */
[data-theme="light"] .Nan-tag-top-link {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.5) 100%
    );
    border-radius: 30px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    word-break: keep-all;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    border: 1px solid rgba(66, 153, 225, 0.2);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Tag链接发光效果 - 深色主题 */
[data-theme="dark"] .Nan-tag-top-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(66, 153, 225, 0.3) 50%, 
        transparent 100%
    );
    transition: left 0.6s ease;
}

/* Tag链接发光效果 - 浅色主题 */
[data-theme="light"] .Nan-tag-top-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(66, 153, 225, 0.2) 50%, 
        transparent 100%
    );
    transition: left 0.6s ease;
}

/* Tag链接悬停效果 - 深色主题 */
[data-theme="dark"] .Nan-tag-top-link:hover {
    background: linear-gradient(145deg, 
        rgba(66, 153, 225, 0.15) 0%, 
        rgba(66, 153, 225, 0.08) 100%
    );
    color: #ffffff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 8px 20px rgba(66, 153, 225, 0.4),
        0 0 0 1px rgba(66, 153, 225, 0.3);
    border-color: rgba(66, 153, 225, 0.3);
}

/* Tag链接悬停效果 - 浅色主题 */
[data-theme="light"] .Nan-tag-top-link:hover {
    background: linear-gradient(145deg, 
        rgba(66, 153, 225, 0.15) 0%, 
        rgba(66, 153, 225, 0.08) 100%
    );
    color: #0f172a;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 8px 20px rgba(66, 153, 225, 0.3),
        0 0 0 1px rgba(66, 153, 225, 0.2);
    border-color: rgba(66, 153, 225, 0.4);
}

/* Tag链接悬停发光效果 */
.Nan-tag-top-link:hover::before {
    left: 100%;
}

/* Tag链接点击效果 */
.Nan-tag-top-link:active {
    transform: translateY(-2px) scale(0.98);
}

/* Tag链接数字标识 */
.Nan-tag-top-link::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(66, 153, 225, 0.6);
    box-shadow: 0 0 8px rgba(66, 153, 225, 0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.Nan-tag-top-link:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

/* 分页容器样式 */
.Nan-tag-top-pagination-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* 分页容器样式 */
.Nan-tag-top-pagination-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    z-index: 1;
}

/* 分页样式 - 深色主题 */
[data-theme="dark"] .Nan-tag-top-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%
    );
    padding: 12px 24px;
    border-radius: 35px;
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 分页样式 - 浅色主题 */
[data-theme="light"] .Nan-tag-top-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.5) 100%
    );
    padding: 12px 24px;
    border-radius: 35px;
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(66, 153, 225, 0.2);
}

/* 分页数字样式 - 深色主题 */
[data-theme="dark"] .Nan-tag-top-pagination b,
[data-theme="dark"] .Nan-tag-top-pagination a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%
    );
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 分页数字样式 - 浅色主题 */
[data-theme="light"] .Nan-tag-top-pagination b,
[data-theme="light"] .Nan-tag-top-pagination a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.5) 100%
    );
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    border: 1px solid rgba(66, 153, 225, 0.2);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* 分页数字发光效果 - 深色主题 */
[data-theme="dark"] .Nan-tag-top-pagination b::before,
[data-theme="dark"] .Nan-tag-top-pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(66, 153, 225, 0.3) 50%, 
        transparent 100%
    );
    transition: left 0.6s ease;
}

/* 分页数字发光效果 - 浅色主题 */
[data-theme="light"] .Nan-tag-top-pagination b::before,
[data-theme="light"] .Nan-tag-top-pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(66, 153, 225, 0.2) 50%, 
        transparent 100%
    );
    transition: left 0.6s ease;
}

/* 分页数字悬停效果 - 深色主题 */
[data-theme="dark"] .Nan-tag-top-pagination a:hover {
    background: linear-gradient(145deg, 
        rgba(66, 153, 225, 0.15) 0%, 
        rgba(66, 153, 225, 0.08) 100%
    );
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 6px 16px rgba(66, 153, 225, 0.4),
        0 0 0 1px rgba(66, 153, 225, 0.3);
    border-color: rgba(66, 153, 225, 0.3);
}

/* 分页数字悬停效果 - 浅色主题 */
[data-theme="light"] .Nan-tag-top-pagination a:hover {
    background: linear-gradient(145deg, 
        rgba(66, 153, 225, 0.15) 0%, 
        rgba(66, 153, 225, 0.08) 100%
    );
    color: #0f172a;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 6px 16px rgba(66, 153, 225, 0.3),
        0 0 0 1px rgba(66, 153, 225, 0.2);
    border-color: rgba(66, 153, 225, 0.4);
}

/* 分页数字悬停发光效果 */
.Nan-tag-top-pagination a:hover::before {
    left: 100%;
}

/* 激活状态分页数字 - 深色主题 */
[data-theme="dark"] .Nan-tag-top-pagination b {
    background: linear-gradient(145deg, #4299e1, #63b3ed);
    color: #ffffff;
    box-shadow: 
        0 6px 16px rgba(66, 153, 225, 0.5),
        0 0 0 1px rgba(66, 153, 225, 0.4);
    border-color: rgba(66, 153, 225, 0.5);
}

/* 激活状态分页数字 - 浅色主题 */
[data-theme="light"] .Nan-tag-top-pagination b {
    background: linear-gradient(145deg, #4299e1, #63b3ed);
    color: #ffffff;
    box-shadow: 
        0 6px 16px rgba(66, 153, 225, 0.4),
        0 0 0 1px rgba(66, 153, 225, 0.3);
    border-color: rgba(66, 153, 225, 0.4);
}

/* 下一页按钮特殊样式 */
.Nan-tag-top-pagination .nextpage {
    font-size: 18px;
    font-weight: 600;
}

/* 分页数字点击效果 */
.Nan-tag-top-pagination a:active {
    transform: translateY(-1px) scale(0.98);
}

/* 动画效果 */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .Nan-tag-top-container {
        padding: 25px;
    }
    
    .Nan-tag-top-title {
        font-size: 24px;
    }
    
    .Nan-tag-top-grid {
        gap: 12px;
    }
    
    /* 响应式Tag链接 */
    [data-theme="dark"] .Nan-tag-top-link,
    [data-theme="light"] .Nan-tag-top-link {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* 响应式分页 - 768px以下 */
    .Nan-tag-top-pagination {
        gap: 8px;
        padding: 10px 20px;
        overflow-x: auto;
        white-space: nowrap;
        max-width: 100%;
        justify-content: flex-start;
    }
    
    /* 隐藏部分分页数字，只显示当前页和相邻页 */
    .Nan-tag-top-pagination a:not(:nth-child(-n+3)):not(:nth-last-child(-n+3)) {
        display: none;
    }
    
    /* 显示省略号 */
    .Nan-tag-top-pagination::after {
        content: '';
        margin-left: 8px;
        color: inherit;
    }
}

@media (max-width: 480px) {
    .Nan-tag-top-container {
        padding: 20px;
    }
    
    .Nan-tag-top-title {
        font-size: 20px;
    }
    
    .Nan-tag-top-grid {
        gap: 10px;
    }
    
    /* 响应式Tag链接 - 480px以下 */
    [data-theme="dark"] .Nan-tag-top-link,
    [data-theme="light"] .Nan-tag-top-link {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* 响应式分页 - 480px以下 */
    .Nan-tag-top-pagination {
        gap: 6px;
        padding: 8px 16px;
    }
    
    /* 进一步简化分页显示 */
    .Nan-tag-top-pagination a:not(:nth-child(-n+2)):not(:nth-last-child(-n+2)) {
        display: none;
    }
}