/* 未来工厂评估（5.0 MVP）— 沿用 site.css 设计体系变量 */

.asm-main {
    padding: 48px 0 96px;
    min-height: 60vh;
    background: var(--n-50);
}
.asm-container { max-width: 880px; }

.asm-loading { padding: 80px 0; text-align: center; color: var(--text-sub); }

/* ---------- 首页 ---------- */
.asm-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}
.asm-intro-card {
    background: var(--n-00);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.asm-intro-card h3 { font-size: 17px; margin-bottom: 14px; color: var(--text); }
.asm-dim-list, .asm-value-list { list-style: none; }
.asm-dim-list li, .asm-value-list li {
    position: relative;
    padding: 7px 0 7px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-sub);
    border-bottom: 1px dashed var(--n-200);
}
.asm-dim-list li:last-child, .asm-value-list li:last-child { border-bottom: none; }
.asm-dim-list li::before, .asm-value-list li::before {
    content: "";
    position: absolute;
    left: 2px; top: 14px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--blue-600);
}
.asm-value-list li::before { background: var(--amber-500); }
.asm-time-note { margin: 18px 0 16px; font-size: 13px; color: var(--text-sub); }
.asm-disclaimer { margin-top: 14px; font-size: 12px; color: var(--n-600); }

/* ---------- 答题 ---------- */
.asm-progress {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.asm-progress-text { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.asm-progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--n-200);
    overflow: hidden;
}
.asm-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--blue-600);
    border-radius: 3px;
    transition: width .25s ease;
}
.asm-save-hint { font-size: 12px; color: var(--n-600); white-space: nowrap; }

.asm-qcard {
    background: var(--n-00);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.asm-qhero {
    position: relative;
    padding: 44px 36px 36px;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--n-50) 100%);
    min-height: 180px;
    background-size: cover;
    background-position: center;
}
/* 有主题图片时：深色半透明遮罩 + 浅色文字 */
.asm-qhero.has-image {
    background-color: #1a2332;
}
.asm-qhero.has-image .asm-qhero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 20, 36, 0.55) 0%, rgba(12, 20, 36, 0.72) 100%);
    pointer-events: none;
}
.asm-qhero-content {
    position: relative;
    z-index: 1;
}
.asm-qdim {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-700);
    background: rgba(51, 109, 244, .1);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}
/* 有图时：徽标更醒目（浅色底 + 深色字） */
.asm-qhero.has-image .asm-qdim {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.asm-qhero.has-image .asm-qtitle { color: #ffffff; }
.asm-qhero.has-image .asm-qdesc { color: rgba(255, 255, 255, 0.82); }
.asm-qtitle { font-size: 21px; line-height: 1.5; color: var(--text); margin-bottom: 10px; font-weight: 600; }
.asm-qdesc { font-size: 14px; line-height: 1.7; color: var(--text-sub); margin-bottom: 0; }

.asm-options { display: flex; flex-direction: column; gap: 10px; padding: 24px 36px 28px; }
.asm-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--n-00);
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    transition: border-color .15s ease, background .15s ease;
}
.asm-option:hover { border-color: var(--blue-300); background: var(--n-50); }
.asm-option.is-selected {
    border-color: var(--blue-600);
    background: rgba(51, 109, 244, .06);
}
.asm-option-letter {
    flex: none;
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px solid var(--n-400);
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.asm-option.is-selected .asm-option-letter {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: #fff;
}

.asm-qnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}
.asm-btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-sub);
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    cursor: pointer;
}
.asm-btn-ghost:hover:not(:disabled) { border-color: var(--n-500); color: var(--text); }
.asm-btn-ghost:disabled { opacity: .4; cursor: default; }
.asm-qnav .btn-primary:disabled,
#asm-btn-role-next:disabled { opacity: .5; cursor: default; }
.asm-inline-error { color: #b4453c; font-size: 13px; margin: 0; flex: 1; text-align: center; }

/* ---------- 角色选择（5.1） ---------- */
.asm-role-title { font-size: 24px; line-height: 1.4; color: var(--text); margin-bottom: 10px; }
.asm-role-lead { font-size: 14px; line-height: 1.8; color: var(--text-sub); max-width: 640px; }
.asm-role-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 26px 0 18px;
}
.asm-role-option {
    text-align: left;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--n-00);
    cursor: pointer;
    font-size: 15px;
    color: var(--text);
    transition: border-color .15s ease, background .15s ease;
}
.asm-role-option:hover { border-color: var(--blue-300); background: var(--n-50); }
.asm-role-option.is-selected {
    border-color: var(--blue-600);
    background: rgba(51, 109, 244, .06);
    font-weight: 600;
}
.asm-role-other { max-width: 560px; }
.asm-role-error { text-align: left; margin-top: 12px; }
.asm-role-hint { font-size: 12px; color: var(--n-600); margin-top: 6px; }

