/* ==========================================================================
   现代化移动端设计系统 - Modern Mobile Design System
   版本：2.0
   特性：卡片式设计、渐变色彩、柔和阴影、流畅动画
   ========================================================================== */

/* ==========================================================================
   1. CSS 变量系统 - Design Tokens
   ========================================================================== */
:root {
    /* 主色调 - 蓝紫渐变 */
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    
    /* 渐变背景 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    
    /* 中性色 */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --border-color: #e2e8f0;
    
    /* 状态色 */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* 直播状态 */
    --live-color: #ef4444;
    --live-gradient: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    --upcoming-color: #64748b;
    --upcoming-gradient: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    --finished-color: #10b981;
    
    /* 间距系统 (基于 50px rem 基准) */
    --space-xs: 0.08rem;
    --space-sm: 0.16rem;
    --space-md: 0.32rem;
    --space-lg: 0.48rem;
    --space-xl: 0.64rem;
    --space-2xl: 0.96rem;
    
    /* 圆角 */
    --radius-sm: 0.12rem;
    --radius-md: 0.16rem;
    --radius-lg: 0.24rem;
    --radius-xl: 0.32rem;
    --radius-2xl: 0.48rem;
    --radius-full: 9999px;
    
    /* 阴影 */
    --shadow-sm: 0 0.02rem 0.04rem 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 0.08rem 0.12rem -0.02rem rgba(0, 0, 0, 0.1), 0 0.04rem 0.08rem -0.04rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 0.2rem 0.3rem -0.06rem rgba(0, 0, 0, 0.1), 0 0.08rem 0.12rem -0.08rem rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 0.4rem 0.5rem -0.1rem rgba(0, 0, 0, 0.1), 0 0.16rem 0.2rem -0.12rem rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 0.4rem rgba(99, 102, 241, 0.3);
    
    /* 字体 */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-size-xs: 0.24rem;
    --font-size-sm: 0.28rem;
    --font-size-base: 0.32rem;
    --font-size-lg: 0.36rem;
    --font-size-xl: 0.4rem;
    --font-size-2xl: 0.48rem;
    --font-size-3xl: 0.6rem;
    
    /* 动画 */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* 布局 */
    --header-height: 1.12rem;
    --bottom-nav-height: 1.12rem;
    --content-max-width: 100%;
}

/* ==========================================================================
   2. 全局重置与基础样式
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 50px; /* 保持与原模板一致的 rem 基准 */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-size: 0.28rem; /* 调整基础字体大小 */
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-bottom: var(--bottom-nav-height);
}

/* 隐藏滚动条但保持功能 */
::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

/* 工具类调整 */
.container {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ==========================================================================
   3. 工具类 - Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 间距工具类 */
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }

/* ==========================================================================
   4. 头部导航栏 - Modern Header
   ========================================================================== */
.modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.02rem solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    height: var(--header-height);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-logo img {
    height: 0.56rem;
    width: auto;
}

