/* ==================== FitChallenge 统一UI设计系统 ==================== */
/* 整合版本 - 包含现有功能样式 + 新设计系统 */

/* ==================== 全局移动端布局规则 ==================== */
/* 确保所有页面容器、卡片、表单元素都不会超出视口 */

/* 应用根容器 - PC端固定430px宽度居中 */
#app {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    position: relative;
    box-sizing: border-box;
    /* PC端增加阴影效果，模拟手机屏幕 */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* 确保body也居中 */
body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    overflow-x: hidden;
    position: relative; /* 为fixed定位的子元素提供参照 */
}

/* 页面级容器 */
.page-wrapper,
.page-content,
.page-container,
.home-page,
.wallet-page,
.profile-page,
.history-page,
.checkin-page,
.pk-challenge-page,
.leaderboard-page,
.news-page,
.achievements-page,
.team-page,
.notifications-page {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 卡片和容器元素 */
.card,
.enhanced-card,
.stat-card,
.info-card,
.challenge-card,
.history-card,
.pk-card,
.achievement-card,
.notification-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 表格和列表容器 */
.table-responsive,
.list-container,
.data-table,
.history-list,
.notification-list {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

/* 表单元素 */
.form-group,
.input-group,
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Grid 布局容器 */
.stats-grid,
.actions-grid,
.features-grid,
.home-stats-grid,
.home-quick-actions,
.home-features-grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Flex 布局容器 */
.flex-container,
.button-group,
.action-buttons {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ==================== 全局移动端布局规则结束 ==================== */

/* ==================== CSS变量系统 (Design Tokens) ==================== */
:root {
    /* 兼容原有变量 */
    --primary: #667eea;
    --secondary: #34C759;
    --success: #84fab0;
    --danger: #ff8a80;
    --warning: #ffecd2;
    --info: #8fd3f4;
    --light: #F2F2F7;
    --dark: #1C1C1E;
    --gray: #64748b;
    --ios-background: #fff;
    --ios-header: #f8fafc;
    --ios-border: #e2e8f0;
    
    /* 新设计系统变量 */
    /* 主要渐变色系 */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-gradient-hover: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    --primary-gradient-active: linear-gradient(135deg, #4e5fc6 0%, #5e377e 100%);
    
    /* 辅助渐变色系 */
    --secondary-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --accent-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --success-gradient: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --warning-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --danger-gradient: linear-gradient(135deg, #ff8a80 0%, #ea4c46 100%);
    
    /* 单色系统 */
    --primary-500: #667eea;
    --primary-600: #5a6fd8;
    --primary-700: #4e5fc6;
    --primary-800: #424fb4;
    
    /* 中性色系 */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* 阴影系统 */
    --shadow-sm: 0 2px 8px rgba(102, 126, 234, 0.08);
    --shadow-md: 0 4px 12px rgba(102, 126, 234, 0.15);
    --shadow-lg: 0 8px 25px rgba(102, 126, 234, 0.25);
    --shadow-xl: 0 12px 40px rgba(102, 126, 234, 0.35);
    --shadow-2xl: 0 20px 60px rgba(102, 126, 234, 0.45);
    --shadow-inner: inset 0 2px 4px rgba(255, 255, 255, 0.1);
    
    /* 边框半径 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 50%;
    
    /* 间距系统 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    
    /* 字体系统 */
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-size-4xl: 36px;
    
    /* 动画时长 */
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
    
    /* 动画曲线 */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==================== 主题系统 ==================== */
.theme-light {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
}

.theme-modern,
body {
    --bg-primary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --border-color: #cbd5e1;
    --card-bg: rgba(255, 255, 255, 0.8);
}

.theme-dark {
    --bg-primary: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #475569;
    --card-bg: rgba(51, 65, 85, 0.8);
}

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

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--ios-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all var(--duration-normal) var(--ease-out);
    min-height: 100vh;
}

/* ==================== 容器和布局 ==================== */
.container {
    width: 100%;
    padding: 0 var(--space-4);
    margin: 0 auto;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: var(--space-4);
}

/* ==================== 按钮组件系统 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    user-select: none;
    min-height: 44px;
}

/* 按钮尺寸 */
.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    min-height: 36px;
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    min-height: 52px;
}

.btn-full {
    width: 100%;
}

/* 主要按钮 */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    background: var(--primary-gradient-active);
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* 次要按钮 */
.btn-secondary {
    background: var(--secondary-gradient);
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 轮廓按钮 */
.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-500);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 功能色按钮 */
.btn-success {
    background: var(--success-gradient);
    color: var(--gray-700);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background: var(--warning-gradient);
    color: var(--gray-700);
    box-shadow: var(--shadow-md);
}

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

.btn-success:hover,
.btn-warning:hover,
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== 卡片组件系统 ==================== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    backdrop-filter: blur(20px);
}

.card-basic {
    box-shadow: var(--shadow-sm);
}

.card-basic:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-elevated {
    box-shadow: var(--shadow-md);
}

.card-elevated:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.card-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0;
}

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

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

/* ==================== 原有应用样式兼容 ==================== */

/* 应用容器 */
.app {
    margin: 0 auto;
    background: var(--ios-background);
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    background: var(--ios-header);
    border-bottom: 1px solid var(--ios-border);
    padding: var(--space-4);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.header h1 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    padding: var(--space-4);
    padding-bottom: 80px; /* 为底部导航留空间 */
}

/* 底部导航栏 - 适配所有移动设备 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: min(430px, 100vw); /* 使用min函数确保不超过视口或430px */
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-sizing: border-box;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-3);
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: var(--font-size-xs);
    font-weight: 500;
    transition: all var(--duration-fast) var(--ease-out);
    border-radius: var(--radius-md);
    margin: var(--space-2);
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-600);
    background: rgba(102, 126, 234, 0.1);
}

