/* 词句档案专属样式 (web/study/study.css) */
.study-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 24px;
}

/* 顶部概览看板 */
.study-overview-card {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: 0 6px 18px -4px rgba(79, 70, 229, 0.25);
}
.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.overview-title {
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}
.overview-badge {
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 12px;
}
.overview-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    text-align: center;
}
.overview-stat-item {
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 4px;
    border-radius: 8px;
}
.stat-item-num {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}
.stat-item-label {
    font-size: 0.68rem;
    opacity: 0.85;
    margin-top: 2px;
}

/* 子选项卡 */
.study-sub-nav {
    display: flex;
    background: #e2e8f0;
    border-radius: 12px;
    padding: 3px;
    gap: 4px;
}
.study-sub-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.study-sub-btn.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 过滤工具栏 */
.study-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.study-filter-row {
    display: flex;
    gap: 8px;
}
.study-select, .study-search-input {
    padding: 8px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    background: #ffffff;
    outline: none;
}
.study-select { flex: 1; }
.study-search-input { flex: 2; }

.status-filter-group {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.status-chip {
    border: 1px solid var(--border-color);
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
}
.status-chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* 列表卡片容器 */
.items-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.study-word-card, .study-sentence-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
}
.word-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}
.word-main-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.word-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}
.btn-mini-voice {
    border: none;
    background: #e0e7ff;
    color: var(--primary);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.word-lesson-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}
.word-meaning-text {
    font-size: 0.88rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

/* 掌握度徽章 */
.mastery-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}
.badge-mastered { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.badge-learning { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.badge-weak { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge-unseen { background: #f8fafc; color: #94a3b8; border: 1px solid #e2e8f0; }

/* 5 大题型做题效果明细 */
.word-types-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed #f1f5f9;
}
.type-chip {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-muted);
    display: flex;
    gap: 4px;
}
.type-chip.has-done {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}
.type-chip.has-error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}
.chip-cor { color: #16a34a; font-weight: 700; }
.chip-wrg { color: #e11d48; font-weight: 700; }

/* 句子卡片样式 */
.sent-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 6px;
}
.sent-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 分页控件专属样式 */
.study-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 2px 4px;
    user-select: none;
}
.study-page-btn {
    border: 1.5px solid var(--border-color);
    background: #ffffff;
    color: var(--primary);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: var(--shadow-sm);
}
.study-page-btn:active:not(:disabled) {
    background: var(--page-bg);
    transform: scale(0.97);
}
.study-page-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    background: #f1f5f9;
    color: var(--text-light);
    border-color: #e2e8f0;
}
.study-page-info {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}
