/* ============================================
   详情页样式（暗色 · 杂志式）
   案例与产品共用；含 md 正文排版
   ============================================ */

/* 案例主色（--case-accent 影响局部强调） */
.c-orange { --case-accent: #ff8a5c; }
.c-cyan   { --case-accent: #6ec6ff; }
.c-pink   { --case-accent: #f9a8d4; }
.c-violet { --case-accent: #b79cff; }
.c-green  { --case-accent: #5eead4; }

/* ============ 顶部 ============ */
.detail-top {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}

.detail-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 55% at var(--ax, 12%) 0%, var(--ag, rgba(255, 138, 92, 0.12)), transparent 62%),
    radial-gradient(40% 50% at 92% 10%, rgba(129, 136, 255, 0.1), transparent 60%);
  pointer-events: none;
}

.detail-top .container {
  position: relative;
  z-index: 1;
}

.d-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--case-accent, var(--accent));
  margin-bottom: 1rem;
}

/* ============ 封面（3D 倾斜） ============ */
.detail-cover .tilt {
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}

.detail-cover .img-inner {
  display: block;
  aspect-ratio: 21 / 10;
  border-radius: inherit;
}

@media (max-width: 700px) {
  .detail-cover .img-inner {
    aspect-ratio: 16 / 10;
  }
}

/* 本地实拍封面：按图片自然比例完整展示，不裁切 */
.detail-cover.cover-natural .img-box,
.detail-cover.cover-natural .img-inner {
  aspect-ratio: auto;
}
.detail-cover.cover-natural .img-box img {
  height: auto;
  aspect-ratio: auto;
}
@media (max-width: 700px) {
  .detail-cover.cover-natural .img-box,
  .detail-cover.cover-natural .img-inner {
    aspect-ratio: auto;
  }
}

/* ============ md 正文排版 ============ */
.md-body {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
}

.md-body > * + * {
  margin-top: 1.25rem;
}

.md-body .md-h {
  position: relative;
  margin-top: 3rem;
  padding-left: 1.05rem;
  color: var(--ink);
  line-height: 1.5;
}

.md-body .md-h::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--case-accent, var(--accent)), transparent);
}

.md-h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.md-h3 { font-size: 1.12rem; }
.md-h4 { font-size: 1rem; }

.md-body p {
  color: var(--ink-2);
  line-height: 2.15;
  font-size: 1.01rem;
  max-width: 74ch;
}

.md-body strong {
  color: var(--ink);
}

.md-body em {
  color: var(--case-accent, var(--accent));
  font-style: normal;
}

.md-body code {
  padding: 0.1em 0.45em;
  border-radius: 6px;
  background: var(--bg-mist);
  color: var(--primary);
  font-size: 0.9em;
}

.md-body ul,
.md-body ol {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
}

.md-body ul li,
.md-body ol li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-2);
  line-height: 1.9;
}

.md-body ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--case-accent, var(--accent));
  opacity: 0.85;
}

.md-body ol {
  counter-reset: mdo;
}

.md-body ol li {
  counter-increment: mdo;
}

.md-body ol li::before {
  content: counter(mdo, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--case-accent, var(--accent));
}

.md-body ul li strong,
.md-body ol li strong {
  color: var(--ink);
}

.md-body blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 1.7rem 1.4rem 3.2rem;
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, rgba(255, 138, 92, 0.07), rgba(129, 136, 255, 0.06));
  border: 1px solid var(--line);
  color: var(--ink-2);
  line-height: 2;
}

.md-body blockquote::before {
  content: "“";
  position: absolute;
  left: 1rem;
  top: 0.55rem;
  font-size: 2.6rem;
  font-family: Georgia, serif;
  color: var(--case-accent, var(--accent));
  opacity: 0.6;
}