.nav-item i {
    font-size: var(--font-size-lg);
}

/* 表单样式 */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all var(--duration-normal) var(--ease-out);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: var(--white);
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-2);
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width var(--duration-slow) var(--ease-out);
}

/* 统计卡片 */
.stat-card {
    background: var(--card-bg);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    transition: all var(--duration-normal) var(--ease-out);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-2xl);
    box-shadow: var(--shadow-md);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

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

/* 成就卡片 */
.achievement-item {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-out);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    margin-bottom: var(--space-4);
}

.achievement-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.achievement-item.unlocked {
    border-color: var(--success);
}

.achievement-badge {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    color: white;
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-md);
}

/* 挑战卡片 */
.challenge-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-out);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    margin-bottom: var(--space-4);
}

.challenge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* 钱包卡片 */
.wallet-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    color: white;
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

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

/* 移动端统一样式 - 容器和卡片 */
.container {
    padding: 0 var(--space-3);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card-header,
.card-body,
.card-footer {
    padding: var(--space-4);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-card {
    flex-direction: column;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.btn {
    font-size: var(--font-size-sm);
    padding: var(--space-3) var(--space-4);
    box-sizing: border-box;
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideInUp 0.6s ease-out;
}

/* 加载状态 */
.btn-loading {
    color: transparent;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    position: absolute;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== 新增页面特定样式 ==================== */

/* 首页特定样式 */
.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-6);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fitness-features-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.user-welcome-section {
    text-align: center;
    margin-top: var(--space-4);
}

.user-greeting {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-4);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

/* 健身欢迎卡片 */
.fitness-welcome-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    color: white;
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.fitness-welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

.fitness-welcome-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.fitness-welcome-subtitle {
    font-size: var(--font-size-base);
    opacity: 0.9;
    margin-bottom: var(--space-4);
}

/* ==================== 健身风格登录/注册页面（已废弃） ==================== */
/* DEPRECATED: 2025-09-30 - Replaced by auth.css */

/* 健身风格登录容器（已废弃） */
/* DEPRECATED: Replaced by auth.css */
.fitness-login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #a8e6cf 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    position: relative;
    overflow: hidden;
}

.fitness-login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.03)"/><circle cx="40" cy="80" r="2.5" fill="rgba(255,255,255,0.04)"/></svg>') repeat;
    animation: float 30s ease-in-out infinite;
}

