/* ==========================================
   道引云赛事平台 - 科幻风格移动端设计
   ========================================== */

/* CSS变量定义 - 科幻配色 */
:root {
    /* 主色调 - 科幻蓝色系 */
    --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #0d6efd 100%);
    --secondary-gradient: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    --accent-gradient: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --warm-gradient: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    
    /* 纯色 */
    --primary: #38bdf8;
    --primary-dark: #0d6efd;
    --secondary: #0ea5e9;
    --accent: #48bb78;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    
    /* 中性色 */
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(56, 189, 248, 0.2);
    
    /* 背景色 - 科幻深色风格 */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-glass: rgba(15, 23, 42, 0.95);
    --bg-glass-dark: rgba(30, 41, 59, 0.95);
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.3);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* 安全区域 */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --tab-bar-height: 70px;
}

/* 基础重置 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 全局背景装饰 - 科幻风格 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    z-index: -1;
    pointer-events: none;
}

/* App容器 */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--bg-primary);
}

/* 页面内容区域 */
.page-content {
    padding-bottom: calc(var(--tab-bar-height) + var(--safe-area-bottom) + 20px);
    min-height: 100vh;
}

/* ==========================================
   毛玻璃效果
   ========================================== */
.glass-effect {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(56, 189, 248, 0.05);
}

.glass-card {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(56, 189, 248, 0.05);
}

/* ==========================================
   顶部导航栏
   ========================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: calc(var(--safe-area-top) + 12px) var(--spacing-md) 12px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.notification-btn {
    position: relative;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-secondary);
}

/* ==========================================
   轮播图 - 科幻风格
   ========================================== */
.carousel-section {
    padding: var(--spacing-md);
}

.carousel {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.4),
        0 10px 10px -5px rgba(0, 0, 0, 0.3),
        inset 0 0 40px rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    height: 240px;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.6) 100%);
    z-index: 1;
}

/* 轮播图背景图片类 */
.slide-bg.slide-1 {
    background-image: url('/static/images/广场舞.jpg');
}

.slide-bg.slide-2 {
    background-image: url('/static/images/健身操.jpg');
}

.slide-bg.slide-3 {
    background-image: url('/static/images/跳绳.jpg');
}

.slide-content {
    position: absolute;
    width:100%;
    height: 100%;
    padding: var(--spacing-lg);
    text-align: center;
    z-index: 3;
    box-sizing: border-box;
}

.event-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.1));
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: #38bdf8;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 5px rgba(56, 189, 248, 0.3);
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2);
}

.slide-content .event-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.slide-content .event-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* 轮播图左右箭头按钮 */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.carousel-nav:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav.prev {
    left: 12px;
}

.carousel-nav.next {
    right: 12px;
}

.carousel-nav svg {
    width: 20px;
    height: 20px;
    color: #38bdf8;
    filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.5));
}

/* 轮播图指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.indicator:hover {
    background: rgba(56, 189, 248, 0.6);
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.indicator.active {
    width: 24px;
    background: linear-gradient(135deg, #38bdf8, #0d6efd);
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* ==========================================
   公告栏
   ========================================== */
.notice-bar {
    margin: 0 var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    overflow: hidden;
}

.notice-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.notice-icon svg {
    width: 100%;
    height: 100%;
}

.notice-content {
    flex: 1;
    overflow: hidden;
}

.notice-scroll {
    white-space: nowrap;
    animation: scrollText 20s linear infinite;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ==========================================
   快捷入口
   ========================================== */
.quick-actions {
    padding: var(--spacing-lg) var(--spacing-md);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.action-item:active {
    transform: scale(0.95);
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    transition: all 0.3s ease;
}

.action-icon:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(56, 189, 248, 0.3),
        inset 0 0 30px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.6);
}

.action-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.5));
}

