/**
 * STL天殿排行榜 - 前台样式
 * 暗色主题，紫色+金色配色方案
 */

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131f;
    --bg-card: #1a1a2e;
    --bg-hover: #252540;
    --border-color: #2d2d4a;
    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --purple-dark: #6d28d9;
    --gold: #fbbf24;
    --gold-light: #fcd34d;
    --gold-dark: #d97706;
    --text-primary: #f3f4f6;
    --text-secondary: #b0b0c0;
    --text-muted: #6b7280;
    --red: #ef4444;
    --green: #22c55e;
    --blue: #3b82f6;
    --orange: #f97316;
    --yellow: #eab308;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--purple-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gold);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(19, 19, 31, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: bold;
    font-size: 18px;
}

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
    background: rgba(139, 92, 246, 0.1);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid var(--border-color);
}

.user-name {
    color: var(--gold);
    font-weight: 500;
    font-size: 14px;
}

.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: bold;
}

.admin-link {
    margin-left: 8px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(109, 40, 217, 0.3);
}

.nav-toggle:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
}

.nav-toggle i {
    width: 20px;
    height: 20px;
}

/* ==================== Hero区域 ==================== */
.hero {
    position: relative;
    padding: 140px 20px 60px;
    text-align: center;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
    object-fit: cover;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
}

.stat-item i {
    color: var(--purple-light);
    width: 20px;
    height: 20px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-owner {
    color: var(--text-muted);
    font-size: 14px;
}

/* ==================== 排行榜区域 ==================== */
.ranking-section {
    padding: 40px 0 60px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.section-title i {
    color: var(--gold);
    width: 28px;
    height: 28px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rank-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s;
}

.rank-card:hover {
    border-color: var(--purple);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.rank-top1 {
    border: 2px solid var(--gold);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, var(--bg-card) 100%);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.1);
}

.rank-top2 {
    border: 2px solid #c0c0c0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.05) 0%, var(--bg-card) 100%);
}

.rank-top3 {
    border: 2px solid #cd7f32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.05) 0%, var(--bg-card) 100%);
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.rank-num {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-muted);
}

.rank-icon-gold {
    color: var(--gold);
    width: 36px;
    height: 36px;
}

.rank-icon-silver {
    color: #c0c0c0;
    width: 36px;
    height: 36px;
}

.rank-icon-bronze {
    color: #cd7f32;
    width: 36px;
    height: 36px;
}

.rank-avatar {
    flex-shrink: 0;
}

.rank-avatar img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--purple);
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.rank-prefix {
    background: var(--purple);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.rank-fullname {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

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

.rank-scores {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.score-item i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.score-label {
    color: var(--text-muted);
}

.score-value {
    font-weight: bold;
}

.rank-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.rank-overall {
    display: flex;
    align-items: center;
    gap: 8px;
}

.overall-score {
    font-size: 28px;
    font-weight: bold;
}

.overall-level {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.challenge-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-red:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ff6b6b;
}

.btn-gold {
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.btn-gold:hover {
    background: rgba(251, 191, 36, 0.25);
}

.challenge-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.text-orange { color: var(--orange); }

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--purple);
    color: #fff;
}

.btn-primary:hover {
    background: var(--purple-dark);
    color: #fff;
}

.btn-success {
    background: var(--green);
    color: #fff;
}

.btn-success:hover {
    background: #1a9e4a;
    color: #fff;
}

.btn-danger {
    background: var(--red);
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

.btn-warning {
    background: transparent;
    color: var(--yellow);
    border: 1px solid var(--yellow);
}

.btn-warning:hover {
    background: rgba(234, 179, 8, 0.1);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    padding: 12px;
}

.btn-text {
    background: none;
    color: var(--text-secondary);
}

.btn-text:hover {
    color: var(--text-primary);
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-group-3 {
    justify-content: center;
}

/* ==================== 表单 ==================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--purple);
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group input[type="file"] {
    padding: 8px;
}

.form-hint {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group input {
    border-radius: 8px 0 0 8px;
    flex: 1;
}

.input-addon {
    padding: 10px 14px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

/* ==================== 认证页面 ==================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 16px;
    object-fit: cover;
}

.auth-header h1 {
    font-size: 22px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-form {
    margin-bottom: 20px;
}

.auth-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--purple-light);
}

/* ==================== 提示框 ==================== */
.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert i {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #86efac;
}

/* ==================== 信息框 ==================== */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.info-box i {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--blue);
    margin-top: 2px;
}

/* ==================== 状态卡片 ==================== */
.status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
}

.status-card i {
    width: 48px;
    height: 48px;
}

.status-card h3 {
    font-size: 20px;
}

.status-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.status-on-rank { border-color: rgba(34, 197, 94, 0.3); }
.status-on-rank i { color: var(--green); }

.status-pending { border-color: rgba(249, 115, 22, 0.3); }
.status-pending i { color: var(--orange); }

.status-warn { border-color: rgba(59, 130, 246, 0.3); }
.status-warn i { color: var(--blue); }

.status-gold { border-color: rgba(251, 191, 36, 0.3); }
.status-gold i { color: var(--gold); }

/* ==================== 内容卡片 ==================== */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    max-width: 640px;
    margin: 0 auto;
}

.form-card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    margin-bottom: 8px;
}