/* ---------- 解锁表单 ---------- */
.asm-unlock-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--n-00);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-md);
}
.asm-unlock-title { font-size: 22px; color: var(--text); margin-bottom: 8px; }
.asm-unlock-lead { font-size: 14px; line-height: 1.7; color: var(--text-sub); margin-bottom: 24px; }
.asm-field { margin-bottom: 16px; }
.asm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.asm-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.asm-field label em { color: #b4453c; font-style: normal; }
.asm-field input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--n-00);
}
.asm-field input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(51, 109, 244, .12); }
.asm-consent-note { font-size: 12px; line-height: 1.7; color: var(--n-600); margin: 18px 0 4px; }
.asm-btn-block { width: 100%; margin-top: 14px; }
.asm-btn-block:disabled { opacity: .6; cursor: default; }

/* ---------- 报告 ---------- */
.asm-report-head {
    background: var(--n-00);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.asm-report-head h2 { font-size: 22px; color: var(--text); margin-bottom: 6px; }
.asm-report-meta { font-size: 13px; color: var(--text-sub); }
.asm-report-meta span + span::before { content: "·"; margin: 0 8px; }

.asm-section { margin-bottom: 32px; }
.asm-section > h3 { font-size: 17px; color: var(--text); margin-bottom: 14px; }

.asm-dim-item {
    background: var(--n-00);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 12px;
}
.asm-dim-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.asm-dim-name { font-size: 15px; font-weight: 600; color: var(--text); flex: 1; }
.asm-dim-score { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }
.asm-band {
    font-size: 12px; font-weight: 600;
    padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.asm-band.weak { color: #b4453c; background: rgba(180, 69, 60, .1); }
.asm-band.mid { color: #9a7424; background: rgba(217, 164, 65, .14); }
.asm-band.strong { color: var(--blue-700); background: rgba(51, 109, 244, .1); }
.asm-dim-bar { height: 8px; border-radius: 4px; background: var(--n-200); overflow: hidden; margin-bottom: 8px; }
.asm-dim-bar span { display: block; height: 100%; border-radius: 4px; }
.asm-dim-bar span.weak { background: #c2605a; }
.asm-dim-bar span.mid { background: var(--amber-500); }
.asm-dim-bar span.strong { background: var(--blue-600); }
.asm-dim-gap { font-size: 13px; color: var(--text-sub); line-height: 1.6; }
.asm-dim-pick { font-size: 12px; color: var(--n-600); margin-top: 4px; }

.asm-risk-card {
    background: var(--n-00);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 14px;
}
.asm-risk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.asm-risk-code {
    font-size: 12px; font-weight: 700; color: #b4453c;
    background: rgba(180, 69, 60, .1);
    padding: 2px 8px; border-radius: 4px;
}
.asm-risk-name { font-size: 16px; font-weight: 700; color: var(--text); }
.asm-risk-tag { font-size: 11px; color: var(--n-600); border: 1px solid var(--n-300); border-radius: 999px; padding: 2px 8px; }
.asm-risk-impact { font-size: 14px; line-height: 1.7; color: var(--text-sub); margin-bottom: 12px; }
.asm-risk-sub { font-size: 13px; font-weight: 600; color: var(--text); margin: 12px 0 6px; }
.asm-risk-list { list-style: none; }
.asm-risk-list li {
    position: relative;
    font-size: 13px; line-height: 1.7; color: var(--text-sub);
    padding-left: 16px; margin-bottom: 4px;
}
.asm-risk-list li::before {
    content: ""; position: absolute; left: 2px; top: 10px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--n-500);
}
.asm-risk-evidence { font-size: 12px; color: var(--n-600); background: var(--n-100); border-radius: 8px; padding: 10px 14px; line-height: 1.7; }

.asm-actions-card, .asm-norisk-card {
    background: var(--n-00);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
}
.asm-actions-card ol { margin-left: 18px; }
.asm-actions-card li { font-size: 14px; line-height: 1.8; color: var(--text-sub); margin-bottom: 4px; }
.asm-norisk-card p { font-size: 14px; line-height: 1.7; color: var(--text-sub); }

.asm-cta {
    background: var(--ink-900);
    border-radius: var(--radius);
    padding: 40px 36px;
    text-align: center;
    margin-bottom: 20px;
}
.asm-cta h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.asm-cta p { color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.8; max-width: 560px; margin: 0 auto 22px; }

.asm-report-note { font-size: 12px; color: var(--n-600); line-height: 1.7; text-align: center; }
.asm-restart { display: block; margin: 18px auto 0; background: none; border: none; color: var(--blue-600); font-size: 13px; cursor: pointer; text-decoration: underline; }

/* ---------- 5.1 报告：六部分 ---------- */
.asm-part-label {
    font-size: 12px; font-weight: 700; letter-spacing: .04em;
    color: var(--blue-700); margin-bottom: 6px;
}
.asm-part-head { margin-bottom: 14px; }
.asm-part-head h3 { font-size: 18px; color: var(--text); }
.asm-part-note { font-size: 12px; line-height: 1.7; color: var(--n-600); margin-bottom: 14px; }
.asm-empty-note {
    font-size: 13px; line-height: 1.7; color: var(--n-600);
    background: var(--n-100); border-radius: 8px; padding: 14px 16px;
}

.asm-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; margin-top: 16px; }
.asm-meta-item { display: flex; flex-direction: column; gap: 3px; }
.asm-meta-label { font-size: 12px; color: var(--n-600); }
.asm-meta-value { font-size: 14px; color: var(--text); font-weight: 600; }

.asm-total-card {
    display: flex; align-items: center; gap: 18px;
    background: var(--n-00); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px;
}
.asm-total-num { font-size: 28px; font-weight: 800; color: var(--blue-700); white-space: nowrap; }
.asm-total-info strong { font-size: 15px; color: var(--text); }
.asm-total-info p { font-size: 12px; color: var(--n-600); margin-top: 4px; line-height: 1.6; }

.asm-sg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.asm-sg-card {
    background: var(--n-00); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 20px;
}
.asm-sg-card h4 { font-size: 14px; margin-bottom: 8px; color: var(--text); }

.asm-evidence {
    background: var(--n-100); border-radius: 8px; padding: 12px 16px;
    font-size: 12px; line-height: 1.9; color: var(--text-sub);
}
.asm-evidence-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 18px; padding: 0; border: none; background: none;
    font-family: inherit; font-size: 13px; font-weight: 600;
    color: var(--blue-600); cursor: pointer;
}
.asm-evidence-toggle::after {
    content: ""; width: 6px; height: 6px; margin-top: -3px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform .2s;
}
.asm-evidence-toggle.is-open::after { margin-top: 2px; transform: rotate(-135deg); }
.asm-evidence-toggle + .asm-evidence { margin-top: 10px; }

.asm-insight-card {
    background: var(--n-00); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px;
}
.asm-insight-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.asm-insight-title { font-size: 15px; color: var(--text); flex: 1; }
.asm-insight-dim { font-size: 12px; color: var(--n-600); margin-bottom: 10px; }
.asm-insight-block { font-size: 13px; line-height: 1.7; color: var(--text-sub); margin-bottom: 6px; }
.asm-insight-label { display: inline-block; min-width: 110px; font-weight: 600; color: var(--text); }
.asm-insight-reason { font-size: 12px; color: var(--n-600); margin-top: 8px; line-height: 1.7; }

.asm-prio { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.asm-prio-high { color: #b4453c; background: rgba(180, 69, 60, .1); }
.asm-prio-medium { color: #9a7424; background: rgba(217, 164, 65, .16); }
.asm-prio-low { color: var(--n-600); background: var(--n-100); }

.asm-prio-table {
    background: var(--n-00); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.asm-prio-row {
    display: grid; grid-template-columns: 1.6fr repeat(4, .5fr) .6fr .6fr;
    gap: 8px; padding: 10px 16px; font-size: 13px; color: var(--text-sub);
    border-bottom: 1px solid var(--n-200); align-items: center;
}
.asm-prio-row:last-child { border-bottom: none; }
.asm-prio-head { background: var(--n-100); font-weight: 700; color: var(--text); font-size: 12px; }
.asm-prio-score { font-weight: 700; color: var(--text); }

.asm-action-card {
    background: var(--n-00); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px;
}
.asm-action-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.asm-action-title { font-size: 15px; color: var(--text); flex: 1; }
.asm-action-row {
    display: grid; grid-template-columns: 120px 1fr; gap: 10px;
    font-size: 13px; line-height: 1.7; color: var(--text-sub); margin-bottom: 6px;
}
.asm-action-label { font-weight: 600; color: var(--text); font-size: 13px; }
.asm-action-card > .asm-action-label,
.asm-summary-card > .asm-action-label { display: block; margin-top: 12px; }
.asm-action-card > ul { margin-bottom: 4px; }

.asm-summary-card {
    background: var(--n-00); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 26px;
}
.asm-summary-card .asm-action-row { grid-template-columns: 180px 1fr; margin-bottom: 10px; }

/* ---------- 错误 ---------- */
.asm-error-card {
    max-width: 480px;
    margin: 60px auto;
    text-align: center;
    background: var(--n-00);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}
.asm-error-card h2 { font-size: 19px; margin-bottom: 10px; }
.asm-error-card p { font-size: 14px; color: var(--text-sub); margin-bottom: 20px; }

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
    .asm-main { padding: 28px 0 64px; }
    .asm-intro-grid { grid-template-columns: 1fr; }
    .asm-qhero { padding: 28px 20px 24px; min-height: 140px; background-position: center; }
    .asm-qtitle { font-size: 18px; }
    .asm-options { padding: 18px 20px 22px; gap: 8px; }
    .asm-option { padding: 12px 14px; font-size: 13px; }
    .asm-field-row { grid-template-columns: 1fr; }
    .asm-unlock-card { padding: 26px 20px; }
    .asm-progress { flex-wrap: wrap; }
    .asm-qnav { flex-wrap: wrap; }
    .asm-cta { padding: 30px 22px; }
    .asm-role-options { grid-template-columns: 1fr; }
    .asm-meta-grid { grid-template-columns: 1fr 1fr; }
    .asm-sg-grid { grid-template-columns: 1fr; }
    .asm-total-card { flex-direction: column; align-items: flex-start; gap: 8px; }
    .asm-prio-row { grid-template-columns: 1.4fr repeat(6, .6fr); font-size: 11px; padding: 8px 10px; gap: 4px; }
    .asm-action-row,
    .asm-summary-card .asm-action-row { grid-template-columns: 1fr; gap: 2px; }
    .asm-insight-label { min-width: 0; display: block; }
}