.md-body .md-hr {
  border: none;
  height: 1px;
  margin: 2.6rem 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.md-body .md-fig {
  margin: 2.2rem 0;
}

.md-body .md-fig .img-box {
  aspect-ratio: 21 / 10;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
}

@media (max-width: 700px) {
  .md-body .md-fig .img-box {
    aspect-ratio: 16 / 10;
  }
}

/* ============ 成效数据带 ============ */
.stats-band {
  border-radius: var(--radius-xl);
  padding: clamp(2.4rem, 5vw, 3.8rem);
  background:
    radial-gradient(90% 130% at 8% 0%, rgba(255, 138, 92, 0.14), transparent 52%),
    radial-gradient(90% 130% at 96% 100%, rgba(167, 139, 250, 0.18), transparent 55%),
    linear-gradient(135deg, #141845, #0a0d26);
  border: 1px solid var(--line);
  color: #fff;
  text-align: center;
  margin-top: clamp(2.8rem, 6vw, 4.5rem);
}

.stats-band h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.4rem;
}

.stat .num {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  background: linear-gradient(120deg, #fff, rgba(255, 255, 255, 0.68));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.stat .lbl {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============ 引用 ============ */
.case-quote {
  position: relative;
  max-width: 760px;
  margin: clamp(2.8rem, 6vw, 4.5rem) auto 0;
  padding: 2.2rem 2.4rem;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--case-accent, var(--accent));
  font-size: 1.05rem;
  line-height: 2;
  color: var(--ink-2);
}

.case-quote::before {
  content: "“";
  position: absolute;
  top: -6px;
  left: 16px;
  font-size: 3.4rem;
  font-family: Georgia, serif;
  color: var(--case-accent, var(--accent));
  opacity: 0.4;
}

.case-quote .who {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* ============ 产品结语 ============ */
.product-outro {
  text-align: center;
  max-width: 640px;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
}

.product-outro h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

.product-outro p {
  margin: 1rem auto 2rem;
  color: var(--ink-2);
}

/* ============ [DEMO] 前端演示组件 ============ */
.md-demo { max-width: none; }

/* ---------- AI 合同审查：docx 文档卡片（Word 审阅视图） ---------- */
.docx-card {
  margin: 2.2rem 0 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 30px 70px -32px rgba(0, 0, 20, 0.85);
  background: #e8e9ee;
}

/* Word 标题栏 */
.docx-titlebar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.95rem;
  background: linear-gradient(180deg, #3c4062, #2f3350);
}
.dx-dots { display: flex; gap: 6px; }
.dx-dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: #e05b5b;
}
.dx-dots i:nth-child(2) { background: #e0b24e; }
.dx-dots i:nth-child(3) { background: #6ec66e; }
.dx-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(238, 240, 255, 0.85);
  letter-spacing: 0.03em;
}
.dx-tag {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffd9a0;
  border: 1px solid rgba(255, 199, 115, 0.4);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  background: rgba(255, 170, 60, 0.1);
}
.dx-ai-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6d72ff;
  box-shadow: 0 0 0 0 rgba(109, 114, 255, 0.6);
  animation: aiPulse 1.8s ease-out infinite;
}
@keyframes aiPulse {
  0% { box-shadow: 0 0 0 0 rgba(109, 114, 255, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(109, 114, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(109, 114, 255, 0); }
}

/* 菜单栏 */
.docx-menubar {
  display: flex;
  gap: 1.2rem;
  padding: 0.32rem 1rem 0.28rem;
  background: #f2f3f6;
  border-bottom: 1px solid #dcdee4;
}
.docx-menubar span {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6a6e78;
  cursor: default;
}
.docx-menubar span.active {
  color: #2f6fd6;
  border-bottom: 2px solid #2f6fd6;
  padding-bottom: 2px;
}

/* 审阅工具栏 */
.docx-ribbon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 1rem;
  background: #f7f8fa;
  border-bottom: 1px solid #e3e5ea;
}
.dx-rb {
  font-size: 0.68rem;
  font-weight: 600;
  color: #555a64;
  border-radius: 6px;
  padding: 0.2rem 0.7rem;
  border: 1px solid #d9dce3;
  background: #fff;
}
.dx-rb.active {
  color: #2f6fd6;
  border-color: #b6cdf5;
  background: #e9f1fd;
}
.dx-rb-sep { width: 1px; height: 1.1rem; background: #d9dce3; }
.dx-rb-b {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: #6d72ff;
  background: rgba(109, 114, 255, 0.1);
  border: 1px solid rgba(109, 114, 255, 0.3);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
}

/* 标尺 */
.docx-ruler {
  display: flex;
  align-items: flex-end;
  height: 1.15rem;
  padding: 0 1.6rem;
  background: #eceef2;
  border-bottom: 1px solid #dfe1e7;
  overflow: hidden;
}
.docx-ruler i {
  flex: 1;
  height: 0.8rem;
  border-right: 1px solid #c9cdd6;
}
.docx-ruler i:nth-child(3n) { border-right-width: 1.6px; height: 1rem; }

/* Word 文档页面：白纸（稍灰暗） */
.docx-page {
  margin: 1rem 1.4rem 0.6rem;
  padding: 1.6rem 2.1rem 1.3rem;
  background: #f2f3f5;
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}
.dx-doc-head { text-align: center; margin-bottom: 1rem; }
.dx-doc-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #2c2f36;
  letter-spacing: 0.18em;
  margin-bottom: 0.3rem;
}
.dx-no {
  font-size: 0.66rem;
  color: #8b8f98;
  letter-spacing: 0.06em;
}
.dx-p {
  position: relative;
  font-size: 0.74rem;
  line-height: 2;
  color: #3a3e46;
}
.dx-p b { font-weight: 700; color: #26292f; }
.dx-p.dx-dim { color: #8b8f98; }

/* 文档高亮（Word 荧光笔 + 下划线） */
.dx-hl-r, .dx-hl-y, .dx-hl-g {
  padding: 0.04em 0.22em;
  border-radius: 3px;
  font-weight: 700;
}
.dx-hl-r { background: #ffe0e0; color: #c0392b; border-bottom: 2px solid #e74c3c; }
.dx-hl-y { background: #fff3c4; color: #8a6d1a; border-bottom: 2px solid #e0b24e; }
.dx-hl-g { background: #ddf1e2; color: #1f7a3d; border-bottom: 2px solid #27ae60; }

/* 正文高亮处的 AI 内联标注（取代右侧批注） */
.ai-tag {
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: 0.6em;
  margin-left: 0.3em;
  border-radius: 4px;
  padding: 0.18em 0.42em;
  color: #fff;
}
.ai-tag.bad { background: #e05555; }
.ai-tag.warn { background: #e0a13a; }
.ai-tag.ok { background: #35a05a; }

/* 状态栏 */
.docx-status {
  display: flex;
  gap: 1.4rem;
  padding: 0.4rem 1rem 0.5rem;
  background: #f2f3f6;
  border-top: 1px solid #dcdee4;
}
.docx-status span {
  font-size: 0.62rem;
  font-weight: 600;
  color: #6a6e78;
}
.docx-status .ai-sum {
  margin-left: auto;
  color: #6d72ff;
  font-weight: 800;
}

@media (max-width: 700px) {
  .docx-ruler { display: none; }
}

/* ---------- AI 综合审查分析（列表式简约） ---------- */
.as-card {
  margin: 1.6rem 0 1rem;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #131731, #0d1026);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 16, 0.8);
  overflow: hidden;
}
.as-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.05rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.as-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.as-badge {
  margin-left: auto;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #b7a6ff;
  border: 1px solid rgba(150, 122, 255, 0.35);
  background: rgba(150, 122, 255, 0.1);
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
}
.as-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem 1.05rem;
}
.as-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.as-item > div { flex: 1; }
.as-item b {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink);
}
.as-item p {
  margin-top: 0.2rem;
  font-size: 0.73rem;
  line-height: 1.7;
  color: var(--ink-3);
}
.as-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.05rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.c-cyan { color: #4dd6ff; background: rgba(77, 214, 255, 0.1); }

/* 严重度徽章 */
.sev {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 5px;
  padding: 0.12rem 0.42rem;
  flex: none;
}
.sev.red { color: #ff8d99; background: rgba(255, 93, 108, 0.13); }
.sev.org { color: #ffc46b; background: rgba(255, 184, 77, 0.11); }
.sev.green { color: #6fe3a1; background: rgba(61, 220, 132, 0.11); }

/* 编号角标 */
.mk {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  margin-top: 0.15rem;
  border-radius: 50%;
  font-size: 0.64rem;
  font-weight: 800;
  font-style: normal;
  color: #fff;
  background: #ff5d6c;
}
.mk-org { background: #d99a3d; }
.mk-green { background: #2fae6a; }

.af-chip {
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.18rem 0.68rem;
}
.c-red { color: #ff8d99; background: rgba(255, 93, 108, 0.12); }
.c-org { color: #ffc46b; background: rgba(255, 184, 77, 0.1); }
.c-green { color: #6fe3a1; background: rgba(61, 220, 132, 0.1); }

@media (max-width: 700px) {
  .dx-p { padding-right: 0; padding-bottom: 2.6rem; }
  .dx-anno { right: 0; top: auto; bottom: 0.3rem; width: 100%; }
}

/* =====================================================
   [DEMO] 工厂 AI 质检
   业务一：闸机红外检测 = 传送带扫描监测大屏
   业务二：工艺流程     = 视频 AI 分析与规范校验
   主题色跟随案例强调色 c-cyan（青色）
   ===================================================== */
.fg-panel,
.fa-panel {
  margin: 1.6rem 0 1rem;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0e1428, #0a0e22);
  box-shadow: 0 24px 60px -30px rgba(0, 20, 40, 0.85);
  overflow: hidden;
}

.fg-head,
.fa-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.05rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.fg-title,
.fa-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.fg-live,
.fa-live {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #4dd6ff;
  background: rgba(77, 214, 255, 0.12);
  border: 1px solid rgba(77, 214, 255, 0.35);
  border-radius: 999px;
  padding: 0.14rem 0.6rem;
  animation: fg-blink 1.6s infinite;
}
@keyframes fg-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ============ 业务一：摄像头画面 + 识别日志 + 滑动传送带 + 识别线 ============ */
.fg-scene {
  position: relative;
  margin: 0.9rem 1.05rem;
  aspect-ratio: 16 / 6.2;
  border-radius: 10px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(77, 214, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #0c1524, #080e1c);
  border: 1px solid rgba(77, 214, 255, 0.2);
  overflow: hidden;
}
.fg-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(77, 214, 255, 0.07) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(77, 214, 255, 0.07) 0 1px, transparent 1px 46px);
}
.fg-cam {
  position: absolute;
  left: 0.7rem;
  top: 0.55rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(238, 240, 255, 0.55);
  z-index: 2;
}

/* 识别日志（上半部） */
.fg-log {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 12%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  z-index: 2;
}
.fgl-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 26, 0.72);
}
.fgl-row span {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(238, 240, 255, 0.45);
}
.fgl-row b {
  font-size: 0.66rem;
  color: #eaf3ff;
}
.fgl-row em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  border-radius: 4px;
  padding: 1px 5px;
}
.fgl-row.ok { border-color: rgba(77, 214, 255, 0.18); }
.fgl-row.ok em { color: #4dd6ff; background: rgba(77, 214, 255, 0.12); }
.fgl-row.warn { border-color: rgba(255, 93, 108, 0.3); background: rgba(255, 93, 108, 0.06); }
.fgl-row.warn em { color: #ff8d99; background: rgba(255, 93, 108, 0.16); }

/* 传送带（画面下方） */
.fg-belt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  background: linear-gradient(180deg, #0d1928, #091120);
  border-top: 1px solid rgba(77, 214, 255, 0.25);
  overflow: hidden;
}
.fg-belt-line {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(77, 214, 255, 0.08) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, transparent 0 10px, rgba(255, 255, 255, 0.03) 10px 11px, transparent 11px 44%),
    linear-gradient(0deg, rgba(77, 214, 255, 0.05) 0 1px, transparent 1px 14px);
}

/* 物品滑动流（双份循环无缝，物品沿带错落分布） */
.fg-flow {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 44px;
  padding-left: 24px;
  animation: fg-flowmove 16s linear infinite;
  will-change: transform;
}
@keyframes fg-flowmove {
  0% { transform: translate(0, -50%); }
  100% { transform: translate(-50%, -50%); }
}

/* 物品标签：图标 + 名称 + 结果，带错落偏移 --dy */
.fg-obj {
  position: relative;
  min-width: 72px;
  padding: 7px 9px 6px;
  border-radius: 8px;
  border: 1.5px solid rgba(77, 214, 255, 0.55);
  background: rgba(6, 12, 26, 0.82);
  text-align: center;
  flex: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transform: translateY(var(--dy, 0));
}
.fg-ico {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 3px;
  color: #4dd6ff;
}
.fg-obj b {
  display: block;
  font-size: 0.66rem;
  color: #eaf3ff;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.fg-obj em {
  display: inline-block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 4px;
  padding: 1px 5px;
}
.fg-obj.pass em { color: #4dd6ff; background: rgba(77, 214, 255, 0.12); }
.fg-obj.alert {
  border-color: #ff5d6c;
  box-shadow: 0 0 14px rgba(255, 93, 108, 0.45);
}
.fg-obj.alert .fg-ico { color: #ff5d6c; }
.fg-obj.alert em { color: #ff8d99; background: rgba(255, 93, 108, 0.16); }

/* 预警小弹窗 */
.fg-pop {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) scale(0.6);
  transform-origin: bottom center;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  background: #ff5d6c;
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 93, 108, 0.5);
  animation: fg-popup 1.8s ease-in-out infinite;
  z-index: 2;
}
.fg-pop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #ff5d6c;
}
@keyframes fg-popup {
  0%, 100% { transform: translateX(-50%) scale(0.6); opacity: 0; }
  8% { transform: translateX(-50%) scale(1.1); opacity: 1; }
  18% { transform: translateX(-50%) scale(1); opacity: 1; }
  82% { transform: translateX(-50%) scale(1); opacity: 1; }
  90% { transform: translateX(-50%) scale(0.6); opacity: 0; }
}

/* 监控识别线：垂直扫过 */
.fg-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, #4dd6ff, transparent);
  box-shadow: 0 0 14px 2px rgba(77, 214, 255, 0.5);
  z-index: 3;
  animation: fg-scanmove 6s linear infinite;
}
@keyframes fg-scanmove {
  0% { left: -2px; }
  100% { left: 100%; }
}

/* 实时数据行 */
.fg-read {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem 0.9rem;
}
.fgr {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 0.6rem;
}
.fgr span {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(238, 240, 255, 0.45);
  margin-bottom: 0.15rem;
}
.fgr b {
  font-size: 0.72rem;
  color: #4dd6ff;
}
.fgr.warn { border-color: rgba(255, 93, 108, 0.35); background: rgba(255, 93, 108, 0.06); }
.fgr.warn b { color: #ff8d99; }

/* ============ 业务二：视频 AI 分析 + 规范校验 ============ */
.fa-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0.9rem;
  padding: 0.9rem 1.05rem;
}

/* 视频画面框 */
.fa-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background:
    radial-gradient(90% 90% at 30% 20%, rgba(77, 214, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #0c1524, #080e1c);
  border: 1px solid rgba(77, 214, 255, 0.2);
  overflow: hidden;
}
.fa-axis {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background:
    linear-gradient(180deg, transparent, rgba(77, 214, 255, 0.06)),
    repeating-linear-gradient(0deg, rgba(77, 214, 255, 0.14) 0 1px, transparent 1px 26px);
}
.fa-playbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(4, 8, 18, 0.85);
  border-top: 1px solid rgba(77, 214, 255, 0.2);
}
.fa-playbar i {
  width: 0;
  height: 0;
  border-left: 8px solid #4dd6ff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  flex: none;
}
.fa-playbar b {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(238, 240, 255, 0.8);
}

/* AI 逐段理解 */
.fa-notes {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.fa-note {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.fa-note .fa-t {
  font-size: 0.62rem;
  font-weight: 800;
  color: rgba(238, 240, 255, 0.4);
  letter-spacing: 0.04em;
  flex: none;
  padding-top: 0.12rem;
}
.fa-note b {
  display: block;
  font-size: 0.78rem;
  color: var(--ink);
}
.fa-note p {
  margin-top: 0.18rem;
  font-size: 0.72rem;
  line-height: 1.65;
  color: var(--ink-3);
}
.fa-note i {
  display: inline-block;
  margin-top: 0.25rem;
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 5px;
  padding: 0.1rem 0.42rem;
}
.fa-note.fa-ok i { color: #4dd6ff; background: rgba(77, 214, 255, 0.12); }
.fa-note.fa-warn { border-color: rgba(255, 184, 77, 0.3); background: rgba(255, 184, 77, 0.05); }
.fa-note.fa-warn i { color: #ffc46b; background: rgba(255, 184, 77, 0.12); }

/* ---------- 底部汇总 ---------- */
.fa-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.72rem 1.05rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.fg-chip {
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.16rem 0.66rem;
}
.fg-chip-ok { color: #4dd6ff; background: rgba(77, 214, 255, 0.1); }
.fg-chip-err { color: #ff8d99; background: rgba(255, 93, 108, 0.11); }

@media (max-width: 720px) {
  .fg-read { grid-template-columns: 1fr 1fr; }
  .fa-body { grid-template-columns: 1fr; }
}

/* =====================================================
   [DEMO] 高校科研技术顾问 · 对话场景卡片
   主题色跟随案例强调色 c-orange（暖橙）
   ===================================================== */
.cc-card {
  margin: 1.6rem 0 1rem;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #151a35, #0e1126);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 16, 0.8);
  overflow: hidden;
}
.cc-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.05rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.cc-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.cc-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--case-accent, #ff8a5c);
  border: 1px solid rgba(255, 138, 92, 0.35);
  background: rgba(255, 138, 92, 0.1);
  border-radius: 999px;
  padding: 0.14rem 0.6rem;
}
.cc-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--case-accent, #ff8a5c);
  animation: aiPulse 1.8s ease-out infinite;
}
.cc-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.95rem 1.05rem 1.05rem;
}
.cc-msg {
  display: flex;
  gap: 0.65rem;
  max-width: 86%;
}
.cc-msg.a { align-self: flex-end; flex-direction: row-reverse; }
.cc-ava {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 800;
  color: #1a1d33;
  background: rgba(255, 255, 255, 0.12);
}
.cc-msg.a .cc-ava { background: var(--case-accent, #ff8a5c); }
.cc-msg > div {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}
.cc-msg p {
  font-size: 0.78rem;
  line-height: 1.75;
  color: rgba(238, 240, 255, 0.85);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.cc-msg.a p {
  background: rgba(255, 138, 92, 0.12);
  border-color: rgba(255, 138, 92, 0.25);
  color: #ffe3d2;
}
.cc-msg i {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.cc-msg.a i { align-self: flex-end; }
.cc-foot {
  padding: 0.55rem 1.05rem 0.65rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--case-accent, #ff8a5c);
}