/* ==================== 全局样式 - 现代化升级 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Flux风格配色 */
    --primary-color: #FF6B35;
    --primary-dark: #E5551E;
    --secondary-color: #FFA07A;
    --accent-color: #FFD23F;
    --success-color: #06FFA5;
    --warning-color: #FFB800;
    --danger-color: #FF4757;
    
    /* 背景色 */
    --bg-primary: #0A0E27;
    --bg-secondary: #131729;
    --bg-card: #1A1F3A;
    --bg-hover: #252B47;
    
    /* 文字颜色 */
    --text-primary: #FFFFFF;
    --text-secondary: #A8B2D1;
    --text-muted: #6B7588;
    
    /* 边框颜色 */
    --border-color: #2D3454;
    --border-hover: #3F4663;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FFA07A 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #06FFA5 0%, #00D9A6 100%);
    --gradient-card: linear-gradient(180deg, #1A1F3A 0%, #252B47 100%);
    
    /* 动画曲线 */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 
                 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ==================== 容器布局 ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.6s var(--ease-out);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 头部样式 ==================== */
.header {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 8px 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 48px;
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.6));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.update-time {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 16px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.btn-refresh {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-refresh::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-refresh:hover::before {
    width: 300px;
    height: 300px;
}

.btn-refresh:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.5);
}

.btn-refresh:active {
    transform: translateY(-1px);
}

.refresh-icon {
    display: inline-block;
    transition: transform 0.5s var(--ease-in-out);
}

.btn-refresh:hover .refresh-icon {
    transform: rotate(360deg);
}

/* ==================== 统计卡片 ==================== */
.stats-section {
    margin-bottom: 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s var(--ease-out);
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.stat-card:hover::before {
    opacity: 0.05;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
}

.stat-card:nth-child(2) .stat-icon {
    background: var(--gradient-secondary);
}

.stat-card:nth-child(3) .stat-icon {
    background: var(--gradient-success);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #FFD23F 0%, #FFA07A 100%);
}

.stat-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

/* ==================== 标签页导航 ==================== */
.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    background: var(--bg-card);
    padding: 10px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.tab-content {
    display: none;
    animation: slideUp 0.4s var(--ease-out);
}

.tab-content.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 筛选栏 ==================== */
.filter-bar {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.filter-bar select,
.filter-bar input {
    flex: 1;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s var(--ease-out);
}

.filter-bar select:focus,
.filter-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    background: var(--bg-card);
}

.filter-bar input::placeholder {
    color: var(--text-muted);
}

/* ==================== 表格样式 ==================== */
.table-container {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--gradient-primary);
}

.data-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.data-table tbody tr {
    transition: all 0.3s var(--ease-out);
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
    transform: scale(1.01);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
    font-size: 16px;
}

/* ==================== 游戏卡片网格 ==================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    padding: 24px 0;
}

/* ==================== 最新玩法卡片样式 ==================== */
.latest-game-card {
    background: linear-gradient(180deg, rgba(26, 31, 58, 0.95) 0%, rgba(37, 43, 71, 0.9) 100%);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    gap: 16px;
    padding: 20px;
    align-items: center;
}

.latest-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.latest-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.25);
    border-color: var(--primary-color);
}

.latest-game-card:hover::before {
    opacity: 1;
}

.latest-game-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.latest-game-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}

.latest-game-content {
    flex: 1;
    min-width: 0;
}

.latest-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.latest-game-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.game-category-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.latest-game-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.game-release-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.date-icon {
    font-size: 14px;
}

.latest-game-body {
    padding: 20px;
    flex: 1;
}

.latest-game-notice {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-game-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.new-badge {
    background: var(--gradient-success);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(6, 255, 165, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(6, 255, 165, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(6, 255, 165, 0.6);
    }
}

/* 旧的游戏卡片样式（保留以防其他地方使用） */
.game-card {
    background: var(--gradient-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    border: 1px solid var(--border-color);
    cursor: pointer;
    height: fit-content;
}

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.game-card:hover .game-card-image {
    transform: scale(1.1);
}

.game-card-content {
    padding: 20px;
}

.game-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--text-secondary);
}

.game-card-notice {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==================== 图表容器 ==================== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
}

.chart-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.chart-card h3 {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
}

/* ==================== 排名徽章 ==================== */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 16px;
    box-shadow: var(--shadow-md);
}

.rank-badge.top1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

.rank-badge.top2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #E8E8E8 100%);
    color: #000;
}

