/* ==========================================================
   成人刚需计算器（P0 第 1 批 15 个）共用样式
   依赖：css/tools/calc-common.css（基础计算卡片样式）
   本文件只提供通用「AI 解读」区块与少量对比展示类
   ========================================================== */

/* ---------- AI 解读区块 ---------- */
.ac-ai-row {
    display: flex;
    gap: 10px;
}
.ac-ai-btn {
    flex: none;
    height: 43px;
    padding: 0 18px;
    font-size: 13.5px;
    white-space: nowrap;
}
.ac-ai-status {
    font-size: 12.5px;
    line-height: 1.6;
    margin-top: 8px;
    min-height: 0;
}
.ac-ai-status.is-ok { color: #1f9d43; font-weight: 700; }
.ac-ai-status.is-err { color: #e0447c; font-weight: 700; }

.ac-ai-result {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 150, 220, 0.08), rgba(0, 168, 168, 0.05));
    border: 1px solid rgba(0, 150, 220, 0.25);
}
.ac-ai-result[hidden] { display: none; }

.ac-ai-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    margin-bottom: 10px;
}
.ac-ai-head b { font-size: 14px; }

.ac-ai-body {
    font-size: 13px;
    line-height: 1.85;
    color: var(--c-text);
    white-space: normal;
    word-break: break-word;
}
.ac-ai-body b { color: #0a7fc0; }
.ac-ai-disclaim {
    margin-top: 10px;
    font-size: 11.5px;
    line-height: 1.7;
    color: var(--c-text-muted);
}

/* ---------- 对比结论条 ---------- */
.ac-verdict {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(0, 150, 220, 0.08);
    border: 1px solid rgba(0, 150, 220, 0.26);
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 12px;
}
.ac-verdict.is-win { background: rgba(52, 199, 89, 0.09); border-color: rgba(52, 199, 89, 0.32); }
.ac-verdict.is-lose { background: rgba(224, 68, 124, 0.08); border-color: rgba(224, 68, 124, 0.3); }
.ac-verdict .ac-verdict-icon { font-size: 20px; flex: none; }
.ac-verdict b { font-size: 14px; }

/* ---------- 年份 / 阶段明细表 ---------- */
.ac-timeline {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--c-border);
    border-radius: 12px;
}
.ac-timeline table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ac-timeline th,
.ac-timeline td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--c-border);
    text-align: right;
    white-space: nowrap;
}
.ac-timeline th:first-child,
.ac-timeline td:first-child { text-align: left; }
.ac-timeline thead th {
    position: sticky;
    top: 0;
    background: var(--c-surface-soft);
    z-index: 1;
}
.ac-timeline tr.is-mark td { background: rgba(0, 150, 220, 0.09); font-weight: 700; }

@media (max-width: 620px) {
    .ac-ai-row { flex-direction: column; }
    .ac-ai-btn { width: 100%; }
}

/* ---------- 黑夜模式 ---------- */
[data-theme="dark"] .ac-ai-result {
    background: rgba(0, 150, 220, 0.12);
    border-color: rgba(0, 150, 220, 0.3);
}
[data-theme="dark"] .ac-ai-status.is-ok { color: #4ede78; }
[data-theme="dark"] .ac-ai-status.is-err { color: #ff7ab0; }
[data-theme="dark"] .ac-ai-body b { color: #58bdf0; }
[data-theme="dark"] .ac-verdict {
    background: rgba(0, 150, 220, 0.13);
    border-color: rgba(0, 150, 220, 0.32);
}
[data-theme="dark"] .ac-verdict.is-win { background: rgba(52, 199, 89, 0.13); }
[data-theme="dark"] .ac-verdict.is-lose { background: rgba(224, 68, 124, 0.13); }
[data-theme="dark"] .ac-timeline thead th { background: rgba(255, 255, 255, 0.05); }
