/* ═══════════════════════════════════════════════════════════
   DevKits Web · 首页样式（深空霓虹 Glassmorphism）
   与 styles.css 共用同一套设计 token，保持视觉一致
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg0: #06090F;
  --bg1: #0A1628;
  --bg2: #0D1B30;
  --bg3: #12233C;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);

  --bd: rgba(148, 178, 220, 0.14);
  --bd2: rgba(148, 178, 220, 0.26);
  --tx: #E6EDF7;
  --tx2: #93A3BD;
  --tx3: #7A8CA8;

  --acc1: #00D4AA;
  --acc2: #38BDF8;
  --acc3: #8B5CF6;
  --warn: #FFCB6B;
  --danger: #FB7185;
  --grad: linear-gradient(135deg, #00D4AA 0%, #38BDF8 100%);
  --grad2: linear-gradient(135deg, #38BDF8 0%, #8B5CF6 100%);
  --glow: 0 0 18px rgba(0, 212, 170, 0.35);
  --glow-cyan: 0 0 18px rgba(56, 189, 248, 0.30);

  --r: 8px;
  --r2: 12px;
  --r3: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

  --font: 'Inter', -apple-system, 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
}

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

body {
  font-family: var(--font);
  font-size: 13px;
  color: var(--tx);
  background: var(--bg0);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(0, 212, 170, 0.28); color: #fff; }

.glass {
  background: var(--glass);
  border: 1px solid var(--bd);
  /* blur 半径 14→8px: 玻璃质感视觉几乎不变, 渲染开销大降 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mono { font-family: var(--mono); }

/* ══════════ 背景装饰 ══════════ */
.bg-decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 10%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 10%, #000 30%, transparent 75%);
}
.orb {
  position: absolute; border-radius: 50%;
  opacity: 0.55;
  /* 背景本身是 radial-gradient 渐变(自带柔边), 不再叠加 filter blur(110px)
     该 blur 配合无限动画会让渲染线程每帧重采样, CPU/GPU 飙升 */
  will-change: transform;
}
.orb-1 { width: 520px; height: 520px; left: -140px; top: -160px; background: radial-gradient(circle, rgba(0, 212, 170, 0.34), transparent 65%); animation: drift1 90s ease-in-out infinite alternate; }
.orb-2 { width: 560px; height: 560px; right: -180px; top: 12%; background: radial-gradient(circle, rgba(56, 189, 248, 0.26), transparent 65%); animation: drift2 110s ease-in-out infinite alternate; }
.orb-3 { width: 460px; height: 460px; left: 32%; bottom: -220px; background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 65%); animation: drift3 120s ease-in-out infinite alternate; }
.noise { position: absolute; inset: 0; opacity: 0.035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

@keyframes drift1 { from { transform: translate(0, 0); } to { transform: translate(60px, 40px); } }
@keyframes drift2 { from { transform: translate(0, 0); } to { transform: translate(-50px, 60px); } }
@keyframes drift3 { from { transform: translate(0, 0); } to { transform: translate(40px, -50px); } }

/* ══════════ 顶栏 ══════════ */
.topbar {
  position: relative; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  margin: 16px auto 0; padding: 10px 16px;
  max-width: 1440px;
  border-radius: var(--r2);
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.logo { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: 0.2px; }
.brand-sub { font-size: 11px; color: var(--tx3); }
.badge-local {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 6px; padding: 3px 10px;
  font-size: 11px; color: var(--acc1);
  border: 1px solid rgba(0, 212, 170, 0.28);
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.08);
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc1); box-shadow: 0 0 6px var(--acc1); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.topbar-search {
  flex: 1; max-width: 420px;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bd);
  color: var(--tx3);
  transition: border-color 0.2s;
}
.topbar-search:focus-within { border-color: rgba(0, 212, 170, 0.5); box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12); }
.topbar-search input {
  flex: 1; min-width: 0; border: none; outline: none;
  background: transparent; color: var(--tx);
  font-family: var(--font); font-size: 13px;
}
.topbar-search input::placeholder { color: var(--tx3); }
.topbar-search kbd {
  font-family: var(--mono); font-size: 10.5px; color: var(--tx3);
  border: 1px solid var(--bd2); border-radius: 4px; padding: 1px 6px;
}

.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.version-chip { font-size: 11px; color: var(--tx3); border: 1px solid var(--bd); padding: 3px 8px; border-radius: 6px; }

