/* ══════ 三屏专用样式 ══════ */

/* 扫描进度 */
.scanning { text-align: center; padding: 70px 20px; }
.scan-count {
  font-size: 42px; font-weight: 800; letter-spacing: -1px;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.scan-label { color: var(--muted); margin-top: 8px; font-size: 14px; }
.progress {
  max-width: 320px; height: 4px; margin: 22px auto 0;
  background: #eceff3; border-radius: 99px; overflow: hidden;
}
.progress i {
  display: block; height: 100%; width: 30%;
  background: var(--brand); border-radius: 99px;
  animation: slide 1.1s ease-in-out infinite;
}
@keyframes slide { 0%{margin-left:-30%} 100%{margin-left:100%} }

/* 屏序导航 */
.screens {
  display: flex; gap: 6px; justify-content: center;
  margin: 0 0 26px; flex-wrap: wrap;
}
.screen-dot {
  appearance: none; border: 1px solid var(--line); background: #fff;
  padding: 7px 16px; border-radius: 99px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--muted);
  white-space: nowrap;
}
.screen-dot.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.screen-dot:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 640px) {
  .screens { position: sticky; top: 58px; z-index: 40;
    background: var(--bg); padding: 10px 0; margin: -6px 0 18px; }
  .screen-dot { padding: 7px 12px; font-size: 12.5px; }
}

/* ── 屏一 地层剖面 ── */
.strata-wrap { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }

.strata-plot { display: flex; gap: 10px; margin: 20px 0 8px; }
.strata-yaxis {
  width: 34px; height: 260px; position: relative; flex-shrink: 0;
  border-right: 1px solid var(--line);
}
.strata-ytick {
  position: absolute; right: 6px; transform: translateY(-50%);
  font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.strata-scroll { flex: 1; overflow-x: auto; min-width: 0; }
.strata-chart {
  display: flex; align-items: flex-end; gap: 10px;
  height: 260px; position: relative;
  border-bottom: 1px solid #d7dce3;
}
.strata-chart.dense { gap: 3px; }
.strata-grid {
  position: absolute; left: 0; right: 0; height: 1px;
  background: #f0f2f5; pointer-events: none;
}
.strata-col { display: flex; flex-direction: column-reverse;
  justify-content: flex-start; min-width: 46px; flex: 1; height: 100%;
  position: relative; z-index: 1; }
.strata-chart.dense .strata-col { min-width: 0; }
.strata-seg { width: 100%; cursor: pointer; transition: filter .15s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55); }
.strata-seg:hover { filter: brightness(1.12); }
.strata-seg:last-child { border-radius: 3px 3px 0 0; }
.strata-empty {
  align-self: flex-end; width: 100%; height: 2px;
  background: repeating-linear-gradient(90deg,#e3e7ec 0 4px,transparent 4px 8px);
}
.strata-x { display: flex; gap: 10px; margin-left: 44px; }
.strata-x.dense { gap: 3px; }
.strata-x span { min-width: 46px; flex: 1; text-align: center;
  font-size: 11.5px; color: var(--muted); }
.strata-x.dense span { min-width: 0; font-size: 10px; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--line); }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); }
.legend-swatch { width: 11px; height: 11px; border-radius: 3px; }
.fault-line {
  margin-top: 16px; padding: 11px 15px; border-radius: 9px;
  background: #fff4f4; border: 1px solid #ffd4d4;
  font-size: 13px; color: #c0392b;
}

/* ── 屏二 体检报告 ── */
.cards6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 13px; padding: 22px 22px 20px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.dcard:hover:not(.disabled) { border-color: var(--brand);
  box-shadow: var(--shadow); transform: translateY(-1px); }
.dcard.disabled { cursor: default; opacity: .62; }
.dcard-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.dcard-value { font-size: 34px; font-weight: 800; letter-spacing: -.8px;
  line-height: 1.15; font-variant-numeric: tabular-nums; }
.dcard-sub { font-size: 12.5px; color: var(--sub); margin-top: 9px; line-height: 1.55; }
.drift-band {
  margin-top: 14px; padding: 12px 16px; border-radius: 9px;
  background: #fffbe6; border: 1px solid #ffe58f; font-size: 13px; color: #6b5900;
}

