/* 我的影像（用户上传）—— 2026-10-08 */
:root {
  --up-bg: #f6f7f9;
  --up-card: #fff;
  --up-line: rgba(0, 0, 0, .08);
  --up-txt: #1f2328;
  --up-sub: #6b7280;
  --up-brand: #e8834a;
  --up-brand-soft: rgba(232, 131, 74, .1);
  --up-ok: #1a9e6c;
  --up-no: #d9483b;
}
.up-page { max-width: 860px; margin: 0 auto; padding: 22px 20px 60px; color: var(--up-txt); }

/* 头部 */
.up-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.up-back { width: 34px; height: 34px; border: 1px solid var(--up-line); background: #fff;
  border-radius: 9px; font-size: 20px; line-height: 1; cursor: pointer; color: var(--up-sub); }
.up-back:hover { background: #f0f1f3; }
.up-head h1 { margin: 0; font-size: 19px; font-weight: 500; }
.up-head p { margin: 3px 0 0; font-size: 13px; color: var(--up-sub); }

/* 卡片 */
.up-card { background: var(--up-card); border: 1px solid var(--up-line); border-radius: 12px;
  padding: 18px; margin-bottom: 16px; }

/* 上传区 */
.up-drop { display: block; border: 1.5px dashed rgba(0, 0, 0, .16); border-radius: 12px;
  padding: 34px 20px; text-align: center; cursor: pointer; transition: .18s; }
.up-drop:hover { border-color: var(--up-brand); background: var(--up-brand-soft); }
.up-drop-ic { color: var(--up-brand); margin-bottom: 8px; }
.up-drop-tx { font-size: 15px; font-weight: 500; }
.up-drop-hint { font-size: 12px; color: var(--up-sub); margin-top: 6px; line-height: 1.7; }

.up-opts { margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.up-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.up-chk input { width: 15px; height: 15px; accent-color: var(--up-brand); }

.up-privacy { margin-top: 14px; padding: 10px 12px; background: #faf7f4;
  border-left: 2.5px solid var(--up-brand); border-radius: 0 7px 7px 0;
  font-size: 12px; color: #7a6a5e; line-height: 1.75; }
.up-privacy b { color: #b8622f; }

.up-status { margin-top: 14px; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.7; }
/* 2026-10-10 修：--busy 的 display:flex 会覆盖 [hidden] 的浏览器默认 display:none，
   导致「正在识别」提示在结果出来后仍常驻——hidden 必须显式赢回来 */
.up-status[hidden] { display: none !important; }
.up-status--info { background: #eef4fb; color: #1c5fa8; }
/* 2026-10-09 用户口径：识别等待态要醒目——大字 + 旋转指示 */
.up-status--busy { background: #f0f7f4; color: #17795a; font-size: 15px; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px; font-weight: 600;
  outline: 2px solid #bfe3d4; }
.up-status--busy b { flex: 1; }
.up-spin { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 3px solid #bfe3d4; border-top-color: #17795a;
  animation: up-spin-rot 0.8s linear infinite; }
@keyframes up-spin-rot { to { transform: rotate(360deg); } }
.up-status--warn { background: #fdf0ee; color: #b23c30; }

/* 结果 */
.up-res-top { display: flex; gap: 14px; margin-bottom: 16px; }
.up-res-img { width: 168px; height: 168px; object-fit: contain; background: #0e1114;
  border-radius: 9px; flex-shrink: 0; }
.up-res-meta { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.up-tag { display: inline-block; padding: 4px 11px; border-radius: 20px; font-size: 13px;
  background: var(--up-brand-soft); color: #b8622f; }
.up-tag--scan { background: #e8f0fe; color: #2f6bd8; font-size: 12px; }
.up-kind { font-size: 12px; color: var(--up-sub); letter-spacing: .06em; }

.up-sec { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--up-line); }
.up-sec:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.up-sec h3 { margin: 0 0 9px; font-size: 14px; font-weight: 500; }
.up-sec p { margin: 0; font-size: 13px; line-height: 1.85; color: #3d444d; }
.up-sec--warn h3 { color: #b8622f; }
.up-order { padding: 11px 13px; background: #f7f8fa; border-radius: 8px; }
.up-list { margin: 0; padding-left: 19px; }
.up-list li { font-size: 13px; line-height: 1.95; color: #3d444d; }
.up-none { font-size: 13px; color: var(--up-sub); }
.up-disc { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--up-line);
  font-size: 12px; color: #9aa1ab; line-height: 1.75; }

/* 练习题 */
.up-quiz h3 { color: #b8622f; }
.up-qq { margin: 0 0 12px !important; font-size: 13.5px !important; }
.up-opts-row { display: flex; flex-direction: column; gap: 8px; }
.up-opt { text-align: left; padding: 11px 14px; border: 1px solid var(--up-line);
  background: #fff; border-radius: 9px; font-size: 13.5px; cursor: pointer;
  transition: .15s; font-family: inherit; color: var(--up-txt); }
.up-opt:hover { border-color: var(--up-brand); background: #fdf9f6; }
.up-opt.on { border-color: var(--up-brand); }
.up-opt.right { border-color: var(--up-ok); background: #f0faf5; }
.up-opt.wrong { border-color: var(--up-no); background: #fdf1f0; }

.up-qfb { margin-top: 13px; padding: 13px; border-radius: 9px; font-size: 13px; line-height: 1.8; }
.up-qfb.ok { background: #f0faf5; border-left: 2.5px solid var(--up-ok); }
.up-qfb.no { background: #fdf1f0; border-left: 2.5px solid var(--up-no); }
.up-qfb-t { font-weight: 500; }
.up-qfb-l { margin-top: 6px; color: #4b5563; }
.up-qfb-l b { color: #111; margin-right: 6px; }
.up-qfb-d { margin-top: 9px; font-size: 12px; color: #9aa1ab; }

/* 历史 */
.up-hist h2 { margin: 22px 0 12px; font-size: 15px; font-weight: 500; }
.up-hist-list { display: flex; flex-direction: column; gap: 9px; }
.up-empty { padding: 26px; text-align: center; color: var(--up-sub); font-size: 13px;
  background: #fff; border: 1px solid var(--up-line); border-radius: 10px; }
.up-hitem { display: flex; align-items: center; gap: 13px; padding: 11px;
  background: #fff; border: 1px solid var(--up-line); border-radius: 10px; }
.up-hitem img { width: 54px; height: 54px; object-fit: cover;
  background: #0e1114; border-radius: 7px; flex-shrink: 0; }
.up-hinfo { flex: 1; min-width: 0; }
.up-ht { font-size: 13.5px; }
.up-hd { font-size: 12px; color: var(--up-sub); margin-top: 2px; }
.up-hn { font-size: 12px; color: var(--up-no); margin-top: 2px; }
.up-hdel { padding: 5px 11px; font-size: 12px; border: 1px solid var(--up-line);
  background: #fff; border-radius: 7px; cursor: pointer; color: var(--up-sub); }
.up-hdel:hover { border-color: var(--up-no); color: var(--up-no); }
/* 2026-10-09：历史记录「查看」按钮（点进详情看读片引导/练习题） */
.up-hview { padding: 5px 11px; font-size: 12px; border: 1px solid #e8b27d;
  background: #fff; border-radius: 7px; cursor: pointer; color: #b8622f; margin-right: 2px; }
.up-hview:hover { background: var(--up-brand-soft, #fdf3e7); }

@media (max-width: 640px) {
  .up-res-top { flex-direction: column; }
  .up-res-img { width: 100%; height: 190px; }
  .up-res-meta { flex-direction: row; align-items: center; }
}

/* 三AI交叉判读（2026-10-10 用户口径：病情判读要真实准确） */
.up-sec--cross { border: 1px solid #dceee6; background: #f4fbf8; border-radius: 10px; padding: 14px 16px; }
.up-sec--cross h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.up-agree { font-size: 12px; font-weight: 600; color: #17795a; background: #dff2ea;
  border-radius: 20px; padding: 2px 10px; }
.up-consensus { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #14614a; }
.up-cross { list-style: none; margin: 0; padding: 0; }
.up-cross li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0;
  border-top: 1px dashed #d3e8de; font-size: 13px; line-height: 1.6; }
.up-cross li:first-child { border-top: 0; }
.up-cross li b { flex-shrink: 0; color: #14614a; }
.up-cross li span { color: #3d4b46; }
.up-flag { flex-shrink: 0; font-style: normal; font-size: 11px; border-radius: 4px; padding: 1px 6px; }
.up-flag.on { background: #fdecec; color: #b23c30; }
.up-flag:not(.on) { background: #eef2f0; color: #6b7a74; }
.up-cross-disc { margin: 10px 0 0; font-size: 12px; color: #7d8c86; }