/* 健身风格登录卡片 - 移动端优化 */
.fitness-login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    width: 100%;
    max-width: 100%; /* 改为100%以适配小屏幕 */
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* 健身风格标题区域 */
.fitness-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.fitness-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

.fitness-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    font-weight: 500;
}

/* 健身风格人物插图 */
.fitness-illustration {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-6);
    background: var(--primary-gradient);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.fitness-illustration::before {
    content: '🏃';
    font-size: 48px;
    animation: bounce 2s ease-in-out infinite;
}

.fitness-illustration::after {
    content: '';
    position: absolute;
    inset: -8px;
    background: var(--primary-gradient);
    border-radius: var(--radius-2xl);
    opacity: 0.3;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

/* 健身风格表单 */
.fitness-form {
    margin-bottom: var(--space-6);
}

.fitness-form-group {
    margin-bottom: var(--space-5);
    position: relative;
}

.fitness-input {
    width: 100%;
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
    border: 2px solid transparent;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    transition: all var(--duration-normal) var(--ease-out);
    outline: none;
}

.fitness-input:focus {
    background: white;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.fitness-input-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: var(--font-size-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.fitness-input:focus + .fitness-input-icon {
    color: var(--primary-600);
    transform: translateY(-50%) scale(1.1);
}

/* 健身风格按钮 */
.fitness-btn {
    width: 100%;
    padding: var(--space-4);
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.fitness-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.fitness-btn:active {
    transform: translateY(-1px);
}

.fitness-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--duration-slow) var(--ease-out);
}

.fitness-btn:hover::before {
    left: 100%;
}

/* 认证链接 */
.auth-links {
    text-align: center;
    margin-top: var(--space-6);
}

.auth-links p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.link-primary {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--duration-fast) var(--ease-out);
}

.link-primary:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* 健身风格动画 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.1;
    }
}

/* ==================== 挑战页面样式 ==================== */

/* 当前挑战卡片 - 增强版VIP挑战参与状态 */
.current-challenge-card {
    background: linear-gradient(135deg, #4ade80 0%, #22d3ee 50%, #3b82f6 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    color: white;
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.3), 0 8px 25px rgba(74, 222, 128, 0.2);
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.current-challenge-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 25px 50px rgba(34, 211, 238, 0.4), 0 12px 30px rgba(74, 222, 128, 0.3);
    background: linear-gradient(135deg, #22d3ee 0%, #4ade80 50%, #3b82f6 100%);
}

/* 背景装饰元素 */
.current-challenge-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: var(--radius-full);
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.current-challenge-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.03) 100%);
    border-radius: var(--radius-full);
    animation: float 10s ease-in-out infinite reverse;
}

/* 挑战头部样式 - 增强版 */
.challenge-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 2;
    justify-content: space-between;
}

.challenge-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(255,215,0,0.9) 0%, rgba(255,193,7,0.8) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #8b5a00;
    box-shadow: 0 8px 20px rgba(255,215,0,0.3);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all var(--duration-normal) var(--ease-out);
}

.challenge-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(255,215,0,0.4);
}

.challenge-title {
    flex: 1;
}

.challenge-title h2 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0 0 var(--space-1) 0;
    color: white;
}

.challenge-title p {
    font-size: var(--font-size-sm);
    margin: 0;
    color: rgba(255,255,255,0.8);
}

/* 当前等级信息 */
.challenge-level-info {
    text-align: right;
}

.current-level-badge {
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.15) 100%);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    margin-bottom: var(--space-1);
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all var(--duration-normal) var(--ease-out);
}

.current-level-badge:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.25) 100%);
}

.current-level-label {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.8);
}

/* 挑战统计网格 - 优化版 */
.challenge-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 2;
}

/* 挑战奖励显示区域 */
.challenge-rewards-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 2;
}

.challenge-reward-item {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.challenge-reward-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.challenge-reward-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.challenge-reward-item:hover::before {
    left: 100%;
}

.challenge-reward-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.challenge-reward-icon i {
    font-size: 20px;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(255,215,0,0.3);
    transition: all var(--duration-fast) var(--ease-out);
}

.challenge-reward-item:hover .challenge-reward-icon i {
    transform: scale(1.2) rotateY(180deg);
    text-shadow: 0 4px 8px rgba(255,215,0,0.5);
}

.challenge-reward-value {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-1);
}

