/* 统计页面专用样式 */

.stats-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
}

/* 选项卡导航 */
.stats-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stats-tab-btn {
    padding: 0.8rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    color: #555;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-tab-btn:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.stats-tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 120, 255, 0.3);
}

/* 内容区域 */
.stats-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.stats-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 表格容器 */
.table-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    overflow-x: auto; /* 支持横向滚动 */
}

.stats-table {
    width: 100%;
    table-layout: fixed; /* 强制固定列宽算法，确保多Tab切换时列对其 */
    border-collapse: collapse;
    min-width: 600px; /* 保证在小屏幕上不挤压 */
}

.stats-table th,
.stats-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.stats-table th {
    color: #888;
    font-weight: 600;
    font-size: 0.9rem;
    background-color: #f9f9fc;
    border-bottom: 2px solid #eee;
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.stats-table tr:hover td {
    background-color: #f8fbff;
}

/* 结果标签样式 */
.result-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.result-win {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.result-loss {
    color: #eb5757;
    background: rgba(235, 87, 87, 0.1);
}

.result-draw {
    color: #f2994a;
    background: rgba(242, 153, 74, 0.1);
}

/* 模式标签样式 */
.mode-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #e6f7ff;
    color: #0078ff;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 120, 255, 0.2);
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #888;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
    display: block;
}