/* 快捷入口图标渐变类 */
.action-icon.gradient-1 {
    background: linear-gradient(135deg, #38bdf8, #0d6efd);
}

.action-icon.gradient-2 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.action-icon.gradient-3 {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.action-icon.gradient-4 {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.action-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================
   热门赛事
   ========================================== */
.hot-events {
    padding: 0 var(--spacing-md) var(--spacing-lg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.view-all {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    column-gap: var(--spacing-md);
}

.event-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.event-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    margin-bottom: var(--spacing-xs);
    background: var(--bg-secondary);
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder svg {
    width: 40px;
    height: 40px;
}

.event-image-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
}

.event-status {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    display: inline-block;
    align-self: flex-start;
}

.event-status.recruiting {
    background: var(--success);
}

.event-status.upcoming {
    background: var(--warning);
}

.event-status.ongoing {
    background: var(--primary);
}

.event-status.ended {
    background: var(--text-muted);
}

.event-deadline {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 500;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.event-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: var(--spacing-sm);
}

.event-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.event-info-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.event-info-right {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.event-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    text-align: left;
    width: 100%;
}

.event-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: left;
    width: 100%;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.event-meta .participants,
.event-meta .deadline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participants {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.event-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: auto;
}

.event-actions .btn-outline,
.event-actions .btn-primary {
    width: 100%;
    padding: 8px;
    font-size: 0.8rem;
    text-align: center;
}

/* ==========================================
   按钮样式
   ========================================== */
.btn-primary {
    padding: 10px 20px;
    background: var(--primary-gradient);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 20%,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 30%
    );
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    animation: btnShine 1.5s infinite;
    opacity: 1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d6efd, #38bdf8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
    border-color: rgba(56, 189, 248, 0.6);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    opacity: 0.9;
}

.btn-primary.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-outline {
    padding: 6px 14px;
    background: transparent;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:active {
    background: rgba(56, 189, 248, 0.1);
}

/* ==========================================
   底部导航栏
   ========================================== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: calc(var(--tab-bar-height) + var(--safe-area-bottom));
    padding-bottom: var(--safe-area-bottom);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    z-index: 1000;
    box-shadow: 
        0 -4px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(56, 189, 248, 0.05);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s ease;
    min-height: 60px;
}

.tab-item-publish {
    position: relative;
}

.tab-item-publish .tab-icon {
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

.tab-item-publish .tab-icon svg {
    stroke-width: 2.5;
}

.tab-item.active {
    color: var(--primary);
}

.tab-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    position: relative;
}

.tab-item.active .tab-icon::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.tab-icon svg {
    width: 100%;
    height: 100%;
}

.tab-label {
    font-size: 0.7rem;
    font-weight: 500;
}

/* ==========================================
   赛事中心页面
   ========================================== */
.category-tabs {
    padding: var(--spacing-md);
    padding-top: 0;
}

.tabs-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: var(--spacing-xs);
}

.tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.status-filter {
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.filter-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(56, 189, 248, 0.08);
}

.filter-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
}

.filter-dot.all { background: var(--text-secondary); }
.filter-dot.recruiting { background: var(--success); }
.filter-dot.ongoing { background: var(--primary); }
.filter-dot.ended { background: var(--text-muted); }

.events-list {
    padding: 0 var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.event-card-full {
    padding: var(--spacing-md);
}

.event-card-full.ended {
    opacity: 0.7;
}

.event-card-full .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.event-category {
    padding: 4px 10px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.event-card-full .card-body {
    margin-bottom: var(--spacing-md);
}

.event-card-full .event-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.event-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.info-icon {
    font-size: 1rem;
}

.event-card-full .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.deadline-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.deadline-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.deadline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================
   精彩集锦页面
   ========================================== */
.video-grid {
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.video-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.video-card:active {
    transform: scale(0.98);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
}

/* 视频缩略图背景渐变类 */
.thumbnail-bg.gradient-1 {
    background: linear-gradient(135deg, #38bdf8, #0d6efd);
}

.thumbnail-bg.gradient-2 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.thumbnail-bg.gradient-3 {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.thumbnail-bg.gradient-4 {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.thumbnail-bg.gradient-5 {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.thumbnail-bg.gradient-6 {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

.thumbnail-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    width: 40px;
    height: 40px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    border-radius: var(--radius-sm);
}

.video-info {
    padding: var(--spacing-sm);
}

.video-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==========================================
   个人中心页面 - 现代化企业风格
   ========================================== */
.profile-page {
    background: var(--bg-primary);
}

.profile-header {
    position: relative;
    /* padding: 0 var(--spacing-md) var(--spacing-lg); */
}

.profile-bg {
    display: none; /* 隐藏背景 */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: var(--primary-gradient);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: 
        0 10px 30px rgba(56, 189, 248, 0.1),
        inset 0 0 60px rgba(56, 189, 248, 0.05);
}

.profile-info {
    position: relative;
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* 第一排：头像和昵称 */
.profile-top-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-md);
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(13, 110, 253, 0.1));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(15, 23, 42, 0.8);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(56, 189, 248, 0.3);
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(56, 189, 248, 0.4);
}

.avatar svg {
    width: 50px;
    height: 50px;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}

.edit-avatar {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    border: 3px solid rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.edit-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
}

.edit-avatar:active {
    transform: scale(0.95);
}

.edit-avatar svg {
    width: 16px;
    height: 16px;
    color: white;
}

.user-info {
    flex: 1;
    text-align: left;
}

.user-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.user-id-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-xs);
}

.user-id {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 4px 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.id-label {
    font-weight: 500;
    color: var(--text-muted);
}

.id-value {
    font-weight: 600;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

/* 统计数据：缩小并放在 user-id 右边 */
.profile-stats-row {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-sm);
    align-items: center;
    flex: 1;
    min-width: 0;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
    flex-shrink: 0;
}

.stat-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 0 15px rgba(56, 189, 248, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.stat-item:hover .stat-icon {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(56, 189, 248, 0.3),
        inset 0 0 20px rgba(56, 189, 248, 0.2);
}

.stat-icon svg {
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.5));
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding-top: 2px; /* 微调对齐，使 stat-value 顶部与 stat-icon 顶部对齐 */
}

.stat-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.3);
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* 第三排：登录提示和按钮 */
.profile-login-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
    gap: var(--spacing-md);
}

.login-tip {
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex: 1;
}

.btn-login-inline {
    width: auto;
    padding: 10px 20px;
    flex-shrink: 0;
}

/* 快速功能菜单 */
.quick-menu-section {
    padding: 0 var(--spacing-md) var(--spacing-lg);
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.quick-menu-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.1), transparent);
    transition: all 0.5s ease;
}

.quick-menu-item:hover::before {
    left: 100%;
}

.quick-menu-item:active {
    transform: scale(0.98);
}

.menu-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(56, 189, 248, 0.1);
    transition: all 0.3s ease;
}

