/* ============================================================
   源码商城 2026 · 现代霓虹设计系统（原生 CSS，无框架）
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg:        #06070f;
  --bg-soft:   #0b0d1a;
  --panel:     rgba(255, 255, 255, .045);
  --card:      rgba(255, 255, 255, .04);
  --card-hi:   rgba(255, 255, 255, .075);
  --border:    rgba(255, 255, 255, .09);
  --border-hi: rgba(255, 255, 255, .16);

  --text:  #f2f4fb;
  --muted: #a3adc6;
  --dim:   #6f7a96;

  --violet: #7c5cff;
  --pink:   #ff4d9d;
  --cyan:   #22e1ff;
  --lime:   #00f5a0;
  --gold:   #ffd166;
  --red:    #ff5d73;

  --grad-main: linear-gradient(135deg, #7c5cff 0%, #ff4d9d 100%);
  --grad-cool: linear-gradient(135deg, #22e1ff 0%, #7c5cff 100%);
  --grad-lime: linear-gradient(135deg, #00f5a0 0%, #22e1ff 100%);
  --grad-gold: linear-gradient(135deg, #ffd166 0%, #ff9a3c 100%);

  --glow-v: 0 0 24px rgba(124, 92, 255, .45);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --shadow:    0 18px 50px -12px rgba(0, 0, 0, .7);
  --shadow-hi: 0 26px 70px -16px rgba(124, 92, 255, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", system-ui,
               -apple-system, "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 背景：网格 + 极光 ---------- */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 92, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, .07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 15%, transparent 72%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(620px 420px at 8% -6%,  rgba(124, 92, 255, .34), transparent 62%),
    radial-gradient(560px 400px at 92% 2%,  rgba(255, 77, 157, .26), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(34, 225, 255, .16), transparent 65%);
  animation: aurora 18s var(--ease) infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.02); }
}

a { color: var(--cyan); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: #fff; }
::selection { background: rgba(124, 92, 255, .45); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(124, 92, 255, .55), rgba(255, 77, 157, .45));
  border-radius: 99px; border: 3px solid var(--bg);
}

/* ============================================================
   顶栏
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 7, 15, .62);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.shrink { background: rgba(6, 7, 15, .9); box-shadow: 0 10px 30px -18px #000; }
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 22px;
  height: 66px; display: flex; align-items: center; gap: 16px;
  transition: height .3s var(--ease);
}
.site-header.shrink .header-inner { height: 56px; }

.logo {
  font-size: 19px; font-weight: 800; letter-spacing: .3px; color: var(--text);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.logo .mark {
  width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto;
  background: var(--grad-main); color: #fff; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-v); position: relative; overflow: hidden;
}
.logo .mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .55), transparent 70%);
  transform: translateX(-120%);
  animation: sweep 4.5s var(--ease) infinite;
}
@keyframes sweep { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.main-nav { display: flex; gap: 6px; flex: 1; }
.main-nav a {
  color: var(--muted); padding: 8px 15px; border-radius: 12px;
  font-size: 14px; font-weight: 500; transition: all .22s var(--ease);
}
.main-nav a:hover { color: #fff; background: var(--card-hi); }
.main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 92, 255, .28), rgba(255, 77, 157, .22));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.header-right { display: flex; align-items: center; gap: 10px; }

.balance-chip {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255, 209, 102, .09);
  border: 1px solid rgba(255, 209, 102, .28);
  padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: var(--gold); white-space: nowrap; cursor: pointer;
  transition: all .22s var(--ease);
}
.balance-chip:hover { background: rgba(255, 209, 102, .17); box-shadow: 0 0 18px rgba(255, 209, 102, .3); transform: translateY(-1px); }
.balance-chip .fish { font-size: 15px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-3px) rotate(6deg); } }
.balance-chip.err { color: var(--red); border-color: rgba(255, 93, 115, .35); background: rgba(255, 93, 115, .09); }

.user-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px; font-size: 13.5px; color: var(--muted);
  background: var(--card); border: 1px solid var(--border);
  max-width: 140px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--border); background: var(--card-hi); color: var(--text);
  padding: 10px 20px; border-radius: 13px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .22s var(--ease); font-family: inherit;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn:hover { background: rgba(255, 255, 255, .12); border-color: var(--border-hi); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary {
  background: var(--grad-main); border: none; color: #fff;
  box-shadow: 0 10px 26px -10px rgba(255, 77, 157, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn.primary:hover { filter: brightness(1.1) saturate(1.1); box-shadow: 0 16px 34px -12px rgba(255, 77, 157, .9); }
.btn.primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, .35), transparent 65%);
  transform: translateX(-110%);
}
.btn.primary:hover::after { animation: sweep .85s var(--ease); }
.btn.danger { color: #ffb3bd; border-color: rgba(255, 93, 115, .35); background: rgba(255, 93, 115, .08); }
.btn.danger:hover { background: rgba(255, 93, 115, .18); border-color: rgba(255, 93, 115, .55); }
.btn.small { padding: 6px 14px; font-size: 13px; border-radius: 11px; }
.btn.block { width: 100%; }

/* ============================================================
   布局 / 面板
   ============================================================ */
