/* 情绪分析模型 — scoped under .emotion-engine */

.engine-pager-shell .engine-pager-dots {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 32px rgba(20, 73, 91, .18);
  backdrop-filter: blur(12px);
}

.engine-pager-shell .engine-pager-dots button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5b6c87;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Microsoft YaHei', system-ui, sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.engine-pager-shell .engine-pager-dots button:hover:not(.active) {
  background: rgba(0, 161, 151, .08);
  color: #007f77;
}

.engine-pager-shell .engine-pager-dots button .engine-pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e3eaee;
  color: #5b6c87;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .25s ease, color .25s ease;
}

.engine-pager-shell .engine-pager-dots button.active {
  background: linear-gradient(135deg, #00a197 0%, #00c4b6 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 161, 151, .35);
  transform: translateY(-1px);
}

.engine-pager-shell .engine-pager-dots button.active .engine-pager-num {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

.engine-pager-shell .engine-pager-dots button[data-engine-page="1"].active {
  background: linear-gradient(135deg, #00a197 0%, #00c4b6 100%);
  color: #fff;
}

.engine-pager-panel {
  display: none;
}

.engine-pager-panel.is-active,
.engine-pager-panel.is-active[hidden] {
  display: block !important;
}

.emotion-engine {
  --ink: #0a1933;
  --muted: #65738a;
  --teal: #00a197;
  --line: #dce5eb;
  --surface: #ffffff;
  background: #f5f8fa;
  color: var(--ink);
}

.emotion-engine .emotion-landing {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(100deg, #fbfdfe 0%, #f7fbfd 44%, #dbe8f2 100%);
}

.emotion-engine .emotion-landing-inner {
  position: relative;
  z-index: 1;
  max-width: 1460px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  margin: auto;
  padding: 100px 40px 90px;
}

.emotion-engine .emotion-landing-copy {
  position: relative;
  z-index: 2;
  width: 53%;
  max-width: 700px;
}

.emotion-engine .emotion-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: #07968e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.emotion-engine .emotion-kicker i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #36c8bd;
  box-shadow: 0 0 0 6px rgba(54, 200, 189, .11);
}

.emotion-engine .emotion-landing-copy h1 {
  margin: 0;
  color: #121d32;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -2px;
}

.emotion-engine .emotion-landing-copy h1 span {
  color: #0a9a91;
}

.emotion-engine .emotion-landing-copy > p {
  max-width: 680px;
  margin: 28px 0 0;
  color: #52627b;
  font-size: 17px;
  line-height: 1.85;
}

.emotion-engine .emotion-landing-actions {
  display: flex;
  gap: 13px;
  margin-top: 36px;
}

.emotion-engine .emotion-landing-actions a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.emotion-engine .emotion-primary-action {
  color: #fff;
  background: linear-gradient(90deg, #07a4c4, #20b99b);
  box-shadow: 0 13px 26px rgba(13, 165, 165, .2);
}

.emotion-engine .emotion-secondary-action {
  border: 1px solid #d2dce4;
  color: #268c87;
  background: rgba(255, 255, 255, .76);
}

.emotion-engine .emotion-landing-features {
  display: flex;
  gap: 28px;
  margin-top: 52px;
  color: #5d6b80;
  font-size: 12px;
}

.emotion-engine .emotion-landing-features span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emotion-engine .emotion-landing-features b {
  color: #10a59b;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.emotion-engine .emotion-landing-visual {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 100%);
}

.emotion-engine .emotion-landing-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 252, 253, .52), transparent 28%),
    linear-gradient(0deg, #edf5f8 0%, rgba(237, 245, 248, .88) 10%, rgba(237, 245, 248, .46) 24%, transparent 44%);
}

.emotion-engine .emotion-landing-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
  filter: saturate(.88) brightness(1.02);
}

.emotion-engine .emotion-workspace {
  width: 100%;
  background:
    radial-gradient(circle at 72% 12%, rgba(62, 209, 198, .09), transparent 26%),
    linear-gradient(180deg, #edf5f8 0, #f5f8fa 170px);
}

.emotion-engine .emotion-content {
  max-width: 1460px;
  margin: auto;
  padding: 58px 40px 96px;
}

.emotion-engine .emotion-hero-copy {
  margin-bottom: 30px;
}

.emotion-engine .emotion-hero-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--ink);
}