.form-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 14px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 24px;
}

.info-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--purple);
}

.info-details p {
    margin: 4px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.info-details strong {
    color: var(--text-primary);
}

/* ==================== VS布局 ==================== */
.vs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.vs-player {
    text-align: center;
    flex: 1;
}

.vs-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--purple);
    margin-bottom: 8px;
}

.vs-name {
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.vs-rank {
    color: var(--text-muted);
    font-size: 13px;
}

.vs-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

/* ==================== 页脚 ==================== */
.footer {
    padding: 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

/* ==================== 消息列表 ==================== */
.main-content {
    padding: 80px 20px 40px;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    margin-bottom: 6px;
}

.page-header h1 i {
    color: var(--purple-light);
}

.page-header p {
    color: var(--text-muted);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px;
    color: var(--text-muted);
}

.empty-state i {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.message-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    border-bottom: 1px solid rgba(45, 45, 74, 0.5);
}

.data-table tr:hover td {
    background: rgba(139, 92, 246, 0.03);
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.type-badge i {
    width: 14px;
    height: 14px;
}

.type-challenge {
    background: rgba(249, 115, 22, 0.15);
    color: var(--orange);
}

.type-result {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
}

.type-system {
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple-light);
}

.message-content {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-orange { color: var(--orange); }

/* ==================== 弹窗 ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.2s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-lg {
    max-width: 600px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}

.review-info {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.review-info p {
    margin: 4px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== CSS图标系统 ==================== */
.css-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
    height: 18px;
}
.css-burger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 排名装饰 */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}
.rank-badge-gold {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #1a1025;
    box-shadow: 0 2px 12px rgba(251,191,36,0.3);
}
.rank-badge-silver {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: #1a1025;
    box-shadow: 0 2px 12px rgba(156,163,175,0.3);
}
.rank-badge-bronze {
    background: linear-gradient(135deg, #d97706, #92400e);
    color: #fff;
    box-shadow: 0 2px 12px rgba(217,119,6,0.3);
}

/* 梯队标签 */
.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid;
    flex-shrink: 0;
}

.tier-badge-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid;
}

/* 头像排名徽章 */
.rank-avatar {
    position: relative;
    flex-shrink: 0;
}

.rank-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    border: 2px solid var(--bg-card);
}

.avatar-badge-gold {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #1a1025;
}

.avatar-badge-silver {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: #1a1025;
}

.avatar-badge-bronze {
    background: linear-gradient(135deg, #d97706, #92400e);
    color: #fff;
}

/* 后台统计卡片纯色圆形背景 */
.stat-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.stat-circle-blue { background: #3b82f6; }
.stat-circle-green { background: #22c55e; }
.stat-circle-purple { background: #8b5cf6; }
.stat-circle-yellow { background: #eab308; }
.stat-circle-red { background: #ef4444; }

/* ==================== CSS图标系统 ==================== */
.icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    flex-shrink: 0;
}

.icon-lg {
    width: 1.6em;
    height: 1.6em;
}

.icon-sm {
    width: 1em;
    height: 1em;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(19, 19, 31, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 12px;
        gap: 4px;
        display: none;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-user {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-top: 8px;
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-stats {
        gap: 24px;
    }

    .rank-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .rank-avatar {
        order: -1;
    }

    .rank-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .rank-scores {
        gap: 12px;
    }

    .vs-container {
        gap: 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn-group {
        flex-direction: column;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }

    .message-table {
        min-width: unset;
    }

    .message-table td,
    .message-table th {
        white-space: nowrap;
    }

    .video-status-bar {
        flex-direction: column;
    }

    .video-status-item {
        min-width: unset;
    }

    .video-player-box video {
        max-height: 200px;
    }
}

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

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

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

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

/* ==================== 视频上传与播放器 ==================== */
.video-status-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.video-status-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    flex: 1;
    min-width: 140px;
}

.video-status-item i {
    font-size: 18px;
}

.video-status-item.pending {
    background: rgba(249, 115, 22, 0.08);
    color: var(--orange);
    border-color: rgba(249, 115, 22, 0.25);
}

.video-status-item.uploaded {
    background: rgba(34, 197, 94, 0.08);
    color: var(--green);
    border-color: rgba(34, 197, 94, 0.25);
}

.video-players {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.video-player-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.video-player-box label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.video-player-box video {
    width: 100%;
    max-height: 300px;
    border-radius: 8px;
    background: #000;
}

.video-meta {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.alert-warning {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    color: #fcd34d;
}

/* ==================== 消息中心表格 ==================== */
.message-table {
    min-width: 600px;
}

/* ==================== 选中高亮 ==================== */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}