.container { max-width: 1240px; margin: 0 auto; padding: 26px 22px 70px; }
.page-title { font-size: 24px; font-weight: 800; letter-spacing: -.2px; margin: 4px 0 6px; }
.page-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.panel h1 { font-size: 22px; line-height: 1.5; margin-bottom: 12px; font-weight: 700; }
.panel .desc-text {
  color: #ccd5e8; font-size: 14.5px; white-space: pre-wrap; word-break: break-word;
  line-height: 1.85; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border);
}
.grad-text {
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; border-radius: 28px; overflow: hidden;
  padding: 46px 40px; margin-bottom: 26px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 77, 157, .22), transparent 55%),
    radial-gradient(100% 130% at 0% 100%, rgba(124, 92, 255, .28), transparent 55%),
    var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero::after {
  content: ''; position: absolute; inset: -1px; border-radius: 28px; padding: 1px;
  background: linear-gradient(120deg, rgba(124, 92, 255, .55), transparent 40%, rgba(255, 77, 157, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 660px; }
.hero h1 { font-size: 40px; line-height: 1.22; font-weight: 900; letter-spacing: -1px; margin-bottom: 14px; }
.hero p { color: var(--muted); font-size: 15.5px; line-height: 1.8; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .s .v {
  font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: var(--grad-cool); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats .s .k { font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.hero-orb {
  position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle at 30% 30%, rgba(34, 225, 255, .5), rgba(124, 92, 255, .28) 45%, transparent 70%);
  filter: blur(28px); border-radius: 50%; pointer-events: none;
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

/* ============================================================
   筛选栏
   ============================================================ */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 13px 15px; margin-bottom: 22px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.filter-bar input[type="text"] {
  flex: 1; min-width: 200px; background: rgba(0, 0, 0, .28); border: 1px solid var(--border);
  border-radius: 13px; padding: 11px 16px 11px 40px; color: var(--text); font-size: 14px;
  outline: none; transition: all .22s var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a3adc6' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 15px center;
}
.filter-bar input[type="text"]:focus {
  border-color: rgba(124, 92, 255, .6); background-color: rgba(0, 0, 0, .42);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .13);
}
.chip {
  padding: 7px 15px; border-radius: 999px; font-size: 13px; cursor: pointer; font-weight: 500;
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
  transition: all .2s var(--ease); user-select: none;
}
.chip:hover { color: #fff; border-color: var(--border-hi); transform: translateY(-1px); }
.chip.on {
  background: linear-gradient(135deg, rgba(124, 92, 255, .3), rgba(255, 77, 157, .22));
  color: #fff; border-color: rgba(124, 92, 255, .55);
  box-shadow: 0 6px 18px -8px rgba(124, 92, 255, .8);
}
select.sel {
  background: rgba(0, 0, 0, .3); color: var(--text); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; font-size: 14px; outline: none; font-family: inherit;
  cursor: pointer; transition: all .2s var(--ease);
}
select.sel:focus { border-color: rgba(124, 92, 255, .6); }

/* ============================================================
   商品卡片：渐变边框 + 鼠标光斑
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 18px; }
.pcard {
  position: relative; border-radius: var(--r-lg); padding: 1px; cursor: pointer;
  background: linear-gradient(150deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03) 45%, rgba(124, 92, 255, .16));
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
  isolation: isolate;
}
.pcard::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, .3), transparent 42%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-hi); }
.pcard:hover::before { opacity: 1; }
.pcard-body {
  height: 100%; background: linear-gradient(180deg, rgba(13, 15, 28, .95), rgba(9, 10, 20, .93));
  border-radius: calc(var(--r-lg) - 1px); padding: 18px;
  display: flex; flex-direction: column; gap: 11px; overflow: hidden;
}
.pcard .top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pcard .thumb {
  height: 92px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 34px; position: relative; overflow: hidden;
}
.pcard .thumb.file { background: linear-gradient(135deg, rgba(124, 92, 255, .22), rgba(34, 225, 255, .12)); }
.pcard .thumb.link { background: linear-gradient(135deg, rgba(0, 245, 160, .18), rgba(34, 225, 255, .12)); }
.pcard .thumb span { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); animation: bob 4s ease-in-out infinite; }
.pcard h3 {
  font-size: 16px; font-weight: 700; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 48px;
}
.pcard:hover h3 { color: #fff; }
.pcard .desc {
  color: var(--muted); font-size: 13px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px;
}
.pcard .meta { color: var(--dim); font-size: 12.5px; display: flex; gap: 12px; flex-wrap: wrap; }
.pcard .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.pcard .seller { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pcard .seller .av {
  width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; color: #fff; background: var(--grad-cool);
}

.badge { font-size: 11.5px; padding: 4px 10px; border-radius: 8px; font-weight: 700; white-space: nowrap; letter-spacing: .2px; }
.badge.file { background: rgba(124, 92, 255, .18); color: #b9a7ff; box-shadow: inset 0 0 0 1px rgba(124, 92, 255, .3); }
.badge.link { background: rgba(0, 245, 160, .14); color: #6ef5c4; box-shadow: inset 0 0 0 1px rgba(0, 245, 160, .28); }
.badge.free { background: rgba(255, 209, 102, .16); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 209, 102, .32); }
.badge.off  { background: rgba(163, 173, 198, .14); color: #b5bfd4; }
.badge.del  { background: rgba(255, 93, 115, .15); color: #ff97a4; }

.price {
  font-size: 20px; font-weight: 800; color: var(--gold); display: flex; align-items: center; gap: 5px;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(255, 209, 102, .35);
}
.price .fish { font-size: 16px; }
.price.zero { color: var(--lime); font-size: 16px; text-shadow: 0 0 18px rgba(0, 245, 160, .35); }

/* ============================================================
   详情页
   ============================================================ */
.detail-wrap { display: grid; grid-template-columns: 1fr 348px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .detail-wrap { grid-template-columns: 1fr; } }
.side-card { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.side-card .big-price {
  font-size: 34px; font-weight: 900; color: var(--gold); display: flex; align-items: baseline; gap: 9px;
  text-shadow: 0 0 26px rgba(255, 209, 102, .4); font-variant-numeric: tabular-nums;
}
.side-card .big-price .fish { font-size: 21px; }
.kv { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; color: var(--muted); }
.kv b { color: var(--text); font-weight: 600; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dl-box {
  background: linear-gradient(160deg, rgba(0, 245, 160, .10), rgba(34, 225, 255, .05));
  border: 1px solid rgba(0, 245, 160, .3); border-radius: var(--r); padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 0 40px -18px rgba(0, 245, 160, .6);
}
.dl-box .t { color: var(--lime); font-weight: 800; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.dl-link-row {
  display: flex; gap: 8px; align-items: center;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--border); border-radius: 12px; padding: 10px 13px;
}
.dl-link-row .u { flex: 1; font-size: 12.5px; color: #8fd8ff; word-break: break-all; line-height: 1.55; max-height: 62px; overflow: hidden; }
.dl-note { color: var(--dim); font-size: 12.5px; line-height: 1.75; }
.countdown { color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(255, 209, 102, .55); }

/* ============================================================
   表单
   ============================================================ */
.form-panel { max-width: 780px; margin: 0 auto; }
.f-group { margin-bottom: 20px; }
.f-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 9px; letter-spacing: .2px; }
.f-label .req { color: var(--pink); }
.f-hint { color: var(--dim); font-size: 12.5px; margin-top: 7px; line-height: 1.65; }
.i-text, textarea.i-text {
  width: 100%; background: rgba(0, 0, 0, .3); border: 1px solid var(--border); border-radius: 13px;
  padding: 12px 15px; color: var(--text); font-size: 14px; outline: none; font-family: inherit;
  transition: all .22s var(--ease);
}
.i-text:focus {
  border-color: rgba(124, 92, 255, .65); background: rgba(0, 0, 0, .42);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .12);
}
.i-text::placeholder { color: #5c6580; }
textarea.i-text { min-height: 148px; resize: vertical; line-height: 1.8; }
.radio-row { display: flex; gap: 12px; }
.radio-card {
  flex: 1; background: rgba(0, 0, 0, .25); border: 1px solid var(--border); border-radius: 15px;
  padding: 15px 17px; cursor: pointer; transition: all .22s var(--ease); font-size: 13px; color: var(--muted);
  display: flex; flex-direction: column; gap: 5px;
}
.radio-card b { color: var(--text); font-size: 15px; }
.radio-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.radio-card.on {
  border-color: rgba(124, 92, 255, .7);
  background: linear-gradient(135deg, rgba(124, 92, 255, .16), rgba(255, 77, 157, .08));
  box-shadow: 0 0 26px -12px rgba(124, 92, 255, .9);
}
.price-input-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-input-wrap input { max-width: 170px; font-size: 18px; font-weight: 800; color: var(--gold); }
.price-input-wrap .unit { color: var(--gold); font-weight: 700; font-size: 13.5px; }
input[type="file"] { color: var(--muted); font-size: 13.5px; width: 100%; }
input[type="file"]::file-selector-button {
  background: var(--grad-main); color: #fff; border: none; border-radius: 11px;
  padding: 9px 17px; margin-right: 13px; cursor: pointer; font-family: inherit; font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(255, 77, 157, .8);
}

/* ============================================================
   列表 / 表格
   ============================================================ */
.list-panel { display: flex; flex-direction: column; gap: 13px; }
.row-card {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  border-radius: var(--r); padding: 1px; position: relative;
  background: linear-gradient(140deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.row-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.row-card > .rc-body {
  flex: 1; min-width: 240px; background: rgba(11, 13, 26, .93); border-radius: calc(var(--r) - 1px);
  padding: 15px 18px; display: flex; align-items: center; gap: 15px; flex-wrap: wrap;
}
.row-card .info { flex: 1; min-width: 190px; }
.row-card .info .t { font-weight: 700; font-size: 15px; margin-bottom: 4px; cursor: pointer; transition: color .2s; }
.row-card .info .t:hover { color: #b9a7ff; }
.row-card .info .m { color: var(--dim); font-size: 12.5px; display: flex; gap: 12px; flex-wrap: wrap; }
.row-card .ops { display: flex; gap: 8px; flex-wrap: wrap; }

table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.tbl th, table.tbl td { padding: 12px 13px; text-align: left; border-bottom: 1px solid var(--border); }
table.tbl th {
  color: var(--dim); font-weight: 700; font-size: 12.5px; white-space: nowrap; background: rgba(255, 255, 255, .03);
}
table.tbl th:first-child { border-top-left-radius: 12px; }
table.tbl th:last-child { border-top-right-radius: 12px; }
table.tbl td { color: #ccd5e8; }
table.tbl tbody tr { transition: background .2s; }
table.tbl tbody tr:hover td { background: rgba(124, 92, 255, .07); }
.tbl-scroll { overflow-x: auto; }

/* ============================================================
   Tabs / 统计
   ============================================================ */
.tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tab {
  padding: 10px 22px; border-radius: 13px; cursor: pointer; font-size: 14px; font-weight: 600;
  color: var(--muted); background: var(--card); border: 1px solid var(--border);
  transition: all .22s var(--ease);
}
.tab:hover { color: #fff; transform: translateY(-2px); }
.tab.on {
  background: linear-gradient(135deg, rgba(124, 92, 255, .3), rgba(255, 77, 157, .2));
  color: #fff; border-color: rgba(124, 92, 255, .5);
  box-shadow: 0 8px 22px -10px rgba(124, 92, 255, .9);
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat {
  border-radius: var(--r); padding: 18px; position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad-cool); }
.stat .v { font-size: 26px; font-weight: 900; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat .k { color: var(--dim); font-size: 12.5px; margin-top: 3px; }
.stat.gold  { background: linear-gradient(140deg, rgba(255, 209, 102, .10), var(--card)); }
.stat.gold .v { color: var(--gold); text-shadow: 0 0 20px rgba(255, 209, 102, .35); }
.stat.gold::before { background: var(--grad-gold); }
.stat.green { background: linear-gradient(140deg, rgba(0, 245, 160, .10), var(--card)); }
.stat.green .v { color: var(--lime); text-shadow: 0 0 20px rgba(0, 245, 160, .3); }
.stat.green::before { background: var(--grad-lime); }
.stat.blue .v { color: #8fb1ff; }

/* ============================================================
   登录
   ============================================================ */
.auth-wrap { max-width: 440px; margin: 52px auto; }
.auth-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: 34px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; top: -70px; left: 50%; transform: translateX(-50%);
  width: 260px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, .38), transparent 68%); filter: blur(18px);
}
.auth-card h1 { font-size: 24px; text-align: center; margin-bottom: 6px; position: relative; z-index: 1; font-weight: 800; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 26px; position: relative; z-index: 1; }
.auth-switch { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 20px; }
.auth-switch a { cursor: pointer; font-weight: 700; }

/* ============================================================
   骨架 / 空状态 / 入场
   ============================================================ */
.skel { border-radius: var(--r-lg); padding: 1px; background: rgba(255, 255, 255, .05); }
.skel > div { background: rgba(11, 13, 26, .9); border-radius: calc(var(--r-lg) - 1px); padding: 18px; }
.skel-line {
  height: 13px; border-radius: 8px; margin-bottom: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .13) 37%, rgba(255, 255, 255, .05) 63%);
  background-size: 400% 100%; animation: shimmer 1.4s linear infinite;
}
.skel-line.w60 { width: 60%; }
.skel-line.w40 { width: 40%; }
.skel-thumb { height: 92px; border-radius: 14px; margin-bottom: 14px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.empty { text-align: center; color: var(--dim); padding: 62px 0; font-size: 14px; }
.empty .icon { font-size: 46px; margin-bottom: 12px; display: inline-block; animation: float 4s ease-in-out infinite; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Toast / Modal
   ============================================================ */
#toast-wrap {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 999;
  display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  background: rgba(18, 21, 38, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  color: var(--text); border: 1px solid var(--border-hi); border-left: 3px solid var(--cyan);
  border-radius: 14px; padding: 12px 22px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow); animation: toastIn .35s var(--ease); max-width: 84vw;
}
.toast.err { border-left-color: var(--red); color: #ffc2ca; }
.toast.ok  { border-left-color: var(--lime); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }

.modal-mask {
  position: fixed; inset: 0; background: rgba(3, 4, 10, .72); backdrop-filter: blur(6px);
  z-index: 998; display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .2s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: linear-gradient(180deg, rgba(20, 23, 42, .98), rgba(13, 15, 28, .98));
  border: 1px solid var(--border-hi); border-radius: 22px; padding: 28px;
  max-width: 440px; width: 100%; box-shadow: var(--shadow); animation: modalIn .35s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.modal h3 { font-size: 18px; margin-bottom: 12px; font-weight: 800; }
.modal p { color: var(--muted); font-size: 14px; line-height: 1.75; margin-bottom: 22px; white-space: pre-line; }
.modal .ops { display: flex; gap: 10px; justify-content: flex-end; }

.log-item {
  background: rgba(0, 0, 0, .35); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 15px; font-size: 12.5px; font-family: ui-monospace, Menlo, Consolas, monospace;
  margin-bottom: 10px; overflow-x: auto; line-height: 1.8; word-break: break-all;
}
.log-item .h { color: var(--dim); }
.log-item .resp-ok { color: var(--lime); }
.log-item .resp-no { color: var(--red); }

.site-footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 22px; color: var(--dim); font-size: 13px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 700px) {
  .header-inner { padding: 0 13px; gap: 8px; }
  .main-nav a { padding: 7px 10px; font-size: 13px; }
  .user-chip { display: none; }
  .container { padding: 18px 13px 56px; }
  .hero { padding: 32px 22px; border-radius: 22px; }
  .hero h1 { font-size: 29px; }
  .hero-orb { display: none; }
  .detail-wrap { grid-template-columns: 1fr; }
  .radio-row { flex-direction: column; }
}