.emotion-engine .emotion-hero-copy p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.emotion-engine .emotion-film-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 11px 12px 11px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(18, 49, 63, .05);
}

.emotion-engine .emotion-film-selector > strong {
  flex: none;
  margin-right: 4px;
  color: #526078;
  font-size: 13px;
}

.emotion-engine .emotion-film-tabs {
  display: flex;
  flex: 1;
  gap: 7px;
  min-width: 0;
}

.emotion-engine .emotion-film-tabs button {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 11px;
  background: #f2f5f7;
  color: #35435a;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.emotion-engine .emotion-film-tabs button.selected {
  color: #fff;
  background: var(--teal);
}

.emotion-engine .emotion-upload-btn,
.emotion-engine .emotion-analysis-button {
  flex: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
}

.emotion-engine .emotion-upload-btn {
  max-width: 210px;
  overflow: hidden;
  border: 1px solid #d5dfe6;
  color: #304057;
  background: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.emotion-engine .emotion-upload-btn input {
  display: none;
}

.emotion-engine .emotion-analysis-button {
  border: 0;
  color: #fff;
  background: #0a1933;
}

.emotion-engine .emotion-primary-grid,
.emotion-engine .emotion-analysis-grid {
  display: grid;
  grid-template-columns: minmax(360px, .72fr) minmax(560px, 1.28fr);
  gap: 24px;
  margin-top: 24px;
}

.emotion-engine .emotion-panel,
.emotion-engine .emotion-insight-card,
.emotion-engine .emotion-wave-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(18, 49, 63, .06);
}

.emotion-engine .emotion-panel {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.emotion-engine .emotion-panel-heading {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #edf1f3;
}

.emotion-engine .emotion-panel-heading strong,
.emotion-engine .emotion-player-bar strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.emotion-engine .emotion-player-bar strong {
  color: #167ca8;
}

.emotion-engine .emotion-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.emotion-engine .emotion-heading-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border: 1px solid #c9ebe7;
  border-radius: 9px;
  color: #059d94;
  background: #eefaf8;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.emotion-engine .emotion-radar-panel .emotion-panel-heading {
  position: relative;
  border-bottom: 0;
}

.emotion-engine .emotion-face-capture {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 14px;
  width: 120px;
  height: 88px;
  overflow: hidden;
  border: 1px solid #d7e5ea;
  border-radius: 0;
  background: linear-gradient(145deg, #f0f7f8, #e5eef2);
  box-shadow: 0 10px 24px rgba(20, 73, 91, .1);
}

.emotion-engine .emotion-face-capture video {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
  object-position: center;
  transform: scaleX(-1);
}

.emotion-engine .emotion-face-capture.active video {
  display: block;
}

.emotion-engine .emotion-face-capture button {
  width: 100%;
  height: 100%;
  display: flex;
  transition: opacity .25s ease;
}
.emotion-engine .emotion-face-capture.active button {
  opacity: 0;
  pointer-events: none;
}
.emotion-engine .emotion-face-capture button[hidden],
.emotion-engine [data-emotion-camera][hidden] {
  display: none !important;
}
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  color: #557085;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.emotion-engine .emotion-face-capture button span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #079d94;
  background: rgba(21, 190, 176, .12);
  font-size: 12px;
}

.emotion-engine .emotion-face-capture.denied button {
  color: #8b6570;
  background: #fbf3f5;
}

.emotion-engine .emotion-face-capture small {
  display: none;
}

.emotion-engine .emotion-face-capture.active small {
  position: absolute;
  left: 7px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 35, 48, .62);
  font-size: 8px;
  backdrop-filter: blur(6px);
}

.emotion-engine .emotion-face-capture.active small i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3de0d0;
  box-shadow: 0 0 0 3px rgba(61, 224, 208, .16);
}

