/* assets/style.css - 全局炫酷风格 */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 1.5rem;
}

body {
    background: linear-gradient(145deg, #f5f7fc 0%, #e9eef5 100%);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #c1c9d2;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a0aab5;
}

/* 卡片样式 */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(2px);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 按钮样式 */
.btn {
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn-primary {
    background: var(--primary-gradient);
    border: none;
}
.btn-primary:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}
.btn-outline-primary {
    border-width: 2px;
}
.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
}

/* 等级徽章 */
.level-badge {
    background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
    color: #2c3e50;
    font-weight: bold;
    padding: 0.35rem 1rem;
    border-radius: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.level-badge i {
    font-size: 1.2rem;
}

/* 等级进度条 */
.progress {
    height: 0.6rem;
    border-radius: 1rem;
    background-color: #e9ecef;
    overflow: hidden;
}
.progress-bar {
    background: var(--primary-gradient);
    border-radius: 1rem;
    transition: width 0.6s ease;
}

/* 学生卡片（任务页） */
.student-card {
    cursor: pointer;
    margin: 8px;
    padding: 12px 8px;
    border-radius: 1rem;
    display: inline-block;
    width: 100px;
    text-align: center;
    background: white;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}
.student-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.student-card:active {
    transform: scale(0.98);
}
.passed-area .student-card {
    background: linear-gradient(145deg, #d4edda, #c3e6cb);
    border-left: 4px solid #28a745;
}
.unpassed-area .student-card {
    background: linear-gradient(145deg, #f8d7da, #f5c6cb);
    border-left: 4px solid #dc3545;
}

/* 排行榜前三名特殊样式 */
.rank-1 {
    background: linear-gradient(90deg, #ffd70020, #fff8e7);
    border-left: 5px solid #ffd700;
}
.rank-2 {
    background: linear-gradient(90deg, #c0c0c020, #f8f9fa);
    border-left: 5px solid #c0c0c0;
}
.rank-3 {
    background: linear-gradient(90deg, #cd7f3220, #fff5e6);
    border-left: 5px solid #cd7f32;
}

/* 页面标题装饰 */
.page-header {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.page-header:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .student-card {
        width: 80px;
        font-size: 0.8rem;
        padding: 8px 4px;
    }
    .card {
        border-radius: 1rem;
    }
}