/* static/css/pages/DisplayStand/project_literatures.css */

/* ===== 页面头部 ===== */
.content-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e6e9;
}

.page-title {
    font-size: 2rem;
    font-weight: 500;
    color: #2d3e4f;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-title i {
    color: #7a8b9b;
    font-size: 1.8rem;
}

.page-subtitle {
    color: #7e8c9d;
    font-size: 0.95rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* ===== 项目概览卡片 ===== */
.project-overview {
    background: white;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 30px;
    border: 1px solid #e2e6e9;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 4px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 500;
    color: #2d3e4f;
    margin-bottom: 3px;
    font-family: 'Georgia', serif;
}

.stat-label {
    color: #7e8c9d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== 项目描述 ===== */
.project-description-card {
    background: white;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 30px;
    border: 1px solid #e2e6e9;
}

/* ===== 研究问题树 ===== */
.research-tree {
    margin: 30px 0;
}

.tree-container {
    position: relative;
}

/* ===== 问题节点 - 中性卡片 ===== */
.question-node {
    background: white;
    border: 1px solid #e2e6e9;
    border-radius: 6px;
    padding: 20px 22px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.question-node:hover {
    border-color: #bcc5ce;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

/* 层级缩进 */
.question-node.level-1 {
    margin-left: 30px;
    border-left: 2px solid #d7dee5;
}
.question-node.level-2 {
    margin-left: 60px;
    border-left: 2px solid #cbd2da;
}
.question-node.level-3 {
    margin-left: 90px;
    border-left: 2px solid #bcc5ce;
}
.question-node.level-4 {
    margin-left: 120px;
    border-left: 2px solid #aab5c0;
}

/* ===== 问题头部 ===== */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

/* ===== 层级指示 ===== */
.question-level {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.level-indicator {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    color: white;
    letter-spacing: 0.3px;
}

.level-indicator.level-0 { background: #4a5a6a; }
.level-indicator.level-1 { background: #5f7080; }
.level-indicator.level-2 { background: #738494; }
.level-indicator.level-3 { background: #8799aa; }
.level-indicator.level-4 { background: #9aadbf; }

/* 父问题指示 */
.parent-indicator {
    font-size: 0.8rem;
    color: #6e7d8c;
    background: #f5f7f9;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.parent-indicator i {
    font-size: 0.7rem;
    color: #8e9dab;
}

/* ===== 状态徽章 ===== */
.status-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 400;
}

.status-completed {
    background: #e4ebe5;
    color: #2b5e3b;
}

.status-in-progress {
    background: #f5efe0;
    color: #8a6e4b;
}

.status-not-started {
    background: #eef1f4;
    color: #566573;
}

/* ===== 问题标题 ===== */
.question-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2d3e4f;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

/* ===== 问题描述 ===== */
.question-description {
    color: #5e6e7e;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 12px 15px;
    background: #f5f7f9;
    border-radius: 4px;
    border-left: 2px solid #cbd2da;
    margin: 12px 0;
}

.question-description i {
    color: #8e9dab;
    margin-right: 6px;
}

/* ===== 方法标签 ===== */
.method-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.method-tag {
    background: #f0f3f6;
    color: #5e6e7e;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #d7dee5;
    display: inline-flex;
    align-items: center;
}

.method-tag i {
    font-size: 0.7rem;
    margin-right: 5px;
    color: #8e9dab;
}

/* ===== 圆形进度条 - 中性 ===== */
.progress-circle {
    width: 70px;
    height: 70px;
    position: relative;
    flex-shrink: 0;
}

.progress-circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: #e9edf2;
    stroke-width: 6;
}

.progress-circle-fill {
    fill: none;
    stroke: #6b7c8d;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 188.4;
    stroke-dashoffset: 188.4;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: 400;
    color: #2d3e4f;
    font-family: 'Monaco', 'Menlo', monospace;
}

/* 进度颜色区间 */
.progress-0-30 .progress-circle-fill { stroke: #a58b8b; }
.progress-30-70 .progress-circle-fill { stroke: #a89b7a; }
.progress-70-100 .progress-circle-fill { stroke: #6b7c8d; }

/* ===== 问题详情元数据 ===== */
.question-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 12px 0;
    padding-top: 8px;
    border-top: 1px solid #e2e6e9;
}

.question-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6e7d8c;
    font-size: 0.85rem;
}

.question-detail-item i {
    color: #8e9dab;
    font-size: 0.8rem;
}

/* ===== 展开/收起按钮 ===== */
.toggle-children-btn {
    background: white;
    border: 1px solid #d0d7de;
    color: #4f5f6f;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.toggle-children-btn:hover {
    background: #f1f3f5;
    border-color: #9aa9b7;
}

.toggle-children-btn i {
    transition: transform 0.2s ease;
    font-size: 0.7rem;
}

.toggle-children-btn.expanded i {
    transform: rotate(180deg);
}

/* ===== 文献列表 ===== */
.literature-list {
    margin: 20px 0 10px 0;
    padding-top: 15px;
    border-top: 1px solid #e2e6e9;
}

.literature-list h6 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4f5f6f;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.literature-list h6 i {
    color: #8e9dab;
}

/* ===== 文献卡片 ===== */
.literature-item {
    background: #f9fafb;
    border: 1px solid #e2e6e9;
    border-radius: 4px;
    padding: 15px 18px;
    margin-bottom: 12px;
    transition: all 0.15s ease;
}

.literature-item:hover {
    border-color: #bcc5ce;
    background: white;
}

.literature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.literature-title {
    font-weight: 500;
    color: #2d3e4f;
    margin: 0;
    font-size: 1rem;
}

/* ===== 重要性徽章 - 中性 ===== */
.importance-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 400;
    color: white;
}

.importance-5 { background: #a58b8b; }
.importance-4 { background: #a89b7a; }
.importance-3 { background: #7e8c9d; }
.importance-2 { background: #6b7c8d; }
.importance-1 { background: #9aadbf; }

/* ===== 文献备注 ===== */
.literature-note {
    background: #f8f5ed;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 2px solid #ccbda8;
    margin: 8px 0;
    font-size: 0.85rem;
    color: #5f5a4a;
}

.project-note {
    background: #f0f3f6;
    padding: 6px 12px;
    border-radius: 4px;
    border-left: 2px solid #aab5c0;
    margin: 8px 0;
    font-size: 0.8rem;
    color: #4f5f6f;
}

/* ===== 文献标签 ===== */
.project-tags {
    margin: 6px 0;
}

.project-tags .badge {
    background: #f0f3f6;
    color: #4f5f6f;
    font-weight: 400;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    border: 1px solid #d7dee5;
}

/* ===== 文献贡献类型 ===== */
.literature-contribution .badge {
    background: #e4ebe5;
    color: #2b5e3b;
    font-weight: 400;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
}

/* ===== 文献元数据 ===== */
.literature-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #8e9dab;
}

.literature-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.literature-meta i {
    font-size: 0.7rem;
    color: #aab5c0;
}

/* ===== 子问题容器 ===== */
.child-questions-container {
    margin-left: 20px;
    padding-left: 15px;
    border-left: 1px dashed #d7dee5;
    margin-top: 15px;
}

/* ===== 未分配文献区域 ===== */
.unassigned-section {
    margin-top: 40px;
    padding: 25px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px dashed #bcc5ce;
}

/* ===== 文献卡片（未分配区域） ===== */
.literature-card {
    border: 1px solid #e2e6e9;
    border-radius: 4px;
    transition: all 0.15s ease;
    height: 100%;
}

.literature-card:hover {
    border-color: #bcc5ce;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.literature-card .card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #2d3e4f;
    margin-bottom: 8px;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #8e9dab;
    border: 1px dashed #d7dee5;
    border-radius: 6px;
    margin: 20px 0;
    background: #f9fafb;
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #cbd2da;
}

/* ===== 导航底部 ===== */
.navigation-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e6e9;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .question-header {
        flex-direction: column;
        gap: 15px;
    }

    .progress-circle {
        align-self: flex-start;
    }

    .question-node.level-1 { margin-left: 20px; }
    .question-node.level-2 { margin-left: 40px; }
    .question-node.level-3 { margin-left: 60px; }
    .question-node.level-4 { margin-left: 80px; }

    .literature-meta {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 576px) {
    .question-level {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}