/* 回消息系统版本 · U4 样式表（兼容 Chrome 61，无外部资源） */

:root {
  --bg-desk: #D7DDE6;
  --bg: #E9ECEF;
  --surface: #FFFFFF;
  --surface-soft: #F5F7FA;
  --reply: #FBE172;
  --reply-border: #E2BE36;
  --reply-active: #F2CF44;
  --ink: #18202C;
  --ink-strong: #111824;
  --ink-sub: #535E6E;
  --line: #D2D9E2;
  --line-soft: #E5E9F0;
  --alert: #D93829;
  --good: #15614A;
  --bad: #A62B20;
  --sparkle: #DDA91F;
  --btn-ink-bg: #18202C;
  --btn-ink-text: #FFFFFF;
  --btn-ink-active: #273244;
  --focus-ring: #18202C;
  --backdrop: rgba(24, 32, 44, 0.72);
  --shadow-notice: 0 8px 18px rgba(24, 32, 44, 0.08);
  --shadow-frame: 0 18px 46px rgba(24, 32, 44, 0.14);
  --shadow-key: 0 3px 0 rgba(17, 24, 36, 0.22);
  --shadow-key-press: 0 1px 0 rgba(17, 24, 36, 0.16);
  --shadow-soft-key: 0 2px 0 rgba(24, 32, 44, 0.06);

  /* 默认版本强调色（会被 data-ver="0..7" 覆盖） */
  --ver-accent: #C97E12;
  --ver-tint: #FDF5E4;

  /* 统一动效变量：120 / 200 / 320 三档时长 + 一条缓动曲线 */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
  --ease-main: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 8 个版本同明度彩度强调色（浅色模式） */
[data-ver="0"] { --ver-accent: #C97E12; --ver-tint: #FDF5E4; }
[data-ver="1"] { --ver-accent: #1D7C78; --ver-tint: #E6F5F4; }
[data-ver="2"] { --ver-accent: #465BA3; --ver-tint: #ECEFFA; }
[data-ver="3"] { --ver-accent: #C25830; --ver-tint: #FBEFE9; }
[data-ver="4"] { --ver-accent: #CC4943; --ver-tint: #FCECEB; }
[data-ver="5"] { --ver-accent: #953F74; --ver-tint: #F7ECF3; }
[data-ver="6"] { --ver-accent: #36687C; --ver-tint: #E9F2F6; }
[data-ver="7"] { --ver-accent: #55793F; --ver-tint: #EEF4E9; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg-desk: #0D1117;
    --bg: #141A23;
    --surface: #1D2532;
    --surface-soft: #242E3D;
    --reply: #F4D55B;
    --reply-border: #D9B738;
    --reply-active: #E8C53F;
    --ink: #EDF1F7;
    --ink-strong: #FFFFFF;
    --ink-sub: #9AA7B8;
    --line: #303B4E;
    --line-soft: #273142;
    --alert: #EE5345;
    --good: #4AD1A3;
    --bad: #FF7B6E;
    --sparkle: #F5D25E;
    --btn-ink-bg: #EDF1F7;
    --btn-ink-text: #141A23;
    --btn-ink-active: #D4DCE8;
    --focus-ring: #F4D55B;
    --backdrop: rgba(8, 11, 16, 0.84);
    --shadow-notice: none;
    --shadow-frame: none;
    --shadow-key: 0 3px 0 rgba(0, 0, 0, 0.35);
    --shadow-key-press: 0 1px 0 rgba(0, 0, 0, 0.25);
    --shadow-soft-key: none;
  }

  [data-ver="0"] { --ver-accent: #F0B24A; --ver-tint: #282319; }
  [data-ver="1"] { --ver-accent: #4AC4BF; --ver-tint: #192829; }
  [data-ver="2"] { --ver-accent: #859CEB; --ver-tint: #1D2335; }
  [data-ver="3"] { --ver-accent: #EB8A62; --ver-tint: #2C201B; }
  [data-ver="4"] { --ver-accent: #F27A74; --ver-tint: #2C1D1E; }
  [data-ver="5"] { --ver-accent: #D47CB2; --ver-tint: #291D27; }
  [data-ver="6"] { --ver-accent: #6FA8C0; --ver-tint: #1A252D; }
  [data-ver="7"] { --ver-accent: #8EB970; --ver-tint: #1E281B; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-desk);
  color: var(--ink);
  font-family: "QuizSans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  font-size: 15px;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}

button:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

button:disabled {
  cursor: default;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 外壳：手机满屏，桌面端居中模拟竖屏机身 */
.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  background-color: var(--bg);
  overflow: hidden;
}

@media (min-width: 481px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .app-shell {
    width: 100%;
    max-width: 430px;
    height: 100%;
    max-height: 880px;
    border-radius: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-frame);
  }
}

.screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
}

.screen-enter {
  animation: screenFadeIn var(--dur-base) var(--ease-main);
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 通用标签与顶栏独立音效/音乐开关（各 44x44，开/关状态一眼分明） */
.tag-entertainment {
  display: inline-flex;
  align-items: center;
  height: 32px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink-sub);
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: var(--surface);
  white-space: nowrap;
}

.btn-audio {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft-key);
  margin-left: 6px;
  flex: 0 0 auto;
  transition: transform var(--dur-fast) var(--ease-main), box-shadow var(--dur-fast) var(--ease-main), background-color var(--dur-fast) var(--ease-main), border-color var(--dur-fast) var(--ease-main), color var(--dur-fast) var(--ease-main);
}

.btn-audio::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background-color: var(--reply-border);
  opacity: 1;
  transition: opacity var(--dur-fast) var(--ease-main);
}

.btn-audio:active {
  transform: translateY(1px) scale(0.96);
  box-shadow: none;
  background-color: var(--surface-soft);
}

.btn-audio .icon-audio-off {
  display: none;
}

.btn-audio.is-off {
  color: var(--ink-sub);
  background-color: var(--bg);
  border-style: dashed;
  box-shadow: none;
}

.btn-audio.is-off::after {
  opacity: 0;
}

.btn-audio.is-off .icon-audio-on {
  display: none;
}

.btn-audio.is-off .icon-audio-off {
  display: block;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  min-width: 44px;
  padding: 12px 18px;
  border-radius: 14px;
  background-color: var(--btn-ink-bg);
  color: var(--btn-ink-text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-key);
  transition: transform var(--dur-fast) var(--ease-main), box-shadow var(--dur-fast) var(--ease-main), background-color var(--dur-fast) var(--ease-main), opacity var(--dur-fast) var(--ease-main);
}

.btn-primary:active {
  transform: translateY(2px) scale(0.985);
  box-shadow: var(--shadow-key-press);
  background-color: var(--btn-ink-active);
}

.btn-primary:disabled {
  opacity: 0.6;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-soft-key);
  transition: transform var(--dur-fast) var(--ease-main), box-shadow var(--dur-fast) var(--ease-main), background-color var(--dur-fast) var(--ease-main);
}

.btn-secondary:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: none;
  background-color: var(--surface-soft);
}

.btn-block {
  width: 100%;
}

/* ===========================
   1. 封面页：消息太多的手机
   =========================== */
.screen-cover {
  justify-content: space-between;
}

.os-status-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 8px 18px;
}

.os-status-left {
  display: flex;
  align-items: center;
  color: var(--ink-sub);
}

.os-status-right {
  display: flex;
  align-items: center;
}

.icon-signal {
  display: block;
  margin-right: 8px;
}

.os-net-label {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.cover-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 20px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 通知堆叠 + 99+ 角标 + 四角星点缀 */
.notice-stage {
  position: relative;
  height: 204px;
  margin-bottom: 28px;
}

.notice-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.notice-item {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 11px 16px 10px;
  box-shadow: var(--shadow-notice);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.notice-item-0 {
  top: 0;
  transform: scale(0.92);
  transform-origin: top center;
  opacity: 0.7;
}

.notice-item-1 {
  top: 60px;
  transform: scale(0.96);
  transform-origin: top center;
  opacity: 0.9;
}

.notice-item-2 {
  top: 120px;
  opacity: 1;
}

.notice-drop-0 {
  animation: noticeDrop0 var(--dur-slow) var(--ease-main) both;
}

.notice-drop-1 {
  animation: noticeDrop1 var(--dur-slow) var(--ease-main) 110ms both;
}

.notice-drop-2 {
  animation: noticeDrop2 var(--dur-slow) var(--ease-main) 220ms both;
}

@keyframes noticeDrop0 {
  from { opacity: 0; transform: translateY(-20px) scale(0.88); }
  to { opacity: 0.7; transform: translateY(0) scale(0.92); }
}

@keyframes noticeDrop1 {
  from { opacity: 0; transform: translateY(-20px) scale(0.92); }
  to { opacity: 0.9; transform: translateY(0) scale(0.96); }
}

@keyframes noticeDrop2 {
  from { opacity: 0; transform: translateY(-22px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.notice-from {
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink-sub);
}

.notice-msg {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-badge {
  position: absolute;
  top: 76px;
  right: -6px;
  width: 84px;
  height: 84px;
  border-radius: 42px;
  background-color: var(--alert);
  color: #FFFFFF;
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-7deg);
  border: 3px solid var(--bg);
}

.unread-badge.is-wobbling {
  animation: badgeWobble var(--dur-slow) var(--ease-main);
}

@keyframes badgeWobble {
  0% { transform: rotate(-7deg) scale(1); }
  35% { transform: rotate(-13deg) scale(1.08); }
  70% { transform: rotate(-3deg) scale(0.98); }
  100% { transform: rotate(-7deg) scale(1); }
}

/* 四角星点缀（同屏 <= 4 颗，错开节奏闪烁） */
.sparkle-star {
  position: absolute;
  color: var(--sparkle);
  opacity: 0;
  transform: scale(0.2) rotate(0deg);
  pointer-events: none;
}

.sparkle-pos-1 {
  top: 56px;
  right: 68px;
}

.sparkle-pos-2 {
  top: 158px;
  right: -2px;
}

.sparkle-pos-3 {
  top: -4px;
  right: 12px;
}

.sparkle-pos-4 {
  bottom: 4px;
  right: 46px;
}

.sparkle-star.is-twinkling {
  animation: starTwinkle 1100ms var(--ease-main);
}

@keyframes starTwinkle {
  0% { opacity: 0; transform: scale(0.25) rotate(0deg); }
  45% { opacity: 1; transform: scale(1.08) rotate(22deg); }
  100% { opacity: 0; transform: scale(0.25) rotate(45deg); }
}

.cover-copy {
  padding: 0 2px;
}

.cover-title-wrap {
  position: relative;
  display: inline-block;
  padding-right: 30px;
}

.cover-title {
  font-size: 31px;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.cover-title-line {
  display: block;
}

.cover-title-line-0 {
  animation: lineRise var(--dur-slow) var(--ease-main) 180ms both;
}

.cover-title-line-1 {
  animation: lineRise var(--dur-slow) var(--ease-main) 300ms both;
}

@keyframes lineRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cover-sub {
  font-size: 16px;
  color: var(--ink-sub);
  margin-top: 12px;
  line-height: 1.5;
}

.cover-footer {
  flex: 0 0 auto;
  padding: 12px 20px 26px;
}

@media (max-height: 680px) {
  .os-status-bar {
    padding: 10px 12px 4px 16px;
  }

  .notice-stage {
    height: 182px;
    margin-bottom: 18px;
  }

  .notice-item {
    height: 72px;
    padding: 8px 14px;
  }

  .notice-item-1 {
    top: 54px;
  }

  .notice-item-2 {
    top: 108px;
  }

  .unread-badge {
    top: 70px;
    width: 74px;
    height: 74px;
    border-radius: 37px;
    font-size: 26px;
  }

  .cover-title {
    font-size: 28px;
  }

  .cover-sub {
    font-size: 15px;
    margin-top: 8px;
  }

  .cover-footer {
    padding: 8px 20px 18px;
  }
}

/* ===========================
   2. 聊天答题页
   =========================== */
.chat-header {
  flex: 0 0 auto;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-top: 10px;
}

.chat-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 2px 10px 6px 12px;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.progress-indicator {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-right: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: var(--reply-border);
  margin-right: 6px;
  flex: 0 0 auto;
}

.progress-text {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}

.btn-undo {
  min-height: 44px;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-sub);
  border: 1px solid var(--line);
  background-color: var(--surface-soft);
  box-shadow: var(--shadow-soft-key);
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-main), box-shadow var(--dur-fast) var(--ease-main), background-color var(--dur-fast) var(--ease-main), color var(--dur-fast) var(--ease-main);
}

.btn-undo:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: none;
  background-color: var(--line-soft);
  color: var(--ink);
}

@media (max-width: 375px) {
  .progress-text {
    font-size: 14px;
  }

  .btn-undo {
    padding: 6px 8px;
  }
}

.progress-track {
  position: relative;
  width: 100%;
  height: 4px;
  background-color: var(--line-soft);
  overflow: hidden;
}

.progress-fill {
  width: 100%;
  height: 100%;
  background-color: var(--ink);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform var(--dur-slow) var(--ease-main);
}

/* 进度推进高光扫过 */
.progress-shine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(251, 225, 114, 0.92) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-110%);
  pointer-events: none;
}

.progress-shine.is-sweeping {
  animation: progressSweep var(--dur-slow) var(--ease-main);
}

@keyframes progressSweep {
  0% { opacity: 0.95; transform: translateX(-110%); }
  100% { opacity: 0; transform: translateX(280%); }
}

/* 聊天消息区 */
.chat-log {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px 18px;
}

.chat-stamp {
  text-align: center;
  margin: 4px 0 12px;
}

.chat-stamp-pill {
  display: inline-block;
  font-size: 14px;
  color: var(--ink-sub);
  background-color: var(--line-soft);
  padding: 2px 12px;
  border-radius: 999px;
}

/* 第 4 题「两天前」隔了很久的时间断层 */
.time-gap-break {
  display: flex;
  align-items: center;
  margin: 22px 4px 16px;
}

.time-gap-rule {
  flex: 1 1 auto;
  height: 0;
  border-top: 1px dashed var(--line);
}

.time-gap-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-sub);
}

.time-gap-badge svg {
  display: block;
  margin-right: 5px;
}

/* 第 5 题「聊到尾声」渐弱分隔 */
.fade-gap-break {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 8px 14px;
}

.fade-gap-dot {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background-color: var(--ink-sub);
  margin: 0 4px;
}

.fade-gap-dot-1 { opacity: 0.7; }
.fade-gap-dot-2 { opacity: 0.42; }
.fade-gap-dot-3 { opacity: 0.2; }

.fade-gap-label {
  font-size: 14px;
  color: var(--ink-sub);
  margin: 0 8px;
}

.turn-in {
  margin-bottom: 14px;
}

.turn-in-spring {
  animation: incomingSpring var(--dur-slow) var(--ease-main);
}

@keyframes incomingSpring {
  0% { opacity: 0; transform: translateY(-10px) scale(0.97); }
  68% { opacity: 1; transform: translateY(2px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.turn-out {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.turn-out-fade {
  animation: simpleFade var(--dur-base) var(--ease-main);
}

@keyframes simpleFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sender-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

/* 每种身份不同颜色和图标的抽象几何头像 */
.sender-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex: 0 0 auto;
}

.sender-avatar-0 { background-color: #27374D; color: #FBE172; }
.sender-avatar-1 { background-color: #2E5266; color: #FFFFFF; }
.sender-avatar-2 { background-color: var(--surface); color: var(--ink-sub); border: 1px solid var(--line); }
.sender-avatar-3 { background-color: #4A3D4D; color: #F7D3C5; }
.sender-avatar-4 { background-color: #546070; color: #E2E8F0; }

.sender-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-sub);
}

.incoming-stack {
  padding-left: 38px;
}

/* 场景组件：可点击语音条 + 二击转文字面板、群冷场、在吗、未读 */
.scene-prop {
  margin-bottom: 8px;
}

.voice-item {
  margin-bottom: 7px;
}

.voice-item:last-child {
  margin-bottom: 0;
}

.voice-row {
  display: flex;
  align-items: center;
}

.voice-bubble {
  display: inline-flex;
  align-items: center;
  width: 214px;
  min-height: 44px;
  padding: 6px 14px 6px 11px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px 16px 16px 16px;
  color: var(--ink);
  box-shadow: var(--shadow-soft-key);
  transition: transform var(--dur-fast) var(--ease-main), border-color var(--dur-fast) var(--ease-main), background-color var(--dur-fast) var(--ease-main);
}

.voice-bubble:active {
  transform: translateY(1px) scale(0.985);
}

.voice-bubble.is-playing {
  border-color: var(--reply-border);
  background-color: var(--surface-soft);
}

.voice-play-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex: 0 0 auto;
  color: var(--ink);
}

.voice-bars {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-right: 8px;
}

.voice-bar {
  display: inline-block;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background-color: var(--ink);
  margin-right: 3px;
  transform-origin: center center;
}

.voice-bar-1 { transform: scaleY(0.38); }
.voice-bar-2 { transform: scaleY(0.76); }
.voice-bar-3 { transform: scaleY(0.52); }
.voice-bar-4 { transform: scaleY(0.92); }
.voice-bar-5 { transform: scaleY(0.46); }
.voice-bar-6 { transform: scaleY(0.72); }
.voice-bar-7 { transform: scaleY(0.36); }

.voice-bubble.is-playing .voice-bar {
  animation: waveBounce 620ms var(--ease-main) infinite alternate;
}

.voice-bubble.is-playing .voice-bar-2 { animation-delay: 90ms; }
.voice-bubble.is-playing .voice-bar-3 { animation-delay: 180ms; }
.voice-bubble.is-playing .voice-bar-4 { animation-delay: 60ms; }
.voice-bubble.is-playing .voice-bar-5 { animation-delay: 240ms; }
.voice-bubble.is-playing .voice-bar-6 { animation-delay: 140ms; }
.voice-bubble.is-playing .voice-bar-7 { animation-delay: 280ms; }

@keyframes waveBounce {
  0% { transform: scaleY(0.28); }
  100% { transform: scaleY(1); }
}

.voice-sec {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.voice-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: var(--alert);
  margin-left: 8px;
  flex: 0 0 auto;
  transition: opacity var(--dur-base) var(--ease-main);
}

.voice-unread-dot.is-read {
  opacity: 0;
}

/* 第二次点击语音条展开的「转文字」小面板 */
.voice-transcript {
  margin-top: 6px;
  max-width: 238px;
  background-color: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  animation: simpleFade var(--dur-base) var(--ease-main);
}

.voice-transcript-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-sub);
  margin-bottom: 4px;
}

.voice-transcript-line {
  font-size: 14px;
  line-height: 1.48;
  color: var(--ink);
}

.mini-msg-bubble {
  display: inline-block;
  padding: 9px 15px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px 16px 16px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.scene-tag-line {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  background-color: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-sub);
}

.scene-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background-color: var(--alert);
  margin-right: 6px;
}

.group-dots {
  display: inline-flex;
  align-items: center;
  margin-right: 7px;
}

.group-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background-color: var(--ink-sub);
  margin-right: 3px;
  opacity: 0.45;
}

.bubble-in {
  display: inline-block;
  max-width: 100%;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px 18px 18px 18px;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-strong);
  word-break: break-word;
}

.bubble-out {
  display: inline-block;
  max-width: 86%;
  background-color: var(--reply);
  border: 1px solid var(--reply-border);
  border-radius: 18px 4px 18px 18px;
  padding: 11px 15px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.48;
  color: #18202C;
  word-break: break-word;
  transform-origin: top left;
}

.bubble-out.is-flip-playing {
  transition: transform var(--dur-slow) var(--ease-main), opacity var(--dur-base) var(--ease-main);
}

/* 对方正在输入 */
.typing-row {
  display: flex;
  align-items: center;
  padding-left: 38px;
  margin-bottom: 12px;
  animation: simpleFade var(--dur-fast) var(--ease-main);
}

.typing-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--ink-sub);
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background-color: var(--ink-sub);
  margin-right: 4px;
  animation: dotPulse 780ms var(--ease-main) infinite;
}

.typing-dot:last-child {
  margin-right: 0;
}

.typing-dot-2 { animation-delay: 140ms; }
.typing-dot-3 { animation-delay: 280ms; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* 底部候选回复区（兼容 1~2 行、最多 20+ 字选项） */
.reply-tray {
  flex: 0 0 auto;
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  padding: 10px 14px 16px;
}

.reply-list {
  display: flex;
  flex-direction: column;
}

.opt-btn {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background-color: var(--surface-soft);
  text-align: left;
  box-shadow: var(--shadow-soft-key);
  transition: transform var(--dur-fast) var(--ease-main), box-shadow var(--dur-fast) var(--ease-main), background-color var(--dur-fast) var(--ease-main), border-color var(--dur-fast) var(--ease-main), opacity var(--dur-fast) var(--ease-main);
}

.opt-btn + .opt-btn {
  margin-top: 8px;
}

@media (hover: hover) {
  .opt-btn:hover:not(:disabled) {
    border-color: var(--reply-border);
    background-color: var(--reply);
    color: #18202C;
  }

  .opt-btn:hover:not(:disabled) .opt-key {
    background-color: #18202C;
    color: #FFFFFF;
  }
}

.opt-btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
  box-shadow: none;
  border-color: var(--reply-border);
  background-color: var(--reply-active);
  color: #18202C;
}

.opt-btn.is-retreating {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.opt-btn.is-launched {
  visibility: hidden;
  pointer-events: none;
}

.opt-key {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background-color: var(--line-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  margin-top: 1px;
  transition: background-color var(--dur-fast) var(--ease-main), color var(--dur-fast) var(--ease-main);
}

.opt-text {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.42;
  word-break: break-word;
}

@media (max-height: 680px) {
  .reply-tray {
    padding: 8px 12px 12px;
  }

  .opt-btn {
    min-height: 44px;
    padding: 8px 10px;
  }

  .opt-btn + .opt-btn {
    margin-top: 6px;
  }

  .opt-text {
    font-size: 14px;
    line-height: 1.38;
  }
}

/* ===========================
   3. 系统正在识别版本（<= 1.2s）
   =========================== */
.screen-detect {
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.detect-inner {
  width: 100%;
  max-width: 280px;
  text-align: center;
  padding: 24px 20px;
}

.detect-emblem {
  display: inline-block;
  margin-bottom: 18px;
}

.detect-emblem svg {
  display: block;
}

.detect-ring {
  transform-origin: 30px 30px;
  animation: detectSpin 1100ms linear infinite;
}

@keyframes detectSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.detect-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 18px;
}

.detect-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background-color: var(--line);
  overflow: hidden;
  margin-bottom: 20px;
}

.detect-bar-fill {
  width: 100%;
  height: 100%;
  background-color: var(--ink);
  transform-origin: left center;
  transform: scaleX(0);
}

.detect-bar-fill.is-running {
  transition: transform 950ms var(--ease-main);
  transform: scaleX(1);
}

.btn-skip {
  min-height: 44px;
  min-width: 92px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-sub);
  border: 1px solid var(--line);
  background-color: var(--surface);
  box-shadow: var(--shadow-soft-key);
  transition: transform var(--dur-fast) var(--ease-main), background-color var(--dur-fast) var(--ease-main);
}

.btn-skip:active {
  transform: translateY(1px) scale(0.97);
  background-color: var(--surface-soft);
}

/* ===========================
   4. 结果页：关于本机（大版面 + 8 版本独立强调色与揭晓动效）
   =========================== */
.result-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 10px 10px 10px 16px;
}

.result-header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-strong);
  white-space: nowrap;
}

.result-header-right {
  display: flex;
  align-items: center;
}

.result-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0 18px;
  display: flex;
  flex-direction: column;
}

