feat: 분석 페이지 고도화 및 AI 위험 적응형(AAS) SOI 모델 도입

This commit is contained in:
2026-03-23 13:51:05 +09:00
parent 0953f49db1
commit d416fee414
9 changed files with 1119 additions and 337 deletions

View File

@@ -111,11 +111,180 @@
.trend.down { color: #1976d2; }
.trend.steady { color: #666; }
/* 2. Main Grid Layout */
.analysis-main-grid {
.analysis-content.wide {
max-width: 95%;
padding: 20px 40px;
}
.top-info-grid {
display: grid;
grid-template-columns: 2fr 1fr;
grid-template-columns: 1fr 2fr; /* AI 정보는 작게, SOI 설명은 넓게 */
gap: 16px;
margin-bottom: 16px;
}
/* AI 엔진 정보 수직 정렬로 변경 */
.model-desc-vertical {
display: flex;
flex-direction: column;
gap: 12px;
}
.model-item-vertical {
display: flex;
align-items: center;
gap: 12px;
}
.model-item-vertical p {
font-size: 12.5px;
color: #475569;
margin: 0;
}
/* SOI Deep-Dive 스타일 */
.soi-deep-dive {
background: #fff;
border-radius: 16px;
border: 1px solid #eef2f6;
box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.soi-info-columns {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
.soi-info-column h6 {
font-size: 12px;
font-weight: 800;
color: #1e5149;
margin: 0 0 8px 0;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.soi-info-column p {
font-size: 11.5px;
color: #64748b;
line-height: 1.6;
margin: 0;
}
.soi-info-column p strong {
color: #334155;
font-weight: 700;
}
.model-tag {
padding: 4px 10px;
background: #f0f7ff;
color: #2563eb;
border-radius: 6px;
font-size: 11px;
font-weight: 800;
min-width: 70px;
text-align: center;
border: 1px solid #dbeafe;
}
/* 가이드 리스트 2줄 그리드 */
.guide-list.grid-2-rows {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px 20px;
margin: 0;
padding: 0;
}
.guide-list.grid-2-rows li {
background: #f8fafc;
padding: 4px 10px;
border-radius: 6px;
border: 1px solid #e2e8f0;
font-size: 11.5px;
white-space: nowrap;
}
/* 모달 레이아웃 */
.modal-overlay {
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0, 0, 0, 0.5);
display: none; /* 초기 상태 숨김 */
align-items: center;
justify-content: center;
z-index: 1000;
backdrop-filter: blur(4px);
}
.modal-content {
background: #fff;
width: 600px;
max-width: 90%;
border-radius: 16px;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
overflow: hidden;
animation: modal-up 0.3s ease-out;
}
@keyframes modal-up {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.modal-header {
padding: 20px 24px;
border-bottom: 1px solid #f1f5f9;
display: flex;
justify-content: space-between;
align-items: center;
background: #fcfcfc;
}
.modal-header h3 { margin: 0; font-size: 18px; color: #1e293b; font-weight: 800; }
.modal-close {
background: none; border: none; font-size: 24px; color: #94a3b8; cursor: pointer;
}
.modal-body { padding: 24px; }
/* 수식 및 설명 스타일 */
.formula-section { margin-bottom: 24px; }
.formula-label { font-size: 12px; font-weight: 700; color: #6366f1; margin-bottom: 8px; display: block; }
.formula-box {
background: #f8fafc;
padding: 16px;
border-radius: 12px;
border: 1px solid #e2e8f0;
font-family: 'Courier New', Courier, monospace;
font-weight: 700;
color: #1e5149;
text-align: center;
font-size: 16px;
}
.desc-text { font-size: 13.5px; color: #475569; line-height: 1.7; }
.desc-list { margin-top: 16px; padding-left: 20px; }
.desc-list li { margin-bottom: 8px; font-size: 13px; color: #64748b; }
/* 도움말 버튼 */
.btn-help {
width: 16px; height: 16px;
display: inline-flex; align-items: center; justify-content: center;
background: #e2e8f0; color: #64748b;
border-radius: 50%; font-size: 10px; font-weight: 800;
margin-left: 6px; cursor: pointer; vertical-align: middle;
transition: all 0.2s; border: none;
}
.btn-help:hover { background: #6366f1; color: #fff; }
/* 2. Main Grid Layout */
.analysis-main-full {
width: 100%;
margin-bottom: 24px;
}
@@ -153,6 +322,46 @@
.table-scroll-wrapper::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.table-scroll-wrapper::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
/* 분석 차트 그리드 */
.analysis-charts-grid {
display: grid;
grid-template-columns: 1.2fr 2fr; /* 원형 그래프 영역 소폭 확장 */
gap: 20px;
margin-bottom: 24px;
}
.chart-container-box {
background: #f8fafc;
border-radius: 12px;
padding: 20px;
border: 1px solid #e2e8f0;
height: 320px; /* 고정 높이 */
display: flex;
flex-direction: column;
}
.chart-container-box h5 {
margin: 0 0 15px 0;
font-size: 13px;
font-weight: 700;
color: #475569;
display: flex;
align-items: center;
gap: 8px;
}
.chart-container-box canvas {
flex: 1;
width: 100% !important;
height: 100% !important;
}
@media (max-width: 1024px) {
.analysis-charts-grid {
grid-template-columns: 1fr;
}
}
.chart-placeholder {
height: 300px;
background: #f8fafc;
@@ -227,9 +436,94 @@
.row-warning { background: #fffaf0 !important; }
.row-success { background: #f0fdf4 !important; }
.font-bold { font-weight: 700; }
/* 아코디언 상세 행 스타일 */
.p-war-table tbody tr.project-row {
cursor: pointer;
transition: background 0.2s;
}
/* P-WAR 가이드 스타일 */
.p-war-table tbody tr.project-row:hover {
background: #f1f5f9 !important;
}
.detail-row {
display: none;
background: #f8fafc;
}
.detail-row.active {
display: table-row;
}
.detail-container {
padding: 20px 30px;
border-bottom: 2px solid #e2e8f0;
}
.formula-explanation-card {
background: white;
border-radius: 12px;
padding: 20px;
border: 1px solid #e2e8f0;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
gap: 15px;
}
.formula-step {
display: flex;
align-items: flex-start;
gap: 15px;
}
.step-num {
background: #1e5149;
color: white;
width: 20px;
height: 20px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 800;
flex-shrink: 0;
margin-top: 2px;
}
.step-content {
flex: 1;
}
.step-title {
font-size: 13px;
font-weight: 700;
color: #334155;
margin-bottom: 4px;
}
.step-desc {
font-size: 12px;
color: #64748b;
line-height: 1.5;
}
.math-logic {
font-family: 'Courier New', Courier, monospace;
background: #f1f5f9;
padding: 4px 8px;
border-radius: 4px;
font-weight: 700;
color: #0f172a;
font-size: 13px;
margin-top: 6px;
display: inline-block;
}
.highlight-var { color: #2563eb; }
.highlight-val { color: #059669; }
.highlight-penalty { color: #dc2626; }
.d-war-guide {
display: flex;
gap: 20px;