/* chill-callin.css — [v572 call-in][call-in-fox 11-05 黑色毛玻璃 + 白线小狐狸] 麦穗来电：微信式顶部来电横幅 + 聊天里「已拒绝 / 未接来电」小卡（chill-callin.js）
 * 尺寸照泽 11-05 20:49 发的微信截图量的（卡宽 = 屏宽 - 32、圆角 24、内边距 24 / 24 / 20 / 20、方头像 40、名字 16 / 灰字 14、
 * 忽略胶囊 36 高、圆钮 40、两钮间 24、头像到底排 22）；卡色在白底上≈ rgb(49,47,52) → rgb(57,55,58)（深色半透明 + 背后模糊）。
 */
.cin-banner {
  position: fixed; left: 0; right: 0; top: 0; z-index: 100500;
  display: flex; justify-content: center;
  padding-top: max(8px, calc(env(safe-area-inset-top, 0px) - 4px));
  padding-top: max(calc(8px + var(--cin-fox-poke)), calc(env(safe-area-inset-top, 0px) - 4px + var(--cin-fox-drop)));   /* [fox-big2 11-06] 狐狸耳朵探出卡片上沿 14px，整张卡往下挪 12px，耳尖躲开灵动岛 / 刘海（见下面狐狸那段） */
  --cin-fox-poke: 14px; --cin-fox-drop: 12px; --cin-fox-left: 155px;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.cin-card {
  pointer-events: auto;
  box-sizing: border-box;
  width: min(calc(100vw - 32px), 420px);
  padding: 24px 24px 20px 20px;
  border-radius: 24px;
  position: relative;
  color: #fff;
  /* [call-in-fox 11-05] 黑色毛玻璃（泽 21:02「也别全黑底，就用黑色毛玻璃那种」）：原来 .93 / .91 几乎不透 → 深色半透明 + 背后模糊，底下聊天隐约透出来；顶上一道细高光、一圈发丝亮边 = 玻璃边。
   * 模糊别往上加：台子上（Chrome 软件渲染）34px / 60px 反而让底下气泡的字透出来，24px 只剩色块（shots/x1、shots/y1 对照） */
  background: linear-gradient(180deg, rgba(34, 34, 40, 0.66) 0%, rgba(40, 40, 46, 0.62) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(1.9) brightness(0.62);
  backdrop-filter: blur(24px) saturate(1.9) brightness(0.62);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.30), inset 0 0 0 0.5px rgba(255, 255, 255, 0.15), 0 10px 30px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.10);
  transform: translate3d(0, calc(-100% - 90px), 0);
  transition: transform 0.52s cubic-bezier(0.2, 0.9, 0.24, 1.06);
  will-change: transform;
}
.cin-banner.show .cin-card { transform: translate3d(0, 0, 0); }
.cin-banner.leaving .cin-card { transform: translate3d(0, calc(-100% - 90px), 0); transition: transform 0.34s cubic-bezier(0.5, 0, 0.75, 0); }
.cin-banner.accepting .cin-card { transform: translate3d(0, calc(-100% - 90px), 0); opacity: 0; transition: transform 0.3s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.3s ease; }