.quick-menu-item:hover .menu-icon-wrapper {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(56, 189, 248, 0.3),
        inset 0 0 30px rgba(56, 189, 248, 0.2);
}

.menu-icon-wrapper svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.5));
}

.menu-content-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
    min-width: 0;
}

.menu-text {
    flex: 1;
    min-width: 0;
}

.menu-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.menu-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.menu-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 2px 8px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
    z-index: 1;
}

.menu-section {
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.menu-list {
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.menu-item:hover::before,
.menu-item:active::before {
    transform: scaleY(1);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: rgba(56, 189, 248, 0.05);
    padding-left: calc(var(--spacing-md) + 3px);
}

.menu-item:active {
    background: rgba(56, 189, 248, 0.1);
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 0 15px rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.3s ease;
}

.menu-icon.menu-icon-sm {
    width: 36px;
    height: 36px;
}

.menu-icon:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(56, 189, 248, 0.3),
        inset 0 0 20px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.5);
}

.menu-icon svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.5));
}

.menu-icon.menu-icon-sm svg {
    width: 18px;
    height: 18px;
}

/* 菜单图标渐变类 */
.menu-icon.gradient-1 {
    background: linear-gradient(135deg, #38bdf8, #0d6efd);
}

.menu-icon.gradient-2 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.menu-icon.gradient-3 {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.menu-icon.gradient-4 {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.menu-icon.gradient-5 {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.menu-icon.gradient-6 {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

.menu-icon.gradient-7 {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

.menu-label {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.menu-badge {
    padding: 2px 8px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.menu-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.menu-item:hover .menu-arrow,
.quick-menu-item:hover .menu-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* ==========================================
   登录页面样式
   ========================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: var(--spacing-xxl);
    animation: fadeInUp 0.5s ease;
}

.login-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-sm) 0;
}

.login-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.login-form .form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.login-form .form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-form .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.login-form .form-group input::placeholder {
    color: var(--text-muted);
}

.error-message {
    padding: 12px 16px;
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid rgba(245, 101, 101, 0.3);
    border-radius: var(--radius-md);
    color: var(--danger);
    font-size: 0.9rem;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

.btn-login-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 
        0 4px 20px rgba(56, 189, 248, 0.3),
        inset 0 0 30px rgba(56, 189, 248, 0.1);
    transition: all 0.3s ease;
    margin-top: var(--spacing-md);
}

.btn-login-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #0d6efd, #38bdf8);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(56, 189, 248, 0.4),
        inset 0 0 40px rgba(56, 189, 248, 0.2);
}

.btn-login-submit:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.btn-login-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(56, 189, 248, 0.1);
    text-align: center;
}

.login-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 var(--spacing-sm) 0;
}

.test-accounts {
    list-style: none;
    padding: 0;
    margin: var(--spacing-sm) 0 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.test-accounts li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 6px 12px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
}

/* ==========================================
   后台管理页面样式
   ========================================== */
.admin-page {
    padding: var(--spacing-md);
}

.admin-section {
    margin-top: var(--spacing-lg);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.admin-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.admin-table-container {
    overflow-x: auto;
    padding: var(--spacing-md);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead {
    background: rgba(30, 41, 59, 0.5);
}

.admin-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid rgba(56, 189, 248, 0.2);
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    color: var(--text-secondary);
}

.admin-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.3);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
}

.badge-primary {
    background: rgba(56, 189, 248, 0.2);
    color: var(--primary);
}

.badge-success {
    background: rgba(72, 187, 120, 0.2);
    color: var(--success);
}

.badge-danger {
    background: rgba(245, 101, 101, 0.2);
    color: var(--danger);
}

.btn-icon {
    background: transparent;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-sm);
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-xs);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.btn-edit:hover {
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
}