.rank-badge.top3 {
    background: linear-gradient(135deg, #CD7F32 0%, #DAA520 100%);
    color: #fff;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 24px rgba(255, 215, 0, 0.8);
    }
}

/* ==================== 标签样式 ==================== */
.tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.tag-primary {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-color);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.tag-success {
    background: rgba(6, 255, 165, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(6, 255, 165, 0.3);
}

.tag-warning {
    background: rgba(255, 184, 0, 0.2);
    color: var(--warning-color);
    border: 1px solid rgba(255, 184, 0, 0.3);
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.pagination button {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    font-weight: 600;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination button.active {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==================== 页脚 ==================== */
.footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .header {
        padding: 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .logo {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
    }

    .table-container {
        overflow-x: auto;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px 0;
    }
    
    .latest-game-card {
        margin-bottom: 0;
    }
    
    .latest-game-title {
        font-size: 20px;
    }

    .tabs {
        gap: 8px;
        padding: 8px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .stat-value {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .logo-icon {
        font-size: 32px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .stat-value {
        font-size: 24px;
    }
}

/* 导航自适应：小屏两列 */
@media (max-width: 640px) {
    .tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px;
    }
    .tab-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 0;
        font-size: 15px;
    }
}

/* ==================== Toast通知 ==================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideInRight 0.3s var(--ease-out);
    border-left: 4px solid var(--primary-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

/* ==================== 模态框样式 ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s var(--ease-out);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.6;
}

.close {
    color: var(--text-muted);
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.detail-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.detail-item strong {
    color: var(--accent-color);
}

/* ==================== 游戏详情美化样式 ==================== */
.game-detail-container {
    padding: 10px 0;
}

.game-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 160, 122, 0.05) 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.game-logo {
    flex-shrink: 0;
}

.game-logo img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s var(--ease-out);
}

.game-logo img:hover {
    transform: scale(1.05);
}

.game-meta {
    flex: 1;
}

.game-name {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
}

.category-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.date-tag {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.score-tag {
    background: linear-gradient(135deg, #ffd89b 0%, #ff6b6b 100%);
    color: white;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 视频区域 */
.video-section {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.video-section h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
}

.video-container video {
    width: 100%;
    max-height: 400px;
    display: block;
}

/* 游戏描述 */
.description-section {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.description-section h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 14px;
}

/* 开播文档 */
.handbooks-section {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.handbooks-section h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.handbooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.handbook-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s var(--ease-out);
}

.handbook-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* 开播指南 */
.notice-section {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.notice-section h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 14px;
    border-left: 3px solid var(--primary-color);
}

.notice-content::-webkit-scrollbar {
    width: 6px;
}

.notice-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.notice-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.notice-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ==================== 数据统计页面样式 ==================== */
.stats-section {
    padding: 20px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.chart-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--ease-out);
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-games-section {
    margin-top: 40px;
}

.type-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.type-game-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.type-game-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .type-games-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
}

.stats-grid-modal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card-modal {
    background: var(--gradient-card);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-card-modal .stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-card-modal .stat-value {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

/* 热度统计容器 */
.heat-stats-container {
    padding: 10px 0;
}

.stats-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid var(--border-color);
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-box.today::before {
    background: linear-gradient(90deg, #FF6B35, #FFA07A);
}

.stat-box.yesterday::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-box.yesterday:hover {
    border-color: #7C6AE6;
}

.stat-box .stat-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.stat-box .stat-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-box .stat-title {
    color: var(--text-secondary);
    font-size: 14px;
}

.stat-box .stat-value-large {
    color: var(--primary-color);
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.stat-box.yesterday .stat-value-large {
    color: #A56BFF;
}

.stat-box .stat-sub {
    color: var(--text-muted);
    font-size: 13px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* 图表区域 */
.chart-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.chart-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.chart-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

.hosts-list {
    max-height: 500px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .detail-grid,
    .stats-grid-modal {
        grid-template-columns: 1fr;
    }
}

/* 视频链接样式 */
.video-link-container {
    margin-top: 10px;
}

.video-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

/* ==================== 可点击元素统一样式 ==================== */
.clickable-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    display: inline-block;
}

.clickable-link:hover {
    color: var(--accent);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.clickable-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}

.clickable-link:hover::after {
    transform: scaleX(1);
}

/* 卡片可点击样式 */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.clickable-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
}

.clickable-card:active {
    transform: translateY(-6px) scale(1.01);
}