.cin-top { display: flex; align-items: center; min-width: 0; position: relative; z-index: 1; padding-right: 74px; }   /* [call-in-fox] 右边留 74px（[fox-big2] 狐狸已经垫在最底下、字压在它上面，这里回到 v576 的 74） */
.cin-ava {
  position: relative; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 5px; overflow: hidden;
  background: #5b5a60; display: flex; align-items: center; justify-content: center;
}
.cin-ava b { font-weight: 600; font-size: 18px; color: rgba(255, 255, 255, 0.9); }
.cin-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.cin-ava.has-img img { opacity: 1; }
.cin-ava.has-img b { visibility: hidden; }
.cin-txt { display: flex; flex-direction: column; min-width: 0; margin-left: 10px; }
.cin-name { font-size: 16px; line-height: 22px; font-weight: 600; color: #fff; letter-spacing: 0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* [fox-big2 11-06] 狐狸垫在字底下：字身下垫一圈跟玻璃同色的淡暗晕，白线从字后面过时在字边上断开，字不糊；没狐狸的地方晕跟玻璃一个色，看不出来 */
.cin-name, .cin-line { text-shadow: 0 0 1px rgba(36, 36, 42, 0.9), 0 0 2.5px rgba(36, 36, 42, 0.75), 0 0 5px rgba(36, 36, 42, 0.3); }
.cin-line {
  font-size: 14px; line-height: 20px; color: rgba(235, 235, 245, 0.62);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; word-break: break-word;
}

.cin-row { display: flex; align-items: center; margin-top: 22px; position: relative; z-index: 1; }
.cin-ignore {
  -webkit-appearance: none; appearance: none; border: 0; margin: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 15px 0 16px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.94);
  font: inherit; font-size: 14px; line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.cin-ignore i { font-size: 15px; }
.cin-btn {
  -webkit-appearance: none; appearance: none; border: 0; margin: 0; padding: 0; cursor: pointer; position: relative;
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.cin-btn::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }   /* 手指够得着 52px */
.cin-decline { margin-left: auto; background: #E9605B; }   /* [fox-big2 11-06] 回到 v576：红绿顶在最右（狐狸垫在钮底下，钮盖住它一截没关系——泽 09:37） */
.cin-accept { margin-left: 24px; background: #57BF6F; }
.cin-decline i { font-size: 21px; transform: rotate(135deg); }   /* 微信那种横着的挂断：话筒转 135°（phosphor 的 phone-disconnect 底下多一道线，不像） */
.cin-accept i { font-size: 20px; }
.cin-btn:active, .cin-ignore:active { transform: scale(0.94); filter: brightness(0.9); }

/* 暗色主题、背后是深色页（桌面等；聊天页在暗色主题里照旧是亮的，见 index.html [data-theme="dark"] #conv-screen）：卡提亮一档、描一圈极细的亮边、影子加重 */
.cin-banner.on-dark .cin-card {
  background: linear-gradient(180deg, rgba(58, 58, 64, 0.58) 0%, rgba(66, 66, 72, 0.54) 100%);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 14px 36px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
}
.cin-banner.on-dark .cin-ignore { background: rgba(255, 255, 255, 0.13); }

/* ── [call-in-fox 11-05 → fox-redraw 11-06 → fox-big 11-06 → fox-big2 11-06] 白线狐狸（chill-callin.js FOX_SVG）。泽 21:01「加点这种狐狐上去？反相弄成白色线条放上去」 ──
 * 就是她给的参考那只（从黑线稿那张直接描的轮廓，反成白线）：脸朝右上、两只耳朵耳尖涂实、长嘴尖一颗鼻头、竖点眼、胸口一道弧、大尾巴。路径一个点没动。
 * [fox-big] 泽 11-06「狐狸太小了，我是想底部对齐下面放大来着」「就跟这个一样」「放在底部」（她 7 月那张纪念日卡：大狐狸坐在卡片右下、身子被底边切掉）：
 *   地平线去掉；狐狸坐到卡片右下角，身子最底下一截被卡片底边切掉（viewBox 底边 = 切线 y=384）。
 * [fox-big2] 泽 09:37「狐狸继续往上面放大呀，然后被原先的通话键和挂断键遮挡住一部分也没关系」：
 *   狐狸垫在最底下一层（z-index 0），名字、那句话、三颗钮都压在它上面；红绿回到 v576 的位置（顶在最右）。
 *   大小跟卡片高度走：狐狸看得见的高 = 卡高 + 14px（--cin-fox-poke），右耳尖探出卡片上沿 14px；
 *   盒子高 = (卡高 + 14) × 384/378（墨迹顶在 viewBox y≈6），宽按 602:384 跟着走——一行字的卡（148 高）≈ 258×165，两行字的卡跟着长高（往右长）、耳朵照样探出 14px。
 *   狐狸左沿钉在卡内 155px（--cin-fox-left），不跟右边走：左轮廓退出名字 / 那句话那一栏（一行字时），脸在卡片右半边；
 *   尾巴放出卡片右边、被卡片右沿（连右下圆角）切掉一截——390 屏切掉约 55px，375 屏约 70px，桌面（卡 420 宽）尾巴整条放得下。
 *   卡片往下挪 12px（.cin-banner 的 --cin-fox-drop）：灵动岛机上耳尖已经在岛右边，但刘海宽的机型（390 宽那几代）耳尖还在刘海底下，挪了才不撞。
 *   卡外那截耳尖压在亮色聊天上是白对白，描一圈很淡的暗边（drop-shadow）让它看得见；卡里面暗边落在深色玻璃上看不出来。
 * 描出来的轮廓填白，再加一道同色描边。不接点击（pointer-events: none）。
 * 动作只留一样：卡落下后狐狸从卡片底边往上冒一次（探头）；减弱动态时不动。 */
.cin-fox {
  position: absolute; z-index: 0; left: var(--cin-fox-left, 155px); right: auto; bottom: 0; top: auto;
  height: calc((100% + var(--cin-fox-poke, 14px)) * 384 / 378); width: auto; aspect-ratio: 602 / 384;
  overflow: visible; pointer-events: none;
  clip-path: inset(-120px calc(100% - min(100vw - 32px, 420px) + var(--cin-fox-left, 155px)) 0 -40px round 0 0 24px 0);   /* 底边、右沿、右下圆角照卡片切（右 inset = 狐狸宽 - (卡宽 - 左沿) → 切线正好在卡右沿；圆角 24 = 卡圆角），尾巴不戳出卡外；上面放开 120px 给耳朵探出去 */
  color: #fff; opacity: 0.94;
  fill: currentColor; fill-rule: evenodd; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round;
  -webkit-filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.6)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35)); filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.6)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
