/* ==========================================================================
   KnowAI GEO —— 问题词「每日检测记录」详情页
   --------------------------------------------------------------------------
   独立样式层，最后加载。与主报告共用 wb 青绿体系，但用「档案 / 留痕」
   的语汇做区分：时间轴脊线、日志行、印章式状态标记、证据抽屉。
   ========================================================================== */

:root {
  --qd-brand: #28b894;
  --qd-brand-deep: #007a60;
  --qd-brand-50: #f2fcfa;
  --qd-ink: #1a202c;
  --qd-muted: #6b7280;
  --qd-faint: #9ca3af;
  --qd-line: #ebebeb;
  --qd-line-soft: #f3f4f6;
  --qd-good: #2eb28e;
  --qd-mid: #4084f1;
  --qd-warn: #eebf52;
  --qd-bad: #d53f3f;
  --qd-miss: #b6bcc6;
  --qd-card-r: 16px;
  --qd-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  --qd-shadow-sm: 0 2px 8px rgba(0, 0, 0, .04);
}

.qd-body {
  background:
    radial-gradient(1100px 420px at 12% -8%, rgba(40, 184, 148, .10), transparent 62%),
    radial-gradient(900px 380px at 92% -4%, rgba(64, 132, 241, .07), transparent 60%),
    #ffffff;
  color: var(--qd-ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* 面包屑里的报告链接 */
.qd-shell .topbar-context a {
  color: var(--qd-muted);
  text-decoration: none;
  transition: color .2s;
}
.qd-shell .topbar-context a:hover { color: var(--qd-brand-deep); }

.qd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border: 1px solid var(--qd-line);
  border-radius: 999px;
  background: #fff;
  color: var(--qd-brand-deep);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--qd-shadow-sm);
  transition: transform .2s, border-color .2s, background .2s;
}
.qd-back-btn::before { content: "←"; font-size: 13px; }
.qd-back-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(40, 184, 148, .5);
  background: var(--qd-brand-50);
}

/* 主区版心与报告一致 */
.qd-shell .dashboard-content main.qd-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.qd-main .panel {
  background: #fff;
  border: 1px solid var(--qd-line);
  border-radius: var(--qd-card-r);
  box-shadow: var(--qd-shadow);
}

/* ==========================================================================
   1. 头部
   ========================================================================== */
.qd-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 32px;
  padding: 28px 32px;
  overflow: hidden;
}
/* 头部左侧渐变竖条已移除，右上角柔光保留 */
.qd-hero::before {
  content: none;
}
.qd-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 184, 148, .12), transparent 68%);
  pointer-events: none;
}

.qd-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--qd-faint);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.qd-crumbs a { color: var(--qd-muted); text-decoration: none; }
.qd-crumbs a:hover { color: var(--qd-brand-deep); text-decoration: underline; }
.qd-crumbs i { color: #d7dae0; font-style: normal; }
.qd-crumbs span { color: var(--qd-brand-deep); font-weight: 600; }

.qd-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.qd-kind {
  padding: 5px 13px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--qd-brand), #1bc69b);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(40, 184, 148, .26);
}
.qd-kind.is-reputation { background: linear-gradient(120deg, #4084f1, #6351fb); box-shadow: 0 4px 12px rgba(64, 132, 241, .26); }
.qd-tag {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--qd-line);
  background: #fbfcfc;
  color: var(--qd-muted);
  font-size: 11.5px;
}
.qd-tag-live { display: inline-flex; align-items: center; gap: 6px; color: var(--qd-brand-deep); border-color: rgba(40, 184, 148, .3); background: var(--qd-brand-50); }
.qd-tag-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--qd-brand);
  box-shadow: 0 0 0 3px rgba(40, 184, 148, .18);
  animation: qdPulse 2.4s ease-in-out infinite;
}
@keyframes qdPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.qd-hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--qd-ink);
}
.qd-hero-sub { margin: 12px 0 0; font-size: 13px; color: var(--qd-muted); }
.qd-hero-sub b { color: var(--qd-ink); font-weight: 600; }
.qd-hero-note {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 11px;
  background: linear-gradient(100deg, var(--qd-brand-50), #fbfdff);
  border: 1px solid rgba(40, 184, 148, .16);
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.65;
}

.qd-hero-score {
  position: relative;
  z-index: 1;
  align-self: center;
  padding-left: 28px;
  border-left: 1px solid var(--qd-line-soft);
}
.qd-hero-score > span { display: block; font-size: 12px; color: var(--qd-faint); }
.qd-hero-score > strong {
  display: block;
  margin-top: 8px;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--qd-brand-deep), var(--qd-brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.qd-hero-score > strong em { font-size: 20px; font-style: normal; margin-left: 2px; }
.qd-hero-score > small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--qd-muted); }
.qd-score-bar {
  margin-top: 14px;
  height: 7px;
  border-radius: 999px;
  background: #f0f2f4;
  overflow: hidden;
}
.qd-score-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--qd-brand), #1bc69b);
  transition: width .7s cubic-bezier(.22, 1, .36, 1);
}
.qd-hero-score > em {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(46, 178, 142, .12);
  color: var(--qd-brand-deep);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
}
.qd-hero-score > em.is-down { background: rgba(213, 63, 63, .10); color: var(--qd-bad); }

/* ==========================================================================
   2. KPI
   ========================================================================== */
.qd-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.qd-kpi {
  padding: 18px 20px;
  border: 1px solid var(--qd-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--qd-shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.qd-kpi:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 184, 148, .34);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}
.qd-kpi small { display: block; font-size: 12px; color: var(--qd-faint); }
.qd-kpi strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -.01em;
  color: var(--qd-brand-deep);
}
.qd-kpi strong em { font-size: 13px; font-style: normal; font-weight: 600; margin-left: 2px; color: var(--qd-muted); }
.qd-kpi span { display: block; font-size: 11.5px; color: var(--qd-faint); }
.qd-kpi.is-alert strong { color: var(--qd-bad); }