.result-card-shell {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border-top: 4px solid var(--ver-accent);
  border-bottom: 1px solid var(--line);
}

.about-hero {
  padding: 22px 20px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.about-top-strip {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.emblem-stage {
  position: relative;
  width: 68px;
  height: 68px;
  margin-right: 16px;
  flex: 0 0 auto;
}

.version-emblem {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background-color: #18202C;
  border: 2px solid var(--ver-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.version-emblem .emblem-glyph {
  width: 42px;
  height: 42px;
  display: block;
}

/* 揭晓动效：先描边，再亮起 */
.is-revealing .version-emblem {
  animation: emblemLightUp 720ms var(--ease-main) both;
}

@keyframes emblemLightUp {
  0% { opacity: 0.7; transform: scale(0.9); }
  58% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

.is-revealing .emblem-stroke {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: strokeDraw 420ms var(--ease-main) both;
}

@keyframes strokeDraw {
  from { stroke-dashoffset: 180; }
  to { stroke-dashoffset: 0; }
}

.is-revealing .emblem-fill {
  opacity: 0;
  animation: fillAppear var(--dur-slow) var(--ease-main) 260ms both;
}

@keyframes fillAppear {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

/* 7 颗四角星辐射散开 */
.burst-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}

.burst-star {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 14px;
  height: 14px;
  color: var(--ver-accent);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.2);
}

.burst-star-alt {
  color: var(--sparkle);
}

.is-revealing .burst-star-0 { animation: burst0 680ms var(--ease-main) 340ms both; }
.is-revealing .burst-star-1 { animation: burst1 680ms var(--ease-main) 365ms both; }
.is-revealing .burst-star-2 { animation: burst2 680ms var(--ease-main) 390ms both; }
.is-revealing .burst-star-3 { animation: burst3 680ms var(--ease-main) 415ms both; }
.is-revealing .burst-star-4 { animation: burst4 680ms var(--ease-main) 440ms both; }
.is-revealing .burst-star-5 { animation: burst5 680ms var(--ease-main) 465ms both; }
.is-revealing .burst-star-6 { animation: burst6 680ms var(--ease-main) 490ms both; }

@keyframes burst0 {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.3) rotate(0deg); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(0, -52px, 0) scale(1.05) rotate(35deg); }
}
@keyframes burst1 {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.3) rotate(0deg); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(42px, -32px, 0) scale(0.9) rotate(42deg); }
}
@keyframes burst2 {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.3) rotate(0deg); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(52px, 14px, 0) scale(1) rotate(30deg); }
}
@keyframes burst3 {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.3) rotate(0deg); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(26px, 46px, 0) scale(0.85) rotate(50deg); }
}
@keyframes burst4 {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.3) rotate(0deg); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-28px, 46px, 0) scale(0.95) rotate(-40deg); }
}
@keyframes burst5 {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.3) rotate(0deg); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-50px, 10px, 0) scale(0.9) rotate(-32deg); }
}
@keyframes burst6 {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.3) rotate(0deg); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-40px, -34px, 0) scale(1.05) rotate(-45deg); }
}

