/* ==================== 后台管理系统样式 ==================== */

:root {
    --admin-primary: #1a1a2e;
    --admin-accent: #e60012;
    --admin-sidebar: #16213e;
    --admin-sidebar-hover: #0f3460;
    --admin-bg: #f4f6f9;
    --admin-card: #ffffff;
    --admin-text: #1a1a2e;
    --admin-text-light: #666;
    --admin-border: #e1e5e9;
    --admin-success: #52c41a;
    --admin-warning: #faad14;
    --admin-danger: #f5222d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--admin-bg);
    color: var(--admin-text);
    line-height: 1.6;
}

/* ==================== 登录页 ==================== */
.login-page {
    background: linear-gradient(135deg, var(--admin-primary) 0%, #2d2d44 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--admin-primary) 0%, #2d2d44 100%);
    color: #fff;
    padding: 40px 30px;
    text-align: center;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.login-logo i {
    font-size: 32px;
    color: var(--admin-accent);
}

.login-header h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.login-header p {
    opacity: 0.7;
    font-size: 14px;
}

.login-form {
    padding: 30px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--admin-text);
}

.form-group label i {
    margin-right: 6px;
    color: var(--admin-accent);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(230,0,18,0.1);
}

.verify-code {
    display: flex;
    gap: 12px;
}

.verify-code input {
    flex: 1;
}

.code-img {
    width: 100px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.forgot {
    color: var(--admin-accent);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--admin-accent) 0%, #c4000f 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230,0,18,0.3);
}

.login-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--admin-border);
    font-size: 13px;
    color: var(--admin-text-light);
}

/* ==================== 管理后台布局 ==================== */
.admin-page {
    min-height: 100vh;
    padding-top: 60px;
    padding-left: 220px;
}

/* 顶部导航 */
.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--admin-primary);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
}

.admin-logo i {
    color: var(--admin-accent);
    font-size: 24px;
}

.header-right {
    display: flex;
    gap: 24px;
}

.header-item {
    color: #fff;
    opacity: 0.8;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.header-item:hover {
    opacity: 1;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: var(--admin-accent);
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 侧边栏 */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 220px;
    background: var(--admin-sidebar);
    color: #fff;
    overflow-y: auto;
    z-index: 999;
}

.sidebar-menu {
    padding: 16px 0;
}

.menu-section {
    padding: 16px 20px 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 8px;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #fff;
    opacity: 0.7;
    font-size: 14px;
    transition: all 0.3s;
}

.menu-item a:hover,
.menu-item.active a {
    background: var(--admin-sidebar-hover);
    opacity: 1;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

/* 主内容区 */
.admin-main {
    padding: 24px;
}

.admin-content {
    max-width: 1200px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--admin-text-light);
}

.breadcrumb span:first-child {
    color: var(--admin-accent);
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--admin-card);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--admin-text-light);
    margin-top: 4px;
}

/* 快捷操作 */
.quick-actions {
    background: var(--admin-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.quick-actions h3 {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btns {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 24px;
    background: var(--admin-bg);
    border-radius: 12px;
    color: var(--admin-text);
    font-size: 13px;
    transition: all 0.3s;
    min-width: 100px;
}

.action-btn i {
    font-size: 24px;
    color: var(--admin-accent);
}

.action-btn:hover {
    background: var(--admin-accent);
    color: #fff;
    transform: translateY(-2px);
}

.action-btn:hover i {
    color: #fff;
}

/* 数据面板 */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
}

.panel {
    background: var(--admin-card);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

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

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

.more {
    font-size: 13px;
    color: var(--admin-accent);
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
}

.data-table th {
    background: var(--admin-bg);
    font-weight: 600;
    color: var(--admin-text-light);
    font-size: 12px;
    text-transform: uppercase;
}

.data-table tr:hover {
    background: var(--admin-bg);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.published {
    background: rgba(82,196,26,0.1);
    color: var(--admin-success);
}

.status-badge.draft {
    background: rgba(250,173,20,0.1);
    color: var(--admin-warning);
}

/* 实时赛事列表 */
.live-match-list {
    padding: 10px;
}

.live-match-item {
    padding: 14px;
    border-bottom: 1px solid var(--admin-border);
}

.live-match-item:last-child {
    border-bottom: none;
}

.match-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.match-league {
    font-size: 12px;
    color: var(--admin-text-light);
}

.live-tag {
    font-size: 11px;
    background: rgba(245,34,45,0.1);
    color: var(--admin-danger);
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.match-teams-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.match-time {
    font-size: 12px;
    color: var(--admin-accent);
    font-weight: 700;
}

/* ==================== 列表页通用样式 ==================== */
.page-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.btn-primary:hover {
    background: #c4000f;
}

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

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--admin-card);
    border-radius: 12px;
}

.filter-bar input,
.filter-bar select {
    padding: 8px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.filter-bar input {
    flex: 1;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.page-item {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-item:hover,
.page-item.active {
    background: var(--admin-accent);
    color: #fff;
}

/* 响应式 */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-page {
        padding-left: 0;
    }
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
