/* ============================================
   LIGHT服务器 - 黑名单页面样式
   风格与主站保持一致
   ============================================ */

/* 基础重置与变量定义 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --background-dark: #1a1a2e;
    --background-card: #16213e;
    --background-hover: #1f4068;
    --text-primary: #ffffff;
    --text-secondary: #bdc3c7;
    --border-color: #2d4a6f;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #c0392b;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --transition-speed: 0.3s;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 页面加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 页面容器 */
.page-container {
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page-container.loaded {
    opacity: 1;
}

/* 头部导航栏 */
.header {
    background: linear-gradient(135deg, var(--secondary-color), var(--background-card));
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow-color);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 主内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 页面标题区域 */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--background-card), var(--background-hover));
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

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

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    position: relative;
    text-shadow: 0 2px 10px var(--shadow-color);
}

.page-header p {
    font-size: 18px;
    color: var(--text-secondary);
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* 搜索和筛选区域 */
.search-filter-section {
    background: var(--background-card);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid var(--border-color);
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--background-dark);
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.2);
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.filter-group {
    display: flex;
    gap: 15px;
}

.filter-group select {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--background-dark);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: border-color var(--transition-speed) ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 黑名单列表 */
.blacklist-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title span {
    font-size: 28px;
}

.blacklist-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}

/* 黑名单卡片 */
.blacklist-card {
    background: linear-gradient(145deg, var(--background-card), var(--background-hover));
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.blacklist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.blacklist-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

.blacklist-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

.player-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.ban-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ban-type.permanent {
    background: linear-gradient(135deg, var(--danger-color), var(--accent-color));
    color: white;
}

.ban-type.temporary {
    background: linear-gradient(135deg, var(--warning-color), #e67e22);
    color: white;
}

.card-body {
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.info-item span:first-child {
    font-size: 16px;
}

.reason-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border-left: 3px solid var(--accent-color);
}

.reason-box h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reason-box p {
    color: var(--text-primary);
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.staff-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 空状态显示 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state span {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* 页脚区域 */
.footer {
    background: linear-gradient(135deg, var(--background-card), var(--secondary-color));
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        gap: 15px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 16px;
    }

    .header-stats {
        flex-direction: column;
        gap: 15px;
    }

    .search-filter-section {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .card-header {
        flex-direction: column;
        gap: 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

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

.blacklist-card {
    animation: fadeInUp 0.5s ease forwards;
}

.blacklist-card:nth-child(1) { animation-delay: 0.1s; }
.blacklist-card:nth-child(2) { animation-delay: 0.2s; }
.blacklist-card:nth-child(3) { animation-delay: 0.3s; }
.blacklist-card:nth-child(4) { animation-delay: 0.4s; }
.blacklist-card:nth-child(5) { animation-delay: 0.5s; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 提示框样式 */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
    z-index: 100;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 徽章效果 */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.badge.new {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
    color: white;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 14px;
    margin-right: 15px;
}

.pagination {
    display: flex;
    gap: 8px;
}

.pagination button {
    min-width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: var(--background-card);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.pagination button.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
}

.pagination .page-jump input {
    width: 60px;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-card);
    color: var(--text-primary);
    text-align: center;
    font-size: 14px;
}

.pagination .page-jump button {
    padding: 8px 12px;
    min-width: auto;
    height: auto;
}