/* ══════════ 按钮 ══════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: var(--r);
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.18s ease;
}
.btn-primary {
  background: var(--grad); color: #06121A;
  box-shadow: 0 2px 12px rgba(0, 212, 170, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(0, 212, 170, 0.35); }

/* ══════════ Hero（左对齐横幅 + 终端装饰窗） ══════════ */
.home-hero {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  max-width: 1440px; margin: 22px auto 0; padding: 40px 44px;
  border-radius: var(--r3);
  overflow: hidden;
}
.home-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 120% at 0% 0%, rgba(0, 212, 170, 0.08), transparent 55%);
}
.hero-left { position: relative; z-index: 1; min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px;
  font-size: 12px; color: var(--tx2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bd);
}
.hero-title {
  margin-top: 16px;
  font-size: 40px; font-weight: 800; letter-spacing: 0.5px;
  line-height: 1.15;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { margin-top: 12px; font-size: 13.5px; line-height: 1.8; color: var(--tx2); }
.hero-stats { display: flex; gap: 36px; margin-top: 24px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.stat-num { font-size: 21px; font-weight: 700; color: var(--acc1); }
.stat-label { font-size: 11px; color: var(--tx3); }

/* 终端装饰窗 */
.hero-terminal {
  position: relative; z-index: 1;
  flex-shrink: 0; width: 400px;
  border-radius: var(--r2);
  background: rgba(4, 10, 20, 0.85);
  border: 1px solid var(--bd2);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.term-head {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--bd);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.d-red { background: #FF5F57; }
.d-yellow { background: #FEBC2E; }
.d-green { background: #28C840; }
.term-title { margin-left: 8px; font-size: 11px; color: var(--tx3); }
.term-body { padding: 14px 16px 16px; font-size: 11.5px; line-height: 1.9; }
.term-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-cmd { color: var(--acc2); }
.term-out { color: var(--tx3); }
.term-out.acc { color: var(--acc1); }
.term-cursor {
  display: inline-block; color: var(--acc1);
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* ══════════ 主体：左侧分类 + 中间卡片 + 右侧热门 ══════════ */
.home-layout {
  position: relative; z-index: 1;
  display: flex; gap: 20px;
  max-width: 1440px; margin: 22px auto 40px; padding: 0 24px;
  align-items: flex-start;
}

/* 左侧分类导航 */
.cat-sidebar {
  flex-shrink: 0; width: 216px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px;
  border-radius: var(--r2);
  position: sticky; top: 16px;
}
.cat-nav {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r);
  font-family: var(--font); font-size: 13px; font-weight: 500;
  color: var(--tx2); background: transparent; border: 1px solid transparent;
  cursor: pointer; transition: all 0.18s ease;
  text-align: left; width: 100%;
}
.cat-nav:hover { color: var(--tx); background: rgba(255, 255, 255, 0.05); }
.cat-nav.active {
  color: #06121A; font-weight: 600;
  background: var(--grad);
  box-shadow: 0 2px 12px rgba(0, 212, 170, 0.25);
}
.cat-nav-icon { font-size: 15px; flex-shrink: 0; }
.cat-nav-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-nav-count { font-size: 10.5px; opacity: 0.7; }

/* 右侧工具区 */
.tool-area { flex: 1; min-width: 0; }
.area-head { display: flex; align-items: baseline; gap: 12px; padding: 4px 2px 14px; }
.area-title { font-size: 18px; font-weight: 700; }
.area-sub { font-size: 11.5px; color: var(--tx3); }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.tool-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 18px 16px;
  border-radius: var(--r2);
  background: var(--glass);
  border: 1px solid var(--bd);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  animation: cardIn 0.35s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 170, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 212, 170, 0.15), var(--glow);
}
.tool-card-head { display: flex; align-items: center; justify-content: space-between; }
.tool-card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: rgba(0, 212, 170, 0.10);
  border: 1px solid rgba(0, 212, 170, 0.20);
}
.tool-card-enter {
  font-size: 11px; color: var(--tx3);
  display: inline-flex; align-items: center; gap: 3px;
  transition: color 0.18s;
}
.tool-card:hover .tool-card-enter { color: var(--acc1); }
.tool-card-name { font-size: 14px; font-weight: 600; color: var(--tx); }
.tool-card-desc { font-size: 11px; color: var(--tx3); line-height: 1.5; min-height: 32px; }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 0; }
.empty-icon { font-size: 40px; }
.empty-title { margin-top: 12px; font-size: 16px; font-weight: 600; color: var(--tx2); }
.empty-sub { margin-top: 6px; font-size: 12px; color: var(--tx3); }

/* ══════════ 页脚 ══════════ */
.footer {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 20px 24px 30px;
  font-size: 11px; color: var(--tx3);
}
.footer-line { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.footer-icp { display: flex; align-items: center; justify-content: center; }
.footer-dot { opacity: 0.4; }
.footer-link { color: var(--acc1); text-decoration: none; font-weight: 500; }
.footer-link:hover { text-decoration: underline; }

/* ══════════ 响应式 ══════════ */
@media (max-width: 1400px) {
  .home-rank { width: 220px; }
  .rank-bar { flex-basis: 70px; }
}
@media (max-width: 1180px) {
  /* 右侧热门面板收起：三栏变两栏，避免挤压工具卡片 */
  .home-rank { display: none; }
}
@media (max-width: 960px) {
  .home-hero { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
  .hero-terminal { width: 100%; }
  .home-layout { flex-direction: column; }
  .cat-sidebar {
    width: 100%; position: static;
    flex-direction: row; overflow-x: auto;
  }
  .cat-nav { flex-shrink: 0; width: auto; }
}
@media (max-width: 720px) {
  .hero-title { font-size: 30px; }
  .hero-stats { gap: 24px; }
  .topbar { flex-wrap: wrap; }
  .topbar-search { order: 3; flex-basis: 100%; max-width: none; }
  .tool-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ══════════ 用户区 / 认证弹窗 / 热度榜 / Toast（从 styles.css 对齐） ══════════ */
.user-area { display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  font-size: 12px; color: var(--tx);
  background: rgba(0, 212, 170, 0.10);
  border: 1px solid rgba(0, 212, 170, 0.28);
  transition: all .18s; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis;
}
.user-chip:hover { box-shadow: var(--glow); }
.auth-btn { font-size: 12px; padding: 5px 12px; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--tx2); border-color: var(--bd);
}
.btn-ghost:hover { color: var(--tx); background: var(--glass-strong); border-color: var(--bd2); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

.auth-mask {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: maskIn .2s ease;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.auth-modal {
  position: relative; width: 360px; max-width: 92vw;
  padding: 28px 30px 24px; border-radius: var(--r3);
  background: linear-gradient(180deg, rgba(19, 33, 55, 0.97), rgba(10, 22, 40, 0.98));
  border: 1px solid var(--bd2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 212, 170, 0.08);
  animation: modalIn .25s ease;
}
.auth-modal-sm { width: 420px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.auth-close {
  position: absolute; top: 12px; right: 14px;
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--bd); background: rgba(255, 255, 255, 0.04);
  color: var(--tx3); cursor: pointer; transition: all .15s;
}
.auth-close:hover { color: var(--danger); border-color: rgba(251, 113, 133, 0.4); }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.auth-brand {
  font-size: 18px; font-weight: 800; letter-spacing: 0.3px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-tabs { display: flex; gap: 6px; margin-bottom: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--bd); border-radius: 10px; padding: 4px; }
.auth-tab {
  flex: 1; padding: 7px 0; border: none; border-radius: 7px;
  background: none; color: var(--tx3); font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .18s;
}
.auth-tab.active { background: rgba(0, 212, 170, 0.14); color: var(--acc1); box-shadow: inset 0 0 0 1px rgba(0, 212, 170, 0.3); }
.auth-input {
  width: 100%; padding: 10px 14px; margin-bottom: 10px;
  border-radius: 10px; border: 1px solid var(--bd);
  background: rgba(255, 255, 255, 0.05); color: var(--tx);
  font-family: var(--font); font-size: 13px; outline: none; transition: all .18s;
}
.auth-input:focus { border-color: rgba(0, 212, 170, 0.5); box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12); }
.auth-input::placeholder { color: var(--tx3); }
/* 授权码输入行：输入框 + 发送按钮并排 */
.auth-code-row { display: flex; gap: 8px; margin-bottom: 10px; }
.auth-code-row .auth-code-input { flex: 1; margin-bottom: 0; }
.auth-send {
  flex-shrink: 0; padding: 0 14px; white-space: nowrap;
  border-radius: 10px; font-size: 12.5px;
}
.auth-send:disabled { opacity: 0.6; cursor: wait; }
.auth-err { min-height: 18px; font-size: 12px; color: var(--danger); margin-bottom: 4px; }
.auth-submit { width: 100%; justify-content: center; padding: 10px 0; font-size: 14px; }
.auth-submit:disabled { opacity: 0.6; cursor: wait; }

/* 我的使用统计 */
.mine-title { font-size: 15px; font-weight: 700; color: var(--tx); margin-bottom: 14px; }
.mine-empty { color: var(--tx3); font-size: 13px; text-align: center; padding: 24px 0; }
.mine-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.mine-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.mine-rank { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-family: var(--mono); font-size: 11px; color: var(--tx3); background: rgba(255, 255, 255, 0.06); }
.mine-name { flex: 1; font-size: 13px; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-count { font-family: var(--mono); font-size: 12px; color: var(--acc1); }

/* 首页热度榜 — 右侧悬浮（与左侧分类导航对称，sticky 不吸附视口） */
.rank-panel {
  margin-top: 0;
  flex-shrink: 0; width: 260px;
  position: sticky; top: 16px;
  padding: 16px 16px 14px;
  border-radius: var(--r2);
  background: rgba(13, 27, 48, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.rank-panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rank-panel-head .rp-title { font-size: 14px; font-weight: 700; color: var(--tx); }
.rank-panel-head .rp-sub { font-size: 11px; color: var(--tx3); }
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  border-radius: 10px; cursor: pointer; background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent; transition: all .18s;
}
.rank-item:hover { background: rgba(0, 212, 170, 0.07); border-color: rgba(0, 212, 170, 0.25); }
.rank-no { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; font-family: var(--mono); font-size: 11px; color: var(--tx3); background: rgba(255, 255, 255, 0.06); flex-shrink: 0; }
.rank-no.top { background: rgba(0, 212, 170, 0.16); color: var(--acc1); }
.rank-name { flex: 1; font-size: 13px; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rank-bar { flex: 0 0 120px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.rank-fill { display: block; height: 100%; border-radius: 3px; background: var(--grad); box-shadow: 0 0 8px rgba(0, 212, 170, 0.4); transition: width .6s ease; }
.rank-count { font-family: var(--mono); font-size: 12px; color: var(--acc1); flex-shrink: 0; }
.rank-empty { color: var(--tx3); font-size: 12.5px; padding: 18px 0; text-align: center; }

/* Toast */
.toast-container { position: fixed; top: 76px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r2);
  font-size: 12.5px; font-weight: 500; color: var(--tx);
  background: rgba(13, 27, 48, 0.92);
  border: 1px solid rgba(0, 212, 170, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 212, 170, 0.12);
  backdrop-filter: blur(14px);
  animation: toastIn .25s ease;
}
.toast.err { border-color: rgba(251, 113, 133, 0.45); }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

/* ══════════ 支付弹窗 ══════════ */
.pay-modal { width: 400px; }
.pay-quota { font-size: 12.5px; color: var(--acc1); margin-bottom: 12px; }
.pay-plans { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pay-plan {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 10px; cursor: pointer; text-align: left;
  background: rgba(255,255,255,0.04); border: 1px solid var(--bd); color: var(--tx);
  font-family: var(--font); transition: all .18s;
}
.pay-plan:hover { border-color: rgba(0,212,170,0.4); background: rgba(0,212,170,0.07); }
.pp-name { flex: 1; font-size: 13px; font-weight: 600; }
.pp-price { font-family: var(--mono); font-size: 15px; color: var(--acc1); font-weight: 700; }
.pp-desc { font-size: 11px; color: var(--tx3); }
.pay-order { margin-bottom: 12px; }
.pay-order-no {
  font-size: 12.5px; color: var(--warn); background: rgba(255,203,107,0.08);
  border: 1px solid rgba(255,203,107,0.25); border-radius: 8px; padding: 8px 10px; margin-bottom: 12px;
}
.pay-order-no b { font-family: var(--mono); font-size: 14px; }
.pay-tabs { display: flex; gap: 6px; margin-bottom: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--bd); border-radius: 10px; padding: 4px; }
.pay-tab { flex: 1; padding: 6px 0; border: none; border-radius: 7px; background: none; color: var(--tx3); font-family: var(--font); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .18s; }
.pay-tab.active { background: rgba(0,212,170,0.14); color: var(--acc1); }
.pay-qr { display: flex; justify-content: center; margin-bottom: 10px; }
.pay-qr img { width: 180px; height: 180px; object-fit: contain; border-radius: 10px; border: 1px solid var(--bd); background: #fff; }
.pay-amount { text-align: center; font-size: 13px; color: var(--tx2); margin-bottom: 10px; }
.pay-amount b { color: var(--acc1); font-size: 16px; }
.pay-proof { display: flex; justify-content: center; margin-bottom: 8px; }
.pay-status { min-height: 20px; text-align: center; font-size: 12.5px; color: var(--tx2); margin-bottom: 6px; }
.pay-tip { font-size: 11px; color: var(--tx3); text-align: center; border-top: 1px solid var(--bd); padding-top: 10px; }
