/* ============================================================================
 * nobuddy.cc · 诊断问卷与报告样式（AI READY 17 诊断点版）
 * 依赖 style.css 的变量：--primary --primary-dark --text --text-secondary
 *                        --border --bg --card --radius
 * ========================================================================== */

.dx-body { background: var(--bg); color: var(--text); line-height: 1.68; margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.dx-wrap { max-width: 780px; margin: 0 auto; padding: 22px 18px 70px; }

/* ── 页头 ── */
.dx-nav { background: #0E2A22; color: #fff; }
.dx-nav-in { max-width: 780px; margin: 0 auto; padding: 14px 18px; display: flex;
  align-items: center; justify-content: space-between; gap: 12px; }
.dx-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16.5px; color: #fff; text-decoration: none; }
.dx-logo { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; display: block;
  background: #fff; object-fit: contain; }
.dx-brand small { font-weight: 500; color: #A9C4B9; font-size: 12.5px; }
.dx-nav a.back { color: #C9DED5; font-size: 13.5px; text-decoration: none; }
.dx-nav a.back:hover { color: #fff; }

/* ── 进度 ── */
.dx-bar { height: 6px; background: #E4EFE9; border-radius: 99px; overflow: hidden; margin: 18px 0 6px; }
.dx-bar > span { display: block; height: 100%; width: 0; transition: width .25s;
  background: linear-gradient(90deg, #0E8E66, #34C79B); }
.dx-bar-txt { font-size: 12.5px; color: #5C7268; margin-bottom: 18px;
  display: flex; justify-content: space-between; }

/* ── 卡片与题目 ── */
.dx-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px; box-shadow: 0 20px 44px -34px rgba(14,33,27,.34); }
.dx-tagline { font-size: 12.5px; letter-spacing: .05em; color: #5C7268; margin-bottom: 8px; }
.dx-card h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.01em; }
.dx-card h2 { font-size: 17.5px; margin: 26px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.dx-card h3 { font-size: 15.5px; margin: 18px 0 6px; }
.dx-hint { font-size: 13.5px; color: #5C7268; margin: 0 0 16px; }

/* 多选提醒：放在题干上方，用站点统一绿 */
.dx-multi { display: inline-block; vertical-align: 4px; margin-right: 8px; padding: 2px 9px;
  border-radius: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  color: #0B7A57; background: #EAF4EF; border: 1px solid #BFE3D2; }
.dx-opts { display: grid; gap: 10px; margin-top: 16px; }
.dx-opt { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: 15.5px;
  cursor: pointer; background: #fff; transition: .15s; display: flex; align-items: center; gap: 11px; }
.dx-opt:hover { border-color: var(--primary); background: #F7FBF9; transform: translateY(-1px); }
.dx-opt.sel { border-color: var(--primary); background: #EAF4EF; }
.dx-opt .k { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1.5px solid #C3DACF;
  display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: #5C7268; }
.dx-opt.sel .k { border-color: var(--primary); background: var(--primary); color: #fff; }

.dx-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 10px; flex-wrap: wrap; }
.dx-btn { border: 1px solid var(--border); background: #fff; color: var(--text-secondary); border-radius: 10px;
  padding: 10px 18px; font-size: 14.5px; cursor: pointer; font-family: inherit; }
.dx-btn.pri { background: #0B7A57; border-color: #0B7A57; color: #fff; }
.dx-btn:disabled { opacity: .4; cursor: not-allowed; }
.dx-foot-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.dx-note { font-size: 12.5px; color: #5C7268; }

.dx-probe { background: #FFF8F1; border: 1px solid #F2D9C0; border-radius: 12px; padding: 12px 14px;
  font-size: 13.5px; color: #8A4B12; margin: 0 0 14px; }
.dx-probe b { color: #7A3E08; }

/* ── 报告 ── */
.res .kpi { border-left: 3px solid var(--primary); background: #F7FBF9; padding: 12px 15px;
  border-radius: 0 10px 10px 0; margin: 11px 0; }
.res .kpi > b { display: block; font-size: 13px; color: #5C7268; font-weight: 600; letter-spacing: .03em; margin-bottom: 3px; }
.res .kpi > span { font-size: 16px; font-weight: 700; }
.res .kpi .ev { font-size: 13.5px; color: var(--text-secondary); margin-top: 7px; padding-top: 7px;
  border-top: 1px dashed #C3DACF; }
.res .kpi .ev i { font-style: normal; color: #5C7268; }
.dx-stars { letter-spacing: 2px; color: var(--primary); font-size: 15px; }
.dx-dim { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0; }
.dx-dim .c { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fff; }
.dx-dim .c b { display: block; font-size: 12.5px; color: #5C7268; font-weight: 600; }
.dx-dim .c span { font-size: 14px; font-weight: 600; }
.dx-pt { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.dx-pt .hd { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.dx-pt .hd b { font-size: 15px; }
.dx-pt .body { font-size: 14px; color: var(--text-secondary); margin-top: 8px; }
.dx-pt .body dl { margin: 0; }
.dx-pt .body dt { font-size: 12.5px; color: #5C7268; margin-top: 8px; font-weight: 600; }
.dx-pt .body dd { margin: 2px 0 0; }
table.dx-q { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
table.dx-q th { text-align: left; color: #5C7268; font-weight: 600; border-bottom: 1px solid var(--border); padding: 7px 6px; }
table.dx-q td { border-bottom: 1px solid #EEF6F1; padding: 7px 6px; vertical-align: top; color: var(--text-secondary); }
table.dx-q td.a { color: var(--text); font-weight: 600; }
.dx-road { display: grid; gap: 12px; margin-top: 10px; }
.dx-road .r { border-left: 3px solid #C3DACF; padding: 4px 0 4px 14px; }
.dx-road .r b { display: block; font-size: 14.5px; }
.dx-road .r span { font-size: 13.5px; color: var(--text-secondary); }
ul.dx-tight { margin: 8px 0 0; padding-left: 20px; font-size: 14px; color: var(--text-secondary); }
ul.dx-tight li { margin: 5px 0; }

/* ── 升级 / 留资 / 结束 ── */
.dx-offer { background: linear-gradient(160deg, #F7FBF9, #EAF4EF); border: 1px solid #E4F5EE;
  border-radius: 16px; padding: 22px; margin-top: 20px; }
.dx-offer h3 { margin: 0 0 8px; font-size: 17px; }
.dx-offer p { margin: 0 0 16px; font-size: 14.5px; color: var(--text-secondary); }
.dx-save { background: #F7FBF9; border: 1px solid #E4F5EE; border-radius: 12px; padding: 14px 16px;
  font-size: 13.5px; margin-top: 14px; }
.dx-save code { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: 13px; }
.dx-form label { display: block; font-size: 13px; color: #5C7268; margin: 0 0 5px; }
.dx-form input { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  font-size: 15px; font-family: inherit; margin-bottom: 10px; background: #fff; box-sizing: border-box; }
.dx-form input:focus { outline: none; border-color: var(--primary); }
.dx-err { color: #C2410C; font-size: 13px; min-height: 18px; }
@media print { .dx-btn, .dx-offer, .dx-bar, .dx-bar-txt, .dx-nav { display: none !important; } }

/* ===== 报告：静态柱状图 ===== */
.dx-bars { margin: 14px 0 18px; }
.dx-bar-row { display: grid; grid-template-columns: 96px 1fr 38px; align-items: center; gap: 10px; margin: 9px 0; }
.dx-bar-row .nm { font-size: 13px; color: #5C7268; }
.dx-bar-row .track { height: 12px; background: #E4EFE9; border-radius: 99px; overflow: hidden; display: block; }
.dx-bar-row .track i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #0E8E66, #34C79B); }
.dx-bar-row .vl { font-size: 13.5px; font-weight: 700; color: #0B7A57; text-align: right; }

/* ===== 报告：五维快评卡 ===== */
.dx-dim2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; margin: 14px 0; }
.dx-dim2 .c { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.dx-dim2 .hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.dx-dim2 .hd b { font-size: 14.5px; }
.dx-dim2 .sc { font-size: 12.5px; color: #0B7A57; font-weight: 600; }
.dx-dim2 .track.sm { height: 7px; margin-bottom: 8px; }
.dx-dim2 ul { list-style: none; margin: 0; padding: 0; }
.dx-dim2 li { display: flex; gap: 8px; padding: 7px 0; border-top: 1px dashed #E4F0EA; font-size: 13.5px; }
.dx-dim2 li:first-child { border-top: 0; }
.dx-dim2 li em { flex: 0 0 86px; font-style: normal; color: #5C7268; }
.dx-dim2 li span { color: var(--text); }

/* ===== 报告：作答记录表（双栏看得清） ===== */
table.dx-qa { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 12px; }
table.dx-qa th { text-align: left; background: #F1F7F4; color: #0E211B; font-weight: 700;
  padding: 10px 12px; border-bottom: 2px solid #CFE6DA; }
table.dx-qa th:nth-child(2) { width: 42%; }
table.dx-qa td { padding: 10px 12px; border-bottom: 1px solid #EEF6F1; color: #5C7268; vertical-align: top; }
table.dx-qa td.a { color: #0E211B; font-weight: 700; }
table.dx-qa tbody tr:nth-child(even) { background: #FAFDFB; }

/* ===== 报告：标签页（打印时全部展开） ===== */
.dx-rtabs { display: flex; gap: 6px; margin: 0 0 14px; }
.dx-rtab { border: 1px solid var(--border); background: #fff; color: var(--text-secondary);
  border-radius: 999px; padding: 8px 18px; font-size: 13.5px; cursor: pointer; font-family: inherit; transition: .15s; }
.dx-rtab:hover { border-color: var(--primary); color: #0E8E66; }
.dx-rtab.active { background: #0B7A57; border-color: #0B7A57; color: #fff; font-weight: 600; }
.dx-rpane { display: none; }
.dx-rpane.active { display: block; }
@media print { .dx-rtabs { display: none !important; } .dx-rpane { display: block !important; } }

/* ===== 报告：自成体系的排版（问卷页 / 后台 / 演示页通用） ===== */
.res { color: var(--text); }
.res h1 { font-size: 23px; margin: 4px 0 8px; letter-spacing: -.01em; }
.res h2 { font-size: 17.5px; margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.res h3 { font-size: 15.5px; margin: 20px 0 8px; color: #0E211B; }
.res .tagline { font-size: 12.5px; letter-spacing: .05em; color: #5C7268; margin-bottom: 6px; }
.res .hint { font-size: 13.5px; color: #5C7268; margin: 0 0 4px; }
.res ul.tight { margin: 10px 0 0; padding-left: 20px; font-size: 14px; color: var(--text-secondary); }
.res ul.tight li { margin: 6px 0; }

/* ===== 报告：通用标签页（两层通用） ===== */
.dx-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.dx-tab { border: 1px solid var(--border); background: #fff; color: var(--text-secondary);
  border-radius: 10px; padding: 8px 14px; font-size: 13.5px; cursor: pointer; font-family: inherit; transition: .15s; }
.dx-tab:hover { border-color: var(--primary); color: #0E8E66; }
.dx-tab.active { background: #0B7A57; border-color: #0B7A57; color: #fff; font-weight: 600; }
.dx-tab i { font-style: normal; font-size: 11.5px; opacity: .75; margin-left: 5px; }
.dx-pane { display: none; }
.dx-pane.active { display: block; }
/* 第二层（维度内的诊断点）：更轻一些 */
.dx-pts-wrap .dx-tabs { margin-top: 4px; }
.dx-pts-wrap .dx-tab { border-radius: 999px; padding: 6px 13px; font-size: 13px; background: #F7FBF9; }
.dx-pts-wrap .dx-tab.active { background: #12A97A; border-color: #12A97A; }

/* ===== 报告：星级显眼 ===== */
.dx-stars-lg { display: inline-flex; align-items: baseline; gap: 8px; }
.dx-stars-lg { font-size: 19px; letter-spacing: 2px; color: #F0A020; }
.dx-stars-lg i { font-style: normal; font-size: 13px; font-weight: 700; color: #0E211B; letter-spacing: 0; }

/* ===== 报告：四个字段块（建议动作单独突出） ===== */
.fld { border-radius: 10px; padding: 11px 14px; margin: 9px 0; }
.fld > em { display: block; font-style: normal; font-size: 12px; font-weight: 700;
  letter-spacing: .03em; margin-bottom: 4px; }
.fld > p { margin: 0; font-size: 14px; line-height: 1.7; }
.fld-judge { background: #F7FBF9; border-left: 3px solid #C3DACF; }
.fld-judge > em { color: #5C7268; }
.fld-ev { background: #FAFCFB; border-left: 3px solid #E4EFE9; }
.fld-ev > em { color: #859890; }
.fld-ev > p { color: #5C7268; font-size: 13.5px; }
.fld-impact { background: #FFFBF3; border-left: 3px solid #F0D9A8; }
.fld-impact > em { color: #9A6B12; }
.fld-act { background: #EAF7F1; border: 1px solid #BFE3D2; border-left: 4px solid #0B7A57; }
.fld-act > em { color: #0B7A57; font-size: 12.5px; }
.fld-act > p { color: #0E211B; font-weight: 700; }

/* ===== 报告：三阶段路线图（时间轴） ===== */
.dx-tl { list-style: none; margin: 16px 0 0; padding: 0 0 0 24px; position: relative; }
.dx-tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, #12A97A, #CFE6DA); }
.dx-tl li { position: relative; padding: 0 0 22px 8px; }
.dx-tl li:last-child { padding-bottom: 0; }
.dx-tl .dot { position: absolute; left: -24px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: #12A97A; border: 2.5px solid #fff; box-shadow: 0 0 0 2px #CFE6DA; }
.dx-tl .ph { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.dx-tl .ph b { font-size: 15px; }
.dx-tl .ph i { font-style: normal; font-size: 12px; color: #0B7A57; background: #EAF7F1;
  border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.dx-tl p { margin: 0; font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; }

/* ===== 报告：h2 副注 ===== */
.res .h2-note { font-size: 12.5px; font-weight: 400; color: #859890; margin-left: 8px; }

/* ===== 打印：所有层级标签页全部展开 ===== */
@media print {
  .dx-tabs, .dx-rtabs { display: none !important; }
  .dx-pane, .dx-rpane { display: block !important; }
  .fld, .pt, .kpi, .dx-tl li { break-inside: avoid; }
}

/* ===== 报告：发现的编号卡 ===== */
.find { display: flex; gap: 12px; align-items: flex-start; background: #fff;
  border: 1px solid var(--border); border-left: 4px solid #F0A020; border-radius: 12px;
  padding: 13px 15px; margin: 10px 0; }
.find.ok { border-left-color: #12A97A; }
.find .no { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #FFF4E2; color: #9A6B12;
  font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: center; }
.find.ok .no { background: #EAF7F1; color: #0B7A57; }
.find .tx b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.find .tx p { margin: 0; font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; }

/* ===== 报告：最该做的三件事 ===== */
.dx-todo { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.dx-todo li { display: flex; gap: 13px; align-items: flex-start; background: #EAF7F1;
  border: 1px solid #BFE3D2; border-left: 4px solid #0B7A57; border-radius: 12px; padding: 14px 16px; }
.dx-todo .no { flex: 0 0 28px; height: 28px; border-radius: 50%; background: #0B7A57; color: #fff;
  font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.dx-todo .tx b { display: block; font-size: 15.5px; color: #0E211B; margin-bottom: 5px; }
.dx-todo .tx p { margin: 0; font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; }
.dx-todo .tx p + p { margin-top: 3px; }
.dx-todo .tx em { font-style: normal; font-weight: 600; color: #5C7268; margin-right: 6px; }

/* ===== 报告：现在不建议做的 ===== */
.dx-dont { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.dx-dont li { position: relative; background: #FFF8F3; border: 1px solid #F3DDC9; border-radius: 10px;
  padding: 11px 14px 11px 38px; font-size: 14px; color: #7A3E08; }
.dx-dont li::before { content: "×"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #D97706; font-weight: 700; font-size: 16px; }

/* ===== 报告：fld 里的小依据行 ===== */
.fld .ev2 { margin: 5px 0 0; font-size: 12.5px; color: #859890; }

/* ===== 报告：强调面板（不建议投 / 风险提示） ===== */
.dx-warn, .dx-risk { border-radius: 14px; overflow: hidden; margin: 18px 0 0; }
.dx-warn { border: 1.5px solid #F3C98B; }
.dx-warn .hd { background: #FFF4E2; color: #8A4B12; font-weight: 800; font-size: 15px;
  padding: 12px 16px; border-bottom: 1.5px solid #F3C98B; }
.dx-warn .hd::before { content: "⚠ "; }
.dx-warn ul { list-style: none; margin: 0; padding: 10px 16px 14px; background: #FFFCF7; }
.dx-warn li { position: relative; padding: 8px 0 8px 20px; font-size: 14px; color: #7A3E08; }
.dx-warn li::before { content: "×"; position: absolute; left: 2px; top: 8px; color: #D97706; font-weight: 700; }
.dx-risk { border: 1.5px solid #E9B4B4; }
.dx-risk .hd { background: #FDECEC; color: #8C2F2F; font-weight: 800; font-size: 15px;
  padding: 12px 16px; border-bottom: 1.5px solid #E9B4B4; }
.dx-risk .hd::before { content: "◆ "; }
.dx-risk ol { margin: 0; padding: 12px 16px 14px 38px; background: #FFFBFB; }
.dx-risk li { font-size: 14px; color: #7A3030; padding: 5px 0; }
.dx-risk li::marker { color: #C0504D; font-weight: 700; }

/* ===== PDF / 打印：标签页消失后要有可读标题 ===== */
.print-only { display: none; }
@media print {
  @page { margin: 16mm 14mm; }
  .print-only { display: block !important; }
  .res h2 { break-after: avoid; page-break-after: avoid; }
  .res h3 { break-after: avoid; page-break-after: avoid; }
  .dx-tabs, .dx-rtabs, .dx-bar, .dx-bar-txt, .dx-nav, .demo-bar, .demo-note, .demo-pdf { display: none !important; }
  .dx-pane, .dx-rpane { display: block !important; }
  .fld, .pt, .kpi, .dx-tl li, .find, .dx-todo li { break-inside: avoid; page-break-inside: avoid; }
  .dx-warn, .dx-risk { break-inside: avoid; page-break-inside: avoid; }
  .dx-pts-wrap .dx-tab { display: none !important; }
}

/* ===== 报告：柱状图的来源说明（回应"不给无法复核的分数"） ===== */
.bars-note { margin: -4px 0 16px; font-size: 12.5px; color: #859890; line-height: 1.7; }