.challenge-reward-currency {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-1);
}

.challenge-reward-label {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.7);
}

/* VIP等级卡片 */
.vip-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

/* ===================挑战进度相关样式==================== */

/* 挑战进度信息 */
.challenge-progress-info {
    background: rgba(255,255,255,0.2);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 2;
}

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

.challenge-progress-label {
    color: rgba(255,255,255,0.9);
    font-size: var(--font-size-sm);
}

.challenge-progress-value {
    color: white;
    font-weight: 700;
    font-size: var(--font-size-sm);
}

/* 增强进度条 */
.enhanced-progress-bar {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    height: 8px;
    overflow: hidden;
    margin-bottom: var(--space-3);
    position: relative;
}

.enhanced-progress-fill {
    background: rgba(255,255,255,0.8);
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    position: relative;
}

.enhanced-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.challenge-progress-percentage {
    color: rgba(255,255,255,0.8);
    font-size: var(--font-size-xs);
    text-align: center;
}

/* 挑战详情区域 */
.challenge-details-grid {
    margin-top: var(--space-6);
    position: relative;
    z-index: 2;
}

.challenge-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.challenge-detail-item {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
}

.challenge-detail-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.challenge-detail-value {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #FFD700;
    margin-bottom: var(--space-1);
}

.challenge-detail-label {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-1);
}

.challenge-detail-extra {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: white;
    margin-top: var(--space-1);
}

/* 挑战进度展示卡片 */
.challenge-progress-display {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-6);
    transition: all var(--duration-normal) var(--ease-out);
}

.challenge-progress-display:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* 挑战时间轴样式 */
.challenge-timeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.challenge-timeline-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-2);
    transition: all var(--duration-fast) var(--ease-out);
}

.challenge-timeline-day:hover {
    transform: translateY(-2px);
}

.challenge-day-indicator {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-1);
    transition: all var(--duration-fast) var(--ease-out);
    font-size: 12px;
    font-weight: 600;
}

.challenge-day-indicator.completed {
    background: var(--success);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.challenge-day-indicator.active {
    background: var(--primary-gradient);
    color: white;
    animation: pulse 2s infinite;
}

.challenge-day-indicator.pending {
    background: var(--gray-200);
    color: var(--gray-500);
}

.challenge-day-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-1);
}

.challenge-day-status {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-align: center;
}

.challenge-day-status.completed {
    color: var(--success);
}

.challenge-day-status.active {
    color: var(--primary-500);
}

.challenge-day-status.pending {
    color: var(--gray-400);
}

.vip-level-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    position: relative;
    transition: all var(--duration-normal) var(--ease-out);
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
}

.vip-level-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.vip-level-card.bronze {
    border-color: #cd7f32;
}

.vip-level-card.silver {
    border-color: #c0c0c0;
}

.vip-level-card.gold {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff8dc 0%, #fffacd 100%);
}

.vip-level-card.popular {
    position: relative;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.vip-level-header {
    margin-bottom: var(--space-6);
}

.vip-level-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-3xl);
    box-shadow: var(--shadow-lg);
}

.vip-level-card.bronze .vip-level-icon {
    background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
}

.vip-level-card.silver .vip-level-icon {
    background: linear-gradient(135deg, #c0c0c0 0%, #a9a9a9 100%);
}

.vip-level-card.gold .vip-level-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b7500;
}

.vip-level-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.vip-level-price {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-600);
}

.vip-level-features {
    margin-bottom: var(--space-8);
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--success);
    font-size: var(--font-size-base);
}

.vip-level-btn {
    width: 100%;
    padding: var(--space-4);
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}

.vip-level-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 页面标题样式 */
.page-title-section {
    text-align: center;
    margin-bottom: var(--space-8);
}

.page-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.page-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin: var(--space-2) 0;
}

.page-description {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    margin: 0;
}

/* ==================== VIP挑战参与状态增强样式 ==================== */

