/* 大肥鱼 CK 提取页 · 深海蓝主题 · 组件化（tv-* 自定义元素） */
:root{
  color-scheme:light;
  --blue-50:#eff6ff;
  --blue-100:#dbeafe;
  --blue-200:#bfdbfe;
  --blue-300:#93c5fd;
  --blue-400:#60a5fa;
  --blue-500:#3b82f6;
  --blue-600:#1d6fe0;
  --blue-700:#1259b8;
  --navy:#072b4d;
  --ink:#0b2740;
  --dim:#5b7891;
  --fish:#38bdf8;
  --fish-dark:#0ea5e9;
  --fish-line:#06315c;
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  min-height:100svh;
  padding:0 16px calc(30px + env(safe-area-inset-bottom));
  font:15px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:linear-gradient(180deg,#dceafc 0%,var(--blue-50) 34%,#fff 100%);
  background-attachment:fixed;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

/* 背景气泡 */
.bubbles{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.bubbles i{
  position:absolute;bottom:-40px;width:14px;height:14px;border-radius:50%;
  border:1.5px solid rgba(29,111,224,.28);background:rgba(255,255,255,.5);
  animation:rise linear infinite;
}
.bubbles i:nth-child(1){left:9%;animation-duration:16s}
.bubbles i:nth-child(2){left:27%;width:9px;height:9px;animation-duration:12s;animation-delay:3s}
.bubbles i:nth-child(3){left:71%;width:18px;height:18px;animation-duration:19s;animation-delay:6s}
.bubbles i:nth-child(4){left:87%;width:11px;height:11px;animation-duration:13s;animation-delay:1.5s}
@keyframes rise{
  0%{transform:translateY(0) scale(.7);opacity:0}
  18%{opacity:1}
  100%{transform:translateY(-108svh) scale(1.15);opacity:0}
}

main{position:relative;z-index:1;width:100%;max-width:440px;margin:0 auto}

.gear{
  width:38px;height:38px;border-radius:50%;cursor:pointer;
  border:1px solid rgba(191,219,254,.55);background:rgba(255,255,255,.14);
  color:#eaf6ff;font-size:17px;line-height:1;
  backdrop-filter:blur(4px);
}
.gear:active{transform:translateY(1px)}

/* 登录卡片内的验证码行 */
tv-field#code{margin-bottom:12px}
tv-field#code::part(input){padding-right:8px}
.act{flex:none}

.tip{margin:10px 0 0;}
#apiNow{margin:0 0 10px;padding:8px 10px;border-radius:10px;background:var(--blue-50);border:1px solid var(--blue-200);font-size:12.5px;color:var(--blue-700)}
#apiNow b{font-family:ui-monospace,Menlo,monospace}
.tv-tip-unused{margin:10px 0 0;font-size:12.5px;color:var(--dim);line-height:1.5}

/* 账号条 */
.who{display:flex;align-items:center;gap:12px}
.face{
  width:50px;height:50px;flex:none;border-radius:15px;display:grid;place-items:center;
  font:800 19px/1 inherit;color:#06315c;
  background:linear-gradient(160deg,var(--blue-300),var(--fish));
  box-shadow:inset 0 -2px 0 rgba(6,49,92,.16);
}
.idbox{min-width:0;flex:1}
.nick{font-size:17px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.meta{font:400 12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pts{flex:none;text-align:center}
.pts b{display:block;font:800 21px/1.15 inherit;color:var(--blue-600)}
.pts span{font-size:11px;color:var(--dim)}

.msg{margin:14px 0 0;padding:10px 12px;border-radius:12px;background:#fff;border:1px solid var(--blue-200);font-size:13.5px;color:var(--ink)}
.msg.bad{border-color:#fecaca;background:#fff5f5;color:#9f1d1d}

[hidden]{display:none !important}

@media (prefers-reduced-motion:reduce){
  .bubbles i{animation:none}
}