/* 下钻抽屉 */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(20,22,26,.42);
  z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 92vw);
  background: #fff; z-index: 81; transform: translateX(100%);
  transition: transform .24s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(0,0,0,.1);
}
.drawer.open { transform: none; }
.drawer-head {
  padding: 20px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-title { font-size: 16px; font-weight: 700; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px 28px; }
.drawer-foot {
  padding: 14px 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.drawer-row { display: flex; gap: 11px; padding: 13px 0; border-bottom: 1px solid #f2f4f6; }
.drawer-row:last-child { border-bottom: none; }
.drawer-row input { margin-top: 4px; flex-shrink: 0; width: 15px; height: 15px; cursor: pointer; }
.drawer-row-title { font-size: 14px; font-weight: 600; line-height: 1.5; }
.drawer-row-meta { font-size: 12px; color: var(--muted); margin-top: 5px;
  display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn { appearance: none; background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--muted); line-height: 1; padding: 4px 8px; }
.icon-btn:hover { color: var(--text); }

/* ── 屏三 今天读这篇 ── */
.today-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 34px 36px; box-shadow: var(--shadow);
  max-width: 680px; margin: 0 auto;
}
.today-kicker { font-size: 12.5px; color: var(--brand); font-weight: 700;
  letter-spacing: .4px; margin-bottom: 14px; }
.today-title { font-size: 23px; font-weight: 700; line-height: 1.45;
  margin: 0 0 12px; color: var(--text); display: block; }
.today-title:hover { color: var(--brand); text-decoration: none; }
.today-meta { font-size: 13px; color: var(--sub);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.today-meta .sep { color: #c8ced6; }
.reasons { border-top: 1px solid var(--line); padding-top: 22px; }
.reasons-head { font-size: 13px; color: var(--sub); margin-bottom: 16px; font-weight: 700; }

/* 证据链：竖向轴线 + 节点 */
.reason-chain { position: relative; padding-left: 4px; }
.reason-chain::before {
  content: ''; position: absolute; left: 17px; top: 10px; bottom: 14px;
  width: 2px; background: linear-gradient(#cfe0ff, #e8eef7);
}
.reason { display: flex; gap: 14px; margin-bottom: 16px;
  align-items: flex-start; position: relative; }
.reason:last-child { margin-bottom: 0; }
.reason-no {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 30px; height: 24px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; color: var(--brand);
  background: #eef4ff; border: 1px solid #d6e4ff; border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.reason-body { min-width: 0; }
.reason-kind {
  display: inline-block; font-size: 11px; color: var(--muted);
  margin-bottom: 3px; letter-spacing: .3px;
}
.reason-text { font-size: 14.5px; line-height: 1.62; color: var(--text); }

.today-actions { display: flex; gap: 11px; margin-top: 28px; align-items: center;
  padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.link-btn {
  appearance: none; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 13.5px; padding: 8px 6px;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--brand); }
.link-btn:disabled { opacity: .5; cursor: not-allowed; }

.coverage-note {
  max-width: 680px; margin: 22px auto 0;
  text-align: center; font-size: 13px; color: #4a4340;
  padding: 10px; background: #f6f2ec;
  border: 1px solid #e3d8c8; border-radius: 8px;
}

/* ── 屏一 分类总结 ── */
.summary-wrap {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px;
  box-shadow: var(--shadow); margin-top: 16px;
}
.summary-head { margin-bottom: 16px; }
.summary-list { display: flex; flex-direction: column; }
.summary-row {
  display: grid;
  grid-template-columns: 116px 1fr 92px;
  grid-template-areas: 'name bar num' 'meta meta meta';
  align-items: center; gap: 6px 12px;
  padding: 12px 10px; border-radius: 10px; cursor: pointer;
  transition: background .15s;
}
.summary-row:hover { background: #f6f8fb; }
.summary-name { grid-area: name; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.summary-bar-wrap { grid-area: bar; height: 8px; background: #eef1f5;
  border-radius: 99px; overflow: hidden; }
.summary-bar { height: 100%; border-radius: 99px; min-width: 4px;
  transition: width .5s cubic-bezier(.2,.7,.2,1); }
.summary-num { grid-area: num; font-size: 12.5px; color: var(--sub);
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 11.5px; color: var(--muted); padding-left: 17px; }
.mtag { display: inline-block; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.m-active { background: #e8f2ff; color: #2f6fed; }
.m-hot { background: #fff0e8; color: #cf6b4b; }
.m-normal { background: #eef1f5; color: #6b7684; }
.m-expired { background: #fdecec; color: #c0392b; }

@media (max-width: 640px) {
  .summary-row { grid-template-columns: 92px 1fr; grid-template-areas: 'name bar' 'num num' 'meta meta'; }
  .summary-num { text-align: left; padding-left: 17px; }
}

@media (max-width: 700px) {
  .cards6 { grid-template-columns: repeat(2, 1fr); }
  .today-card { padding: 26px 22px; }
  .today-title { font-size: 20px; }
}
@media (max-width: 460px) {
  .cards6 { grid-template-columns: 1fr; }
}