.header-logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-btn {
    width: 0.72rem;
    height: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.header-btn svg {
    width: 0.4rem;
    height: 0.4rem;
}

.header-btn:active {
    transform: scale(0.95);
    background: var(--primary-color);
    color: white;
}

/* 横向滚动导航 */
.header-nav {
    display: flex;
    overflow-x: auto;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    flex-shrink: 0;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-item.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.nav-item:active {
    transform: scale(0.95);
}

/* ==========================================================================
   5. 底部导航栏 - Bottom Navigation
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 0.02rem solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.04rem;
    padding: var(--space-xs);
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    flex: 1;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item:active {
    transform: scale(0.9);
}

.bottom-nav-icon {
    width: 0.48rem;
    height: 0.48rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav-icon svg {
    width: 0.48rem;
    height: 0.48rem;
}

.bottom-nav-label {
    font-size: 0.2rem;
    font-weight: 500;
}

/* ==========================================================================
   6. 卡片组件 - Card Components
   ========================================================================== */
.card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
    margin-bottom: var(--space-md);
}

.card:active {
    transform: translateY(-0.04rem);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: var(--space-md);
    border-bottom: 0.02rem solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-title::before {
    content: '';
    width: 0.08rem;
    height: 0.4rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.card-body {
    padding: var(--space-md);
}

.card-footer {
    padding: var(--space-md);
    border-top: 0.02rem solid var(--border-color);
    background: var(--bg-tertiary);
}

/* ==========================================================================
   7. 赛事直播卡片 - Match Card
   ========================================================================== */
.match-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.match-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.match-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.match-status.live {
    background: var(--live-gradient);
    color: white;
    animation: pulse 2s infinite;
}

.match-status.upcoming {
    background: var(--upcoming-gradient);
    color: white;
}

.match-status.finished {
    background: var(--finished-color);
    color: white;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.match-time {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.match-league {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-full);
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
}

.match-team-logo {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    padding: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.match-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.match-team-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    max-width: 5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.match-score-numbers {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.match-score-divider {
    color: var(--text-tertiary);
    font-weight: 400;
}

.match-actions {
    margin-top: var(--space-md);
    display: flex;
    gap: var(--space-sm);
}

.match-btn {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-fast);
}

.match-btn.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.match-btn:active {
    transform: scale(0.95);
}

/* ==========================================================================
   8. 新闻卡片 - News Card
   ========================================================================== */
.news-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.news-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    width: 6rem;
    height: 4rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-tertiary);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.news-card-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.news-card-tag {
    background: var(--bg-tertiary);
    padding: 2px var(--space-sm);
    border-radius: var(--radius-full);
    color: var(--primary-color);
    font-weight: 500;
}

/* ==========================================================================
   9. 视频卡片 - Video Card
   ========================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding: var(--space-md);
}

.video-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.video-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.video-card-image {
    position: relative;
    width: 100%;
    height: 8rem;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.video-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.video-card-play::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 1rem solid var(--primary-color);
    border-top: 0.6rem solid transparent;
    border-bottom: 0.6rem solid transparent;
    margin-left: 0.3rem;
}

.video-card-duration {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
}

.video-card-content {
    padding: var(--space-sm);
}

.video-card-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   10. 标签云 - Tag Cloud
   ========================================================================== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-md);
}

.tag-item {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tag-item:active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(0.95);
}

.tag-item.hot {
    background: var(--gradient-secondary);
    color: white;
    border-color: transparent;
}

/* ==========================================================================
   11. 轮播图 - Carousel
   ========================================================================== */
.carousel {
    position: relative;
    width: 100%;
    height: 12rem;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: var(--space-md) 0;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl) var(--space-md) var(--space-md);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.carousel-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: 1.4;
}

.carousel-dots {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-md);
    display: flex;
    gap: var(--space-xs);
}

.carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background: white;
    width: 1.5rem;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   12. 球队/球员网格 - Team/Player Grid
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    padding: var(--space-md);
}

.team-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.team-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.team-card-logo {
    width: 3rem;
    height: 3rem;
    margin: 0 auto var(--space-sm);
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    padding: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-card-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   13. 搜索框 - Search Box
   ========================================================================== */
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-md);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    color: var(--text-tertiary);
    margin-right: var(--space-sm);
}

.search-input {
    flex: 1;
    background: none;
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

/* ==========================================================================
   14. 按钮组件 - Button Components
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-lg);
}

/* ==========================================================================
   15. 加载状态 - Loading States
   ========================================================================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-color) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: var(--space-sm);
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: var(--space-md);
}

.skeleton-image {
    height: 8rem;
    width: 100%;
}

/* 加载动画 */
.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
    margin: var(--space-xl) auto;
}

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

/* ==========================================================================
   16. 空状态 - Empty State
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
}

.empty-state-icon {
    width: 6rem;
    height: 6rem;
    margin: 0 auto var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.empty-state-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.empty-state-desc {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

/* ==========================================================================
   17. 页脚 - Footer
   ========================================================================== */
.modern-footer {
    background: var(--gradient-dark);
    color: white;
    padding: var(--space-xl) var(--space-md);
    margin-top: var(--space-2xl);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   18. 回到顶部 - Back to Top
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--space-md));
    right: var(--space-md);
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:active {
    transform: scale(0.9);
}

