/* chill-callorb.css —— [v574 call-orb-live] 通话界面（样稿第二轮 worksite/call-orb-r2-20261105 + 泽 11-05 23:48「我的改成橙色」「不要蓝色」）
 * 白、轻：白房间壁纸（预先把暗部往白里提了四成、团后面那一圈烘成雾）上一团会喘气的雾。
 * 颜色只有：灰黑（他）、夕阳橙（她）、白、中性灰字。整页没有蓝。全部挂在 .cv-call-layer.co-on 下面，不碰别的页。 */
.cv-call-layer.co-on {
  --co-ink: #262626;          /* 字：中性近黑（R=G=B） */
  --co-ink-sub: #636363;      /* 次级灰：#FAFAFA 上 5.8:1，壁纸最灰处（约 #EDEDED）5.1:1 */
  --co-ink-faint: #6E6E6E;    /* 上一句压淡：#FAFAFA 上 4.9:1（21px 粗宋算大字，门槛 3:1） */
  --co-she-ink: #A1571A;      /* 她说话时的状态字 / 静音亮起：橙那一族压深，#FAFAFA 上 5.2:1、#EDEDED 上 4.6:1 */
  --co-end: #2A2A2A;          /* 挂断大钮：中性近黑 */
  --co-serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --co-sans: -apple-system, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --co-safe-t: calc(env(safe-area-inset-top, 0px) + var(--user-top-offset, 0px));
  --co-safe-b: env(safe-area-inset-bottom, 0px);
  background: #F6F6F6;
  color: var(--co-ink);
  font-family: var(--co-sans);
  -webkit-font-smoothing: antialiased;
}
.cv-call-layer.co-on .co-legacy { display: none !important; }

/* 壁纸：上面一层薄白，团心那一块再多提一点白，让雾落在干净的白上 */
.co-on .co-wall {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(86% 44% at 50% 37%, rgba(252, 252, 252, 0.84), rgba(252, 252, 252, 0.5) 55%, rgba(252, 252, 252, 0) 100%),
    linear-gradient(rgba(251, 251, 251, 0.28), rgba(251, 251, 251, 0.28)),
    url("assets/call/orb-wall.jpg?v=home574") center / cover no-repeat,
    #F6F6F6;
}

/* 光团：雾（WebGL，低分辨率）+ 她的心电线（2D，设备像素）。位置尺寸由 chill-callorb.js 按团心设 */
.co-on .co-orb-gl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.co-on .co-orb-line { position: absolute; pointer-events: none; z-index: 2; }
/* WebGL 起不来 / 上下文丢了：CSS 淡团慢慢呼吸（不白屏、不卡） */
.co-on .co-orb-css {
  display: none; position: absolute; z-index: 1; pointer-events: none;
  left: 50%; top: 37%; width: 76%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43, 43, 43, 0.26), rgba(43, 43, 43, 0.14) 45%, rgba(43, 43, 43, 0) 100%);
  animation: co-breathe 5.5s ease-in-out infinite;
  transition: background .6s ease;
}
.co-on.co-nogl .co-orb-css { display: block; }
.co-on.co-nogl .co-orb-gl, .co-on.co-nogl .co-orb-line { visibility: hidden; }
.co-on.co-nogl[data-co-who="he"] .co-orb-css { background: radial-gradient(closest-side, rgba(43, 43, 43, 0.62), rgba(43, 43, 43, 0.3) 45%, rgba(43, 43, 43, 0) 100%); }
.co-on.co-nogl[data-co-who="she"] .co-orb-css { background: radial-gradient(closest-side, rgba(244, 165, 91, 0.85), rgba(244, 165, 91, 0.4) 50%, rgba(244, 165, 91, 0) 100%); }
@keyframes co-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(0.97); opacity: .85; } 50% { transform: translate(-50%, -50%) scale(1.04); opacity: 1; } }

.co-on .co-ui { position: absolute; inset: 0; z-index: 3; }

/* 顶：名字 + 时长 */
.co-on .co-head { position: absolute; left: 0; right: 0; top: max(58px, calc(var(--co-safe-t) + 12px)); text-align: center; pointer-events: none; }
.co-on .co-name { font-family: var(--co-serif); font-weight: 600; font-size: 17px; letter-spacing: 0.42em; text-indent: 0.42em; color: var(--co-ink); }
.co-on .co-timer { margin-top: 8px; font-family: var(--co-serif); font-size: 13px; letter-spacing: 0.16em; text-indent: 0.16em; color: var(--co-ink-sub); font-variant-numeric: tabular-nums; }
.co-on .co-min {   /* 收起：只留一个线条箭头，不带底 */
  position: absolute; left: 14px; top: max(50px, calc(var(--co-safe-t) + 4px));
  width: 44px; height: 44px; border: 0; padding: 0; background: none; color: var(--co-ink);
  display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer;
}