/* 进度条增强样式 */
.challenge-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    margin: var(--space-3) 0;
}

.challenge-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FF6B6B 100%);
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
    position: relative;
    overflow: hidden;
}

.challenge-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 倒计时显示增强 */
.challenge-countdown {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    margin: var(--space-4) 0;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

.countdown-unit {
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    min-width: 50px;
    text-align: center;
}

.countdown-number {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-1);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.countdown-label {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 空状态卡片增强 */
.empty-challenge-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    margin-bottom: var(--space-6);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.empty-challenge-card:hover {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateY(-2px);
}

.empty-challenge-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-size: var(--font-size-2xl);
    color: var(--gray-500);
    transition: all var(--duration-normal) var(--ease-out);
}

.empty-challenge-card:hover .empty-challenge-icon {
    background: linear-gradient(135deg, var(--primary-200) 0%, var(--primary-300) 100%);
    color: var(--primary-600);
    transform: scale(1.1) rotate(5deg);
}

.empty-challenge-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.empty-challenge-description {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-6);
}

.start-challenge-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-md);
}

.start-challenge-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-gradient-hover);
}

.leaderboard-container .tab-switcher {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: var(--space-2);
    width: 100%;
}

/* 奖励查询按钮样式 - 与tab按钮统一但有区分 */
.tab-btn.reward-query-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    position: relative;
    overflow: hidden;
}

.tab-btn.reward-query-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity var(--duration-fast) ease;
}

.tab-btn.reward-query-btn:hover::before {
    opacity: 1;
}

.tab-btn.reward-query-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.leaderboard-table td,
.leaderboard-table th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    vertical-align: middle;
}

