/**
 * 用户中心样式 - 科技感
 */

.page-container {
    padding: 40px 20px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.page-header .desc {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* 游客提示 */
.guest-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.guest-notice .icon {
    color: var(--primary);
    font-size: 16px;
}

.guest-notice a {
    color: var(--primary);
}

.guest-notice.login-prompt {
    margin: 20px 0;
    justify-content: center;
}

/* 用户容器 */
.user-container {
    display: flex;
    gap: 30px;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.user-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.user-nav {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.user-nav a {
    display: block;
    padding: 15px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.user-nav a:last-child {
    border-bottom: none;
}

.user-nav a:hover,
.user-nav a.active {
    background: rgba(0, 212, 255, 0.05);
    color: var(--primary);
}

.user-nav a.active {
    border-left: 3px solid var(--primary);
    padding-left: 17px;
}

.user-content {
    flex: 1;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border);
}

.user-content h1 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.user-content .desc {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* 统计卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
}

.stat-icon {
    font-size: 32px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* 快速操作 */
.quick-actions {
    margin-bottom: 30px;
}

.quick-actions h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-card {
    background: var(--bg-dark);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.action-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    text-decoration: none;
}

.action-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.action-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.action-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 题库选择 */
.bank-select-list {
    display: grid;
    gap: 20px;
}

.bank-select-list h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.bank-select-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: var(--bg-dark);
    border-radius: 12px;
    border: 1px solid var(--border);
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.bank-select-item:hover {
    border-color: var(--primary);
}

.bank-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.bank-glow-a {
    background: radial-gradient(circle at 10% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%);
}

.bank-glow-b {
    background: radial-gradient(circle at 10% 50%, rgba(123, 44, 191, 0.15) 0%, transparent 50%);
}

.bank-glow-c {
    background: radial-gradient(circle at 10% 50%, rgba(255, 0, 110, 0.15) 0%, transparent 50%);
}

.bank-select-item:hover .bank-glow {
    opacity: 1;
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.bank-code-large {
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.bank-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.bank-details p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.bank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(0, 212, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
}

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

.bank-actions {
    display: flex;
    gap: 10px;
}

/* 练习模式 */
.practice-modes {
    margin-bottom: 30px;
}

.practice-modes h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.mode-card {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.mode-card:hover {
    border-color: var(--primary);
}

.mode-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--primary);
}

.mode-icon svg {
    width: 24px;
    height: 24px;
}

.mode-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.mode-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 错题本 */
.wrong-bank-list {
    display: grid;
    gap: 15px;
}

.wrong-bank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--bg-dark);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.wrong-count .count {
    color: var(--accent);
    font-weight: bold;
    font-size: 20px;
}

/* 历史记录 */
.history-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: var(--text-secondary);
}

.empty-state p {
    margin-bottom: 20px;
}

/* 个人设置 */
.profile-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.info-list {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
}

.info-item label {
    width: 120px;
    color: var(--text-secondary);
}

.info-value {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

/* 考试结果 */
.exam-result-header {
    text-align: center;
    margin-bottom: 30px;
}

.result-score {
    display: inline-block;
    padding: 30px 50px;
    border-radius: 16px;
    margin-top: 20px;
    border: 2px solid;
}

.result-score.pass {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
}

.result-score.fail {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
}

.score-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 4px solid;
}

.result-score.pass .score-ring {
    border-color: #28a745;
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.3);
}

.result-score.fail .score-ring {
    border-color: #dc3545;
    box-shadow: 0 0 30px rgba(220, 53, 69, 0.3);
}

.score-value {
    font-size: 42px;
    font-weight: bold;
    line-height: 1;
}

.result-score.pass .score-value {
    color: #5dd879;
}

.result-score.fail .score-value {
    color: #ff6b7a;
}

.score-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.pass-status {
    font-size: 18px;
    font-weight: 500;
}

.result-score.pass .pass-status {
    color: #5dd879;
}

.result-score.fail .pass-status {
    color: #ff6b7a;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stat-box .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.stat-box .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.stat-box.correct .stat-value {
    color: #5dd879;
}

.stat-box.wrong .stat-value {
    color: #ff6b7a;
}

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

.result-actions .btn {
    margin: 0 5px;
}

/* 错题详解 */
.wrong-questions h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.wrong-item {
    background: var(--bg-dark);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.wrong-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.wrong-num {
    font-weight: 500;
    color: #ff6b7a;
}

.wrong-answer {
    font-size: 13px;
}

.user-answer {
    color: #ff6b7a;
    font-weight: 500;
}

.correct-answer {
    color: #5dd879;
    font-weight: 500;
}

.options-list .option-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: var(--bg-card);
    border-radius: 8px;
    gap: 12px;
    border: 1px solid transparent;
}

.options-list .option-item.correct {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
}

.options-list .option-item.wrong {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
}

.option-key {
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.option-item.correct .option-key {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.option-item.wrong .option-key {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.question-analysis {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    border-left: 3px solid var(--primary);
}

/* 响应式 */
@media (max-width: 768px) {
    .user-container {
        flex-direction: column;
    }
    
    .user-sidebar {
        width: 100%;
    }
    
    .user-nav {
        display: flex;
        overflow-x: auto;
    }
    
    .user-nav a {
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid var(--border);
    }
    
    .mode-grid {
        grid-template-columns: 1fr;
    }
    
    .result-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .bank-select-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bank-actions {
        width: 100%;
    }
    
    .bank-actions .btn {
        flex: 1;
    }
}