.btn-edit:hover svg {
    color: var(--primary);
}

.btn-delete:hover {
    border-color: var(--danger);
    background: rgba(245, 101, 101, 0.1);
}

.btn-delete:hover svg {
    color: var(--danger);
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--spacing-md);
}

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--spacing-xl);
    animation: fadeInUp 0.3s ease;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
    border-radius: var(--radius-full);
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.5);
    border-radius: var(--radius-full);
    transition: background 0.2s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.7);
}

.modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.5) rgba(30, 41, 59, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.modal-form .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.modal-form .form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.modal-form .form-group input,
.modal-form .form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modal-form .form-group input:focus,
.modal-form .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -4px;
}

.modal-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    justify-content: flex-end;
}

.btn-secondary {
    padding: 12px 24px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .admin-table-container {
        overflow-x: scroll;
    }
    
    .admin-table {
        min-width: 800px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-header h2 {
        margin-bottom: var(--spacing-sm);
    }
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 
        0 4px 20px rgba(56, 189, 248, 0.3),
        inset 0 0 30px rgba(56, 189, 248, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 20%,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 30%
    );
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.btn-login:hover::before {
    animation: btnShine 1.5s infinite;
    opacity: 1;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0d6efd, #38bdf8);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(56, 189, 248, 0.4),
        inset 0 0 40px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.6);
}

.btn-login:active {
    transform: translateY(0) scale(0.98);
    opacity: 0.95;
}

.btn-login svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

/* ==========================================
   安全区域底部
   ========================================== */
.safe-area-bottom {
    height: 20px;
}

/* ==========================================
   动画效果
   ========================================== */
@keyframes btnShine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card,
.event-card-full,
.video-card {
    animation: fadeInUp 0.4s ease backwards;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }

.event-card-full:nth-child(1) { animation-delay: 0.1s; }
.event-card-full:nth-child(2) { animation-delay: 0.15s; }
.event-card-full:nth-child(3) { animation-delay: 0.2s; }
.event-card-full:nth-child(4) { animation-delay: 0.25s; }
.event-card-full:nth-child(5) { animation-delay: 0.3s; }

.video-card:nth-child(1) { animation-delay: 0.05s; }
.video-card:nth-child(2) { animation-delay: 0.1s; }
.video-card:nth-child(3) { animation-delay: 0.15s; }
.video-card:nth-child(4) { animation-delay: 0.2s; }
.video-card:nth-child(5) { animation-delay: 0.25s; }
.video-card:nth-child(6) { animation-delay: 0.3s; }

/* ==========================================
   响应式适配
   ========================================== */
@media (max-width: 375px) {
    .action-grid {
        gap: var(--spacing-sm);
    }
    
    .action-icon {
        width: 48px;
        height: 48px;
    }
    
    .action-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .event-info-grid {
        grid-template-columns: 1fr;
    }
    
    .event-list {
        grid-template-columns: 1fr;
    }
    
    .tab-bar {
        width: 100%;
        max-width: 100%;
    }
    
    .tab-label {
        font-size: 0.6rem;
    }
    
    .tab-icon {
        width: 22px;
        height: 22px;
    }
    
    .tab-item {
        padding: 6px 2px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    /* 个人中心响应式 */
    .profile-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .avatar-wrapper {
        align-self: center;
    }
    
    .user-info {
        padding-top: 0;
        text-align: center;
        width: 100%;
    }
    
    .user-id-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .profile-stats-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
    
    .profile-login-row {
        padding-left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }
    
    .btn-login-inline {
        width: 100%;
    }
    
    /* 比赛详情页响应式 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-title-large {
        font-size: 1.2rem;
    }
    
    .cover-content {
        padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    }
    
    /* AI识别页响应式 */
    .type-grid {
        grid-template-columns: 1fr;
    }
    
    .result-content {
        grid-template-columns: 1fr;
    }
    
    .ranking-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ranking-filter {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* ==========================================
   AI智能识别页面样式
   ========================================== */
.ai-recognition-page {
    padding: var(--spacing-md);
}

.ai-recognition-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.recognition-type-selector {
    padding: var(--spacing-lg);
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    background: rgba(30, 41, 59, 0.4);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.type-card:hover {
    background: rgba(30, 41, 59, 0.6);
    transform: translateY(-2px);
}

.type-card.active {
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.type-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.type-icon svg {
    width: 32px;
    height: 32px;
}

.type-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.type-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.upload-section {
    padding: var(--spacing-lg);
}

.upload-area {
    position: relative;
    width: 100%;
    min-height: 200px;
    border: 2px dashed rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md);
    background: rgba(30, 41, 59, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.5);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
}

.upload-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.upload-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.upload-preview {
    position: relative;
    width: 100%;
    height: 200px;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.remove-upload {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-upload:hover {
    background: rgba(245, 101, 101, 0.9);
    transform: scale(1.1);
}

.remove-upload svg {
    width: 18px;
    height: 18px;
}

.btn-recognize {
    width: 100%;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
}

.btn-recognize:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-recognize svg {
    width: 20px;
    height: 20px;
}

.recognition-result {
    padding: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.result-status {
    padding: 4px 12px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.result-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.result-item {
    background: rgba(30, 41, 59, 0.4);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.result-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}

.result-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.result-unit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 4px;
}

.ranking-section {
    margin-top: var(--spacing-lg);
}

.ranking-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.ranking-filter {
    display: flex;
    gap: var(--spacing-xs);
}

.ranking-filter .filter-btn {
    padding: 6px 12px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ranking-filter .filter-btn.active,
.ranking-filter .filter-btn:hover {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: white;
}

.ranking-list {
    padding: var(--spacing-md);
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background: rgba(30, 41, 59, 0.3);
    border-radius: var(--radius-md);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.ranking-item:hover {
    background: rgba(30, 41, 59, 0.5);
    transform: translateX(4px);
}

.ranking-item.top-1 {
    border-left-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.ranking-item.top-2 {
    border-left-color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
}

.ranking-item.top-3 {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.ranking-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
}

.ranking-item.top-1 .ranking-number {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.ranking-item.top-2 .ranking-number {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: white;
}

.ranking-item.top-3 .ranking-number {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.ranking-item:not(.top-1):not(.top-2):not(.top-3) .ranking-number {
    background: rgba(56, 189, 248, 0.2);
    color: var(--primary);
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.ranking-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}

.ranking-stats {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ranking-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-left: auto;
    flex-shrink: 0;
}

/* 排行榜视频缩略图 */
.ranking-thumbnail {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
    cursor: pointer;
    background: rgba(30, 41, 59, 0.5);
}

.ranking-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-thumbnail .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ranking-thumbnail:hover .play-overlay {
    opacity: 1;
}

.ranking-thumbnail .play-overlay svg {
    width: 32px;
    height: 32px;
}

/* 排行榜操作按钮 */
.ranking-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-left: auto;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.like-btn.liked {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.like-btn.liked svg {
    fill: #ef4444;
}

/* ==========================================
   发布比赛页面样式（保留兼容）
   ========================================== */
.publish-page {
    padding: var(--spacing-md);
}

.publish-form-section {
    margin-top: var(--spacing-md);
}

.form-container {
    padding: var(--spacing-lg);
    background: var(--bg-glass);
}

.publish-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-row {
    display: flex;
    gap: var(--spacing-md);
}

.form-col {
    flex: 1;
}

.form-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.label-text {
    color: var(--text-primary);
}

.label-required {
    color: var(--danger);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px var(--spacing-md);
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 
        0 0 0 3px rgba(56, 189, 248, 0.1),
        0 0 20px rgba(56, 189, 248, 0.2);
    background: rgba(30, 41, 59, 0.8);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:invalid {
    border-color: var(--danger);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2338bdf8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.btn-submit,
.btn-reset {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 14px var(--spacing-lg);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit {
    background: var(--primary-gradient);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: white;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit svg {
    width: 18px;
    height: 18px;
}

.btn-reset {
    background: transparent;
    border: 1.5px solid var(--text-muted);
    color: var(--text-secondary);
}

.btn-reset:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-reset svg {
    width: 18px;
    height: 18px;
}

/* ==========================================
   比赛详情页样式
   ========================================== */
.event-detail-page {
    padding: 0;
}

.back-btn {
    margin-right: var(--spacing-sm);
}

.event-cover {
    position: relative;
    width: 100%;
    height: 280px;
    margin-bottom: var(--spacing-md);
}

.cover-image {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cover-image.gradient-1 {
    background-image: url('/static/images/广场舞.jpg');
}

.cover-image.gradient-2 {
    background-image: url('/static/images/健身操.jpg');
}

.cover-image.gradient-3 {
    background-image: url('/static/images/跳绳.jpg');
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.cover-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
    z-index: 2;
    color: white;
}

.event-status-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(56, 189, 248, 0.9);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.event-title-large {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.event-meta-inline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    opacity: 0.95;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.event-stats {
    margin: 0 var(--spacing-md) var(--spacing-md);
    padding: var(--spacing-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.stat-box {
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.event-quick-info {
    margin: 0 var(--spacing-md) var(--spacing-md);
    padding: var(--spacing-lg);
}

.info-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}

.info-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.event-details-section,
.event-rules-section,
.event-awards-section,
.event-registration-section {
    margin: 0 var(--spacing-md) var(--spacing-md);
}

.section-header {
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-content,
.rules-content,
.awards-content,
.registration-content {
    padding: var(--spacing-lg);
}

.detail-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.detail-text:last-child {
    margin-bottom: 0;
}

.rule-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    align-items: flex-start;
}

.rule-item:last-child {
    margin-bottom: 0;
}

.rule-number {
    width: 28px;
    height: 28px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.rule-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.rule-text strong {
    color: var(--text-primary);
}

.award-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: rgba(56, 189, 248, 0.05);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.award-item:last-child {
    margin-bottom: 0;
}

.award-item.gold {
    border-left-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.award-item.silver {
    border-left-color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
}

.award-item.bronze {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.award-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.award-info {
    flex: 1;
}

.award-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.award-prize {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.reg-item {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.reg-item:last-child {
    border-bottom: none;
}

.reg-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.reg-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.event-action-section {
    margin: var(--spacing-lg) var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.btn-register {
    width: 100%;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
}

.btn-register svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   步数同步和统计样式
   ========================================== */
.step-sync-section {
    margin: 0 var(--spacing-md) var(--spacing-md);
}

.sync-button-wrapper {
    display: flex;
    justify-content: center;
}

.btn-sync-steps {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-sync-steps:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sync-steps:active {
    transform: translateY(0);
}

.sync-icon {
    width: 20px;
    height: 20px;
}

.step-stats-section {
    margin: 0 var(--spacing-md) var(--spacing-md);
}

.step-stats-content {
    padding: var(--spacing-lg);
}

.step-main-stat {
    text-align: center;
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.step-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.step-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.step-stat-item {
    padding: var(--spacing-md);
    background: rgba(56, 189, 248, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(56, 189, 248, 0.1);
}

.step-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}

.step-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.step-stat-value.success {
    color: var(--success);
}

/* ==========================================
   虚拟路线进度样式
   ========================================== */
.route-progress-section {
    margin: 0 var(--spacing-md) var(--spacing-md);
}

.route-progress-content {
    padding: var(--spacing-lg);
}

.route-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.route-info-item:last-child {
    border-bottom: none;
}

.route-info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.route-info-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.route-progress-bar-wrapper {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
    background: rgba(56, 189, 248, 0.05);
    border-radius: var(--radius-md);
}

.route-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.route-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.route-progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* ==========================================
   团队信息样式
   ========================================== */
.team-info-section {
    margin: 0 var(--spacing-md) var(--spacing-md);
}

.team-info-content {
    padding: var(--spacing-lg);
}

.team-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.team-info-item:last-child {
    border-bottom: none;
}

.team-info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.team-info-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================
   个人排行榜样式
   ========================================== */
.ranking-section {
    margin: 0 var(--spacing-md) var(--spacing-md);
}

.ranking-content {
    padding: var(--spacing-lg);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(56, 189, 248, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(56, 189, 248, 0.1);
    transition: all 0.2s ease;
}

.ranking-item:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: translateX(4px);
}

.ranking-item.current {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.ranking-item.top {
    background: rgba(56, 189, 248, 0.1);
}

.ranking-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}

.ranking-number.gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.ranking-number.silver {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
}

.ranking-number.bronze {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.ranking-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.ranking-steps {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ranking-badge {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --text-muted: #64748b;
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-glass: rgba(30, 41, 59, 0.8);
        --bg-glass-dark: rgba(30, 41, 59, 0.95);
        --border-color: rgba(255, 255, 255, 0.1);
    }
    
    body::before {
        opacity: 0.15;
    }
    
    .glass-card {
        border-color: rgba(255, 255, 255, 0.1);
        background-color: rgba(30, 41, 59, 0.1);
    }
}