/* ==========================================================================
   3. 趋势图
   ========================================================================== */
.qd-trend { padding: 24px 28px 20px; }
.qd-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--qd-line-soft);
}
.qd-panel-kicker {
  display: block;
  font-size: 10.5px;
  letter-spacing: .18em;
  color: #9ad6c4;
  font-weight: 700;
}
.qd-panel-head h2 { margin: 6px 0 0; font-size: 20px; font-weight: 700; color: var(--qd-ink); }

.qd-chart-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qd-metric-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.qd-metric-tabs button {
  padding: 7px 14px;
  border: 1px solid var(--qd-line);
  border-radius: 999px;
  background: #fff;
  color: var(--qd-muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.qd-metric-tabs button:hover { border-color: rgba(40, 184, 148, .45); color: var(--qd-brand-deep); }
.qd-metric-tabs button.active {
  background: var(--qd-brand-50);
  border-color: rgba(40, 184, 148, .5);
  color: var(--qd-brand-deep);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(40, 184, 148, .14);
}
.qd-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--qd-muted); cursor: pointer; }
.qd-toggle input { accent-color: var(--qd-brand); width: 14px; height: 14px; cursor: pointer; }

.qd-chart-wrap { position: relative; margin-top: 20px; }
.qd-chart { display: block; width: 100%; height: 260px; overflow: visible; }
.qd-chart .qd-grid-line { stroke: #f0f2f4; stroke-width: 1; }
.qd-chart .qd-axis-text { fill: #9ca3af; font-size: 10px; }
.qd-chart .qd-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.qd-chart .qd-point { cursor: pointer; transition: r .18s; }
.qd-chart .qd-point:hover { r: 6; }
.qd-chart .qd-hover-line { stroke: rgba(40, 184, 148, .4); stroke-width: 1; stroke-dasharray: 3 3; }

.qd-chart-tip {
  position: absolute;
  z-index: 5;
  min-width: 148px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(26, 32, 44, .94);
  color: #fff;
  font-size: 11.5px;
  line-height: 1.7;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  pointer-events: none;
  transform: translate(-50%, -112%);
  white-space: nowrap;
}
.qd-chart-tip b { display: block; font-size: 12.5px; margin-bottom: 3px; }
.qd-chart-tip u { display: block; text-decoration: none; color: #7fe3c6; font-weight: 700; font-size: 15px; }
.qd-chart-tip s { display: block; text-decoration: none; color: #b9c0cc; }

.qd-chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--qd-line-soft);
}
.qd-legend { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--qd-muted); }
.qd-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--qd-brand); }
.qd-legend b { color: var(--qd-ink); font-weight: 600; }
.qd-chart-hint { font-size: 11.5px; color: var(--qd-faint); }

/* ==========================================================================
   4. 每日记录：时间轴脊线
   ========================================================================== */
.qd-records { display: flex; flex-direction: column; gap: 14px; }
.qd-records-head { border-bottom: 0; padding-bottom: 0; }
.qd-record-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.qd-record-tools button {
  padding: 7px 14px;
  border: 1px solid var(--qd-line);
  border-radius: 999px;
  background: #fff;
  color: var(--qd-muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--qd-shadow-sm);
  transition: all .2s;
}
.qd-record-tools button:hover {
  transform: translateY(-1px);
  border-color: rgba(40, 184, 148, .45);
  color: var(--qd-brand-deep);
  background: var(--qd-brand-50);
}

.qd-records-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--qd-muted);
}
.qd-records-legend { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--qd-faint); }
.qd-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.qd-dot:first-child { margin-left: 0; }
.qd-dot-good { background: var(--qd-good); }
.qd-dot-mid { background: var(--qd-mid); }
.qd-dot-bad { background: var(--qd-bad); }
.qd-dot-miss { background: var(--qd-miss); }

/* 时间轴竖线已移除：日期本身即序，节点圆点保留为状态色点 */
.qd-day-list { position: relative; display: flex; flex-direction: column; gap: 12px; padding-left: 20px; }
.qd-day-list::before {
  content: none;
}

.qd-day {
  position: relative;
  border: 1px solid var(--qd-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--qd-shadow-sm);
  transition: box-shadow .24s, border-color .24s, transform .24s;
}
.qd-day::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--qd-brand);
  box-shadow: 0 0 0 3px #fff;
  transition: border-color .24s, transform .24s;
}
.qd-day.is-weak::before { border-color: var(--qd-warn); }
.qd-day.is-bad::before { border-color: var(--qd-bad); }
.qd-day:hover { transform: translateY(-2px); border-color: rgba(40, 184, 148, .32); box-shadow: 0 12px 26px rgba(0, 0, 0, .07); }
.qd-day.open { border-color: rgba(40, 184, 148, .42); box-shadow: 0 14px 32px rgba(0, 0, 0, .08); }
.qd-day.open::before { transform: scale(1.18); }
.qd-day.is-flash { animation: qdFlash 1.5s ease-out; }
@keyframes qdFlash {
  0% { box-shadow: 0 0 0 3px rgba(40, 184, 148, .5); }
  100% { box-shadow: var(--qd-shadow-sm); }
}