.emotion-engine .emotion-export-report {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #d6e3e7;
  border-radius: 9px;
  color: #31566b;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.emotion-engine .emotion-export-report span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #078f87;
  background: #e9f8f6;
  font-size: 13px;
}

.emotion-engine .emotion-radar-wrap {
  flex: 1;
  min-height: 330px;
  display: grid;
  place-items: center;
}

.emotion-engine .emotion-radar-wrap canvas {
  max-width: 100%;
}

.emotion-engine .emotion-radar-wrap { position: relative; }

/* ===== No Face 警告 ===== */
.emotion-engine .emotion-no-face-warning {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  background: rgba(238, 244, 246, 0.65);
  backdrop-filter: blur(2px);
}
.emotion-engine .emotion-no-face-warning[hidden] { display: none; }

.emotion-engine .emotion-no-face-frame {
  position: absolute;
  width: 70%;
  height: 56%;
  border: 1px solid rgba(0, 161, 151, .35);
  pointer-events: none;
}
.emotion-engine .emotion-no-face-frame::before,
.emotion-engine .emotion-no-face-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid #00a197;
}
.emotion-engine .emotion-no-face-frame::before {
  top: -1px; left: -1px; border-right: 0; border-bottom: 0;
}
.emotion-engine .emotion-no-face-frame::after {
  bottom: -1px; right: -1px; border-left: 0; border-top: 0;
}

.emotion-engine .emotion-no-face-content {
  text-align: center;
  color: #007f77;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  z-index: 1;
}
.emotion-engine .emotion-no-face-glyph {
  font-size: 32px;
  color: #00a197;
  line-height: 1;
  margin-bottom: 6px;
  animation: emotion-pulse 1.4s ease-in-out infinite;
}
.emotion-engine .emotion-no-face-content p {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}
.emotion-engine .emotion-no-face-content small {
  font-size: 10px;
  color: #5b6c87;
  letter-spacing: .04em;
}

/* ===== 加载状态 ===== */
.emotion-engine .emotion-radar-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
  gap: 12px;
  background: rgba(238, 244, 246, 0.75);
  backdrop-filter: blur(2px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #00a197;
  letter-spacing: .15em;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 161, 151, .35);
}
.emotion-engine .emotion-radar-loading[hidden] { display: none; }

.emotion-engine .emotion-radar-loading-spin {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(0, 161, 151, .2);
  border-top-color: #00a197;
  border-radius: 50%;
  animation: emotion-spin 0.9s linear infinite;
}
@keyframes emotion-spin {
  to { transform: rotate(360deg); }
}

/* ===== 错误状态 ===== */
.emotion-engine .emotion-radar-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
  gap: 10px;
  background: rgba(255, 244, 244, 0.85);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #b03e34;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 600;
}
.emotion-engine .emotion-radar-error[hidden] { display: none; }

.emotion-engine .emotion-radar-error-glyph {
  width: 44px;
  height: 44px;
  border: 2px solid #d2554a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #d2554a;
  animation: emotion-pulse 1.4s ease-in-out infinite;
}

.emotion-engine .emotion-panel-foot {
  min-height: 60px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-top: 1px solid #edf1f3;
  color: var(--muted);
  font-size: 13px;
}

.emotion-engine .emotion-panel-foot b {
  margin-left: 8px;
  color: #007f77;
}

.emotion-engine .emotion-video-stage {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d6e1e7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(18, 49, 63, .06);
}

.emotion-engine .emotion-player-bar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid #e4ebef;
  color: #506078;
}

.emotion-engine .emotion-media-surface {
  position: relative;
  flex: 1;
  min-height: 330px;
  margin: 20px 20px 0;
  overflow: hidden;
  border: 1px solid #dbe8ed;
  border-radius: 15px;
  background: #eef8fb;
}

.emotion-engine .emotion-video-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #eef4f6;
}

.emotion-engine .emotion-preview-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, .95), transparent 28%),
    linear-gradient(145deg, #f4fbfd, #dbeff7 62%, #edf8f8);
}