.about-id-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.about-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.code-pill {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  background-color: var(--ver-accent);
  padding: 3px 11px;
  border-radius: 7px;
  line-height: 1.35;
}

.answers-chip {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-sub);
  background-color: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 2px 9px;
  border-radius: 7px;
  font-variant-numeric: tabular-nums;
}

.about-os-label {
  display: block;
  font-size: 14px;
  color: var(--ink-sub);
  margin-top: 6px;
}

/* 版本名逐字落定 */
.result-name {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
  margin-bottom: 14px;
}

.name-char {
  display: inline-block;
}

.is-revealing .name-char {
  opacity: 0;
  transform: translateY(-10px);
  animation: charDrop var(--dur-base) var(--ease-main) both;
}

@keyframes charDrop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-quote {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--ver-tint);
  border-left: 4px solid var(--ver-accent);
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
}

.is-revealing .result-quote,
.is-revealing .spec-group {
  animation: simpleFade var(--dur-slow) var(--ease-main) 680ms both;
}

/* 跳过揭晓或完成后立即定格终态 */
.is-reveal-settled .version-emblem,
.is-reveal-settled .emblem-stroke,
.is-reveal-settled .emblem-fill,
.is-reveal-settled .name-char,
.is-reveal-settled .result-quote,
.is-reveal-settled .spec-group {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  stroke-dashoffset: 0 !important;
}

