/* 首页仪表盘专用样式 */

/* 科目概览样式 */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.subject-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    border: 2px solid rgba(44,123,229,0.2);
    box-shadow: var(--ctn-shadow-sm);
    transition: all 0.3s ease;
}

.subject-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.subject-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.subject-count {
    font-size: 1.5em;
    font-weight: bold;
    color: #3182ce;
}

/* 每日题目卡片样式 */
.daily-question-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--ctn-shadow-md);
    border: var(--ctn-outline);
    height: fit-content;
    min-height: 500px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f7fafc;
}

.card-header h3 {
    color: #2d3748;
    font-size: 1.4em;
    font-weight: 600;
}

.question-counter {
    background: linear-gradient(135deg, var(--ctn-primary), var(--ctn-primary-dark));
    color: white;
    padding: 8px 16px;
    border-radius: 999px;
    border: 2px solid rgba(44,123,229,0.35);
    font-weight: 500;
    font-size: 14px;
}

/* 题目内容样式 */
.question-content {
    min-height: 400px;
}

.question-subject {
    margin-bottom: 15px;
}

.subject-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    color: white;
    background: #3182ce;
}

.question-difficulty {
    margin-bottom: 20px;
}

.difficulty-stars {
    display: inline-flex;
    gap: 2px;
}

.star {
    width: 16px;
    height: 16px;
    background: #ddd;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star.filled {
    background: #ffd700;
}

.question-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #2d3748;
}

.question-images {
    margin: 20px 0;
}

.question-image {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 答题区域样式 */
.answer-area {
    margin: 20px 0;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-option {
    background: #f0f6ff;
    border: 2px solid rgba(44,123,229,0.2);
    border-radius: 14px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.answer-option:hover {
    border-color: #3182ce;
    background: rgba(49, 130, 206, 0.05);
}

.answer-option.selected {
    border-color: var(--ctn-primary);
    background: rgba(85, 168, 255, 0.12);
}

.answer-option.correct {
    border-color: #38a169;
    background: rgba(56, 161, 105, 0.1);
}

.answer-option.incorrect {
    border-color: #e53e3e;
    background: rgba(229, 62, 62, 0.1);
}

.option-label {
    font-weight: bold;
    color: #3182ce;
    min-width: 30px;
}

.answer-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.answer-input:focus {
    outline: none;
    border-color: #3182ce;
}

/* 操作按钮样式 */
.question-actions {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    justify-content: center;
}

.question-actions .btn {
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 10px;
}

/* 解析区域样式 */
.explanation-area {
    background: rgba(255,255,255,0.9);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    border: var(--ctn-outline);
}

.explanation-area h4 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* 反馈区域样式 */
.feedback-area {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.feedback-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.feedback-buttons .btn {
    padding: 10px 20px;
    border-radius: 8px;
}

/* 最近错误列表样式 */
.recent-errors {
    max-height: 300px;
    overflow-y: auto;
}

.error-item {
    background: rgba(249, 250, 251, 0.8);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid #e53e3e;
}

.error-time {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.error-content {
    font-size: 14px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 快捷功能样式 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quick-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(44,123,229,0.2);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quick-btn:hover {
    background: rgba(49, 130, 206, 0.1);
    border-color: #3182ce;
    transform: translateY(-3px);
}

.quick-btn-icon {
    font-size: 24px;
    font-weight: bold;
    color: #3182ce;
}

.quick-btn-text {
    font-size: 14px;
    font-weight: 500;
}

/* 学习进度图表样式 */
.progress-chart {
    text-align: center;
    padding: 20px 0;
}

/* 复习提醒样式 */
.review-reminders {
    max-height: 250px;
    overflow-y: auto;
}

.reminder-item {
    background: rgba(255, 248, 220, 0.8);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid #d69e2e;
}

.reminder-subject {
    font-weight: 600;
    color: #744210;
    margin-bottom: 5px;
}

.reminder-content {
    font-size: 14px;
    color: #975a16;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(49, 130, 206, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(49, 130, 206, 0.5);
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
    background: #e2e8f0;
    color: #4a5568;
}

/* 工具提示增强 */
.has-tooltip {
    position: relative;
    cursor: help;
}

.has-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 15px;
}

.empty-state-text {
    font-size: 16px;
    margin-bottom: 10px;
}

.empty-state-hint {
    font-size: 14px;
    color: #999;
} 