/* 全局 */
* { margin: 0; padding: 0; box-sizing: border-box; }
[v-cloak] { display: none; }
:root { --font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f0f2f5; height: 100vh; overflow: hidden; font-size: var(--font-size); }
#app { height: 100vh; overflow: hidden; }

.app-wrapper { display: flex; flex-direction: column; height: 100vh; }

.header-row {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 100;
    display: flex;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header {
    height: 56px;
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #409eff 0%, #3a8ee6 100%);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 16px;
}
.header-logo-area { display: flex; align-items: center; gap: 10px; }
.header-logo { font-size: 22px; }
.header-logo-area h1 { font-size: 1.1rem; font-weight: 500; white-space: nowrap; }

.topbar-merged {
    flex: 1;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    background: white;
    overflow-x: auto;
    min-width: 0;
}

.tm-search { width: 200px; flex-shrink: 0; }
.tm-search .el-input__inner { border-radius: 18px; background: #f5f7fa; border-color: transparent; }
.tm-search .el-input__inner:focus { background: white; border-color: #409eff; }

.tm-filters { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tm-filter-item { display: flex; align-items: center; gap: 4px; }
.tm-label { color: #909399; font-size: 12px; }
.tm-select { width: 130px !important; }
.tm-cascader { width: 150px !important; }
.tm-reset { color: #909399; }

.tm-right { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.tm-title { font-size: 13px; font-weight: 600; color: #303133; display: flex; align-items: center; gap: 5px; margin-right: 8px; white-space: nowrap; }
.tm-title i { color: #409eff; }
.tm-count { color: #909399; font-size: 11px; font-weight: 400; background: #f5f7fa; padding: 1px 7px; border-radius: 8px; margin-left: 4px; }
.tm-user { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #606266; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all 0.15s; }
.tm-user:hover { background: #f5f7fa; color: #409eff; }
.tm-user i:first-child { color: #409eff; }
.tm-user i:last-child { font-size: 10px; }

.pending-badge {
    display: inline-block;
    min-width: 18px;
    padding: 0 5px;
    margin-left: 6px;
    background: #f56c6c;
    color: #fff;
    border-radius: 9px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

/* 待审核消息泡 */
.pending-bubble {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px 4px 10px;
    background: linear-gradient(135deg, #f56c6c, #ff4d4f);
    color: #fff;
    border-radius: 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245, 108, 108, 0.45);
    transition: all 0.2s;
    animation: pendingPulse 1.6s ease-in-out infinite;
}
.pending-bubble:hover { transform: scale(1.08); box-shadow: 0 4px 14px rgba(245, 108, 108, 0.6); }
.pending-bubble i { font-size: 14px; }
.pending-bubble-num { font-size: 14px; font-weight: 700; }
@keyframes pendingPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(245, 108, 108, 0.45); }
    50% { box-shadow: 0 2px 16px rgba(245, 108, 108, 0.9); }
}

/* 主体 */
.main-container { flex: 1; display: flex; overflow: hidden; padding-top: 56px; }

/* 侧边栏 */
.sidebar { width: 260px; background: white; border-right: 1px solid #e8e8e8; display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0; margin-top: -56px; }
.sidebar-body { flex: 1; overflow-y: auto; padding: 8px 12px; padding-top: 64px; }
.sidebar-header { padding: 14px 16px 8px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.sidebar-header h3 { font-size: 15px; color: #303133; display: flex; align-items: center; gap: 8px; }
.empty-tree { text-align: center; padding: 40px 20px; color: #999; }

/* 全部题目 */
.all-questions-entry { display: flex; align-items: center; padding: 9px 12px; border-radius: 8px; background: #f5f7fa; cursor: pointer; font-size: 14px; margin-bottom: 10px; }
.all-questions-entry i { margin-right: 8px; color: #409eff; width: 16px; text-align: center; }
.all-questions-entry.active { background: #409eff; color: white; }
.all-questions-entry.active i { color: white; }
.all-count { background: #e0e0e0; padding: 1px 8px; border-radius: 10px; font-size: 12px; margin-left: auto; }
.all-questions-entry.active .all-count { background: rgba(255,255,255,0.25); }

/* 树节点 */
.tree-node { user-select: none; }
.tree-node-item { display: flex; align-items: center; padding: 5px 8px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.tree-node-item:hover { background: #f5f7fa; }
.tree-node-item.active { background: #e6f0ff; color: #409eff; }
.tree-node-item .expand-icon { width: 20px; font-size: 14px; color: #409eff; text-align: center; font-weight: bold; }
.tree-node-item .folder-icon { margin-right: 6px; color: #409eff; width: 14px; }
.tree-node-item .node-name { flex: 1; }
.tree-node-item .node-actions { display: none; gap: 2px; }
.tree-node-item:hover .node-actions { display: flex; }
.tree-node-children { margin-left: 12px; }
.tree-node-children .tree-node-item .folder-icon { color: #67c23a; }
.tree-node-children .tree-node-children .tree-node-item .folder-icon { color: #e6a23c; }

/* 内容区 */
.content { flex: 1; background: #f5f7fa; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; }
.content-body { flex: 1; padding: 20px; }

/* 空状态 */
.empty-state { text-align: center; padding: 80px 20px; color: #999; }
.empty-icon { font-size: 52px; margin-bottom: 16px; opacity: 0.3; }

/* 题目卡片 */
.questions-list { max-width: 960px; margin: 0 auto; }
.question-card { background: white; border-radius: 14px; margin-bottom: 18px; box-shadow: 0 1px 8px rgba(0,0,0,0.04); border: 1px solid #ebeef5; overflow: hidden; transition: all 0.2s; }
.question-card:hover { box-shadow: 0 3px 16px rgba(0,0,0,0.08); }
.question-card.selected { border-color: #409eff; }

.question-card.editing {
    border: 2px solid #e6a23c !important;
    box-shadow: 0 0 24px rgba(230, 162, 60, 0.35), 0 0 8px rgba(230, 162, 60, 0.2) !important;
    border-left: 5px solid #e6a23c !important;
    animation: editingGlow 2s ease-in-out infinite alternate;
}
@keyframes editingGlow {
    from { box-shadow: 0 0 18px rgba(230, 162, 60, 0.25), 0 0 6px rgba(230, 162, 60, 0.15); }
    to { box-shadow: 0 0 30px rgba(230, 162, 60, 0.45), 0 0 14px rgba(230, 162, 60, 0.3); }
}

/* 题目头部 */
.question-header-new { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: #fafbfc; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; gap: 10px; }
.header-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.header-right { display: flex; align-items: center; gap: 4px; }
.question-num { font-weight: 700; color: #409eff; background: #ecf5ff; padding: 3px 12px; border-radius: 16px; }
.difficulty-tag { padding: 2px 8px; border-radius: 10px; }
.diff-1 { background: #e1f3d8; color: #67c23a; }
.diff-2 { background: #faecd8; color: #e6a23c; }
.diff-3 { background: #fde2e2; color: #f56c6c; }
.tag-item { border-radius: 10px !important; }
.action-btn { color: #909399 !important; padding: 4px 8px !important; border-radius: 4px; }
.action-btn:hover { color: #409eff !important; background: #ecf5ff; }
.action-btn.danger:hover { color: #f56c6c !important; background: #fef0f0; }
.question-time { color: #c0c4cc; font-size: 11px; display: flex; align-items: center; gap: 4px; margin-left: 6px; padding-left: 6px; border-left: 1px solid #f0f0f0; }

/* 题目内容 */
.question-content { padding: 20px 24px; }
.markdown-body { line-height: 1.85; color: #303133; font-size: var(--font-size); }
.markdown-body p { margin: 8px 0; }
.markdown-body img { max-width: 100%; border-radius: 8px; margin: 8px 0; }

/* 编辑器 */
.question-editor { padding: 16px; }
.editor-extra-section { margin-top: 16px; padding: 16px 20px; background: #f8f9fc; border-radius: 10px; border: 1px solid #f0f0f0; }
.editor-extra-title { font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.editor-extra-title i { color: #409eff; }
.solution-item { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed #e8e8e8; }
.solution-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.solution-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.solution-name-input { flex: 1; max-width: 240px; }
.editor-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.mini-editor { margin-bottom: 10px; resize: vertical; overflow: auto; }
.mini-editor .EasyMDEContainer { border: 1px solid #e0e0e0; border-radius: 6px; }
.mini-editor .CodeMirror { min-height: 80px; height: auto; font-size: 15px; }
.CodeMirror { font-size: 15px; line-height: 1.85; }
.EasyMDEContainer .CodeMirror { font-size: 15px; }

/* 标签页 */
.question-tabs { border-top: 1px solid #f0f0f0; }
.tabs-header { display: flex; gap: 6px; padding: 10px 16px; background: #fafbfc; border-bottom: 1px solid #f0f0f0; align-items: center; }
.tab-btn { padding: 7px 18px; cursor: pointer; border-radius: 20px; transition: all 0.2s; display: flex; align-items: center; gap: 6px; border: none; font-weight: 500; }
.answer-tab { background: #e1f3d8; color: #52c41a; }
.answer-tab:hover { background: #d4edda; }
.answer-tab.active { background: #52c41a; color: white; box-shadow: 0 3px 10px rgba(82,196,26,0.3); }
.solution-tab { background: #fff3e0; color: #e6a23c; }
.solution-tab:hover { background: #ffe7ba; }
.solution-tab.active { background: #e6a23c; color: white; box-shadow: 0 3px 10px rgba(230,162,60,0.3); }
.tab-content { padding: 18px 22px; background: white; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }

/* 注释 */
.remark-wrapper { position: relative; margin-left: auto; }
.remark-btn { display: flex; align-items: center; gap: 5px; padding: 5px 14px; font-weight: 500; color: #fff; cursor: pointer; border-radius: 14px; border: none; background: linear-gradient(135deg, #ff9500, #ff5e3a); box-shadow: 0 2px 6px rgba(255,94,58,0.25); transition: all 0.2s; white-space: nowrap; }
.remark-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(255,94,58,0.35); }
.remark-popover { display: none; position: absolute; bottom: calc(100% + 10px); right: 0; background: white; border-radius: 14px; padding: 16px 20px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); min-width: 260px; max-width: 360px; z-index: 999; border: 1px solid #e8e8e8; line-height: 1.8; color: #555; }
.remark-popover::after { content: ''; position: absolute; bottom: -8px; right: 20px; width: 16px; height: 16px; background: white; transform: rotate(45deg); border-right: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; }
.remark-wrapper:hover .remark-popover { display: block; }

/* 答案解析 */
.answer-display { margin-bottom: 14px; }
.answer-display:last-child { margin-bottom: 0; }
.display-label { display: inline-flex; align-items: center; gap: 5px; padding: 4px 14px; border-radius: 16px; font-weight: 600; }
.answer-label { background: #e1f3d8; color: #52c41a; }
.analysis-label { background: #ecf5ff; color: #409eff; }
.display-text { line-height: 1.85; color: #555; padding-left: 8px; border-left: 2px solid #f0f0f0; margin-left: 8px; font-size: var(--font-size); }

/* 答案解析里的视频块 */
.answer-videos-section {
    margin-top: 16px;
    margin-bottom: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
    border-top: 2px dashed #f0f0f0;
    border-bottom: 2px dashed #f0f0f0;
}
.answer-analysis-display { margin-top: 16px; }

/* 右侧面板 */
.right-panel { width: 250px; background: white; border-left: 1px solid #f0f0f0; padding: 14px; overflow-y: auto; flex-shrink: 0; }
.panel-card { background: #fafbfc; border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.panel-card h4 { font-size: 13px; font-weight: 600; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 6px; }
.stat-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12px; color: #666; }
.stat-num { color: #409eff; font-weight: 600; font-size: 15px; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 4px; }
.cloud-tag { cursor: pointer !important; border-radius: 10px !important; }
.tips-list { padding: 0; list-style: none; color: #666; font-size: 12px; line-height: 1.8; }
.tips-list li { display: flex; align-items: center; gap: 6px; padding: 2px 0; }

/* 封面背景图卡片 */
.cover-bg-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f5f7fa;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cover-bg-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-bg-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #c0c4cc; gap: 6px; font-size: 12px; }
.cover-bg-empty i { font-size: 28px; }

/* 对话框 */
.custom-dialog .el-dialog__header { padding: 0; }
.custom-dialog .el-dialog__body { padding: 30px 24px 20px; }
.dialog-center { text-align: center; }
.dialog-icon { font-size: 56px; color: #409eff; margin-bottom: 12px; }
.dialog-center h3 { margin-bottom: 20px; }
.dialog-tip { color: #c0c4cc; font-size: 12px; margin-top: 12px; }

/* 导出 */
.export-options { display: flex; flex-direction: column; gap: 12px; }
.export-option { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid #f0f0f0; border-radius: 12px; cursor: pointer; transition: all 0.2s; }
.export-option:hover { border-color: #409eff; background: #f8fcff; }
.export-option i { font-size: 28px; color: #409eff; }
.export-option-info strong { font-size: 15px; color: #303133; display: block; }
.export-option-info span { font-size: 12px; color: #909399; }

/* 上传 */
.upload-container { padding: 10px 0; }
.paste-area { border: 2px dashed #e0e0e0; border-radius: 12px; padding: 36px 20px; text-align: center; cursor: pointer; }
.paste-area:hover { border-color: #409eff; }
.paste-area i { font-size: 44px; color: #d0d0d0; margin-bottom: 12px; }
.upload-tip { font-size: 12px; color: #999; margin-top: 6px; }
.upload-progress { margin-top: 14px; text-align: center; }
.preview-image { margin-top: 14px; text-align: center; }
.preview-image img { max-width: 100%; max-height: 200px; border-radius: 8px; }

/* 分页 */
.pagination-container { display: flex; justify-content: center; margin-top: 24px; padding: 16px 0; }

/* EasyMDE 修复 */
.CodeMirror-lines { padding: 4px 0; }
.CodeMirror pre { box-shadow: none !important; background: transparent !important; padding: 0 4px; }

/* 响应式 */
@media (max-width: 1400px) { .tm-title { display: none; } }
@media (max-width: 1200px) { .tm-filters { display: none; } .right-panel { display: none; } }
@media (max-width: 768px) {
    .header-row { position: static; height: auto; flex-direction: column; }
    .header { width: 100%; height: 48px; padding: 0 12px; }
    .header-logo-area h1 { font-size: 0.9rem; }
    .header-logo { font-size: 18px; }
    .topbar-merged { height: auto; flex-wrap: wrap; padding: 8px 10px; gap: 6px; }
    .tm-search { width: 100%; }
    .tm-right { margin-left: 0; width: 100%; justify-content: flex-end; }
    .main-container { padding-top: 0; }
    .sidebar { margin-top: 0; display: none; }
    .content-body { padding: 8px; }
    .question-card { margin-bottom: 10px; border-radius: 10px; }
    .question-header-new { padding: 8px 10px; gap: 6px; }
    .question-content { padding: 12px 14px; }
    .question-num { padding: 2px 8px; }
    .tabs-header { padding: 6px 10px; gap: 4px; flex-wrap: wrap; }
    .tab-btn { padding: 5px 12px; }
    .tab-content { padding: 12px 14px; }
}

.has-video-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    color: #722ed1;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #d3adf7;
    margin-left: 6px;
    background: linear-gradient(90deg, #f9f0ff 0%, #d3adf7 50%, #f9f0ff 100%);
    background-size: 200% 100%;
    animation: videoBadgeFlow 3s linear infinite;
}
.has-video-badge:hover { background: #722ed1; color: white; border-color: #722ed1; animation: none; }
.has-video-badge i { font-size: 10px; }
@keyframes videoBadgeFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.video-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2;
}
.video-badge i { font-size: 10px; }
.badge-teacher { background: linear-gradient(135deg, #722ed1, #9254de); }
.badge-featured { background: linear-gradient(135deg, #fa8c16, #ffc53d); }

/* 视频模块 */
.solution-videos-section { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 2px dashed #f0f0f0; }
.videos-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.videos-title { font-size: 15px; font-weight: 600; color: #303133; display: flex; align-items: center; gap: 6px; }
.videos-title i { color: #e6a23c; }
.videos-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.videos-empty { text-align: center; padding: 24px 0; color: #c0c4cc; font-size: 13px; }
.videos-empty i { font-size: 28px; margin-right: 8px; vertical-align: middle; }

.video-card { position: relative; background: white; border-radius: 10px; overflow: hidden; cursor: pointer; border: 1px solid #ebeef5; box-shadow: 0 1px 6px rgba(0,0,0,0.04); transition: all 0.2s ease; }
.video-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230, 162, 60, 0.18); border-color: #e6a23c; }
.video-cover { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-cover .no-cover { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #3a3a3a, #1a1a1a); color: #555; font-size: 36px; }
.play-mask { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.15); transition: all 0.2s; opacity: 0; }
.video-card:hover .play-mask { opacity: 1; background: rgba(0,0,0,0.35); }
.play-mask i { font-size: 52px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.6); transition: transform 0.2s; }
.video-card:hover .play-mask i { transform: scale(1.15); }
.video-duration { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,0.7); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 11px; letter-spacing: 0.5px; }
.video-info { padding: 10px 12px 12px; }
.video-title { font-size: 13px; font-weight: 600; color: #303133; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.video-uploader { font-size: 12px; color: #909399; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.video-uploader i { color: #409eff; }
.video-rating-line { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.video-rating-line .rating-text { color: #e6a23c; font-weight: 600; }
.video-rating-line .el-rate { height: 16px; line-height: 16px; }
.video-rating-line .el-rate__icon { font-size: 14px; margin-right: 1px; }
.video-actions-row { margin-top: 8px; padding-top: 6px; border-top: 1px dashed #f0f0f0; }
.video-actions-row .el-switch__label { font-size: 12px; }
.video-del-btn { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.5) !important; color: #fff !important; border-radius: 50%; width: 26px; height: 26px; padding: 0 !important; display: flex; align-items: center; justify-content: center; opacity: 0; transition: all 0.2s; }
.video-card:hover .video-del-btn { opacity: 1; }
.video-del-btn:hover { background: rgba(245, 108, 108, 0.95) !important; }

/* 视频播放弹窗 */
.video-player-dialog .el-dialog__body { padding: 16px 24px 24px; }
.video-player-wrap { display: flex; flex-direction: column; gap: 14px; }
.video-player-title { font-size: 16px; font-weight: 600; color: #303133; margin: 0; }
.video-player-provider { font-size: 13px; color: #606266; display: flex; align-items: center; gap: 6px; }
.video-player-provider i { color: #409eff; font-size: 16px; }
.video-rating-box { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px; background: linear-gradient(135deg, #fffbee, #fff8e1); border-radius: 10px; border: 1px solid #faecd8; }
.rating-label { font-weight: 600; color: #303133; font-size: 14px; }
.video-comments-section { margin-top: 8px; }
.comments-title { font-size: 15px; font-weight: 600; color: #303133; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.comments-title i { color: #409eff; }
.comment-editor-box { background: #fafbfc; padding: 12px; border-radius: 10px; border: 1px solid #ebeef5; margin-bottom: 16px; }
.comment-easymde .EasyMDEContainer { border-radius: 6px; overflow: hidden; }
.comment-easymde .CodeMirror { min-height: 80px; font-size: 14px; }
.comment-login-tip { padding: 20px; text-align: center; background: #fafbfc; border-radius: 10px; color: #909399; font-size: 13px; margin-bottom: 16px; border: 1px dashed #dcdfe6; }
.comment-login-tip i { color: #e6a23c; margin-right: 6px; }
.comment-login-tip a { color: #409eff; text-decoration: none; font-weight: 600; margin: 0 4px; }
.comment-login-tip a:hover { text-decoration: underline; }
.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment-item { padding: 12px 14px; background: #fafbfc; border-radius: 10px; border-left: 3px solid #409eff; transition: all 0.15s; }
.comment-item:hover { background: #f5f7fa; border-left-color: #e6a23c; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; }
.comment-user { font-weight: 600; color: #303133; display: flex; align-items: center; gap: 4px; }
.comment-user i { color: #409eff; font-size: 14px; }
.comment-time { color: #c0c4cc; font-size: 11px; }
.comment-del-btn { margin-left: auto; color: #c0c4cc !important; padding: 2px 6px !important; }
.comment-del-btn:hover { color: #f56c6c !important; }
.comment-content { font-size: 14px; line-height: 1.7; color: #303133; word-break: break-word; }
.comment-content p { margin: 4px 0; }
.comment-content img { max-width: 100%; max-height: 240px; border-radius: 6px; margin: 6px 0; }
.comment-empty { text-align: center; padding: 30px 0; color: #c0c4cc; font-size: 13px; }

/* 变式题目（左侧青绿色条） */
.question-card.variant-card {
    border-left: 4px solid #13c2c2;
    position: relative;
}

.question-type-badge-q {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    background: #e6fffb;
    color: #13c2c2;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #87e8de;
    margin-left: 6px;
}
.question-type-badge-q i { font-size: 10px; }

/* 待审核列表 */
.pending-list { display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow-y: auto; }
.pending-item { display: flex; gap: 12px; padding: 12px; border: 1px solid #ebeef5; border-radius: 10px; background: #fafbfc; }
.pending-cover { width: 120px; height: 68px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #000; }
.pending-cover.no-cover { display: flex; align-items: center; justify-content: center; color: #666; font-size: 22px; }
.pending-info { flex: 1; min-width: 0; }
.pending-title { font-weight: 600; color: #303133; margin-bottom: 4px; }
.pending-meta { display: flex; gap: 14px; font-size: 12px; color: #909399; margin-bottom: 4px; flex-wrap: wrap; }
.pending-target { font-size: 12px; color: #409eff; margin-bottom: 4px; }
.pending-actions { display: flex; flex-direction: column; gap: 6px; justify-content: center; }

/* ========== MathJax 独立公式左对齐 ========== */
mjx-container[jax="CHTML"][display="true"] {
    text-align: left !important;
    margin: 0.6em 0 !important;
}

/* ========== 正在查看答案/解法的题目：浅蓝高亮 ========== */
.question-card.viewing:not(.editing) {
    border: 2px solid #a0cfff !important;
    box-shadow: 0 0 0 8px rgba(160, 207, 255, 0.15), 0 4px 16px rgba(160, 207, 255, 0.50) !important;
    border-left: 4px solid #a0cfff !important;
}
/* ========== 正在查看的题目：徽章流光停止 ========== */
.question-card.viewing .has-video-badge {
    animation: none !important;
}