/* ====== 用户中心样式 ====== */

/* 登录提示 */
.uc-login-prompt {
    text-align: center;
    padding: 100px 20px;
}
.uc-login-prompt .uc-prompt-icon {
    font-size: 64px;
    margin-bottom: 20px;
}
.uc-login-prompt h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
}
.uc-login-prompt p {
    color: #999;
    margin-bottom: 24px;
}

/* 头部 */
.uc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.uc-header-left h1 {
    margin: 0;
    font-size: 22px;
    color: #333;
}
.uc-phone {
    color: #999;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}
.uc-header-right {
    display: flex;
    gap: 10px;
    align-items: center;
}
.uc-btn-outline {
    padding: 8px 20px;
    border: 2px solid #2F6B5E;
    border-radius: 8px;
    color: #2F6B5E;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.uc-btn-outline:hover {
    background: #e8f0ed;
}
.uc-btn-logout {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #f0f0f0;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}
.uc-btn-logout:hover {
    background: #ffebee;
    color: #d32f2f;
}

/* 统计卡片 */
.uc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
@media (max-width: 768px) {
    .uc-stats { grid-template-columns: repeat(2, 1fr); }
}
.uc-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.uc-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}
.uc-stat-green { color: #4CAF50 !important; }
.uc-stat-red { color: #f44336 !important; }
.uc-stat-label {
    font-size: 13px;
    color: #999;
}

/* 标签导航 */
.uc-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    background: #fff;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.uc-tab {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all .2s;
    border-bottom: 3px solid transparent;
}
.uc-tab:hover {
    color: #2F6B5E;
    background: #f8f6f1;
}
.uc-tab.active {
    color: #2F6B5E;
    border-bottom-color: #2F6B5E;
}

/* 内容区 */
.uc-content {
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    padding: 24px;
    min-height: 300px;
}
.uc-section {
    animation: fadeIn .3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.uc-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #333;
}

/* 加载动画 */
.uc-content .spinner-sm {
    width: 30px;
    height: 30px;
    border: 3px solid #e0e0e0;
    border-top-color: #2F6B5E;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 40px auto 12px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
#ucLoading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* 空状态 */
.uc-empty {
    text-align: center;
    padding: 60px 20px;
}
.uc-empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
}
.uc-empty h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}
.uc-empty p {
    color: #999;
    margin-bottom: 20px;
}
.uc-btn-primary {
    display: inline-block;
    padding: 10px 28px;
    background: #2F6B5E;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
}
.uc-btn-primary:hover {
    background: #1a4a3e;
    color: #fff;
}

/* 当前练习卡片 */
.uc-current-card {
    background: #f8f6f1;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e8e0d0;
}
.uc-current-cat {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.uc-current-time {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}
.uc-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}
.uc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #2F6B5E);
    border-radius: 4px;
    transition: width .3s ease;
}
.uc-current-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}
.uc-current-stats b {
    font-size: 18px;
}

/* 练习历史列表 */
.uc-session-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.uc-session-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all .2s;
}
.uc-session-item:hover {
    border-color: #2F6B5E;
    background: #f8f6f1;
    transform: translateX(4px);
}
.uc-session-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.uc-session-cat {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.uc-badge-active {
    padding: 2px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.uc-badge-done {
    padding: 2px 10px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.uc-badge-abandon {
    padding: 2px 10px;
    background: #f5f5f5;
    color: #999;
    border-radius: 12px;
    font-size: 12px;
}
.uc-session-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}
.uc-session-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #666;
}

/* 详情页 */
.uc-back-btn {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    cursor: pointer;
    margin-bottom: 16px;
    font-size: 13px;
    transition: all .2s;
}
.uc-back-btn:hover {
    border-color: #2F6B5E;
    color: #2F6B5E;
}
.uc-detail-card {
    background: #f8f6f1;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.uc-detail-cat {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}
.uc-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.uc-detail-grid div {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: #555;
}
.uc-label {
    color: #999;
    min-width: 60px;
}

/* 逐题记录 */
.uc-detail-answers {
    margin-top: 16px;
}
.uc-detail-answers h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
}
.uc-ans-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 13px;
}
.uc-ans-correct {
    background: #e8f5e9;
}
.uc-ans-wrong {
    background: #ffebee;
}
.uc-ans-num {
    color: #999;
    min-width: 24px;
}
.uc-ans-icon {
    font-size: 14px;
}
.uc-ans-correct-label {
    color: #4CAF50;
    font-weight: 600;
}

/* 错题本 */
.uc-wrong-total {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    margin-left: 8px;
}
.uc-wrong-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.uc-wrong-item {
    background: #fafafa;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    padding: 16px 20px;
}
.uc-wrong-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.uc-wrong-cat {
    font-size: 13px;
    color: #666;
}
.uc-wrong-count {
    font-size: 12px;
    color: #f44336;
    font-weight: 600;
}
.uc-wrong-clear {
    padding: 4px 12px;
    border: 1px solid #4CAF50;
    border-radius: 6px;
    background: #fff;
    color: #4CAF50;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s;
}
.uc-wrong-clear:hover {
    background: #e8f5e9;
}
.uc-wrong-clear:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.uc-wrong-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.6;
}
.uc-wrong-opts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.uc-wrong-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    border: 1px solid #eee;
}
.uc-opt-correct {
    background: #e8f5e9;
    border-color: #a5d6a7;
}
.uc-opt-wrong {
    background: #ffebee;
    border-color: #ef9a9a;
}
.uc-opt-letter {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    flex-shrink: 0;
}
.uc-opt-correct .uc-opt-letter {
    background: #4CAF50;
    color: #fff;
}
.uc-opt-wrong .uc-opt-letter {
    background: #f44336;
    color: #fff;
}
.uc-opt-text {
    flex: 1;
}
.uc-opt-tag-correct {
    padding: 2px 8px;
    background: #4CAF50;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.uc-opt-tag-wrong {
    padding: 2px 8px;
    background: #f44336;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.uc-wrong-exp {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}

/* 分页 */
.uc-pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.uc-page-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
}
.uc-page-btn:hover {
    border-color: #2F6B5E;
    color: #2F6B5E;
}
.uc-page-btn.active {
    background: #2F6B5E;
    color: #fff;
    border-color: #2F6B5E;
}