.is-reveal-settled .burst-star {
  animation: none !important;
  opacity: 0 !important;
}

/* 规格列表与双栏适配区 */
.spec-group {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.spec-block {
  flex: 1 0 auto;
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spec-head {
  margin-bottom: 14px;
}

.bug-pill {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  background-color: var(--alert);
  padding: 3px 11px;
  border-radius: 999px;
}

.bug-list {
  list-style: none;
}

.bug-item {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
}

.bug-item + .bug-item {
  margin-top: 12px;
}

.bug-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background-color: var(--ver-accent);
}

.compat-row {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--line-soft);
}

.compat-cell {
  flex: 1 1 50%;
  padding: 18px 16px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compat-cell-right {
  border-left: 1px solid var(--line-soft);
  padding: 18px 20px 20px 16px;
}

.compat-key {
  font-size: 14px;
  color: var(--ink-sub);
  margin-bottom: 6px;
}

.compat-val {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.compat-val-good {
  color: var(--good);
}

.compat-val-bad {
  color: var(--bad);
}

.result-status {
  margin: 12px 16px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* 底部操作栏（支持「发笔记」+「存图」主次清晰并列） */
.result-actions {
  flex: 0 0 auto;
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  padding: 12px 16px 18px;
}

.result-actions-primary {
  display: flex;
  align-items: stretch;
}

.result-actions-primary .btn-save {
  flex: 1 1 auto;
}

.result-actions-primary.has-post-note .btn-post-note {
  flex: 1.25 1 0%;
}

.result-actions-primary.has-post-note .btn-save {
  flex: 1 1 0%;
  margin-left: 10px;
  background-color: var(--reply);
  color: #18202C;
  border: 1px solid var(--reply-border);
  box-shadow: 0 3px 0 rgba(226, 190, 54, 0.55);
}

.result-actions-primary.has-post-note .btn-save:active {
  background-color: var(--reply-active);
  box-shadow: 0 1px 0 rgba(226, 190, 54, 0.45);
}

.result-actions-sub {
  display: flex;
  margin-top: 10px;
}

.btn-half {
  flex: 1 1 50%;
}

.btn-half + .btn-half {
  margin-left: 10px;
}

@media (max-height: 680px) {
  .result-header {
    padding: 6px 10px 6px 14px;
  }

  .result-scroll {
    padding: 8px 0 8px;
  }

  .about-hero {
    padding: 12px 16px 14px;
  }

  .about-top-strip {
    margin-bottom: 10px;
  }

  .emblem-stage,
  .version-emblem {
    width: 56px;
    height: 56px;
    border-radius: 15px;
  }

  .version-emblem .emblem-glyph {
    width: 34px;
    height: 34px;
  }

  .result-name {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .result-quote {
    font-size: 15px;
    padding: 8px 12px;
  }

  .spec-block {
    padding: 12px 16px 12px;
  }

  .spec-head {
    margin-bottom: 8px;
  }

  .bug-item {
    font-size: 14px;
    line-height: 1.48;
  }

  .bug-item + .bug-item {
    margin-top: 6px;
  }

  .compat-cell,
  .compat-cell-right {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .compat-key {
    margin-bottom: 2px;
  }

  .compat-val {
    font-size: 15px;
  }

  .result-actions {
    padding: 8px 14px 10px;
  }

  .result-actions-sub {
    margin-top: 8px;
  }
}

/* ===========================
   弹层（存图预览 / 全部 8 个版本）
   =========================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  background-color: var(--backdrop);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: simpleFade var(--dur-base) var(--ease-main);
}

@media (min-width: 481px) {
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.modal-sheet {
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  background-color: var(--surface);
  border-radius: 22px 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sheetSlideUp var(--dur-base) var(--ease-main);
}

@media (min-width: 481px) {
  .modal-sheet {
    border-radius: 22px;
    border: 1px solid var(--line);
  }
}

@keyframes sheetSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-strong);
}

.btn-close {
  min-height: 44px;
  min-width: 56px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft-key);
  transition: transform var(--dur-fast) var(--ease-main), background-color var(--dur-fast) var(--ease-main);
}

.btn-close:active {
  transform: translateY(1px) scale(0.97);
  background-color: var(--line-soft);
}

.save-hint {
  flex: 0 0 auto;
  padding: 10px 18px;
  background-color: var(--reply);
  color: #18202C;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid var(--reply-border);
}

.save-img-wrap {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 24px;
  background-color: var(--bg);
  text-align: center;
}

.save-preview-img {
  display: block;
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  -webkit-touch-callout: default;
  user-select: none;
}

/* 全部 8 个版本列表（带各自独立图形标记和强调色） */
.modal-sheet-versions {
  height: 86vh;
}

.versions-list {
  position: relative;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}

.version-entry {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background-color: var(--surface);
}

.version-entry.is-mine {
  border-left: 5px solid var(--ver-accent);
  padding-left: 13px;
  background-color: var(--ver-tint);
}

.version-entry-top {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.version-mini-emblem {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: #18202C;
  border: 2px solid var(--ver-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex: 0 0 auto;
}

.version-mini-emblem svg {
  width: 26px;
  height: 26px;
  display: block;
}

.version-entry-titles {
  flex: 1 1 auto;
  min-width: 0;
}

.version-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.version-entry-code {
  font-size: 14px;
  font-weight: 800;
  color: var(--ver-accent);
}

.version-mine-badge {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  background-color: var(--ver-accent);
  padding: 2px 9px;
  border-radius: 6px;
}

.version-entry-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-strong);
  margin-top: 2px;
}

.version-entry-quote {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.version-entry-bugs {
  list-style: none;
  margin-bottom: 10px;
}

.version-entry-bugs li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-sub);
}

.version-entry-bugs li + li {
  margin-top: 4px;
}

.version-entry-bugs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background-color: var(--ver-accent);
}

.version-entry-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.pair-good {
  color: var(--good);
  font-weight: 600;
  margin-right: 12px;
}

.pair-bad {
  color: var(--bad);
  font-weight: 600;
}

/* ===========================
   减少动态效果（全部改为淡入，声音不受影响）
   =========================== */
@media (prefers-reduced-motion: reduce) {
  .screen-enter,
  .notice-drop-0,
  .notice-drop-1,
  .notice-drop-2,
  .cover-title-line-0,
  .cover-title-line-1,
  .turn-in-spring,
  .turn-out-fade,
  .typing-row,
  .modal-sheet,
  .voice-transcript,
  .is-revealing .version-emblem,
  .is-revealing .result-quote,
  .is-revealing .spec-group {
    animation: simpleFade var(--dur-fast) linear both !important;
  }

  .is-revealing .emblem-stroke,
  .is-revealing .emblem-fill,
  .is-revealing .name-char {
    animation: simpleFade var(--dur-fast) linear both !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }

  .unread-badge.is-wobbling,
  .sparkle-star,
  .burst-star,
  .typing-dot,
  .detect-ring,
  .voice-bubble.is-playing .voice-bar,
  .progress-shine.is-sweeping {
    animation: none !important;
  }

  .sparkle-star,
  .burst-star,
  .progress-shine {
    opacity: 0 !important;
  }

  .typing-dot {
    opacity: 0.7;
  }

  .btn-primary:active,
  .btn-secondary:active,
  .btn-undo:active,
  .btn-audio:active,
  .btn-skip:active,
  .btn-close:active,
  .opt-btn:active,
  .voice-bubble:active,
  .opt-btn.is-retreating {
    transform: none !important;
  }

  .progress-fill,
  .detect-bar-fill.is-running,
  .bubble-out.is-flip-playing {
    transition-duration: 120ms !important;
  }
}

/* 极小屏或超大字：选项区自己滚，不挤掉题干 */
.reply-tray {
  max-height: 62vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
