/**
 * 登科督学班管理系统 - H5学习模块样式
 * 蓝色主题 #1E88E5 / #1565C0
 */

/* 分类网格卡片 */
.dk-study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dk-study-category-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
}

.dk-study-category-card:hover {
    border-color: #1E88E5;
    box-shadow: 0 2px 8px rgba(30,136,229,0.15);
}

.dk-study-category-name {
    font-size: 16px;
    font-weight: 600;
    color: #1E88E5;
    margin-bottom: 8px;
}

.dk-study-category-progress {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.dk-study-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.dk-study-progress-fill {
    height: 100%;
    background: #1E88E5;
    border-radius: 3px;
    transition: width 0.3s;
}

.dk-study-category-count {
    font-size: 12px;
    color: #999;
}

/* 知识点列表卡片 */
.dk-knowledge-list-item {
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dk-knowledge-list-item:hover {
    border-color: #1E88E5;
}

.dk-knowledge-item-title {
    font-size: 15px;
    color: #333;
    flex: 1;
}

.dk-knowledge-item-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.dk-knowledge-badge-read {
    background: #E8F5E9;
    color: #4CAF50;
}

.dk-knowledge-badge-unread {
    background: #FFF3E0;
    color: #FF9800;
}

/* 知识点详情页 */
.dk-knowledge-detail-title {
    font-size: 20px;
    font-weight: 600;
    color: #1E88E5;
    margin-bottom: 8px;
}

.dk-knowledge-detail-category {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.dk-knowledge-content-area {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.dk-knowledge-content-area img {
    max-width: 100%;
    border-radius: 6px;
}

.dk-knowledge-content-area h1,
.dk-knowledge-content-area h2,
.dk-knowledge-content-area h3 {
    color: #1E88E5;
    margin-bottom: 10px;
}

.dk-knowledge-content-area p {
    margin-bottom: 12px;
}

.dk-knowledge-content-area ul,
.dk-knowledge-content-area ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

/* 例题区 */
.dk-example-section {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.dk-example-title {
    font-size: 16px;
    font-weight: 600;
    color: #1E88E5;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dk-example-item {
    background: #E3F2FD;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #BBDEFB;
}

.dk-example-question {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

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

.dk-example-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dk-example-options li {
    padding: 6px 10px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid rgba(187,222,251,0.5);
}

.dk-example-options li:last-child {
    border-bottom: none;
}

.dk-example-answer {
    font-size: 13px;
    color: #4CAF50;
    font-weight: 500;
    margin-top: 6px;
}

.dk-example-analysis {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    line-height: 1.5;
}

/* 跳转练习按钮 */
.dk-go-practice-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #1E88E5;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    margin-bottom: 16px;
}

.dk-go-practice-btn:hover {
    background: #1565C0;
}

/* 返回按钮 */
.dk-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: #1E88E5;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 12px;
}

.dk-back-btn:hover {
    color: #1565C0;
}