.emotion-engine .emotion-preview-orbit {
  position: absolute;
  width: 68%;
  height: 44%;
  left: 17%;
  top: 32%;
  border: 20px solid rgba(61, 172, 200, .16);
  border-radius: 50%;
  transform: rotate(-7deg);
  box-shadow: 0 14px 28px rgba(55, 146, 173, .12), inset 0 0 0 1px rgba(48, 158, 188, .16);
}

.emotion-engine .emotion-preview-frame {
  position: absolute;
  width: 210px;
  height: 132px;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(45, 140, 169, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 40px rgba(43, 129, 158, .18);
  transform: translate(-50%, -50%) rotate(3deg);
}

.emotion-engine .emotion-preview-frame::before {
  content: "";
  position: absolute;
  inset: 18px 18px 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #9eddec, #62bdce);
}

.emotion-engine .emotion-preview-frame i {
  position: relative;
  z-index: 1;
  flex: 1;
  border-radius: 5px;
  background: #20a99f;
}

.emotion-engine .emotion-preview-frame i:nth-child(1) { height: 16px; opacity: .45; }
.emotion-engine .emotion-preview-frame i:nth-child(2) { height: 27px; opacity: .7; }
.emotion-engine .emotion-preview-frame i:nth-child(3) { height: 39px; }

.emotion-engine .emotion-video-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 6px 18px rgba(36, 100, 120, .1);
}

.emotion-engine .emotion-rec {
  display: flex;
  align-items: center;
  color: #087d76;
  font-size: 11px;
}

.emotion-engine .emotion-rec i {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #32c5b8;
}

.emotion-engine .emotion-video-controls {
  padding: 16px 20px 18px;
}

.emotion-engine .emotion-progress {
  height: 4px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe7eb;
}

.emotion-engine .emotion-progress span {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: #25b7ad;
  transition: width 1s ease;
}

.emotion-engine .emotion-progress.is-playing span {
  width: 36%;
}

.emotion-engine .emotion-controls-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #405069;
}

.emotion-engine .emotion-controls-row button {
  width: 36px;
  height: 36px;
  border: 1px solid #dbe4e9;
  border-radius: 50%;
  color: #22314a;
  background: #f7f9fa;
  cursor: pointer;
}

.emotion-engine .emotion-controls-row time {
  margin-left: 4px;
  font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.emotion-engine .emotion-controls-row strong {
  margin-left: auto;
  color: #506078;
  font-size: 12px;
  font-weight: 500;
}

.emotion-engine .emotion-insight-card,
.emotion-engine .emotion-wave-card {
  min-height: 340px;
  overflow: hidden;
}

.emotion-engine .emotion-insight-body {
  margin: 22px;
  color: #27354c;
  font-size: 14px;
  line-height: 1.8;
}

.emotion-engine .emotion-insight-body p {
  margin: 0;
}

.emotion-engine .emotion-insight-body p b {
  display: block;
  margin-bottom: 5px;
  color: #0a1933;
  font-size: 13px;
}

.emotion-engine .emotion-insight-body p:last-child b {
  color: #167ca8;
}

.emotion-engine .emotion-insight-body hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #e7ecef;
}

.emotion-engine .emotion-insight-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 200px;
  padding: 32px 18px;
  text-align: center;
  color: #5b6c87;
  font-family: 'Microsoft YaHei', system-ui, sans-serif;
}
.emotion-engine .emotion-insight-placeholder[hidden] { display: none; }

.emotion-engine .emotion-insight-placeholder-glyph {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3f3f1, #c5e8e3);
  color: #00a197;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(0, 161, 151, .15);
}

.emotion-engine .emotion-insight-placeholder p {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #455066;
}

.emotion-engine .emotion-insight-placeholder small {
  font-size: 11px;
  color: #94a0b8;
  letter-spacing: .02em;
}

