/**
 * 登科督学班管理系统 - H5端刷题记录样式
 * 蓝色主题 #1E88E5 / #1565C0
 */

/* ===== 筛选标签栏 ===== */
.dk-ph-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    border-bottom: 2px solid #E3F2FD;
}

.dk-ph-tab {
    padding: 10px 16px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.dk-ph-tab.dk-ph-tab-active {
    color: #1E88E5;
    font-weight: 600;
    border-bottom-color: #1E88E5;
}

.dk-ph-tab:hover {
    color: #1E88E5;
}

/* ===== 统计概览 ===== */
.dk-ph-stats {
    display: flex;
    justify-content: space-around;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

/* ===== 题目卡片 ===== */
.dk-ph-item {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.dk-ph-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dk-ph-item-category {
    font-size: 13px;
    color: #666;
}

.dk-ph-item-result {
    font-weight: 600;
    font-size: 16px;
}

.dk-ph-item-result-correct {
    color: #4CAF50;
}

.dk-ph-item-result-wrong {
    color: #F44336;
}

.dk-ph-item-content {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin: 8px 0;
    max-height: 63px;
    overflow: hidden;
}

.dk-ph-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dk-ph-item-time {
    font-size: 12px;
    color: #999;
}

.dk-ph-review-btn {
    background: #1E88E5;
    color: #fff;
    border-radius: 6px;
    padding: 6px 16px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.dk-ph-review-btn:hover {
    background: #1565C0;
}

/* ===== 加载更多按钮 ===== */
.dk-ph-loadmore-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #E3F2FD;
    color: #1E88E5;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    margin-top: 8px;
}

.dk-ph-loadmore-btn:hover {
    background: #BBDEFB;
}

/* ===== 空状态 ===== */
.dk-ph-empty {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

/* ===== 复习做题模式 ===== */
.ph-practice-area {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.ph-back-link {
    font-size: 14px;
    color: #1E88E5;
    cursor: pointer;
    margin-bottom: 16px;
    display: inline-block;
}

.ph-type-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #1E88E5;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 12px;
}

.ph-category {
    font-size: 13px;
    color: #666;
    margin-left: 8px;
}

.ph-question-content {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ph-options {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.ph-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    font-size: 15px;
    color: #333;
}

.ph-option:hover {
    background: #E3F2FD;
}

.ph-option.ph-option-selected {
    background: #E3F2FD;
    border-color: #1E88E5;
}

.ph-option-label {
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #1E88E5;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.ph-submit-btn {
    width: 100%;
    padding: 14px;
    background: #1E88E5;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.ph-submit-btn:hover {
    background: #1565C0;
}

/* ===== 复习结果 ===== */
.ph-result-area {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.ph-result-success {
    background: #E8F5E9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.ph-result-success .ph-result-icon {
    font-size: 40px;
    color: #4CAF50;
}

.ph-result-success .ph-result-text {
    font-size: 16px;
    color: #4CAF50;
    font-weight: 600;
    margin-top: 4px;
}

.ph-result-fail {
    background: #FFEBEE;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.ph-result-fail .ph-result-icon {
    font-size: 40px;
    color: #F44336;
}

.ph-result-fail .ph-result-text {
    font-size: 16px;
    color: #F44336;
    font-weight: 600;
    margin-top: 4px;
}

.ph-result-answer {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.ph-result-analysis-title {
    font-size: 14px;
    color: #1E88E5;
    font-weight: 600;
    margin-bottom: 6px;
}

.ph-result-analysis {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 12px;
}

.ph-back-btn {
    width: 100%;
    padding: 14px;
    background: #1E88E5;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.ph-back-btn:hover {
    background: #1565C0;
}