.leaderboard-table tbody tr {
    transition: background-color var(--duration-fast) ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* 排行榜容器 - 移动端统一样式 */
.leaderboard-container .tab-switcher {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: var(--space-2);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.leaderboard-container .tab-switcher .tab-btn {
    font-size: var(--font-size-sm);
    padding: var(--space-2) var(--space-3);
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}

.tab-btn.reward-query-btn {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 排行榜表格 - 移动端卡片布局 */
.leaderboard-table thead {
    display: none;
}

.leaderboard-table,
.leaderboard-table tbody,
.leaderboard-table tr,
.leaderboard-table td {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.leaderboard-table tbody tr {
    margin-bottom: var(--space-3);
    background: var(--card-bg, #fff);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-3) var(--space-4);
    box-sizing: border-box;
}

.leaderboard-table td {
    position: relative;
    padding: var(--space-2) 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.leaderboard-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    flex: 0 0 auto;
}

.leaderboard-table td[data-label="排名"] {
    font-weight: 700;
}

.leaderboard-table td[data-label="步数"],
.leaderboard-table td[data-label="奖励"] {
    font-weight: 600;
    color: var(--text-primary);
}

/* 我的排名卡片 - 移动端统一布局 */
.my-ranking-card-body {
    width: 100%;
    max-width: 100%;
    background: var(--card-bg, #fff);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4);
    box-sizing: border-box;
}

.my-ranking-card-body .ranking-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    max-width: 100%;
    font-size: var(--font-size-base);
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.my-ranking-card-body .ranking-field:last-child {
    border-bottom: none;
}

.my-ranking-card-body .field-label {
    color: var(--text-secondary);
    font-weight: 500;
    flex-shrink: 0;
}

.my-ranking-card-body .field-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.reward-info-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--card-bg, #fff);
    color: var(--primary-color, #4a67ff);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

.reward-info-btn i {
    font-size: 0.9em;
}

.reward-info-btn:hover,
.reward-info-btn:focus {
    background: var(--primary-gradient, linear-gradient(135deg, #4a67ff 0%, #6f8bff 100%));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.reward-info-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    animation: fadeIn var(--duration-fast) ease;
}

.reward-info-modal.fade-out {
    animation: fadeOut var(--duration-fast) ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.reward-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.reward-modal-card {
    position: relative;
    background: var(--card-bg, #fff);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: min(520px, 90%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
    animation: slideUp var(--duration-fast) ease;
}

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

.reward-modal-header {
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.reward-modal-header h3 {
    margin: 0;
    font-size: var(--font-size-lg);
}

.modal-close {
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--duration-fast) ease;
}

.modal-close:hover,
.modal-close:focus {
    background: rgba(0, 0, 0, 0.1);
}

.reward-modal-body {
    padding: var(--space-4) var(--space-5);
    overflow-y: auto;
    display: grid;
    gap: var(--space-4);
}

.reward-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.reward-section header {
    font-size: var(--font-size-md);
    font-weight: 600;
}

.reward-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-2);
}

.reward-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.03);
    font-size: var(--font-size-base);
}

.reward-rank {
    font-weight: 600;
    color: var(--text-primary);
}

.reward-amount {
    color: var(--primary-color, #4a67ff);
    font-weight: 600;
}

.reward-modal-footer {
    padding: var(--space-3) var(--space-5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: var(--font-size-sm);
}

.modal-open {
    overflow: hidden;
}

/* 奖励信息按钮和模态框 - 移动端统一样式 */
.reward-info-btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
    box-sizing: border-box;
}

.reward-modal-card {
    width: 92%;
    max-width: 92%;
    border-radius: var(--radius-md);
    box-sizing: border-box;
}

.reward-modal-body {
    padding: var(--space-3);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.reward-list li {
    padding: var(--space-2);
    font-size: var(--font-size-sm);
    box-sizing: border-box;
}

/* ==================== 展开式奖励信息区域 ==================== */
.reward-info-section {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--gray-50);
    animation: slideDown var(--duration-normal) ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: var(--space-4);
        padding-bottom: var(--space-4);
    }
}

.reward-info-content {
    display: grid;
    gap: var(--space-4);
}

.reward-note {
    padding: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    background: var(--white);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-500);
}
/* ==================== 排行榜奖励信息页面 ==================== */
.leaderboard-rewards-page .page-title-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.back-button {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-start;
}

.back-button:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.back-button i {
    font-size: 14px;
}

.rewards-container {
    margin-top: var(--space-4);
}

/* 奖励查询页面使用与排行榜相同的tab样式 */
.rewards-container .tab-switcher {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: var(--space-2);
    width: 100%;
}

.rewards-container .tab-switcher .tab-btn {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: all var(--duration-fast) ease;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.rewards-container .tab-switcher .tab-btn:hover {
    color: var(--primary-600);
    background: rgba(102, 126, 234, 0.05);
}

.rewards-container .tab-switcher .tab-btn.active {
    color: var(--primary-600);
    border-bottom-color: var(--primary-600);
    font-weight: 600;
}

.rewards-content {
    padding: var(--space-5);
}

.reward-list-container {
    width: 100%;
}

.reward-list-header {
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--primary-500);
    margin-bottom: var(--space-4);
}

.reward-list-header h3 {
    margin: 0;
    font-size: var(--font-size-xl);
    color: var(--gray-900);
}

.rewards-content .reward-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-3);
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.reward-item:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.reward-item .reward-rank {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.rank-badge {
    font-size: 24px;
}

.rank-text {
    font-size: var(--font-size-md);
    font-weight: 500;
    color: var(--gray-700);
}

.reward-item .reward-amount {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.amount-value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-600);
}

.amount-currency {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    font-weight: 500;
}

.rewards-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-4);
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 25%, #fef3e4 100%);
    border-radius: var(--radius-md);
    margin-top: var(--space-4);
    border-left: 4px solid #f59e0b;
}

.rewards-note i {
    color: #f59e0b;
    margin-top: 2px;
    font-size: 16px;
}

.rewards-note p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    line-height: 1.5;
}

/* 奖励查询页面 - 移动端统一样式 */
.rewards-container .tab-switcher {
    flex-wrap: wrap;
    gap: var(--space-2);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.rewards-container .tab-switcher .tab-btn {
    font-size: var(--font-size-sm);
    padding: var(--space-2) var(--space-3);
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}

.rewards-content {
    padding: var(--space-3);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.reward-item {
    padding: var(--space-3);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.rank-badge {
    font-size: 20px;
}

.amount-value {
    font-size: var(--font-size-lg);
}