.cin-fox .fx-body { transform-box: view-box; transform: translateY(240px); }
.cin-banner.show .cin-fox .fx-body { animation: cinFoxPeek 0.7s cubic-bezier(0.3, 1.25, 0.5, 1) 0.42s both; }
@keyframes cinFoxPeek { from { transform: translateY(240px); } to { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .cin-card, .cin-banner.leaving .cin-card, .cin-banner.accepting .cin-card { transition-duration: 0.01s; }
  .cin-fox .fx-body, .cin-banner.show .cin-fox .fx-body { animation: none; transform: none; }
}

/* ── 聊天里那张小卡（她那行「〔来电 · 拒接 / 未接〕那句话」的样子；系统票据 act = callin_line）。聊天页暗色主题里也是亮的，小卡不跟主题变 ── */
#conv-screen .cv-system-ticket.cv-callin-rec {
  width: auto; max-width: min(78%, 300px); border: 0; padding: 0; margin: 6px auto 10px; opacity: 1 !important; gap: 0;
}
.cin-rec {
  display: flex; align-items: center; gap: 9px; padding: 8px 12px 8px 9px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  min-width: 0;
}
.cin-rec-ico {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px;
}
.cin-rec.is-declined .cin-rec-ico { background: #E9605B; font-size: 15px; }
.cin-rec.is-missed .cin-rec-ico { background: rgba(233, 96, 91, 0.13); color: #E0534D; }
.cin-rec-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.cin-rec-title { font-size: 13px; line-height: 18px; font-weight: 600; color: #1d1d1f; }
.cin-rec.is-missed .cin-rec-title { color: #D9433D; }
.cin-rec-sub { font-size: 11px; line-height: 15px; color: rgba(60, 60, 67, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cin-rec-time { flex: 0 0 auto; align-self: flex-start; margin-top: 1px; font-size: 11px; line-height: 17px; color: rgba(60, 60, 67, 0.45); font-variant-numeric: tabular-nums; }