.emotion-engine .emotion-insight-report { color: #27354c; }
.emotion-engine .emotion-insight-report[hidden] { display: none; }

@keyframes emotion-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.emotion-engine .emotion-typewriter-cursor::after {
  content: "▍";
  display: inline-block;
  margin-left: 1px;
  color: #00a197;
  font-weight: 400;
  animation: emotion-cursor-blink 0.9s steps(1) infinite;
  vertical-align: baseline;
}

.emotion-engine .emotion-score {
  display: flex;
  gap: 8px;
}

.emotion-engine .emotion-score span {
  padding: 6px 9px;
  border-radius: 8px;
  color: #647188;
  background: #f2f5f6;
  font-size: 11px;
}

.emotion-engine .emotion-score b {
  margin-left: 3px;
  color: #007f77;
}

.emotion-engine .emotion-wave-wrap {
  position: relative;
  height: 240px;
  margin: 20px 22px;
  overflow: hidden;
  border: 1px solid #d6e6e9;
  border-radius: 13px;
  background: linear-gradient(180deg, #f9fcfd 0%, #eef5f7 100%);
}

.emotion-engine .emotion-wave-primary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 22px 0;
  padding: 14px 16px;
  border: 1px solid #d6e6e9;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4fbfd 0%, #ecf7f8 100%);
}

.emotion-engine .emotion-wave-primary-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.emotion-engine .emotion-wave-label {
  flex: 0 0 auto;
  color: #647188;
  font-size: 10px;
  letter-spacing: .12em;
  font-weight: 600;
}

.emotion-engine .emotion-wave-value {
  flex: 1 1 auto;
  min-width: 0;
  color: #0a1933;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
}

.emotion-engine .emotion-wave-percent {
  flex: 0 0 auto;
  color: #007f77;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.emotion-engine .emotion-wave-primary-row:nth-child(2) .emotion-wave-value { color: #455066; }
.emotion-engine .emotion-wave-primary-row:nth-child(2) .emotion-wave-percent { color: #5b6c87; }

.emotion-engine .emotion-face-capture.loading {
  border-style: dashed;
  animation: emotion-pulse 1.4s ease-in-out infinite;
}

@keyframes emotion-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 161, 151, .25); }
  50% { box-shadow: 0 0 0 6px rgba(0, 161, 151, 0); }
}

/* ===== Session 状态条 ===== */
.emotion-engine .emotion-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 22px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.emotion-engine .emotion-session-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2f5f6;
  color: #647188;
  font-weight: 600;
  letter-spacing: .04em;
}

.emotion-engine .emotion-session-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c0c8d4;
  box-shadow: 0 0 0 0 rgba(0, 161, 151, .4);
}