/* 字幕：他正在念的那句 + 一行小灰字状态 */
.co-on .co-caption { position: absolute; left: 24px; right: 24px; top: 63%; text-align: center; pointer-events: none; }
.co-on .co-sub {
  margin: 0; font-family: var(--co-serif); font-weight: 600; font-size: 21px; line-height: 1.62; letter-spacing: 0.03em;
  color: var(--co-ink); min-height: 1.6em; text-wrap: balance;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
  transition: opacity .26s ease, transform .26s ease, color .5s ease;
}
.co-on .co-sub.is-swap { opacity: 0; transform: translateY(5px); }
.co-on .co-sub.is-dim { color: var(--co-ink-faint); }
.co-on .co-status { margin: 12px 0 0; font-size: 13px; letter-spacing: 0.14em; color: var(--co-ink-sub); transition: color .4s ease; }
.co-on[data-co-who="she"] .co-status { color: var(--co-she-ink); }

/* 底：左右是光秃秃的线条图标，中间挂断是唯一的实心大圆（位置照参考 C 量的：27.5% / 72.5% 屏宽） */
.co-on .co-controls { position: absolute; left: 0; right: 0; bottom: calc(var(--co-safe-b) + 46px); height: 64px; }
.co-on .co-ctl {
  position: absolute; top: 50%; border: 0; padding: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--co-ink);
  transform: translate(-50%, -50%); transition: transform .12s ease, color .2s ease, opacity .2s ease;
}
.co-on .co-ctl:active { transform: translate(-50%, -50%) scale(0.92); }
.co-on .co-ctl-icon { width: 56px; height: 56px; font-size: 30px; }
.co-on #cv-c-btn-mic { left: 27.5%; }
.co-on .co-btn-type { left: 72.5%; }
.co-on .co-btn-type[aria-pressed="true"] { color: var(--co-she-ink); }
/* 话筒钮＝耳朵：开着是话筒；关着（静音）换成划掉的话筒、橙色；在转文字时半透明 */
.co-on #cv-c-btn-mic .co-i-off { display: none; }
.co-on #cv-c-btn-mic:not(.is-live) .co-i-on { display: none; }
.co-on #cv-c-btn-mic:not(.is-live) .co-i-off { display: inline; }
.co-on #cv-c-btn-mic:not(.is-live) { color: var(--co-she-ink); }
.co-on #cv-c-btn-mic.is-busy { opacity: 0.45; }
.co-on .co-ctl-end {
  left: 50%; width: 64px; height: 64px; border-radius: 50%; font-size: 28px;
  background: var(--co-end); color: #FFFFFF;
  box-shadow: 0 12px 28px rgba(42, 42, 42, 0.20), 0 2px 6px rgba(42, 42, 42, 0.12);
}
.co-on .co-ctl-end i { transform: rotate(135deg); }   /* 横躺的听筒＝挂断 */

/* 打字：点右边那个才出来 */
.co-on .co-type-bar {
  position: absolute; left: 24px; right: 24px; bottom: calc(var(--co-safe-b) + 140px);
  min-height: 48px; border-radius: 24px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 10px 26px rgba(38, 38, 38, 0.08);
  display: flex; align-items: flex-end; padding: 7px 7px 7px 6px; gap: 6px;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.co-on.co-typing .co-type-bar { opacity: 1; transform: none; pointer-events: auto; }
.co-on .co-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; resize: none; overflow-y: auto;
  height: 20px; max-height: 80px; margin: 0 0 7px; padding: 0; line-height: 20px;
  font: 16px/20px var(--co-sans); color: var(--co-ink);
}
.co-on .co-input::placeholder { color: var(--co-ink-sub); font-style: normal; }
.co-on .co-send, .co-on .co-reroll { flex: none; width: 34px; height: 34px; border: 0; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.co-on .co-send { background: var(--co-end); color: #fff; font-size: 16px; }
.co-on .co-reroll { background: none; color: var(--co-ink-sub); font-size: 19px; }

@media (prefers-reduced-motion: reduce) {
  .co-on .co-sub { transition: none; }
  .co-on .co-orb-css { animation: none; }
}