.qd-day-head {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 20px;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.qd-day-date { display: flex; flex-direction: column; gap: 3px; }
.qd-day-date b { font-size: 15.5px; font-weight: 700; color: var(--qd-ink); letter-spacing: -.01em; }
.qd-day-date small { font-size: 11px; color: var(--qd-faint); }

.qd-day-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qd-mini { display: inline-flex; align-items: baseline; gap: 5px; font-size: 11.5px; color: var(--qd-faint); }
.qd-mini b { font-size: 14px; font-weight: 700; color: var(--qd-ink); }
.qd-mini.is-good b { color: var(--qd-good); }
.qd-mini.is-bad b { color: var(--qd-bad); }

.qd-day-dots { display: inline-flex; gap: 3px; align-items: center; }
.qd-day-dots i {
  width: 7px;
  height: 16px;
  border-radius: 3px;
  background: var(--qd-miss);
  transition: transform .2s;
}
.qd-day-dots i.s-good { background: var(--qd-good); }
.qd-day-dots i.s-mid { background: var(--qd-mid); }
.qd-day-dots i.s-bad { background: var(--qd-bad); }
.qd-day-dots i.s-miss { background: #dfe3e8; }
.qd-day:hover .qd-day-dots i { transform: scaleY(1.12); }

.qd-day-right { display: inline-flex; align-items: center; gap: 12px; }
.qd-day-badge {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(46, 178, 142, .12);
  color: var(--qd-brand-deep);
  white-space: nowrap;
}
.qd-day-badge.is-weak { background: rgba(238, 191, 82, .18); color: #8a6412; }
.qd-day-badge.is-bad { background: rgba(213, 63, 63, .10); color: var(--qd-bad); }
.qd-caret {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #f5f7f8;
  color: var(--qd-muted);
  font-size: 10px;
  transition: transform .26s, background .2s, color .2s;
}
.qd-day.open .qd-caret { transform: rotate(180deg); background: var(--qd-brand-50); color: var(--qd-brand-deep); }

/* 展开体 */
.qd-day-body { display: none; padding: 0 20px 18px; }
.qd-day.open .qd-day-body { display: block; animation: qdReveal .3s ease; }
@keyframes qdReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.qd-day-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: linear-gradient(100deg, #fafdfc, #fbfcfe);
  border: 1px solid var(--qd-line-soft);
}
.qd-sum-chip { display: inline-flex; align-items: baseline; gap: 6px; font-size: 11.5px; color: var(--qd-muted); }
.qd-sum-chip b { font-size: 13.5px; color: var(--qd-ink); font-weight: 700; }
.qd-sum-chip + .qd-sum-chip { padding-left: 12px; border-left: 1px solid var(--qd-line); }

.qd-run {
  border: 1px solid var(--qd-line-soft);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.qd-run:last-child { margin-bottom: 0; }
.qd-run:hover { border-color: rgba(40, 184, 148, .28); box-shadow: var(--qd-shadow-sm); }
.qd-run.open { border-color: rgba(40, 184, 148, .38); }

.qd-run-head {
  display: grid;
  grid-template-columns: 62px 104px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.qd-run-time { font-size: 13px; font-weight: 700; color: var(--qd-ink); font-variant-numeric: tabular-nums; }
.qd-run-plat { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--qd-muted); min-width: 0; }
.qd-run-plat i {
  width: 20px; height: 20px;
  border-radius: 6px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  flex: 0 0 auto;
}
.qd-run-plat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-rank {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  background: #f2f4f6;
  color: var(--qd-muted);
  white-space: nowrap;
}
.qd-rank.r1 { background: rgba(46, 178, 142, .16); color: var(--qd-brand-deep); }
.qd-rank.r3 { background: rgba(64, 132, 241, .12); color: #1f5fc0; }
.qd-rank.rn { background: rgba(182, 188, 198, .18); color: #6b7280; }
.qd-run-flags { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.qd-flag {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.qd-flag.f-pos { background: rgba(46, 178, 142, .12); color: var(--qd-brand-deep); }
.qd-flag.f-neu { background: #f3f4f6; color: #6b7280; }
.qd-flag.f-neg { background: rgba(213, 63, 63, .10); color: var(--qd-bad); }
.qd-flag.f-comp { background: rgba(99, 81, 251, .10); color: #4a37d6; }
.qd-flag.f-src { background: rgba(238, 191, 82, .16); color: #8a6412; }
.qd-run-more { font-size: 11px; color: var(--qd-brand-deep); font-weight: 600; white-space: nowrap; }

.qd-run-body { display: none; padding: 0 14px 14px; }
.qd-run.open .qd-run-body { display: block; animation: qdReveal .26s ease; }

.qd-answer {
  position: relative;
  padding: 14px 16px 14px 18px;
  border-radius: 11px;
  background: #fbfcfd;
  border: 1px solid var(--qd-line-soft);
  font-size: 13px;
  line-height: 1.85;
  color: #374151;
}
/* 回答块左侧渐变竖条已移除，浅底 + 细边已足够区分 */
.qd-answer::before {
  content: none;
}
.qd-answer mark {
  background: rgba(40, 184, 148, .18);
  color: var(--qd-brand-deep);
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 4px;
}
.qd-answer-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--qd-faint);
}
.qd-answer-label b { color: var(--qd-muted); font-weight: 600; letter-spacing: .04em; }
.qd-copy-answer {
  border: 1px solid var(--qd-line);
  background: #fff;
  color: var(--qd-muted);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.qd-copy-answer:hover { border-color: rgba(40, 184, 148, .5); color: var(--qd-brand-deep); background: var(--qd-brand-50); }

.qd-evidence {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.qd-ev-block {
  padding: 12px 14px;
  border: 1px solid var(--qd-line-soft);
  border-radius: 11px;
  background: #fff;
}
.qd-ev-title { font-size: 11px; color: var(--qd-faint); letter-spacing: .04em; margin-bottom: 10px; }
.qd-src-list { display: flex; flex-direction: column; gap: 7px; }
.qd-src {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #fafbfc;
  border: 1px solid var(--qd-line-soft);
  font-size: 12px;
  transition: border-color .2s, transform .2s;
}
.qd-src:hover { border-color: rgba(40, 184, 148, .3); transform: translateX(2px); }
.qd-src i {
  width: 18px; height: 18px;
  border-radius: 5px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #28b894, #1bc69b);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  flex: 0 0 auto;
}
.qd-src b { color: var(--qd-ink); font-weight: 600; }
.qd-src span { color: var(--qd-faint); font-size: 11px; margin-left: auto; white-space: nowrap; }
.qd-src.is-owned { background: linear-gradient(90deg, #fdf9ee, #fff 60%); border-color: #f2e6c8; }
.qd-src.is-owned i { background: linear-gradient(135deg, #eebf52, #d5a333); }
.qd-own-tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(238, 191, 82, .22);
  color: #8a6412;
  font-size: 10px;
  font-weight: 700;
}

.qd-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.qd-meta-item { padding: 8px 10px; border-radius: 9px; background: #fafbfc; border: 1px solid var(--qd-line-soft); }
.qd-meta-item small { display: block; font-size: 10.5px; color: var(--qd-muted); }  /* #108 AA：--qd-faint 在 #fafbfc 上仅 2.45，提到 --qd-muted 得 4.67 */
.qd-meta-item b { display: block; margin-top: 3px; font-size: 13px; color: var(--qd-ink); font-weight: 700; }
.qd-comp-bar { margin-top: 10px; }
.qd-comp-bar > div { height: 6px; border-radius: 999px; background: #f0f2f4; overflow: hidden; }
.qd-comp-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6351fb, #4084f1); transition: width .6s cubic-bezier(.22, 1, .36, 1); }
.qd-comp-bar small { display: block; margin-top: 6px; font-size: 10.5px; color: var(--qd-faint); }

.qd-empty {
  padding: 44px 20px;
  border: 1px dashed #dfe3e8;
  border-radius: 14px;
  background: #fcfdfd;
  text-align: center;
}
.qd-empty strong { display: block; font-size: 15px; color: var(--qd-ink); }
.qd-empty span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--qd-faint); }

.qd-load-more-wrap { display: flex; justify-content: center; }
.qd-load-more {
  padding: 11px 30px;
  border: 1px solid var(--qd-line);
  border-radius: 999px;
  background: #fff;
  color: var(--qd-brand-deep);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--qd-shadow-sm);
  transition: all .22s;
}
.qd-load-more:hover { transform: translateY(-2px); border-color: rgba(40, 184, 148, .5); background: var(--qd-brand-50); }

/* ==========================================================================
   5. 洞察三栏
   ========================================================================== */
.qd-insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.qd-insight { padding: 20px 22px; }
.qd-sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--qd-line-soft); }
.qd-sub-head span { font-size: 15px; font-weight: 700; color: var(--qd-ink); }
.qd-sub-head small { font-size: 11px; color: var(--qd-faint); }

/* #149 区间洞察改词云后，第一栏要装三组云图，比另两栏内容多。
   由等分三列改为 1.5 : 1 : 1，让词云有足够横向空间铺 2–3 个词一行，
   另两栏（平台表现 / 高频引用媒体）本来就是窄条形，不受影响。
   #158 左卡按问题类型分三形态（声量＝效果总结文字 / 声誉＝三类词条 /
   保真度＝两类核心价值词），词条改「多列并排 + 列内竖排」，
   1.5 : 1 : 1 的比例继续沿用 —— 三列竖排比云团更吃横向宽度。
   列数与竖排布局的裁决在皮肤层 §67（.qd-insight-words.is-rep / .is-cmp）。 */
.qd-insight-grid.has-words {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
}

.qd-words-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--qd-faint);
}

/* 词条卡内的分组栅格。
   #158 起列数由皮肤层 §67 按形态裁决（声誉 3 列 / 保真度 2 列），
   这里只保留兜底的单列声明，供皮肤层未加载时不至于塌成裸文本。 */
.qd-insight-words .word-groups-grid { margin-top: 10px; }
.qd-insight-words .word-direct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.qd-words-empty {
  padding: 14px 10px;
  font-size: 12px;
  color: var(--qd-faint);
  text-align: center;
}

.qd-insight-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.qd-insight-list li {
  position: relative;
  padding-left: 22px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #4b5563;
}
.qd-insight-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--qd-brand);
  box-shadow: 0 0 0 3px rgba(40, 184, 148, .14);
}
.qd-insight-list li.is-warn::before { background: var(--qd-warn); box-shadow: 0 0 0 3px rgba(238, 191, 82, .18); }
.qd-insight-list li.is-bad::before { background: var(--qd-bad); box-shadow: 0 0 0 3px rgba(213, 63, 63, .14); }
.qd-insight-list b { color: var(--qd-ink); font-weight: 700; }

.qd-platform-rows, .qd-source-rows { display: flex; flex-direction: column; gap: 11px; margin-top: 14px; }
.qd-pf-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 52px; align-items: center; gap: 10px; font-size: 12px; }
.qd-pf-row > span { color: var(--qd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-pf-row > div { height: 8px; border-radius: 999px; background: #f2f4f6; overflow: hidden; }
.qd-pf-row i { display: block; height: 100%; border-radius: 999px; transition: width .7s cubic-bezier(.22, 1, .36, 1); }
.qd-pf-row > b { text-align: right; font-size: 12.5px; color: var(--qd-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.qd-sc-row { display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 7px 10px; border-radius: 9px; background: #fafbfc; border: 1px solid var(--qd-line-soft); transition: border-color .2s, transform .2s; }
.qd-sc-row:hover { border-color: rgba(40, 184, 148, .3); transform: translateX(2px); }
.qd-sc-row b { color: var(--qd-ink); font-weight: 600; }
.qd-sc-row span { color: var(--qd-faint); font-size: 11px; }
.qd-sc-row em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--qd-brand-deep); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   6. 提示条 / 页脚
   ========================================================================== */
.qd-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(26, 32, 44, .94);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
  animation: qdToast .28s ease;
}
@keyframes qdToast { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

.qd-shell .dashboard-content footer.qd-footer { margin-top: 40px; }

/* 详情页表格滚动条统一皮肤 */
.qd-main ::-webkit-scrollbar { width: 8px; height: 8px; }
.qd-main ::-webkit-scrollbar-track { background: #f5f7f8; border-radius: 8px; }
.qd-main ::-webkit-scrollbar-thumb { background: rgba(40, 184, 148, .38); border-radius: 8px; }
.qd-main ::-webkit-scrollbar-thumb:hover { background: rgba(40, 184, 148, .6); }

/* ==========================================================================
   7. 响应式
   ========================================================================== */
@media (max-width: 1200px) {
  .qd-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* .has-words 是 (0,2,0)，比裸 .qd-insight-grid 高一级，
     必须同样带上，否则窄档仍停在 1.5:1:1 三列被挤破。 */
  .qd-insight-grid,
  .qd-insight-grid.has-words { grid-template-columns: 1fr; }
  .qd-run-head { grid-template-columns: 58px 96px 70px minmax(0, 1fr) auto; gap: 10px; }
}

/* 单列铺满后横向很宽，词卡并排更紧凑，不必纵向堆三块。
   #158：这里只是兜底，实际列数由皮肤层 §67.8 按 .is-rep / .is-cmp 裁决
   （保真度两组不能排三列，否则右侧空出三分之一）。 */
@media (max-width: 1200px) and (min-width: 701px) {
  .qd-insight-words .word-direct-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .qd-hero { grid-template-columns: 1fr; gap: 22px; padding: 24px 22px; }
  .qd-hero-score { padding-left: 0; padding-top: 20px; border-left: 0; border-top: 1px solid var(--qd-line-soft); }
  .qd-hero h1 { font-size: 25px; }
  .qd-evidence { grid-template-columns: 1fr; }
  .qd-day-head { grid-template-columns: 116px minmax(0, 1fr); gap: 12px; }
  .qd-day-right { grid-column: 1 / -1; justify-content: space-between; }
  .qd-trend { padding: 20px 18px 16px; }
}

@media (max-width: 700px) {
  .qd-shell .dashboard-content main.qd-main { gap: 16px; }
  .qd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .qd-kpi { padding: 14px 15px; }
  .qd-kpi strong { font-size: 22px; }
  .qd-hero { padding: 20px 16px; border-radius: 14px; }
  .qd-hero h1 { font-size: 21px; }
  .qd-hero-score > strong { font-size: 36px; }
  .qd-panel-head { align-items: flex-start; }
  .qd-panel-head h2 { font-size: 17px; }
  .qd-chart { height: 210px; }
  .qd-chart-hint { display: none; }
  .qd-day-list { padding-left: 18px; }
  .qd-day-list::before { content: none; }
  .qd-day::before { left: -18px; width: 10px; height: 10px; border-width: 2px; }
  .qd-day-head { grid-template-columns: 1fr; padding: 14px 15px; gap: 10px; }
  .qd-day-date { flex-direction: row; align-items: baseline; gap: 8px; }
  .qd-day-strip { gap: 10px; }
  .qd-day-body { padding: 0 15px 15px; }
  .qd-run-head { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; padding: 11px 12px; }
  .qd-rank { grid-row: 2; grid-column: 1; }
  .qd-run-flags { grid-row: 2; grid-column: 2 / -1; }
  .qd-run-more { grid-row: 1; grid-column: 3; }
  .qd-run-body { padding: 0 12px 12px; }
  .qd-answer { font-size: 12.5px; padding: 12px 13px 12px 15px; }
  .qd-meta-grid { grid-template-columns: 1fr 1fr; }
  .qd-sum-chip + .qd-sum-chip { padding-left: 0; border-left: 0; }
  .qd-day-summary { gap: 8px 14px; }
  .qd-record-tools button { padding: 6px 12px; font-size: 11.5px; }
  .qd-metric-tabs button { padding: 6px 11px; font-size: 11.5px; }
}

/* ==========================================================================
   8. 打印
   ========================================================================== */
@media print {
  .qd-body { background: #fff !important; }
  .qd-shell .floating-shell,
  .qd-record-tools,
  .qd-chart-tools,
  .qd-load-more-wrap,
  .qd-toast { display: none !important; }
  .qd-shell .dashboard-content main.qd-main { padding-top: 12px !important; }
  .qd-day-body { display: block !important; }
  .qd-run-body { display: block !important; }
  .qd-day, .qd-run, .qd-kpi, .qd-insight { break-inside: avoid; page-break-inside: avoid; box-shadow: none !important; }
  .qd-day-list::before { display: none; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
/* ==========================================================================
   E. AI 平台真实 LOGO（db/ds/km/qw/yb）
   ========================================================================== */
.platform-logo.has-logo,
.qd-pf-logo.has-logo,
.pf-logo.has-logo {
  background: #fff !important;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(26, 32, 44, .08);
  box-shadow: 0 1px 3px rgba(26, 32, 44, .08);
}

.platform-logo.has-logo img,
.qd-pf-logo.has-logo img,
.pf-logo.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* 趋势图例小 LOGO */
.trend-legend-logo {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 auto;
  margin-right: 5px;
  border: 1px solid rgba(26, 32, 44, .08);
  vertical-align: -2px;
}

.trend-legend-item {
  display: inline-flex;
  align-items: center;
}

/* 详情页平台徽标基础尺寸（原 .qd-run-plat i 规则继续作用于回退字母块） */
.qd-pf-logo {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  flex: 0 0 auto;
}

.qd-pf-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.qd-pf-name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qd-pf-row {
  grid-template-columns: 108px minmax(0, 1fr) 52px;
}

@media (max-width: 700px) {
  .qd-pf-row {
    grid-template-columns: 96px minmax(0, 1fr) 46px;
  }
}

/* ==========================================================================
   10. 声誉 / 保真度拆分 + 引用媒体三分类（#101）
   --------------------------------------------------------------------------
   10.1 保真度类问题的类型徽章与主色
   10.2 引用媒体三分类：官方媒体 / 合作媒体 / 公共信源（全站统一口径）
   10.3 高频引用媒体占比条 + 图例
   10.4 保真度类：核心词覆盖清单（已提及 / 未提及）
   ========================================================================== */

/* --- 10.1 保真度类：紫色系，与报告页保真度板块 / 饼图同色 --- */
.qd-kind.is-completeness {
  background: linear-gradient(120deg, #6351fb, #8b7cf6);
  box-shadow: 0 4px 12px rgba(99, 81, 251, .26);
}

/* --- 10.2 三分类徽章：官方青绿 / 合作蓝 / 公共中性灰（#107） ---
 * 与 interactions.js::SOURCE_KINDS、records.js::SOURCE_KINDS 同一口径。
 * 徽章文案是「官方 / 合作 / 公共」，完整名「官方媒体 / 合作媒体 / 公共信源」
 * 出现在 title 与图例里，避免行内徽章过长挤压媒体名。 */
.qd-kind-tag {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
  cursor: help;
}
.qd-kind-tag.k-official { background: rgba(40, 184, 148, .18); color: #007a60; }
.qd-kind-tag.k-partner  { background: rgba(64, 132, 241, .16); color: #1f5fc4; }
.qd-kind-tag.k-public   { background: #f1f3f5; color: #6b7280; }

/* 行底色随分类微调：官方青绿 / 合作蓝 / 公共中性（#107 全站统一口径） */
.qd-src.is-official { background: linear-gradient(90deg, #f2fcfa, #fff 60%); border-color: #d8efe8; }
/* #107 官方字母托：原 #28b894→#1bc69b 白字仅 2.51，压到 #0f7a63（5.27） */
.qd-src.is-official i { background: linear-gradient(135deg, #0f7a63, #007a60); }
.qd-src.is-partner { background: linear-gradient(90deg, #f1f6fe, #fff 60%); border-color: #d8e6fb; }
/* #107 字母托带首字母，白字必须达 AA：终点压到 #2f6fd0（4.88） */
.qd-src.is-partner i { background: linear-gradient(135deg, #2f6fd0, #1f5fc4); }
.qd-src.is-public i { background: linear-gradient(135deg, #9ca3af, #b6bcc6); }
/* 徽章紧跟媒体名，note 仍靠右 */
.qd-src .qd-kind-tag { margin-left: 0; }
.qd-src > span:last-child { margin-left: auto; }

.qd-sc-row.is-official { background: linear-gradient(90deg, #f2fcfa, #fafbfc 65%); border-color: #d8efe8; }
.qd-sc-row.is-partner { background: linear-gradient(90deg, #f1f6fe, #fafbfc 65%); border-color: #d8e6fb; }

/* 单次检测标题右侧的三类计数 */
.qd-src-mix {
  margin-left: 8px;
  font-style: normal;
  font-size: 10.5px;
  color: var(--qd-faint);
  font-weight: 500;
}
.qd-ev-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }

/* 检测条上的官方 / 合作小旗 */
.qd-flag.f-official { background: rgba(40, 184, 148, .16); color: #007a60; }
.qd-flag.f-partner  { background: rgba(64, 132, 241, .14); color: #1f5fc4; }

/* --- 10.3 高频引用媒体：占比条 + 图例 --- */
.qd-source-mix { margin-top: 14px; }
.qd-src-mix-bar {
  display: flex;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--qd-line-soft);
}
.qd-src-mix-bar i {
  display: block;
  height: 100%;
  transition: width .35s ease;
  cursor: help;
}
.qd-src-mix-bar i.k-official { background: linear-gradient(90deg, #28b894, #1bc69b); }
.qd-src-mix-bar i.k-partner  { background: linear-gradient(90deg, #4084f1, #2f6fd0); }
.qd-src-mix-bar i.k-public   { background: linear-gradient(90deg, #b6bcc6, #9ca3af); }

.qd-src-mix-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 11px;
}
.qd-src-mix-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--qd-muted);
  cursor: help;
}
.qd-src-mix-legend i {
  width: 8px; height: 8px;
  border-radius: 3px;
  flex: 0 0 auto;
}
.qd-src-mix-legend span.k-official i { background: #28b894; }
.qd-src-mix-legend span.k-partner i  { background: #4084f1; }
.qd-src-mix-legend span.k-public i   { background: #b6bcc6; }
.qd-src-mix-legend b {
  margin-left: auto;
  color: var(--qd-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.qd-src-mix-legend em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--qd-faint);
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
/* 占比条与媒体榜之间留出分隔，避免两块信息糊在一起 */
.qd-insight-media .qd-source-rows {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--qd-line-soft);
}
.qd-sc-row em { white-space: nowrap; }

/* --- 10.4 保真度类：核心词覆盖清单 --- */
.qd-word-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.qd-word-col {
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid var(--qd-line-soft);
  background: #fafbfc;
}
.qd-word-col.is-covered { background: #f2fcfa; border-color: #d8efe8; }
.qd-word-col.is-missing { background: #fff8f5; border-color: #f6ddd2; }
.qd-word-col > small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 8px;
}
.qd-word-col.is-covered > small { color: var(--qd-brand-deep); }
.qd-word-col.is-missing > small { color: #b4552f; }
.qd-word-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.qd-word-chips span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--qd-line);
  font-size: 11px;
  font-weight: 500;
  color: var(--qd-ink);
  white-space: nowrap;
}
.qd-word-col.is-covered .qd-word-chips span { border-color: #cfe9e1; color: #007a60; }
.qd-word-col.is-missing .qd-word-chips span { border-color: #f0d5c8; color: #b4552f; }
.qd-word-chips em {
  font-style: normal;
  font-size: 11px;
  color: var(--qd-faint);
}

@media (max-width: 700px) {
  /* 行内 style 写了按词数比例的两列，窄屏必须用 !important 压回单列，
     否则手机上两列各 ~150px，胶囊词会被挤成竖排单字。 */
  .qd-word-cols { grid-template-columns: minmax(0, 1fr) !important; }
  .qd-src-mix { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   #108 回答链接 / 回答截图
   --------------------------------------------------------------------------
   「检测元数据」原为 响应耗时 / 回答字数 两个纯数字格，现改为可点击的
   证据入口：外链胶囊跳平台会话，缩略图开快照弹层。两格与下方
   命中排名 / 命中判定共用 .qd-meta-grid，故高度需自对齐。
   ========================================================================== */

.qd-meta-item.is-link,
.qd-meta-item.is-shot {
  display: flex;
  flex-direction: column;
  padding: 8px 10px 9px;
}
.qd-meta-item.is-link small,
.qd-meta-item.is-shot small { margin-bottom: 5px; }

/* --- 外链胶囊：品牌青绿描边 + 深绿字，hover 实底反白 --- */
/* 与右侧截图入口同构（图标托 + 两行文字 + 尾部动作），保证两格等高 */
.qd-answer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 8px 5px 6px;
  border-radius: 999px;
  border: 1px solid #cde9e1;
  background: var(--qd-brand-50);
  color: var(--qd-brand-deep);
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.qd-answer-ico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--qd-brand-deep);
  color: #fff;
}
.qd-answer-ico svg { width: 13px; height: 13px; }
.qd-answer-txt { flex: 1; min-width: 0; line-height: 1.2; }
.qd-answer-txt b {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--qd-brand-deep);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.qd-answer-txt i {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  font-style: normal;
  color: var(--qd-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.qd-answer-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cde9e1;
  color: var(--qd-brand-deep);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.qd-answer-go svg { width: 10px; height: 10px; }
.qd-answer-link:hover {
  background: #e6f7f2;
  border-color: var(--qd-brand);
  box-shadow: 0 2px 8px rgba(40, 184, 148, .2);
  transform: translateY(-1px);
}
.qd-answer-link:hover .qd-answer-go {
  background: var(--qd-brand-deep);
  border-color: var(--qd-brand-deep);
  color: #fff;
}
.qd-answer-link:focus-visible .qd-answer-go {
  background: var(--qd-brand-deep);
  border-color: var(--qd-brand-deep);
  color: #fff;
}
.qd-answer-link:focus-visible {
  outline: 2px solid var(--qd-brand-deep);
  outline-offset: 2px;
}

/* --- 截图缩略图：定高裁切，悬停浮出「查看大图」 --- */
/* 快照原图 880x349，塞进 ~250px 宽的格子后正文只有 3.7px，
   缩略图无法承担「看清内容」的职责。这里做成明确的入口控件：
   平台色图标 + 快照名 + 查看大图，完整画面由弹层等宽呈现。 */
.qd-shot-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 8px 5px 6px;
  border: 1px solid #cde9e1;
  border-radius: 999px;
  background: var(--qd-brand-50);
  text-align: left;
  cursor: zoom-in;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.qd-shot-ico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--qd-brand-deep);
  color: #fff;
}
.qd-shot-ico svg { width: 13px; height: 13px; }
.qd-shot-txt { flex: 1; min-width: 0; line-height: 1.2; }
.qd-shot-txt b {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--qd-brand-deep);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.qd-shot-txt i {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 9.5px;
  font-style: normal;
  color: var(--qd-muted);
}
/* 平台色只作 6px 圆点标识，不承担文字，故不受 AA 约束 */
.qd-shot-txt i em {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9);
}
.qd-shot-zoom {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cde9e1;
  color: var(--qd-brand-deep);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.qd-shot-zoom svg { width: 9px; height: 9px; }
.qd-shot-btn:hover {
  background: #e6f7f2;
  border-color: var(--qd-brand);
  box-shadow: 0 2px 8px rgba(40, 184, 148, .2);
  transform: translateY(-1px);
}
.qd-shot-btn:hover .qd-shot-zoom {
  background: var(--qd-brand-deep);
  border-color: var(--qd-brand-deep);
  color: #fff;
}
.qd-shot-btn:focus-visible {
  outline: 2px solid var(--qd-brand-deep);
  outline-offset: 2px;
}
.qd-shot-btn:focus-visible .qd-shot-zoom {
  background: var(--qd-brand-deep);
  border-color: var(--qd-brand-deep);
  color: #fff;
}

/* --- 截图弹层 --- */
body.qd-shot-open { overflow: hidden; }

.qd-shot-modal {
  position: fixed;
  inset: 0;
  z-index: 960;   /* 高于 nr-modal(950)，低于头像菜单(1000) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: rgba(10, 21, 18, .58);
  backdrop-filter: blur(3px);
  animation: qdShotFade .18s ease both;
}
.qd-shot-modal[hidden] { display: none; }
@keyframes qdShotFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qdShotRise {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.qd-shot-card {
  display: flex;
  flex-direction: column;
  width: min(940px, 100%);
  max-height: 100%;
  border-radius: 18px;
  border: 1px solid var(--qd-line);
  background: #fff;
  box-shadow: 0 24px 64px rgba(10, 21, 18, .28);
  overflow: hidden;
  animation: qdShotRise .22s cubic-bezier(.22, 1, .36, 1) both;
}

.qd-shot-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--qd-line-soft);
  background: linear-gradient(180deg, var(--qd-brand-50), #fff);
}
.qd-shot-htext { min-width: 0; flex: 1; }
.qd-shot-kicker {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--qd-brand-deep);
}
.qd-shot-head h3 {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--qd-ink);
}
.qd-shot-head p {
  margin: 4px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--qd-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qd-shot-x {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--qd-line);
  background: #fff;
  color: var(--qd-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.qd-shot-x:hover {
  background: #fdecec;
  border-color: #f3c9c9;
  color: var(--qd-bad);
}
.qd-shot-x:focus-visible { outline: 2px solid var(--qd-brand-deep); outline-offset: 2px; }

.qd-shot-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px;
  background: #f7f9f9;
}
.qd-shot-stage {
  width: 100%;
  margin: 0 auto;
  /* 放大后 stage 比容器宽，靠 body 的 overflow 滚动平移 */
  flex: none;
  /* Tailwind preflight 把全局设成 border-box，会让 width 含边框，
     导致「原始尺寸 880px」实际只画出 878px。这里显式 content-box，
     使缩放倍数与百分比读数严格对应图像绘制宽。 */
  box-sizing: content-box;
}
.qd-shot-body img {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: content-box;
  border-radius: 12px;
  border: 1px solid var(--qd-line);
  background: #fff;
  box-shadow: var(--qd-shadow-sm);
  user-select: none;
  -webkit-user-drag: none;
}
.qd-shot-body.is-zoomed { cursor: grab; }
.qd-shot-body.is-zoomed .qd-shot-stage { cursor: grab; }
.qd-shot-body.is-pulling,
.qd-shot-body.is-pulling .qd-shot-stage { cursor: grabbing; }
.qd-shot-body.is-zoomed img { box-shadow: 0 6px 22px rgba(10, 21, 18, .14); }
.qd-shot-body::-webkit-scrollbar { width: 8px; height: 8px; }
.qd-shot-body::-webkit-scrollbar-track { background: #eef1f1; border-radius: 8px; }
.qd-shot-body::-webkit-scrollbar-thumb { background: rgba(40, 184, 148, .38); border-radius: 8px; }
.qd-shot-body::-webkit-scrollbar-thumb:hover { background: rgba(40, 184, 148, .6); }

.qd-shot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--qd-line-soft);
  background: #fff;
}
.qd-shot-note { font-size: 11px; color: var(--qd-muted); }  /* #108 AA：白底上 --qd-faint 仅 2.54，--qd-muted 得 4.83 */
.qd-shot-jump {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--qd-brand-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.qd-shot-jump:hover { background: #00644e; transform: translateY(-1px); }
.qd-shot-jump:focus-visible { outline: 2px solid var(--qd-brand-deep); outline-offset: 2px; }

@media (max-width: 720px) {
  .qd-shot-modal { padding: 16px 12px; }
  .qd-shot-head { padding: 13px 14px 11px; }
  .qd-shot-body { padding: 12px 14px; }
  .qd-shot-foot { flex-direction: column; align-items: stretch; padding: 11px 14px; }
  .qd-shot-jump { text-align: center; }
}

/* --- #108 窄屏：证据入口占整行，避免主文字被 ellipsis 截断 --- */
@media (max-width: 480px) {
  .qd-meta-grid { grid-template-columns: 1fr; gap: 8px; }
  /* 两个纯数值格并排回两列，节省纵向空间 */
  .qd-meta-item:not(.is-link):not(.is-shot) { display: block; }
  .qd-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qd-meta-item.is-link,
  .qd-meta-item.is-shot { grid-column: 1 / -1; }
  .qd-answer-link,
  .qd-shot-btn { padding: 7px 10px 7px 7px; }
  .qd-answer-ico,
  .qd-shot-ico { width: 26px; height: 26px; border-radius: 8px; }
  .qd-answer-ico svg,
  .qd-shot-ico svg { width: 15px; height: 15px; }
  .qd-answer-txt b,
  .qd-shot-txt b { font-size: 12.5px; }
  .qd-answer-txt i,
  .qd-shot-txt i { font-size: 10.5px; }
  .qd-answer-go { width: 26px; height: 26px; }
  .qd-answer-go svg { width: 12px; height: 12px; }
  .qd-shot-zoom { height: 26px; padding: 0 10px; font-size: 10.5px; }
  .qd-shot-zoom svg { width: 10px; height: 10px; }
}

/* --- #108 快照缩放工具条 ---
 * 快照原图 880px 宽，窄屏等宽缩到 336px 后正文只有 5px，
 * 证据必须能放大看清，故给一条常驻工具条（不藏进菜单）。 */
.qd-shot-zoombar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 18px;
  border-bottom: 1px solid var(--qd-line-soft);
  background: #fbfdfc;
}
.qd-shot-zgroup {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--qd-line);
  background: #fff;
}
.qd-shot-zbtn {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--qd-brand-deep);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.qd-shot-zbtn:hover { background: var(--qd-brand-50); }
.qd-shot-zbtn:active { background: #d8f1ea; }
.qd-shot-zval {
  min-width: 46px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--qd-ink);
}
.qd-shot-ztext {
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--qd-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.qd-shot-ztext:hover { background: var(--qd-brand-50); color: var(--qd-brand-deep); }
.qd-shot-ztext.is-on { background: var(--qd-brand-deep); color: #fff; }
.qd-shot-zhint {
  flex: 1;
  min-width: 0;
  font-size: 10.5px;
  color: var(--qd-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qd-shot-zdl {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #cde9e1;
  background: var(--qd-brand-50);
  color: var(--qd-brand-deep);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.qd-shot-zdl:hover {
  background: var(--qd-brand-deep);
  border-color: var(--qd-brand-deep);
  color: #fff;
}
.qd-shot-zbtn:focus-visible,
.qd-shot-ztext:focus-visible,
.qd-shot-zdl:focus-visible {
  outline: 2px solid var(--qd-brand-deep);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .qd-shot-zoombar { padding: 8px 14px; gap: 8px; }
  /* 窄屏把操作提示收起，优先保住按钮与下载 */
  .qd-shot-zhint { display: none; }
  .qd-shot-zdl { margin-left: auto; }
  .qd-shot-zbtn { width: 28px; height: 28px; font-size: 16px; }
  .qd-shot-ztext { padding: 6px 11px; }
}