.emotion-engine .emotion-session-status[data-state="running"] {
  background: rgba(0, 161, 151, .12);
  color: #007f77;
}
.emotion-engine .emotion-session-status[data-state="running"] i {
  background: #00a197;
  animation: emotion-pulse 1.4s ease-in-out infinite;
}
.emotion-engine .emotion-session-status[data-state="paused"] {
  background: #fff3df;
  color: #a96a00;
}
.emotion-engine .emotion-session-status[data-state="paused"] i { background: #d49100; }
.emotion-engine .emotion-session-status[data-state="completed"] {
  background: #e8f4ee;
  color: #1f7a47;
}
.emotion-engine .emotion-session-status[data-state="completed"] i { background: #1f7a47; }

.emotion-engine .emotion-session-camera {
  color: #647188;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 采样计数 / 进度 ===== */
.emotion-engine .emotion-sample-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 0 22px 12px;
}

.emotion-engine .emotion-sample-label {
  color: #647188;
  font-size: 11px;
  letter-spacing: .04em;
}

.emotion-engine .emotion-sample-count {
  color: #007f77;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.emotion-engine .emotion-sample-bar {
  height: 5px;
  border-radius: 999px;
  background: #e3ecee;
  overflow: hidden;
}

.emotion-engine .emotion-sample-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #41d2c6, #009e92);
  transition: width .35s ease;
}

/* ===== Radar 面板底部按钮 ===== */
.emotion-engine .emotion-panel-foot {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.emotion-engine .emotion-session-button {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid #00a197;
  border-radius: 999px;
  background: #fff;
  color: #007f77;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.emotion-engine .emotion-session-button:hover {
  background: #00a197;
  color: #fff;
}

.emotion-engine .emotion-session-button[data-action="pause"] {
  border-color: #d49100;
  color: #a96a00;
}
.emotion-engine .emotion-session-button[data-action="pause"]:hover {
  background: #d49100;
  color: #fff;
}

.emotion-engine .emotion-session-button[data-action="reset"] {
  border-color: #d2554a;
  color: #b03e34;
}
.emotion-engine .emotion-session-button[data-action="reset"]:hover {
  background: #d2554a;
  color: #fff;
}

/* ===== 大号 INITIATE 按钮 overlay ===== */
.emotion-engine .emotion-media-surface { position: relative; }

.emotion-engine .emotion-initiate {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 40px;
  width: max-content;
  max-width: 86%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #00a197 0%, #00c4b6 100%);
  color: #fff;
  cursor: pointer;
  font-family: 'Microsoft YaHei', system-ui, sans-serif;
  text-align: center;
  box-shadow:
    0 16px 40px rgba(0, 161, 151, .32),
    0 0 0 0 rgba(0, 161, 151, .25);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2), box-shadow .25s ease, background .25s ease;
  animation: emotion-initiate-pulse 2.4s ease-in-out infinite;
}

.emotion-engine .emotion-initiate:hover {
  transform: translate(-50%, calc(-50% - 4px));
  background: linear-gradient(135deg, #008975 0%, #00a89d 100%);
  box-shadow:
    0 24px 56px rgba(0, 161, 151, .5),
    0 0 0 0 rgba(0, 161, 151, 0);
  animation: none;
}

.emotion-engine .emotion-initiate:active {
  transform: translate(-50%, calc(-50% - 1px));
}

@keyframes emotion-initiate-pulse {
  0%, 100% { box-shadow: 0 16px 40px rgba(0, 161, 151, .32), 0 0 0 0 rgba(0, 161, 151, .35); }
  50%      { box-shadow: 0 16px 40px rgba(0, 161, 151, .32), 0 0 0 14px rgba(0, 161, 151, 0); }
}

.emotion-engine .emotion-initiate-label {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  color: #fff;
}

.emotion-engine .emotion-initiate-hint {
  font-size: 11px;
  letter-spacing: .04em;
  opacity: .85;
  font-family: 'Microsoft YaHei', system-ui, sans-serif;
  margin-top: 2px;
  color: rgba(255, 255, 255, .9);
}

.emotion-engine .emotion-initiate[hidden] { display: none; }

/* ===== 视频框 REC 角标 + 状态 ===== */
.emotion-engine .emotion-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.emotion-engine .emotion-player-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.emotion-engine .emotion-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #d2554a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.emotion-engine .emotion-rec-badge[hidden] { display: none; }
.emotion-engine [hidden] { display: none !important; }

.emotion-engine .emotion-camera-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: -9999px;
}

.emotion-engine .emotion-rec-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: emotion-pulse 1.2s ease-in-out infinite;
}

.emotion-engine .emotion-stage-status {
  color: #647188;
  letter-spacing: .04em;
}

/* ===== PRIMARY / SECONDARY 大字号 ===== */
.emotion-engine .emotion-wave-primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 18px 22px 0;
  padding: 0;
  border: 1px solid #d6e6e9;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4fbfd 0%, #ecf7f8 100%);
  overflow: hidden;
}

.emotion-engine .emotion-wave-primary-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 18px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.emotion-engine .emotion-wave-primary-row--secondary {
  border-left: 1px solid #d6e6e9;
  background: rgba(255, 255, 255, .55);
}

.emotion-engine .emotion-wave-label {
  color: #647188;
  font-size: 9px;
  letter-spacing: .14em;
  font-weight: 700;
}

.emotion-engine .emotion-wave-value {
  color: #0a1933;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
}

