/* ==================== 基础设置 ==================== */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --info: #3b82f6;

    --bg-dark: #0f0a1f;
    --bg-card: rgba(30, 20, 50, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);

    --text-primary: #ffffff;
    --text-secondary: #a5b4fc;
    --text-muted: #6b7280;

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #f59e0b 100%);
    --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    --gradient-glow: linear-gradient(135deg, #6366f1, #ec4899);

    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== 顶部导航 ==================== */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 10, 31, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.3s;
}

.logo-section:hover {
    transform: scale(1.02);
}

.logo-emoji {
    font-size: 42px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(-5deg); }
    75% { transform: translateY(-8px) rotate(5deg); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 26px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background: transparent;
    color: var(--text-secondary);
}

.nav-item:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

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

.nav-btn {
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

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

.nav-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.user-stats {
    display: flex;
    flex-direction: column;
}

.user-level {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
}

.user-points {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ==================== 主内容区 ==================== */
.main-container {
    flex: 1;
    margin-top: 90px;
    padding: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ==================== 欢迎页面 ==================== */
.welcome-hero {
    text-align: center;
    padding: 60px 20px 80px;
    position: relative;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

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

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.6);
}

.btn-hero-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-secondary:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* 特色卡片 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ==================== 登录/注册 ==================== */
.auth-container {
    max-width: 440px;
    margin: 40px auto;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.auth-emoji {
    font-size: 60px;
    margin-bottom: 16px;
}

.auth-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

.auth-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

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

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.auth-link {
    color: var(--primary-light);
    cursor: pointer;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

/* ==================== 仪表盘 ==================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 欢迎卡片 */
.welcome-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.welcome-card::after {
    content: '✨';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 80px;
    opacity: 0.3;
}

.welcome-greeting {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.welcome-message {
    color: var(--text-secondary);
    font-size: 16px;
}

/* 快捷操作 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.action-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.action-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.action-title {
    font-size: 15px;
    font-weight: 600;
}

/* 统计卡片 */
.stats-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ==================== 任务卡片 ==================== */
.task-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.task-difficulty {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
}

.task-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.task-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.task-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.meta-icon {
    font-size: 24px;
}

.meta-value {
    font-size: 18px;
    font-weight: 700;
}

.meta-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.task-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
}

.task-tips {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.tips-title {
    font-weight: 700;
    color: var(--success);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-list {
    list-style: none;
    color: var(--text-secondary);
}

.tips-list li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
}

/* 完成表单 */
.complete-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.complete-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.complete-textarea {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s;
}

.complete-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.task-actions {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-action-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-action-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-action-secondary:hover {
    border-color: var(--primary);
}

/* ==================== 排行榜 ==================== */
.leaderboard-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.leaderboard-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.leaderboard-item.top-1 {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.leaderboard-item.top-2 {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.2), rgba(156, 163, 175, 0.05));
}

.leaderboard-item.top-3 {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.2), rgba(180, 83, 9, 0.05));
}

.rank-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.top-1 .rank-number {
    background: var(--accent);
    color: white;
}

.top-2 .rank-number {
    background: #9ca3af;
    color: white;
}

.top-3 .rank-number {
    background: #b45309;
    color: white;
}

.player-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    font-size: 15px;
}

.player-level {
    font-size: 12px;
    color: var(--text-secondary);
}

.player-points {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
}

/* ==================== 广场 ==================== */
.plaza-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.plaza-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.activity-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    line-height: 1.5;
}

.activity-text strong {
    color: var(--primary-light);
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==================== 测试页面 ==================== */
.test-container {
    max-width: 700px;
    margin: 0 auto;
}

.test-header {
    text-align: center;
    margin-bottom: 40px;
}

.test-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.test-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 50px;
}

.test-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.test-question {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.5;
}

.test-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.test-option {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 17px;
    text-align: center;
}

.test-option:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(10px);
}

.test-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* 测试类型选择 */
.test-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.test-type-card {
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.test-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.test-type-icon {
    font-size: 50px;
    margin-bottom: 16px;
}

.test-type-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.test-type-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==================== 结果页面 ==================== */
.result-container {
    max-width: 600px;
    margin: 0 auto;
}

.result-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.result-icon {
    font-size: 100px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    animation: celebrate 1s ease;
}

@keyframes celebrate {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.result-type {
    font-size: 42px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.result-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.result-traits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.trait-tag {
    padding: 10px 20px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--primary-light);
}

.points-display {
    font-size: 60px;
    font-weight: 900;
    color: var(--accent);
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.points-display span {
    font-size: 24px;
    color: var(--text-secondary);
}

/* ==================== Toast通知 ==================== */
.toast-wrapper {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 16px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--success);
    box-shadow: var(--shadow-card);
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.info {
    border-left-color: var(--info);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== 加载遮罩 ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 10, 31, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

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

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-text {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ==================== 底部 ==================== */
.bottom-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 12px 20px;
    }

    .logo-emoji {
        font-size: 32px;
    }

    .logo-main {
        font-size: 20px;
    }

    .main-container {
        padding: 20px;
        margin-top: 80px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .task-title {
        font-size: 24px;
    }

    .auth-card {
        padding: 30px 20px;
    }
}

/* ==================== 动画类 ==================== */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

/* 隐藏滚动条但保持功能 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* ==================== 测试结果页面 ==================== */
.result-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.result-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.result-main-title {
    font-size: 56px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.result-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.result-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.result-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-icon {
    font-size: 28px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
}

.traits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trait-item {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.section-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.section-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-list li {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 40px;
}

.section-list li::before {
    content: '✓';
    position: absolute;
    left: 16px;
    color: var(--success);
    font-weight: bold;
}

.section-list.strengths li::before {
    color: var(--success);
}

.section-list.challenges li::before {
    color: var(--accent);
    content: '→';
}

.section-list.tasks li::before {
    color: var(--primary-light);
    content: '★';
}

.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== 任务选择系统 ==================== */
.task-selection-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.task-selection-header {
    text-align: center;
    margin-bottom: 40px;
}

.task-selection-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.theme-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.theme-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
}

.task-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.task-option-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.task-option-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.task-option-source {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    color: var(--primary-light);
}

.task-option-difficulty {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 600;
}

.task-option-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.task-option-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-option-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.task-option-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.task-selection-footer {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-secondary {
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* ==================== 自定义任务 ==================== */
.custom-task-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.custom-task-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-task-card h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.custom-task-divider {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.custom-task-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.custom-task-divider span {
    background: var(--bg-card);
    padding: 0 20px;
    color: var(--text-muted);
    position: relative;
}

.ai-generate-section {
    text-align: center;
}

.ai-generate-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .task-options-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .theme-buttons {
        gap: 8px;
    }
    
    .theme-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .task-selection-footer {
        flex-direction: column;
    }
}

