/* 第一行 经营数据 + 风险预警 start */
.row-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1;
    min-height: 0;
}

/* 总体经营数据 */
.metrics-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.metric-item {
    flex: 1;
    background: #f9fbfe;
    padding: 10px 2px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #ecf3fa;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f67ff;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #5d7188;
    margin-top: 2px;
}

.trend-down, .trend-up {
    font-size: 0.92rem;
    margin-top: 1px;
}

.trend-down {
    color: #10b981;
}

.trend-up {
    color: #f97316;
}

.insight-text {
    font-size: 0.9rem;
    background: #f1f7fe;
    border-radius: 20px;
    padding: 3px 8px;
    color: #1f6392;
    margin-top: 3px;
}

/* 风险列表 */
.risk-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 2px 0 5px;
}

.risk-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #f0f4fa;
    font-size: 0.88rem;
    font-weight: 500;
}

.risk-high {
    color: #e11d48;
    font-weight: 600;
}

.risk-mid {
    color: #f59e0b;
}

.tag-mini {
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f67ff;
    display: inline-flex;
    align-items: center;
}

/* 第一行 经营数据 + 风险预警 end */

/* 第一行 重点项目 + 智能体矩阵 start */
.row-projects-agents {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1.15;
    min-height: 0;
}

/* 重点项目网格 */
.projects-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.project-mini-card {
    background: #fefeff;
    border-radius: 12px;
    padding: 10px 8px;
    /*border-left: 3px solid #0f67ff;*/
    border: 1px solid #eef2fa;
    border-left-width: 3px;
    margin-top: 5px;
}

.project-mini-title {
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.progress-mini {
    background: #e2e8f0;
    border-radius: 8px;
    height: 3px;
    margin: 3px 0;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #0f67ff, #00c2a0);
    border-radius: 8px;
}

.project-desc-mini {
    font-size: 0.8rem;
    color: #4b6584;
    line-height: 1.25;
}

/* 智能体矩阵 */
.agents-grid-compact {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.agent-compact {
    background: #fafcff;
    border-radius: 12px;
    padding: 15px 2px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #eef2f8;
    transition: 0.05s;
}

.agent-compact:hover {
    border-color: #0f67ff;
    background: #ffffff;
}

.agent-emoji {
    font-size: 1.1rem;
}

.agent-name-compact {
    font-weight: 700;
    font-size: 0.82rem;
    margin-top: 2px;
}

.agent-latest-compact {
    font-size: 0.72rem;
    color: #7a8aa3;
    margin-top: 5px;
}

.agent-result-area {
    background: #f8fbfe;
    border-radius: 10px;
    padding: 5px 8px;
    border: 1px solid #eef2f8;
    font-size: 0.62rem;
}

/* 第一行 重点项目 + 智能体矩阵 end */

/* 第三行 成果交付 + 待办知识库专家服务 start */
.row-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 0.95;
    min-height: 0;
}

/* 成果交付 */
.delivery-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.delivery-row-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
}

.delivery-row {
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
    font-size: 0.74rem;
    padding: 3px 0;
    gap: 20px;
    border-bottom: 1px solid #f0f4fa;
}

.delivery-row span {
    font-size: 0.9rem;
}

.btn-sm {
    font-size: 0.88rem;
    padding: 4px 0;
    background: #f4f9fe;
    border: 1px solid #dce5ef;
    border-radius: 24px;
    cursor: pointer;
    width: 100%;
}

/* 待办区域 */
.todo-list {
    /*margin-bottom: 15px;*/
}

.todo-row {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.65rem;
}

.todo-row span {
    font-size: 0.9rem;
}

.todo-dot {
    width: 4px;
    height: 4px;
    background: #0f67ff;
    border-radius: 1px;
    flex-shrink: 0;
}

hr {
    margin: 4px 0;
    border: 0;
    height: 1px;
    background: #eef2f6;
}

.todo-list-content {
    display: flex;
    justify-content: space-between
}

.knowledge-row {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.knowledge-link-mini {
    color: #0f67ff;
    font-size: 0.9rem;
    text-decoration: none;
    background: #f5f9fe;
    padding: 2px 8px;
    border-radius: 20px;
    cursor: pointer;
}

.expert-tag-mini {
    background: #f0f4fa;
    padding: 3px 10px;
    border-radius: 24px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-block;
    margin-right: 6px;
    margin-top: 3px;
}

/* 第三行 成果交付 + 待办知识库专家服务 end */

/* 第四行 AI问题解决 · 管理提升 start */
.row-ai-solution {
    display: block;
    margin-top: clamp(3px, 0.6vh, 6px);
    flex-shrink: 0;
}

.ai-solution-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafdff 100%);
    border-radius: clamp(10px, 1.2vw, 14px);
    border: 1px solid #e6edf4;
    transition: all 0.3s ease;
}

.ai-solution-inner {
    padding: clamp(6px, 1vh, 10px) clamp(8px, 1.5vw, 14px);
}

.ai-solution-header {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1vw, 8px);
    margin-bottom: clamp(6px, 1vh, 12px);
    border-bottom: 1px solid #eef2fa;
    padding-bottom: clamp(4px, 0.8vh, 8px);
}

.ai-solution-header h3 {
    font-size: clamp(0.85rem, 1.6vw, 1.1rem);
    font-weight: 700;
    color: #0f5fcf;
}

.card-header .badge-ai {
    background: #0f67ff10;
    border-radius: 20px;
    padding: clamp(2px, 0.4vh, 3px) clamp(6px, 1vw, 10px);
    font-size: clamp(0.6rem, 1vw, 0.9rem);
    color: #0f67ff;
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(6px, 1vw, 10px);
    margin-bottom: clamp(8px, 1.2vh, 12px);
}

.quick-q-item {
    background: #0f67ff;
    border-radius: 28px;
    padding: clamp(3px, 0.6vh, 5px) clamp(8px, 1.5vw, 14px);
    font-size: clamp(0.75rem, 1.1vw, 0.95rem);
    color: white;
    cursor: pointer;
    transition: 0.1s;
    border: 1px solid #e0eaf3;
    font-weight: 500;
    white-space: nowrap;
}

.quick-q-item:hover {
    /*background: #e6f0fe;*/
    border-color: #0f67ff;
}

.ai-response-card {
    background: #f9fdfe;
    border-radius: 14px;
    padding: clamp(6px, 1vh, 10px) clamp(8px, 1.5vw, 14px);
    border-left: 2px solid #0f67ff;
    border-right: 2px solid #0f67ff;
    margin-top: 4px;
    font-size: clamp(0.7rem, 1.2vw, 0.82rem);
    line-height: 1.4;
    color: #1f3a4b;
}

.response-title {
    font-weight: 700;
    color: #0f67ff;
    font-size: clamp(0.65rem, 1.1vw, 0.9rem);
    margin-bottom: clamp(3px, 0.6vh, 6px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.response-content {
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    color: #2c4b6e;
    font-size: clamp(0.65rem, 1.1vw, 0.9rem);
}

/* 第四行 AI问题解决 · 管理提升 end */

/* 页面底部区域 start */
.footer-note {
    text-align: center;
    font-size: 0.82rem;
    color: #7e95b0;
    padding: 4px 16px;
    border-top: 1px solid #eef2f6;
    background: #ffffff;
    flex-shrink: 0;
}

/* 页面底部区域 end */