.emotion-engine .emotion-wave-primary-row:first-child .emotion-wave-value { color: #0a1933; }
.emotion-engine .emotion-wave-primary-row--secondary .emotion-wave-value { color: #455066; }

.emotion-engine .emotion-wave-percent {
  color: #007f77;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: .02em;
}

.emotion-engine .emotion-wave-primary-row--secondary .emotion-wave-percent { color: #5b6c87; }

.emotion-engine .emotion-wave-wrap canvas {
  width: 100%;
  height: 100%;
}

.emotion-engine .emotion-wave-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 14px;
  margin: 10px 22px 18px;
  font-size: 10px;
  color: #5b6c87;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .02em;
}

.emotion-engine .emotion-legend-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.emotion-engine .emotion-legend-item i {
  display: inline-block;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  box-shadow: 0 0 4px currentColor;
  align-self: center;
  flex-shrink: 0;
}

.emotion-engine .emotion-legend-name {
  color: #5b6c87;
  font-size: 10px;
}

.emotion-engine .emotion-legend-val {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  min-width: 32px;
}

.emotion-engine .emotion-peak {
  position: absolute;
  top: 16px;
  left: 58%;
  padding: 6px 8px;
  border-radius: 7px;
  color: #fff;
  background: #00a197;
  font-size: 10px;
  line-height: 1.35;
  box-shadow: 0 7px 18px rgba(0, 161, 151, .2);
}

.emotion-engine .emotion-peak b {
  font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.emotion-engine.is-analyzing .emotion-video-overlay {
  display: block;
}

.emotion-engine .emotion-video-overlay {
  display: none;
}

.emotion-engine.is-analyzing .emotion-video-overlay {
  display: block;
}

@media (max-width: 1120px) {
  .emotion-engine .emotion-landing-copy { width: 60%; }
  .emotion-engine .emotion-landing-visual { width: 72%; }
  .emotion-engine .emotion-film-tabs button:nth-child(3) { display: none; }
  .emotion-engine .emotion-primary-grid,
  .emotion-engine .emotion-analysis-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .engine-pager-shell .engine-pager-dots { bottom: 18px; gap: 4px; padding: 4px; }
  .engine-pager-shell .engine-pager-dots button { padding: 5px 12px 5px 5px; font-size: 12px; }
  .engine-pager-shell .engine-pager-dots button .engine-pager-num { min-width: 24px; height: 24px; font-size: 10px; }
  .emotion-engine .emotion-landing { min-height: 760px; }
  .emotion-engine .emotion-landing-inner { min-height: 760px; padding: 90px 20px 70px; }
  .emotion-engine .emotion-landing-copy { width: 100%; max-width: 620px; }
  .emotion-engine .emotion-landing-copy h1 { font-size: clamp(42px, 12vw, 64px); }
  .emotion-engine .emotion-landing-copy > p { max-width: 560px; font-size: 16px; }
  .emotion-engine .emotion-landing-visual {
    width: 100%;
    opacity: .22;
    -webkit-mask-image: linear-gradient(to left, #000, transparent 90%);
    mask-image: linear-gradient(to left, #000, transparent 90%);
  }
  .emotion-engine .emotion-landing-features { gap: 18px; }
  .emotion-engine .emotion-content { padding: 34px 18px 72px; }
  .emotion-engine .emotion-film-selector { align-items: stretch; flex-wrap: wrap; padding: 12px; }
  .emotion-engine .emotion-film-selector > strong { width: 100%; padding: 4px 2px; }
  .emotion-engine .emotion-film-tabs { width: 100%; overflow: auto; }
  .emotion-engine .emotion-upload-btn,
  .emotion-engine .emotion-analysis-button { flex: 1; max-width: none; }
  .emotion-engine .emotion-video-stage { min-height: 400px; }
}

@media (max-width: 520px) {
  .emotion-engine .emotion-landing-actions { flex-direction: column; align-items: stretch; }
  .emotion-engine .emotion-landing-actions a { width: 100%; }
  .emotion-engine .emotion-landing-features { gap: 11px; margin-top: 34px; font-size: 10px; }
  .emotion-engine .emotion-film-tabs button:nth-child(2) { display: none; }
  .emotion-engine .emotion-face-capture { width: 96px; height: 72px; top: 10px; right: 10px; }
  .emotion-engine .emotion-controls-row strong { display: none; }
  .emotion-engine .emotion-score span:last-child { display: none; }
}
