/* ═══════════════════════════════════════════════════════════════════════════
   rcx —— Google reCAPTCHA 图片九宫格挑战（2026-10-15）
   独立命名空间 rcx-*，与链依赖的 fkrc-* / challenge-* 零冲突
   ═══════════════════════════════════════════════════════════════════════════ */
.rcx-challenge{
  position:fixed; inset:0; z-index:2147483000;
  display:flex; align-items:center; justify-content:center;
  padding:16px;
  background:rgba(32,33,36,.42);
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
  font-family:"Roboto","Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  opacity:0; transition:opacity .18s ease;
}
.rcx-challenge.rcx-in{opacity:1}
.rcx-challenge[hidden]{display:none}

/* ── 主体：Google 的白盒子 + 圆角 + 阴影 ── */
.rcx-widget{
  width:100%; max-width:332px; background:#fff; border-radius:3px;
  box-shadow:0 8px 28px rgba(0,0,0,.28), 0 1px 3px rgba(0,0,0,.18);
  overflow:hidden;
  transform:translateY(8px) scale(.98); transition:transform .18s ease;
}
.rcx-challenge.rcx-in .rcx-widget{transform:none}

/* ── 顶栏：I'm not a robot + reCAPTCHA 标志 ── */
.rcx-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px; border-bottom:1px solid #f1f3f4; background:#fff;
}
.rcx-head-label{font-size:14px; color:#000; letter-spacing:.1px}
.rcx-head-brand{display:flex; flex-direction:column; align-items:center; line-height:1; gap:2px}
.rcx-head-brand svg{width:28px; height:28px}
.rcx-head-brand span{font-size:8px; color:#9aa0a6; letter-spacing:.2px}

/* ── 题干：文字 + 右侧目标图 ── */
.rcx-body{padding:14px}
.rcx-prompt{display:flex; align-items:flex-start; gap:12px; margin-bottom:12px}
.rcx-prompt-text{flex:1 1 auto; font-size:14px; line-height:1.45; color:#202124; padding-top:2px}
.rcx-target{
  width:74px; height:74px; flex:0 0 74px; border-radius:2px; overflow:hidden;
  background:#f1f3f4; box-shadow:0 0 0 1px #dadce0 inset;
}
.rcx-target img{width:100%; height:100%; object-fit:cover; display:block}

/* ── 3×3 九宫格 ── */
.rcx-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:4px;
  background:#fff; user-select:none; -webkit-user-select:none;
}
.rcx-cell{
  position:relative; padding-top:100%;       /* 正方形 */
  background:#f1f3f4; border:0; cursor:pointer; overflow:hidden;
  -webkit-tap-highlight-color:transparent; transition:transform .08s ease;
}
.rcx-cell img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;
}
.rcx-cell.rcx-sel{outline:3px solid #1a73e8; outline-offset:-3px}
.rcx-cell.rcx-sel::after{
  content:""; position:absolute; inset:0; background:rgba(26,115,232,.28);
}
.rcx-cell:active{transform:scale(.985)}
.rcx-cell.rcx-loading::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,#f1f3f4 25%,#e8eaed 37%,#f1f3f4 63%);
  background-size:400% 100%; animation:rcx-shim 1.2s ease infinite;
}
@keyframes rcx-shim{0%{background-position:100% 0}100%{background-position:0 0}}

/* ── 状态提示（“请再试一次”/“验证成功”）── */
.rcx-msg{
  margin-top:10px; padding:8px 10px; border-radius:3px;
  font-size:13px; line-height:1.4;
}
.rcx-msg.rcx-err{background:#fce8e6; color:#c5221f}
.rcx-msg.rcx-ok{background:#e6f4ea; color:#137333}
.rcx-msg[hidden]{display:none}

/* ── 底栏：三个图标 + Verify ── */
.rcx-foot{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px; border-top:1px solid #f1f3f4; background:#fff;
}
.rcx-icons{display:flex; align-items:center; gap:14px}
.rcx-icon{
  appearance:none; border:0; background:transparent; padding:0; margin:0;
  width:22px; height:22px; cursor:pointer; color:#5f6368; line-height:0;
}
.rcx-icon svg{width:22px; height:22px; fill:currentColor}
.rcx-icon:active{opacity:.6}
.rcx-verify{
  appearance:none; border:0; border-radius:4px; cursor:pointer;
  background:#1a73e8; color:#fff; font-size:13px; font-weight:500;
  padding:9px 22px; font-family:inherit;
  box-shadow:0 1px 2px rgba(60,64,67,.3); transition:background .15s ease;
}
.rcx-verify:hover{background:#1765cc}
.rcx-verify[disabled]{background:#c1c1c1; cursor:default; box-shadow:none}

/* ── 验证中：按钮内联 spinner ── */
.rcx-verify.rcx-busy{display:inline-flex; align-items:center; gap:7px}
.rcx-verify .rcx-sp{
  width:13px; height:13px; border:2px solid rgba(255,255,255,.45);
  border-top-color:#fff; border-radius:50%; animation:rcx-rot .8s linear infinite;
}
@keyframes rcx-rot{to{transform:rotate(360deg)}}

/* ── 音频挑战（点了“耳机”图标时）── */
.rcx-audio{display:flex; align-items:center; gap:12px; padding:6px 0 2px}
.rcx-audio-btn{
  appearance:none; border:0; border-radius:50%; background:#1a73e8; color:#fff;
  width:44px; height:44px; cursor:pointer; flex:0 0 44px; line-height:0;
}
.rcx-audio-btn svg{width:22px; height:22px; fill:#fff}
.rcx-audio-txt{font-size:13px; color:#5f6368; line-height:1.4}

@media (max-width:340px){
  .rcx-prompt-text{font-size:13px}
  .rcx-target{width:64px; height:64px; flex-basis:64px}
}