.back-to-top::after {
    content: '';
    width: 0.8rem;
    height: 0.8rem;
    border-left: 2px solid white;
    border-top: 2px solid white;
    transform: rotate(45deg);
    margin-top: 0.3rem;
}

/* ==========================================================================
   19. 响应式适配 - Responsive
   ========================================================================== */
@media (min-width: 768px) {
    :root {
        --content-max-width: 768px;
    }
    
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    :root {
        --content-max-width: 1024px;
    }
    
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ==========================================================================
   20. 动画效果 - Animations
   ========================================================================== */
.fade-in {
    animation: fadeIn var(--transition-base) ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp var(--transition-slow) ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.scale-in {
    animation: scaleIn var(--transition-base) ease-out;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* 点击波纹效果 */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 200%;
    height: 200%;
}

/* ==========================================================================
   21. 兼容旧类名 - Legacy Class Compatibility
   ========================================================================== */
/* 保持旧类名的兼容性，确保现有功能正常 */
.KUIJJHGH-content { margin: 0 auto; background: var(--bg-primary); }
.KUIJJHGH-index_conter { margin: 0 auto; padding: 0 var(--space-md); }
.KUIJJHGH-index_con { margin-bottom: var(--space-lg); display: flex; flex-direction: column; }
.KUIJJHGH-index_con .KUIJJHGH-index_left { width: 100%; }
.KUIJJHGH-index_con .KUIJJHGH-index_right { width: 100%; margin-top: var(--space-sm); }

/* 旧版头部兼容 */
.KUIJJHGH-header { position: relative; }
.KUIJJHGH-header_tc { position: relative; background: var(--bg-secondary); }
.KUIJJHGH-header_tc .KUIJJHGH-top { padding: var(--space-sm); height: var(--header-height); }
.KUIJJHGH-header_tc .KUIJJHGH-top .KUIJJHGH-logo { width: 2rem; height: 0.4rem; display: block; float: left; margin-top: var(--space-sm); }
.KUIJJHGH-header_tc .KUIJJHGH-top .KUIJJHGH-logo img { width: auto; height: 0.6rem; }

/* 旧版菜单兼容 */
.KUIJJHGH-header_tc .KUIJJHGH-menu-shadow-box { position: relative; width: 100%; z-index: 111; background: var(--bg-secondary); }
.KUIJJHGH-header_tc .KUIJJHGH-menu-shadow { position: relative; padding: var(--space-sm) 0; margin: 0 var(--space-md); z-index: 1; display: flex; flex-wrap: nowrap; overflow-x: scroll; white-space: nowrap; }
.KUIJJHGH-header_tc .KUIJJHGH-menu-shadow span { white-space: nowrap; display: block; border: 0.02rem solid var(--primary-color); padding: 0 var(--space-sm); text-align: center; border-radius: var(--radius-full); background-color: var(--primary-color); color: #fff; font-size: 0.26rem; height: 0.5rem; line-height: 0.5rem; }
.KUIJJHGH-menu-shadow ul { display: flex; }
.KUIJJHGH-menu-shadow ul li { display: inline-block; }
.KUIJJHGH-menu-shadow ul li a { display: block; position: relative; height: 0.5rem; line-height: 0.5rem; font-size: 0.26rem; color: var(--text-secondary); white-space: nowrap; padding: 0 var(--space-sm); margin: 0 var(--space-sm) 0rem; }
.KUIJJHGH-menu-shadow ul li:first-child a { margin-left: var(--space-sm); }
.KUIJJHGH-menu-shadow ul li a.on { color: var(--primary-color); font-weight: bold; font-size: 0.32rem; }
.KUIJJHGH-menu-shadow ul li a.on::after { position: absolute; content: ''; width: 0.3rem; height: 0.04rem; background-color: var(--primary-color); bottom: 0rem; left: 50%; margin-left: -0.15rem; display: block; }

/* 旧版赛事卡片兼容 */
.KUIJJHGH-index_match_list .KUIJJHGH-hotmatch,
.KUIJJHGH-index_tab_list .KUIJJHGH-hotmatch {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    overflow: visible;
    display: flex !important;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap !important;
    padding-bottom: var(--space-md) !important;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.KUIJJHGH-index_match_list .KUIJJHGH-hotmatch .KUIJJHGH-items-center,
.KUIJJHGH-index_tab_list .KUIJJHGH-hotmatch .KUIJJHGH-items-center {
    width: 100%;
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.KUIJJHGH-index_match_list .KUIJJHGH-hotmatch .KUIJJHGH-status,
.KUIJJHGH-index_tab_list .KUIJJHGH-hotmatch .KUIJJHGH-status {
    float: left;
    width: 1.3rem;
    margin-right: var(--space-sm);
    margin-bottom: var(--space-sm);
    flex-shrink: 0;
}

.KUIJJHGH-index_match_list .KUIJJHGH-hotmatch .KUIJJHGH-status span,
.KUIJJHGH-index_tab_list .KUIJJHGH-hotmatch .KUIJJHGH-status span {
    font-weight: 400;
    font-size: 0.28rem;
    line-height: 0.44rem;
    width: 1.2rem;
    height: 0.48rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border-radius: var(--radius-md);
}

.KUIJJHGH-index_match_list .KUIJJHGH-hotmatch .KUIJJHGH-status.KUIJJHGH-live span,
.KUIJJHGH-index_tab_list .KUIJJHGH-hotmatch .KUIJJHGH-status.KUIJJHGH-live span {
    background: var(--live-gradient);
}

.KUIJJHGH-index_match_list .KUIJJHGH-hotmatch .KUIJJHGH-status.KUIJJHGH-prelive span,
.KUIJJHGH-index_tab_list .KUIJJHGH-hotmatch .KUIJJHGH-status.KUIJJHGH-prelive span {
    background: var(--upcoming-gradient);
}

/* 旧版标签兼容 */
.KUIJJHGH-index_label { background: var(--bg-secondary); border-radius: var(--radius-lg); overflow: hidden; }
.KUIJJHGH-index_label ul { height: 0.8rem; box-shadow: var(--shadow-sm); overflow-x: auto; display: flex; }
.KUIJJHGH-index_label li { position: relative; white-space: nowrap; height: 0.8rem; width: auto; line-height: 0.8rem; margin-right: 0.04rem; text-align: center; padding: 0 var(--space-md); float: left; cursor: pointer; font-size: 0.28rem; }
.KUIJJHGH-index_label li.on { font-size: 0.32rem; color: var(--primary-color); font-weight: 600; }
.KUIJJHGH-index_label li.on:after { content: ""; position: absolute; bottom: 0px; left: 50%; margin-left: -0.2rem; border-radius: 0.02rem; width: 0.4rem; height: 0.06rem; background: var(--primary-color); color: #FFF; }

/* 旧版页脚兼容 */
.KUIJJHGH-footer {
    background-color: var(--gradient-dark) !important;
    padding: var(--space-xl) var(--space-md) var(--space-2xl);
    position: relative;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.KUIJJHGH-footer p {
    font-size: 0.24rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.7;
}
.KUIJJHGH-footer p a {
    color: rgba(255, 255, 255, 0.5) !important;
}
.KUIJJHGH-footer p a:hover {
    color: white !important;
}

/* 旧版回到顶部兼容 */
.KUIJJHGH-totop-btn {
    height: 0.88rem;
    width: 0.88rem;
    position: fixed;
    right: var(--space-md);
    bottom: calc(var(--bottom-nav-height) + var(--space-md));
    z-index: 9999;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}
.KUIJJHGH-totop-btn:hover {
    transform: scale(1.1);
}
.KUIJJHGH-totop-btn::before {
    content: '';
    width: 0.18rem;
    height: 0.18rem;
    border-left: 0.04rem solid #ffffff;
    border-top: 0.04rem solid #ffffff;
    transform: rotate(45deg);
    margin-top: 0.06rem;
}
