/* ===== 账号自选仓库 · 前台（深色玻璃拟态） =====
   配色 / 尺寸取自参考站 site-v21.min.css 与内联 <style> 的真实定义 */

:root {
  --bg: #0f0a1e;
  --nav: rgba(59, 18, 112, .88);
  --nav-line: rgba(192, 132, 252, .5);
  --glass-bg: rgba(255, 255, 255, .06);
  --glass-line: rgba(255, 255, 255, .12);
  --neon-a: #7c3aed;
  --neon-b: #db2777;
  --purple-300: #d8b4fe;
  --purple-600: #9333ea;
  --pink-600: #db2777;
  --rose-300: #fda4af;
  --rose-400: #fb7185;
  /* 后台管理界面专用变量（复用前台品牌紫/粉） */
  --brand: #7c3aed;
  --brand-2: #db2777;
  --line: #e3e6ef;
  --muted: #8a90a2;
  --shadow: 0 12px 40px rgba(31, 35, 48, .15);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: #fff;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- 背景：渐变动画 + 粒子 ---------- */
.animated-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(-45deg, #1a0533, #0d1f3c, #1a0533, #2d0b5e, #0a1a2e);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
#bgCanvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; display: block;
}

/* ---------- 顶部导航 ---------- */
.top-nav {
  position: sticky; top: 0; z-index: 30;
  background: var(--nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-line);
  box-shadow: 0 8px 28px rgba(30, 5, 65, .28);
}
.nav-inner {
  max-width: 1720px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-icon svg { width: 18px; height: 18px; color: #fff; }
.brand-name {
  font-weight: 700; font-size: 20px; letter-spacing: -.4px;
  color: #fff; cursor: default; user-select: none;
}
.live-badge {
  margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #4ade80;
  border: 1px solid rgba(34, 197, 94, .3);
  background: rgba(34, 197, 94, .1);
}
.pulse-dot { animation: pulseSoft 2s infinite; }
@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

/* ---------- 通用玻璃 / 霓虹 ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-line);
}
.neon-btn {
  background: linear-gradient(135deg, var(--neon-a), var(--neon-b));
  box-shadow: 0 0 18px rgba(124, 58, 237, .5);
  transition: all .2s ease;
}
.input-dark {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  transition: border-color .2s;
}
.input-dark::placeholder { color: rgba(255, 255, 255, .35); }
.input-dark:focus { outline: none; border-color: rgba(192, 132, 252, .7); }

/* ---------- 页面主体 ---------- */
.page { max-width: 1720px; margin: 0 auto; padding: 24px; }

.tip { margin: 0 0 24px; font-size: 14px; color: #9ca3af; }
.tip-hl { color: var(--rose-400); font-weight: 600; }

/* 平台 tabs */
.plat-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.plat-tab {
  padding: 8px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 700;
  color: #d1d5db; cursor: pointer;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-line);
  transition: all .2s;
}
.plat-tab:hover { color: #fff; }
.plat-tab.active {
  background: linear-gradient(135deg, var(--neon-a), var(--neon-b));
  color: #fff;
  box-shadow: 0 0 18px rgba(124, 58, 237, .5);
  border-color: transparent;
}

/* 地区分类卡片 */
.cat-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.cat-card {
  border: 0; cursor: pointer;
  border-radius: 16px; padding: 16px; text-align: center;
  background-image: linear-gradient(to right, var(--c1), var(--c2));
  opacity: .75; transition: all .2s;
}
.cat-card:hover { opacity: 1; }
.cat-card.active {
  opacity: 1; transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(88, 28, 135, .4);
}
.cat-name { margin: 0; color: #fff; font-weight: 700; font-size: 14px; }
.cat-count {
  margin: 4px 0 0; color: rgba(255, 255, 255, .8);
  font-size: 24px; font-weight: 900;
  font-family: 'Space Mono', ui-monospace, monospace;
}

/* 搜索行 */
.search-row { position: relative; margin-bottom: 20px; }
.search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #9ca3af; pointer-events: none;
}
.search-row input {
  width: 100%; padding: 12px 16px 12px 44px;
  border-radius: 16px; font-size: 14px;
  font-family: inherit;
}

.count { font-size: 13px; color: #9ca3af; margin-bottom: 12px; }

/* ---------- 账号网格（响应式 2/3/4/5 列） ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- 账号卡片 ---------- */
.account-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px; overflow: hidden; cursor: pointer;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.account-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(88, 28, 135, .35); }

.card-photo {
  height: 60%; overflow: hidden;
  background-image: linear-gradient(to bottom right, rgba(88, 28, 135, .4), rgba(157, 23, 77, .3));
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo .no-photo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 48px;
}

.card-body { height: 40%; padding: 12px; display: flex; flex-direction: column; gap: 6px; }

/* ID + 复制 */
.id-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0; }
.card-id {
  font-family: 'Space Mono', ui-monospace, monospace;
  color: var(--purple-300); font-size: 12px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.copy-btn {
  flex-shrink: 0; border: 0; cursor: pointer;
  font-size: 12px; padding: 4px 8px; border-radius: 8px; font-weight: 500;
  color: var(--purple-300); background: rgba(168, 85, 247, .2);
  transition: all .2s;
}
.copy-btn:hover { background: rgba(168, 85, 247, .35); }
.copy-btn.done { color: #4ade80; background: rgba(34, 197, 94, .2); }

.info-stack { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }

/* INS 条（紫 → 粉） */
.ins-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 8px; border-radius: 8px;
  background-image: linear-gradient(to right, var(--purple-600), var(--pink-600));
  color: #fff; font-size: 12px; font-weight: 500;
  transition: box-shadow .2s;
}
.ins-bar:hover { box-shadow: 0 8px 18px rgba(219, 39, 119, .35); }
.ins-l { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ins-l svg { width: 15px; height: 15px; }
.ins-u { font-size: 11px; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 价格 + 注册时间（一行，低调） */
.meta-line {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 11px; color: rgba(255, 255, 255, .62);
}
.reg-time { color: rgba(255, 255, 255, .62); white-space: nowrap; }
/* 时间后面的昵称 + 年龄 */
.name-age {
  color: #fff; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}

/* 定位 */
.addr {
  display: flex; align-items: flex-start; gap: 4px;
  padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.addr svg { width: 10px; height: 10px; color: var(--rose-400); flex-shrink: 0; margin-top: 3px; }
.addr span {
  color: rgba(253, 164, 175, .8); font-size: 12px; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.empty { grid-column: 1 / -1; text-align: center; padding: 80px 0; color: #6b7280; }

/* ---------- 加载更多 ---------- */
.loadmore { text-align: center; padding: 28px 0 60px; }
.loadmore button {
  border: 0; cursor: pointer;
  padding: 12px 28px; border-radius: 14px;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--neon-a), var(--neon-b));
  box-shadow: 0 0 18px rgba(124, 58, 237, .5);
}
.loadmore button:hover { filter: brightness(1.08); }

/* ---------- 大图弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, .9);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-mask.show { display: flex; }
.big-img { max-width: 100%; max-height: 100%; border-radius: 16px; }
.modal-tip {
  position: absolute; bottom: 40px; margin: 0;
  color: rgba(255, 255, 255, .5); font-size: 14px;
}

/* 后台弹窗基类：.admin-modal 是它的子类，提供白底/圆角/内边距/阴影。
   复刻前台时误删，导致后台编辑弹窗无样式（透明飘在遮罩上）。 */
.modal {
  background: #fff;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  width: 100%;
  max-width: 680px;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, .05); }
::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, .6); border-radius: 5px; }

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  .page { padding: 16px; }
  .nav-inner { padding: 12px 16px; }
  .brand-name { font-size: 17px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 8px; gap: 4px; }
  .plat-tab { padding: 7px 14px; font-size: 13px; }
}
