/* ============================================================
   GORILLA VAULT · 会员专属资料库 + 站长管理台 共用设计系统
   艺术方向：深夜金库——墨蓝底 + 琥珀金钥匙色 + 站点青绿血缘 + 电蓝/品红语义色。
   层叠背景（极光 / 网格 / 颗粒 / 扫光）、mono 微标签、发丝描边、金属高光。
   与 css/style.css、css/home.css 完全隔离，互不影响。
   ============================================================ */

:root {
  /* 中性：背景 / 表面 / 浮层 / 遮罩 */
  --void: #06090e;
  --ink: #0a0f16;
  --surface: #101923;
  --surface-2: #16222e;
  --overlay: #1d2c3b;
  --scrim: rgba(4, 7, 12, .72);

  /* 文本 */
  --text: #e9f0f7;
  --soft: #a5b6c6;
  --faint: #6e8296;

  /* 描边 */
  --line: rgba(126, 160, 190, .16);
  --line-2: rgba(126, 160, 190, .3);

  /* 主题色：琥珀金（会员钥匙） */
  --gold: #f6b73c;
  --gold-hi: #ffd479;
  --gold-deep: #b8801a;
  --gold-soft: rgba(246, 183, 60, .12);

  /* 次强调与语义 */
  --teal: #35d0a5;
  --blue: #4f8cff;
  --cyan: #37c9e8;
  --magenta: #ff5fa2;
  --violet: #a78bfa;
  --orange: #ff8a4c;
  --lime: #8ed95f;
  --ok: #3ddba4;
  --warn: #f5a524;
  --danger: #ff5d6c;
  --info: #7fd1ff;

  /* 图表八色（色相 + 明度双通道可辨） */
  --c1: #f6b73c;
  --c2: #35d0a5;
  --c3: #4f8cff;
  --c4: #ff5fa2;
  --c5: #37c9e8;
  --c6: #8ed95f;
  --c7: #ff8a4c;
  --c8: #a78bfa;

  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .38);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .55), 0 26px 60px rgba(0, 0, 0, .55);
  --glow-gold: 0 0 0 1px rgba(246, 183, 60, .35), 0 10px 34px rgba(246, 183, 60, .18);
  --radius: 14px;
  --radius-sm: 10px;
  --top-h: 62px;
  --rail-w: 236px;

  --display: "Bahnschrift", "Candara", "Optima", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--void);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.25; letter-spacing: .2px; }
::selection { background: var(--gold); color: #1a1204; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

/* 滚动条：金库自己的语言 */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-deep), var(--gold));
  border-radius: 8px; border: 2px solid var(--ink);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--gold), var(--gold-hi)); }
::-webkit-scrollbar-corner { background: var(--ink); }
html { scrollbar-width: thin; scrollbar-color: var(--gold-deep) var(--ink); }

/* ---------- 层叠背景 ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(1200px 700px at 12% -8%, rgba(246, 183, 60, .1), transparent 60%),
  radial-gradient(1000px 620px at 92% 4%, rgba(53, 208, 165, .09), transparent 62%),
  radial-gradient(900px 700px at 50% 108%, rgba(79, 140, 255, .1), transparent 60%),
  linear-gradient(180deg, #070b11, var(--void) 45%, #05080c);
}
.bg .aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; mix-blend-mode: screen; }
.bg .a1 { width: 46vw; height: 46vw; left: -10vw; top: -14vw; background: radial-gradient(circle, rgba(246, 183, 60, .3), transparent 68%); animation: drift1 26s ease-in-out infinite; }
.bg .a2 { width: 40vw; height: 40vw; right: -8vw; top: 6vh; background: radial-gradient(circle, rgba(53, 208, 165, .26), transparent 68%); animation: drift2 32s ease-in-out infinite; }
.bg .a3 { width: 52vw; height: 52vw; left: 28vw; bottom: -26vw; background: radial-gradient(circle, rgba(79, 140, 255, .24), transparent 70%); animation: drift3 38s ease-in-out infinite; }
.bg .grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(rgba(126, 160, 190, .055) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(126, 160, 190, .055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}
.bg .grain {
  position: absolute; inset: 0; opacity: .3; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}
.bg .sweep {
  position: absolute; top: -30%; left: -40%; width: 40%; height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255, 212, 121, .07) 45%, rgba(127, 209, 255, .06) 55%, transparent);
  transform: rotate(12deg); animation: sweep 17s linear infinite;
}
@keyframes drift1 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(6vw, 4vh, 0) scale(1.12); } }
@keyframes drift2 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); } 50% { transform: translate3d(-5vw, 7vh, 0) scale(.94); } }
@keyframes drift3 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-7vw, -5vh, 0) scale(1.1); } }
@keyframes sweep { 0% { left: -45%; } 55%, 100% { left: 125%; } }

/* 顶部滚动进度 */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; background: rgba(126, 160, 190, .1); }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold), var(--magenta)); box-shadow: 0 0 12px rgba(246, 183, 60, .6); }

/* ---------- 微标签 ---------- */
.kicker { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .22em; color: var(--gold); text-transform: uppercase; }
.kicker.teal { color: var(--teal); }
.kicker.blue { color: var(--info); }
.rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* ---------- 按钮 ---------- */
.vbtn {
  --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-bd: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 13.5px; font-weight: 700; letter-spacing: .3px; white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease, filter .2s;
}
.vbtn svg { width: 16px; height: 16px; flex: none; }
.vbtn:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow); }
.vbtn:active { transform: translateY(0) scale(.985); }
.vbtn[disabled] { opacity: .5; pointer-events: none; }
.vbtn.gold { --btn-bg: linear-gradient(120deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep)); --btn-fg: #201703; --btn-bd: rgba(255, 212, 121, .6); box-shadow: 0 8px 24px rgba(246, 183, 60, .22); }
.vbtn.gold:hover { filter: brightness(1.07); box-shadow: 0 12px 30px rgba(246, 183, 60, .32); }
.vbtn.teal { --btn-bg: linear-gradient(120deg, #57e3bb, var(--teal) 60%, #1d9c78); --btn-fg: #04231b; --btn-bd: rgba(53, 208, 165, .55); box-shadow: 0 8px 24px rgba(53, 208, 165, .2); }
.vbtn.blue { --btn-bg: linear-gradient(120deg, #7fb0ff, var(--blue) 60%, #2f5fc0); --btn-fg: #05122b; --btn-bd: rgba(79, 140, 255, .55); }
.vbtn.ghost { --btn-bg: rgba(22, 34, 46, .6); --btn-fg: var(--soft); }
.vbtn.ghost:hover { --btn-fg: var(--gold-hi); }
.vbtn.danger { --btn-bg: rgba(255, 93, 108, .12); --btn-fg: #ffb3ba; --btn-bd: rgba(255, 93, 108, .45); }
.vbtn.danger:hover { --btn-bg: var(--danger); --btn-fg: #2b0508; border-color: var(--danger); }
.vbtn.sm { padding: 7px 13px; font-size: 12.5px; border-radius: 9px; }
.vbtn.sm svg { width: 14px; height: 14px; }
.vbtn.lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.vbtn.icon { padding: 8px; width: 34px; height: 34px; }
.vbtn.busy { pointer-events: none; opacity: .85; }
.vbtn.busy::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 表单 ---------- */
.vfield { display: block; margin-bottom: 14px; }
.vlabel { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--faint); text-transform: uppercase; margin-bottom: 6px; }
.vlabel b { color: var(--gold); font-weight: 700; }
.vlabel .hint { margin-left: auto; letter-spacing: .04em; text-transform: none; font-size: 10.5px; color: var(--faint); }
.vinput, .vselect, .vtextarea {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm);
  background: rgba(6, 10, 15, .72); border: 1px solid var(--line);
  color: var(--text); font-size: 13.5px; transition: border-color .18s, box-shadow .18s, background .18s;
}
.vtextarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.vinput::placeholder, .vtextarea::placeholder { color: #55677a; }
.vinput:hover, .vselect:hover, .vtextarea:hover { border-color: var(--line-2); }
.vinput:focus, .vselect:focus, .vtextarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); background: rgba(6, 10, 15, .92); }
.vselect { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b6c6' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 15px; padding-right: 32px; }
.vselect option { background: var(--surface); color: var(--text); }
.vrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vcheck { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--soft); user-select: none; }
.vcheck input { position: absolute; opacity: 0; width: 0; height: 0; }
.vcheck .box { width: 18px; height: 18px; flex: none; border-radius: 5px; border: 1px solid var(--line-2); background: rgba(6, 10, 15, .8); display: grid; place-items: center; transition: background .16s, border-color .16s; }
.vcheck .box svg { width: 12px; height: 12px; opacity: 0; transform: scale(.6); transition: opacity .16s, transform .16s; color: #201703; }
.vcheck input:checked + .box { background: var(--gold); border-color: var(--gold-hi); }
.vcheck input:checked + .box svg { opacity: 1; transform: none; }
.vcheck input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 2px; }
.vswitch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--soft); }
.vswitch input { position: absolute; opacity: 0; }
.vswitch .track { width: 40px; height: 22px; flex: none; border-radius: 999px; background: rgba(6, 10, 15, .9); border: 1px solid var(--line-2); position: relative; transition: background .2s, border-color .2s; }
.vswitch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--faint); transition: transform .2s ease, background .2s; }
.vswitch input:checked + .track { background: var(--gold-soft); border-color: var(--gold); }
.vswitch input:checked + .track::after { transform: translateX(18px); background: var(--gold); }
.vstepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: rgba(6, 10, 15, .72); }
.vstepper button { width: 34px; height: 38px; display: grid; place-items: center; color: var(--soft); font-size: 16px; transition: background .16s, color .16s; }
.vstepper button:hover { background: var(--gold-soft); color: var(--gold-hi); }
.vstepper input { width: 56px; height: 38px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: none; font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--gold-hi); }
.vstepper input:focus { outline: none; background: rgba(246, 183, 60, .07); }
.vsearch { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 180px; padding: 9px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(6, 10, 15, .72); color: var(--faint); transition: border-color .18s, box-shadow .18s; }
.vsearch:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); color: var(--gold); }
.vsearch svg { width: 15px; height: 15px; flex: none; }
.vsearch input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); font-size: 13px; }
.vsearch kbd { font: 10px var(--mono); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--faint); }

/* ---------- chips / 标签 / 徽章 ---------- */
.vchips { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(16, 25, 35, .8); color: var(--soft); font-size: 12.5px; font-weight: 600; transition: color .16s, border-color .16s, background .16s, transform .16s; }
.vchip i { font-style: normal; font-family: var(--mono); font-size: 10px; padding: 1px 7px; border-radius: 999px; background: rgba(6, 10, 15, .8); border: 1px solid var(--line); color: var(--faint); }
.vchip:hover { color: var(--gold-hi); border-color: rgba(246, 183, 60, .5); transform: translateY(-1px); }
.vchip.on { color: #201703; background: linear-gradient(120deg, var(--gold-hi), var(--gold)); border-color: var(--gold-hi); box-shadow: 0 6px 18px rgba(246, 183, 60, .22); }
.vchip.on i { background: rgba(32, 23, 3, .16); border-color: transparent; color: #201703; }
.vchip.teal.on { color: #04231b; background: linear-gradient(120deg, #57e3bb, var(--teal)); border-color: var(--teal); box-shadow: 0 6px 18px rgba(53, 208, 165, .2); }
.vtag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 3px 9px; border-radius: 999px; border: 1px solid; text-transform: uppercase; }
.vtag svg { width: 11px; height: 11px; }
.vtag.file { color: var(--gold-hi); border-color: rgba(246, 183, 60, .45); background: var(--gold-soft); }
.vtag.link { color: var(--info); border-color: rgba(79, 140, 255, .45); background: rgba(79, 140, 255, .12); }
.vtag.note { color: #ffc2dc; border-color: rgba(255, 95, 162, .42); background: rgba(255, 95, 162, .12); }
.vtag.cat { color: var(--teal); border-color: rgba(53, 208, 165, .4); background: rgba(53, 208, 165, .1); letter-spacing: .04em; text-transform: none; font-family: var(--body); font-size: 11px; }
.vbadge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid; }
.vbadge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.vbadge.active { color: var(--ok); border-color: rgba(61, 219, 164, .4); background: rgba(61, 219, 164, .1); }
.vbadge.revoked { color: var(--danger); border-color: rgba(255, 93, 108, .4); background: rgba(255, 93, 108, .1); }
.vbadge.expired { color: var(--warn); border-color: rgba(245, 165, 36, .4); background: rgba(245, 165, 36, .1); }
.vbadge.used_up { color: var(--violet); border-color: rgba(167, 139, 250, .4); background: rgba(167, 139, 250, .12); }
.vbadge.admin { color: var(--gold-hi); border-color: rgba(246, 183, 60, .45); background: var(--gold-soft); }

/* ---------- 卡片 / 统计 / 图表 ---------- */
.vcard { background: linear-gradient(160deg, rgba(22, 34, 46, .92), rgba(12, 19, 27, .92)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.vstat { position: relative; overflow: hidden; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(155deg, rgba(22, 34, 46, .95), rgba(10, 15, 22, .95)); transition: transform .2s, border-color .2s, box-shadow .2s; }
.vstat::after { content: ""; position: absolute; right: -22px; top: -22px; width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle, var(--sc, rgba(246, 183, 60, .22)), transparent 70%); }
.vstat:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.vstat .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--faint); text-transform: uppercase; }
.vstat .n { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.15; margin-top: 4px; color: var(--sn, var(--gold-hi)); font-variant-numeric: tabular-nums; }
.vstat .s { font-size: 11.5px; color: var(--soft); margin-top: 2px; }
.vbar { height: 8px; border-radius: 999px; background: rgba(6, 10, 15, .9); border: 1px solid var(--line); overflow: hidden; }
.vbar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width .7s cubic-bezier(.22, .8, .3, 1); }
.vlegend { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.vlegend li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--soft); }
.vlegend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.vlegend b { font-family: var(--mono); color: var(--text); font-size: 12px; }
.vempty { padding: 52px 22px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(10, 15, 22, .5); color: var(--faint); }
.vempty svg { width: 42px; height: 42px; margin: 0 auto 12px; color: var(--gold-deep); }
.vempty p { font-size: 13.5px; margin-bottom: 6px; color: var(--soft); }
.vempty small { display: block; font-size: 12px; margin-bottom: 16px; }
.vskeleton { border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(100deg, rgba(22, 34, 46, .6) 30%, rgba(38, 56, 74, .8) 50%, rgba(22, 34, 46, .6) 70%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -120% 0; } }

/* ---------- 表格 ---------- */
.vtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.vtable th { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.vtable td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--soft); }
.vtable tbody tr { transition: background .16s; }
.vtable tbody tr:hover { background: rgba(246, 183, 60, .05); }
.vtable .num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.vtable .strong { color: var(--text); font-weight: 700; }
.vtable-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(10, 15, 22, .6); }

/* ---------- toast / undo / 队列 / 拖放 ---------- */
.vtoast { position: fixed; left: 50%; bottom: 26px; z-index: 120; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 32px)); padding: 11px 20px; border-radius: 999px; background: rgba(12, 19, 27, .96); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-size: 13px; color: var(--text); transition: opacity .24s ease, transform .24s ease; backdrop-filter: blur(8px); }
.vtoast.show { opacity: 1; transform: translate(-50%, 0); }
.vtoast svg { width: 16px; height: 16px; flex: none; }
.vtoast.ok { border-color: rgba(61, 219, 164, .5); } .vtoast.ok svg { color: var(--ok); }
.vtoast.err { border-color: rgba(255, 93, 108, .55); } .vtoast.err svg { color: var(--danger); }
.vtoast.info svg { color: var(--info); }
.vundo { position: fixed; left: 50%; bottom: 78px; z-index: 119; transform: translate(-50%, 14px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 999px; background: rgba(16, 25, 35, .98); border: 1px solid rgba(246, 183, 60, .45); box-shadow: var(--shadow-lg); font-size: 13px; transition: opacity .22s, transform .22s; }
.vundo.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.vundo .vbtn { padding: 6px 14px; }
.vdrop { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; background: rgba(6, 9, 14, .82); backdrop-filter: blur(4px); border: 2px dashed var(--gold); }
.vdrop-in { text-align: center; color: var(--gold-hi); }
.vdrop-in svg { width: 56px; height: 56px; margin: 0 auto 14px; animation: bob 1.4s ease-in-out infinite; }
.vdrop-in b { display: block; font-family: var(--display); font-size: 24px; }
.vdrop-in span { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--soft); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.vqueue { position: fixed; right: 18px; bottom: 18px; z-index: 118; width: min(340px, calc(100vw - 36px)); display: grid; gap: 8px; }
.vq { padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(12, 19, 27, .97); box-shadow: var(--shadow); }
.vq-hd { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.vq-hd b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.vq-hd em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.vq .vbar { margin-top: 8px; height: 5px; }
.vq.done { border-color: rgba(61, 219, 164, .45); }
.vq.err { border-color: rgba(255, 93, 108, .5); }
.vq.err em { color: var(--danger); }

/* ---------- 弹窗 / 抽屉 ---------- */
body.modal-open { overflow: hidden; }
.vdialog { margin: auto; width: min(760px, calc(100vw - 28px)); max-width: calc(100vw - 28px); max-height: min(88vh, 900px); padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(165deg, #16222e, #0b1119 60%); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
.vdialog[open] { display: flex; flex-direction: column; animation: pop .26s cubic-bezier(.2, .9, .3, 1); }
.vdialog::backdrop { background: var(--scrim); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
/* max-width 必须显式写：浏览器对 dialog:modal 有 UA 默认 max-width，会把移动端抽屉夹窄 */
.vdialog.drawer { margin: 0 0 0 auto; width: min(580px, 100vw); max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; border-right: 0; border-top: 0; border-bottom: 0; }
.vdialog.drawer[open] { animation: slidein .28s cubic-bezier(.2, .9, .3, 1); }
@keyframes slidein { from { transform: translateX(28px); opacity: .4; } to { transform: none; opacity: 1; } }
.vd-hd { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: rgba(6, 10, 15, .4); }
.vd-hd .t { flex: 1; min-width: 0; }
.vd-hd h3 { font-size: 18px; line-height: 1.4; }
.vd-hd .kicker { display: block; margin-bottom: 4px; }
.vd-close { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); color: var(--soft); transition: color .16s, border-color .16s, transform .16s; }
.vd-close:hover { color: var(--danger); border-color: var(--danger); transform: rotate(90deg); }
.vd-close svg { width: 15px; height: 15px; }
.vd-bd { flex: 1; overflow-y: auto; padding: 20px; }
.vd-ft { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: rgba(6, 10, 15, .45); flex-wrap: wrap; }
.vd-ft .sp { flex: 1; }
.vconfirm { margin: auto; width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(165deg, #1a2735, #0b1119); color: var(--text); box-shadow: var(--shadow-lg); }
.vconfirm[open] { animation: pop .22s ease; }
.vconfirm::backdrop { background: var(--scrim); backdrop-filter: blur(3px); }
.vconfirm .bd { padding: 22px 22px 6px; }
.vconfirm h3 { font-size: 17px; margin-bottom: 8px; }
.vconfirm p { font-size: 13.5px; color: var(--soft); }
.vconfirm .ft { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 22px 20px; }

/* ---------- 入场揭示 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2, .8, .3, 1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   会员页：顶栏 / 门禁金库 / 资料库 / 详情
   ============================================================ */
.vtop { position: sticky; top: 0; z-index: 60; height: var(--top-h); border-bottom: 1px solid var(--line); background: rgba(7, 11, 17, .82); backdrop-filter: blur(14px) saturate(1.2); }
.vtop-in { max-width: 1280px; margin: 0 auto; height: 100%; padding: 0 22px; display: flex; align-items: center; gap: 18px; }
.vlogo { display: flex; align-items: center; gap: 10px; flex: none; }
.vlogo svg { width: 30px; height: 30px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(246, 183, 60, .45)); }
.vlogo b { font-family: var(--display); font-size: 16.5px; letter-spacing: .4px; }
.vlogo span { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .26em; color: var(--faint); text-transform: uppercase; margin-top: -3px; }
.vnav { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.vnav a { position: relative; padding: 8px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--soft); transition: color .18s, background .18s; }
.vnav a:hover { color: var(--gold-hi); background: rgba(246, 183, 60, .08); }
.vnav a.on { color: var(--gold-hi); background: var(--gold-soft); }
.vnav a.on::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--teal)); }
.vtop-side { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.vbadge-member { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(246, 183, 60, .45); background: var(--gold-soft); font-size: 12px; color: var(--gold-hi); }
.vbadge-member i { font-style: normal; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 9px var(--ok); animation: pulse 2.2s ease-in-out infinite; }
.vbadge-member em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--soft); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 门禁 ---------- */
.gate { min-height: calc(100vh - var(--top-h)); display: grid; place-items: center; padding: 46px 22px 70px; }
.gate-in { width: min(1180px, 100%); display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
.gate-copy .kicker { display: inline-flex; align-items: center; gap: 10px; }
.gate-title { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.12; margin: 16px 0 14px; letter-spacing: -.4px; }
.gate-title em { font-style: normal; background: linear-gradient(96deg, var(--gold-hi), var(--gold) 42%, var(--teal) 96%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate-lead { font-size: 15px; color: var(--soft); max-width: 52ch; margin-bottom: 22px; }
.gate-points { display: grid; gap: 11px; margin-bottom: 26px; }
.gate-points li { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: var(--soft); }
.gate-points svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--teal); }
.gate-points b { color: var(--text); font-weight: 700; }
.gate-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.gate-stats .vstat { padding: 13px 14px; }
.gate-stats .vstat .n { font-size: 24px; }
.gate-help { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px dashed var(--line-2); background: rgba(10, 15, 22, .55); font-size: 12.5px; color: var(--soft); }
.gate-help b { color: var(--gold-hi); font-family: var(--mono); font-size: 12px; }
.gate-help svg { width: 16px; height: 16px; color: var(--teal); flex: none; }

/* 精神股东席位：一码一席，服务端实时聚合；剩 ≤20 席转品红警示，满员转青绿 */
.vseats { margin: 0 0 22px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(246, 183, 60, .34); background: linear-gradient(120deg, rgba(246, 183, 60, .1), rgba(10, 15, 22, .6) 55%); }
.vseats-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vseats-left { font-family: var(--display); font-size: 26px; color: var(--gold-hi); font-variant-numeric: tabular-nums; line-height: 1; }
.vseats-left i { font-style: normal; }
.vseats-left span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--faint); margin-left: 6px; }
.vseats-bar { position: relative; height: 6px; margin: 10px 0 8px; border-radius: 99px; background: rgba(6, 10, 15, .9); border: 1px solid var(--line); overflow: hidden; }
.vseats-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); box-shadow: 0 0 12px rgba(246, 183, 60, .5); transition: width .6s cubic-bezier(.2, .9, .3, 1); }
.vseats-note { margin: 0; font-size: 11.5px; color: var(--soft); font-family: var(--mono); letter-spacing: .04em; }
.vseats.low { border-color: rgba(255, 95, 162, .45); }
.vseats.low .vseats-left { color: var(--magenta); }
.vseats.low .vseats-bar i { background: linear-gradient(90deg, var(--magenta), #ff8fbf); box-shadow: 0 0 12px rgba(255, 95, 162, .5); }
.vseats.full { border-color: rgba(53, 208, 165, .4); }
.vseats.full .vseats-left { color: var(--teal); }
.vseats.full .vseats-bar i { background: linear-gradient(90deg, var(--teal), #7ff0cd); box-shadow: 0 0 12px rgba(53, 208, 165, .45); }
.vseats.compact { margin: 0 0 14px; padding: 12px 14px; }
.vseats.compact .vseats-left { font-size: 20px; }

/* 付款二维码卡：欢迎弹窗关闭后才显示 */
.vpay { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; margin: 0 0 22px; padding: 16px; border-radius: var(--radius-sm); border: 1px solid rgba(53, 208, 165, .34); background: linear-gradient(120deg, rgba(53, 208, 165, .08), rgba(10, 15, 22, .6) 60%); animation: payin .45s cubic-bezier(.2, .9, .3, 1); }
@keyframes payin { from { opacity: 0; transform: translateY(10px); } }
.vpay img { width: 132px; height: auto; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; }
.vpay-copy b { display: block; margin: 6px 0 6px; font-size: 15px; color: var(--text); }
.vpay-copy p { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--soft); }
.vpay-copy p b { display: inline; margin: 0; font-size: 12px; color: var(--gold-hi); }

/* 欢迎弹窗：居中、仅按钮可关闭 */
.vwelcome { width: min(520px, calc(100vw - 28px)); max-width: calc(100vw - 28px); padding: 26px 26px 24px; }
.vwelcome h2 { margin: 10px 0 10px; font-family: var(--display); font-size: 26px; line-height: 1.3; color: var(--text); }
.vw-lead { margin: 0 0 14px; font-size: 13px; line-height: 1.9; color: var(--soft); }
.vw-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.vw-points li { position: relative; padding: 9px 12px 9px 30px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(6, 10, 15, .6); font-size: 12.5px; line-height: 1.7; color: var(--soft); }
.vw-points li::before { content: ''; position: absolute; left: 12px; top: 15px; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 8px rgba(246, 183, 60, .6); }
.vw-points b { color: var(--gold-hi); }
.vwelcome .vbtn { width: 100%; }

/* 金库门 + 密码键盘 */
.gate-door { display: grid; justify-items: center; gap: 26px; }
.door { position: relative; width: min(280px, 62vw); aspect-ratio: 1; display: grid; place-items: center; }
.door-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-2); background: conic-gradient(from 0deg, rgba(246, 183, 60, .5), rgba(53, 208, 165, .28), rgba(79, 140, 255, .34), rgba(246, 183, 60, .5)); padding: 2px; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); animation: ringspin 22s linear infinite; }
@keyframes ringspin { to { transform: rotate(360deg); } }
.door-ring.r2 { inset: 16px; animation-duration: 34s; animation-direction: reverse; opacity: .55; }
.door-core { position: relative; width: 68%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 34% 26%, #1d2c3b, #0a0f16 68%); border: 1px solid var(--line-2); box-shadow: inset 0 2px 20px rgba(0, 0, 0, .7), 0 18px 50px rgba(0, 0, 0, .55); transition: box-shadow .5s ease, border-color .5s ease, transform .5s cubic-bezier(.2, .9, .3, 1); }
.door-core svg { width: 46px; height: 46px; color: var(--gold); filter: drop-shadow(0 0 14px rgba(246, 183, 60, .5)); transition: transform .6s cubic-bezier(.2, .9, .3, 1), color .4s; }
.door-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .24em; color: var(--faint); text-transform: uppercase; margin-top: 10px; }
.door.open .door-core { border-color: var(--gold); box-shadow: inset 0 0 30px rgba(246, 183, 60, .22), var(--glow-gold); transform: scale(1.04); }
.door.open .door-core svg { transform: rotate(-28deg) scale(1.12); color: var(--gold-hi); }
.door.open .door-label { color: var(--ok); }
.door.shake { animation: shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
.keypad { width: min(360px, 100%); padding: 22px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(165deg, rgba(22, 34, 46, .96), rgba(9, 14, 20, .96)); box-shadow: var(--shadow-lg); }
.key-label { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--faint); text-transform: uppercase; margin-bottom: 10px; }
.key-label b { color: var(--gold); }
.key-field { position: relative; margin-bottom: 14px; }
.key-input { width: 100%; padding: 15px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(4, 7, 12, .88); color: var(--gold-hi); font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: .16em; text-align: center; text-transform: uppercase; transition: border-color .2s, box-shadow .2s; }
.key-input::placeholder { color: #4a5b6d; letter-spacing: .1em; font-weight: 400; }
.key-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft), inset 0 0 22px rgba(246, 183, 60, .08); }
.key-input.bad { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 93, 108, .14); color: #ffb3ba; }
.keypad .vbtn { width: 100%; }
.key-msg { min-height: 20px; margin-top: 11px; font-size: 12.5px; color: var(--danger); text-align: center; line-height: 1.5; }
.key-msg.ok { color: var(--ok); }
.key-msg.info { color: var(--soft); }
.key-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--faint); }
.key-foot b { color: var(--teal); }

/* ---------- 资料库 ---------- */
.vault { max-width: 1280px; margin: 0 auto; padding: 30px 22px 60px; }
.vault-hero { position: relative; overflow: hidden; padding: 26px 28px; border-radius: 18px; border: 1px solid rgba(246, 183, 60, .28); background: linear-gradient(120deg, rgba(246, 183, 60, .1), rgba(22, 34, 46, .9) 46%, rgba(53, 208, 165, .08)); box-shadow: var(--shadow); margin-bottom: 20px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.vault-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 183, 60, .18), transparent 68%); }
.v-hero-copy { flex: 1; min-width: 260px; position: relative; }
.v-hero-copy h2 { font-size: 25px; margin: 8px 0 6px; }
.v-hero-copy p { font-size: 13px; color: var(--soft); max-width: 62ch; }
.v-hero-stats { display: flex; gap: 22px; flex-wrap: wrap; position: relative; }
.v-hero-stats div { text-align: right; }
.v-hero-stats b { display: block; font-family: var(--display); font-size: 26px; color: var(--gold-hi); font-variant-numeric: tabular-nums; line-height: 1.2; }
.v-hero-stats span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--faint); text-transform: uppercase; }
.vtoolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(12, 19, 27, .8); margin-bottom: 14px; position: sticky; top: calc(var(--top-h) + 8px); z-index: 40; backdrop-filter: blur(10px); }
.vtoolbar .vselect { width: auto; min-width: 132px; padding: 9px 30px 9px 12px; font-size: 12.5px; }
.vseg { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: rgba(6, 10, 15, .8); gap: 2px; }
.vseg button { width: 32px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: var(--faint); transition: background .16s, color .16s; }
.vseg button svg { width: 15px; height: 15px; }
.vseg button:hover { color: var(--gold-hi); }
.vseg button.on { background: var(--gold-soft); color: var(--gold-hi); }
.vcount { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .06em; margin-left: auto; }
.vcount b { color: var(--gold-hi); }
.vcats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.vlib { display: grid; gap: 14px; }
.vlib.grid { grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); }
.vlib.list { grid-template-columns: 1fr; }
.vitem { position: relative; display: flex; gap: 14px; padding: 17px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(158deg, rgba(22, 34, 46, .92), rgba(11, 17, 24, .94)); transition: transform .2s ease, border-color .2s, box-shadow .24s; cursor: pointer; overflow: hidden; }
.vitem::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--gold), var(--teal)); opacity: 0; transition: opacity .2s; }
.vitem:hover { transform: translateY(-3px); border-color: rgba(246, 183, 60, .42); box-shadow: var(--shadow-lg); }
.vitem:hover::before { opacity: 1; }
.vlib.list .vitem { align-items: center; padding: 14px 18px; }
.vitem-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(6, 10, 15, .7); color: var(--gold); }
.vitem-ic svg { width: 22px; height: 22px; }
.vitem[data-kind="link"] .vitem-ic { color: var(--info); border-color: rgba(79, 140, 255, .38); background: rgba(79, 140, 255, .1); }
.vitem[data-kind="note"] .vitem-ic { color: var(--magenta); border-color: rgba(255, 95, 162, .38); background: rgba(255, 95, 162, .1); }
.vitem-body { flex: 1; min-width: 0; }
.vitem-title { font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 5px; display: flex; align-items: flex-start; gap: 8px; }
.vitem-title span { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vitem-sum { font-size: 12.5px; color: var(--soft); line-height: 1.65; margin-bottom: 9px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vlib.list .vitem-sum { -webkit-line-clamp: 1; margin-bottom: 6px; }
.vitem-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: .04em; }
.vitem-actions { display: flex; gap: 7px; flex: none; align-self: center; }
.vlib.grid .vitem-actions { position: absolute; right: 14px; top: 14px; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.vlib.grid .vitem:hover .vitem-actions, .vlib.grid .vitem:focus-within .vitem-actions { opacity: 1; transform: none; }
.vitem .pin { color: var(--gold); flex: none; }
.vitem .pin svg { width: 14px; height: 14px; }
.vitem .fav { color: var(--faint); }
.vitem .fav.on { color: var(--magenta); border-color: rgba(255, 95, 162, .5); background: rgba(255, 95, 162, .12); }
.vitem .fav svg { width: 15px; height: 15px; }
.vupdates { margin-top: 34px; }
.vupdates-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.vupdates-hd h3 { font-size: 17px; }
.vupdates ul { display: grid; gap: 9px; }
.vupdates li { display: flex; align-items: center; gap: 12px; padding: 11px 15px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(12, 19, 27, .66); font-size: 13px; transition: border-color .18s, transform .18s; cursor: pointer; }
.vupdates li:hover { border-color: rgba(53, 208, 165, .4); transform: translateX(3px); }
.vupdates li time { font-family: var(--mono); font-size: 10.5px; color: var(--faint); flex: none; }
.vupdates li b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vfoot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
.vfoot a { color: var(--soft); transition: color .18s; }
.vfoot a:hover { color: var(--gold-hi); }

/* 详情弹窗内部 */
.vd-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.vd-meta .mono { font-size: 11px; color: var(--faint); }
.vd-preview { border-radius: var(--radius); border: 1px solid var(--line); background: rgba(4, 7, 12, .7); overflow: hidden; margin-bottom: 16px; }
.vd-preview img { width: 100%; max-height: 52vh; object-fit: contain; background: #04070c; }
.vd-preview iframe { width: 100%; height: 56vh; border: 0; background: #fff; }
.vd-preview pre { max-height: 46vh; overflow: auto; padding: 16px; font-family: var(--mono); font-size: 12px; line-height: 1.75; color: #cfe0ee; white-space: pre-wrap; word-break: break-word; }
.vd-note { padding: 18px 20px; border-radius: var(--radius); border: 1px solid rgba(255, 95, 162, .28); background: rgba(255, 95, 162, .06); font-size: 14px; line-height: 1.95; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.vd-body { font-size: 13.5px; color: var(--soft); line-height: 1.9; margin-bottom: 16px; white-space: pre-wrap; word-break: break-word; }
.vd-progress { margin-top: 14px; }
.vd-progress .vbar { height: 6px; }
.vd-progress p { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 7px; }
.vd-link { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid rgba(79, 140, 255, .35); background: rgba(79, 140, 255, .08); margin-bottom: 16px; }
.vd-link svg { width: 22px; height: 22px; color: var(--info); flex: none; }
.vd-link div { flex: 1; min-width: 0; }
.vd-link b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.vd-link span { display: block; font-family: var(--mono); font-size: 11px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   站长管理台：登录门 / 左轨 / 面板 / 列表 / 授权 / 设置
   ============================================================ */
.agate { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.agate-card { width: min(430px, 100%); padding: 32px 30px 26px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(168deg, rgba(24, 37, 50, .97), rgba(8, 13, 19, .97)); box-shadow: var(--shadow-lg); text-align: center; }
.agate-lock { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(246, 183, 60, .4); background: radial-gradient(circle at 34% 28%, rgba(246, 183, 60, .22), rgba(6, 10, 15, .9) 70%); box-shadow: var(--glow-gold); }
.agate-lock svg { width: 32px; height: 32px; color: var(--gold-hi); }
.agate-card h1 { font-size: 24px; margin-bottom: 6px; }
.agate-card > p { font-size: 13px; color: var(--soft); margin-bottom: 22px; }
.agate-card .vfield { text-align: left; }
.agate-card .vinput { text-align: center; font-family: var(--mono); letter-spacing: .12em; font-size: 15px; }
.agate-card .vbtn { width: 100%; }
.agate-msg { min-height: 20px; margin-top: 12px; font-size: 12.5px; color: var(--danger); }
.agate-msg.ok { color: var(--ok); }
.agate-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--faint); display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.agate-foot a { color: var(--soft); }
.agate-foot a:hover { color: var(--gold-hi); }

/* 应用骨架 */
.aapp { display: grid; grid-template-columns: var(--rail-w) 1fr; min-height: 100vh; }
.arail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 15, 22, .96), rgba(6, 9, 14, .96)); backdrop-filter: blur(10px); z-index: 50; }
.arail-brand { display: flex; align-items: center; gap: 11px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.arail-brand svg { width: 28px; height: 28px; color: var(--gold); flex: none; }
.arail-brand b { display: block; font-family: var(--display); font-size: 15px; }
.arail-brand span { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .2em; color: var(--faint); text-transform: uppercase; }
.arail-nav { flex: 1; overflow-y: auto; padding: 14px 12px; display: grid; gap: 4px; align-content: start; }
.anav-item { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid transparent; color: var(--soft); font-size: 13.5px; font-weight: 600; text-align: left; transition: color .18s, background .18s, border-color .18s, transform .18s; }
.anav-item svg { width: 17px; height: 17px; flex: none; }
.anav-item i { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 10px; padding: 1px 7px; border-radius: 999px; background: rgba(6, 10, 15, .8); border: 1px solid var(--line); color: var(--faint); }
.anav-item:hover { color: var(--gold-hi); background: rgba(246, 183, 60, .07); transform: translateX(2px); }
.anav-item.on { color: var(--gold-hi); background: linear-gradient(100deg, rgba(246, 183, 60, .18), rgba(246, 183, 60, .05)); border-color: rgba(246, 183, 60, .38); }
.anav-item.on::before { content: ""; position: absolute; left: -12px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)); box-shadow: 0 0 12px rgba(246, 183, 60, .6); }
.anav-item.on i { color: var(--gold-hi); border-color: rgba(246, 183, 60, .4); }
.arail-foot { padding: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.asession { padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(16, 25, 35, .7); font-size: 11.5px; color: var(--soft); }
.asession b { display: block; font-family: var(--mono); font-size: 15px; color: var(--gold-hi); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.asession span { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--faint); text-transform: uppercase; }
.asession.warn b { color: var(--warn); }

.amain { min-width: 0; padding: 0 0 60px; }
.atop { position: sticky; top: 0; z-index: 45; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 15px 26px; border-bottom: 1px solid var(--line); background: rgba(7, 11, 17, .88); backdrop-filter: blur(14px); }
.atop-title { flex: 1; min-width: 200px; }
.atop-title h2 { font-size: 20px; }
.atop-title p { font-size: 12px; color: var(--faint); margin-top: 1px; }
.atop-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.apanel { padding: 24px 26px 0; }
.apanel-hd { display: flex; align-items: center; gap: 12px; margin: 26px 0 13px; }
.apanel-hd:first-child { margin-top: 0; }
.apanel-hd h3 { font-size: 16px; }
.apanel-hd .hint { font-size: 11.5px; color: var(--faint); margin-left: auto; font-family: var(--mono); }

/* 概览 */
.agrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; }
.agrid.wide { grid-template-columns: 1.35fr 1fr; align-items: start; }
.achart { padding: 18px 20px; }
.achart-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.achart-hd b { font-size: 14px; font-family: var(--display); }
.achart svg { width: 100%; height: 132px; display: block; overflow: visible; }
.achart .axis { font-family: var(--mono); font-size: 8.5px; fill: var(--faint); }
.afeed { padding: 6px 0; max-height: 340px; overflow-y: auto; }
.afeed li { display: flex; align-items: flex-start; gap: 11px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.afeed li:last-child { border-bottom: 0; }
.afeed time { font-family: var(--mono); font-size: 10px; color: var(--faint); flex: none; padding-top: 2px; }
.afeed b { color: var(--text); font-weight: 600; }
.afeed span { color: var(--soft); word-break: break-word; }
.afeed .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; margin-top: 7px; background: var(--gold); box-shadow: 0 0 8px currentColor; }
.afeed .dot.download { background: var(--teal); } .afeed .dot.upload { background: var(--blue); }
.afeed .dot.auth { background: var(--gold); } .afeed .dot.revoke, .afeed .dot.kill, .afeed .dot.purge { background: var(--danger); }
.afeed .dot.login_fail, .afeed .dot.auth_fail { background: var(--warn); }
.arank { display: grid; gap: 8px; padding: 4px 0; }
.arank li { display: flex; align-items: center; gap: 11px; padding: 9px 18px; font-size: 13px; }
.arank .no { font-family: var(--mono); font-size: 11px; color: var(--gold); width: 18px; flex: none; }
.arank b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arank .vbar { width: 92px; flex: none; height: 6px; }
.arank em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--soft); width: 34px; text-align: right; flex: none; }
.acatlist { display: grid; gap: 10px; padding: 16px 18px; }
.acatlist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12.5px; }
.acatlist b { font-weight: 600; color: var(--text); }
.acatlist em { font-style: normal; font-family: var(--mono); color: var(--soft); }
.acatlist .vbar { grid-column: 1 / -1; height: 6px; }

/* 资料管理工具条 / 批量 / 列表 */
.atoolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(12, 19, 27, .8); margin-bottom: 12px; }
.atoolbar .vselect { width: auto; min-width: 126px; padding: 9px 30px 9px 12px; font-size: 12.5px; }
.abulk { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(246, 183, 60, .4); background: linear-gradient(100deg, rgba(246, 183, 60, .12), rgba(22, 34, 46, .8)); margin-bottom: 12px; }
.abulk b { font-family: var(--mono); font-size: 12px; color: var(--gold-hi); }
.abulk .vinput { width: auto; min-width: 130px; padding: 7px 11px; font-size: 12.5px; }
.abulk .sp { flex: 1; }
.alist { display: grid; gap: 8px; }
.arow { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: linear-gradient(150deg, rgba(20, 31, 42, .9), rgba(11, 17, 24, .9)); transition: border-color .18s, background .18s, transform .18s, opacity .18s; }
.arow:hover { border-color: var(--line-2); background: linear-gradient(150deg, rgba(26, 40, 54, .95), rgba(13, 20, 28, .95)); }
.arow.sel { border-color: rgba(246, 183, 60, .55); background: linear-gradient(150deg, rgba(246, 183, 60, .12), rgba(13, 20, 28, .95)); }
.arow.dragging { opacity: .4; }
.arow.drop-line::before { content: ""; position: absolute; left: 8px; right: 8px; top: -5px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--teal)); box-shadow: 0 0 10px rgba(246, 183, 60, .7); }
.arow-grip { flex: none; width: 22px; height: 30px; display: grid; place-items: center; color: var(--faint); cursor: grab; border-radius: 6px; transition: color .16s, background .16s; }
.arow-grip:hover { color: var(--gold-hi); background: var(--gold-soft); }
.arow-grip:active { cursor: grabbing; }
.arow-grip svg { width: 14px; height: 14px; }
.arow-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(6, 10, 15, .6); color: var(--gold); }
.arow-ic svg { width: 17px; height: 17px; }
.arow[data-kind="link"] .arow-ic { color: var(--info); } .arow[data-kind="note"] .arow-ic { color: var(--magenta); }
.arow-main { flex: 1; min-width: 0; }
.arow-main b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 3px; font-family: var(--mono); font-size: 10px; color: var(--faint); }
.arow-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.arow .vbtn.icon { width: 30px; height: 30px; padding: 6px; }
.arow .vbtn.icon svg { width: 14px; height: 14px; }
.atrash .arow { opacity: .78; border-style: dashed; }

/* 会员码生成器 */
.agen { padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: end; }
.agen .vfield { margin-bottom: 0; }
.agen-go { display: flex; align-items: center; gap: 10px; }
.agen-out { padding: 16px 18px; border-top: 1px solid var(--line); }
.agen-out ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 8px; margin-bottom: 12px; }
.agen-out li { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 9px; border: 1px solid rgba(246, 183, 60, .34); background: var(--gold-soft); font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--gold-hi); letter-spacing: .06em; }
.agen-out li span { flex: 1; min-width: 0; }
.acodes-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.acode-cell { display: flex; align-items: center; gap: 8px; }
.acode-cell code { font-family: var(--mono); font-size: 12.5px; color: var(--gold-hi); letter-spacing: .05em; }
.acode-cell .vbtn.icon { width: 26px; height: 26px; padding: 5px; }
.acode-cell .vbtn.icon svg { width: 12px; height: 12px; }

/* 设置 */
.asettings { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.aset-card { padding: 20px; }
.aset-card h3 { font-size: 15.5px; margin-bottom: 4px; }
.aset-card > p { font-size: 12.5px; color: var(--faint); margin-bottom: 16px; }
.aset-card.danger { border-color: rgba(255, 93, 108, .35); background: linear-gradient(160deg, rgba(255, 93, 108, .07), rgba(12, 19, 27, .92)); }
.pw-meter { display: flex; gap: 4px; margin: -6px 0 12px; }
.pw-meter i { flex: 1; height: 4px; border-radius: 999px; background: rgba(126, 160, 190, .18); transition: background .25s; }
.pw-meter i.on1 { background: var(--danger); } .pw-meter i.on2 { background: var(--warn); }
.pw-meter i.on3 { background: var(--lime); } .pw-meter i.on4 { background: var(--ok); }
.pw-hint { font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin: -8px 0 12px; }
.aset-kv { display: grid; gap: 9px; margin-bottom: 16px; }
.aset-kv li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--soft); padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.aset-kv li:last-child { border-bottom: 0; padding-bottom: 0; }
.aset-kv span { flex: none; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; }
.aset-kv b { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--text); text-align: right; word-break: break-all; }

/* 编辑器抽屉内部 */
.ed-kind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.ed-kind button { display: grid; justify-items: center; gap: 6px; padding: 13px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 10, 15, .6); color: var(--soft); font-size: 12.5px; font-weight: 600; transition: border-color .18s, color .18s, background .18s, transform .18s; }
.ed-kind button svg { width: 20px; height: 20px; }
.ed-kind button:hover { transform: translateY(-2px); color: var(--gold-hi); }
.ed-kind button.on { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-hi); box-shadow: 0 6px 18px rgba(246, 183, 60, .16); }
.ed-kind button[disabled] { opacity: .4; pointer-events: none; }
.ed-file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px dashed var(--line-2); background: rgba(6, 10, 15, .55); margin-bottom: 14px; cursor: pointer; transition: border-color .18s, background .18s; }
.ed-file:hover { border-color: var(--gold); background: var(--gold-soft); }
.ed-file svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.ed-file div { flex: 1; min-width: 0; }
.ed-file b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-file span { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.ed-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .gate-in { grid-template-columns: 1fr; gap: 34px; }
  .gate-door { order: -1; }
  .agrid.wide { grid-template-columns: 1fr; }
  .vnav { display: none; }
}
@media (max-width: 900px) {
  .aapp { grid-template-columns: 1fr; }
  .arail { position: sticky; top: 0; height: auto; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); overflow: hidden; }
  .arail-brand { padding: 10px 14px; border-bottom: 0; border-right: 1px solid var(--line); flex: none; }
  .arail-brand span { display: none; }
  .arail-nav { flex-direction: row; overflow-x: auto; padding: 8px 10px; gap: 6px; }
  .anav-item { width: auto; flex: none; padding: 8px 12px; font-size: 12.5px; }
  .anav-item.on::before { display: none; }
  .anav-item i { display: none; }
  .arail-foot { display: none; }
  .atop { padding: 12px 16px; top: 57px; }
  .apanel { padding: 18px 16px 0; }
  .asession-inline { display: inline-flex !important; }
}
@media (max-width: 720px) {
  .gate { padding: 30px 16px 50px; }
  .gate-stats { grid-template-columns: repeat(2, 1fr); }
  .vpay { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .vpay img { width: 104px; }
  .vault { padding: 20px 16px 46px; }
  .vault-hero { padding: 20px; gap: 16px; }
  .v-hero-stats { gap: 16px; }
  .vtoolbar { position: static; }
  .vcount { margin-left: 0; width: 100%; }
  .vlib.grid { grid-template-columns: 1fr; }
  .vlib.grid .vitem-actions { position: static; opacity: 1; transform: none; align-self: flex-start; }
  .vitem { flex-wrap: wrap; }
  .vdialog.drawer { width: 100vw; }
  .vrow { grid-template-columns: 1fr; }
  .arow { flex-wrap: wrap; }
  .arow-acts { width: 100%; justify-content: flex-end; }
  .arow-grip { display: none; }
  .vtable-wrap { border: 0; background: none; overflow: visible; }
  .vtable thead { display: none; }
  .vtable, .vtable tbody, .vtable tr, .vtable td { display: block; width: 100%; }
  .vtable tr { border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(12, 19, 27, .8); margin-bottom: 9px; padding: 6px 4px; }
  .vtable td { border-bottom: 1px solid var(--line); padding: 8px 12px; display: flex; align-items: center; gap: 10px; }
  .vtable td:last-child { border-bottom: 0; }
  .vtable td::before { content: attr(data-l); flex: none; width: 74px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
  .vtable td > * { min-width: 0; }
  .agen { grid-template-columns: 1fr; }
  .vtoast { bottom: 16px; font-size: 12.5px; padding: 10px 16px; }
  .vundo { bottom: 66px; }
}
.asession-inline { display: none; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: var(--soft); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(16, 25, 35, .8); }
.asession-inline b { color: var(--gold-hi); }

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg .aurora, .bg .sweep, .vdrop-in svg, .door-ring, .vbadge-member i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .vdialog[open], .vdialog.drawer[open], .vconfirm[open] { animation: none; }
  .vbtn, .vstat, .vchip, .vitem, .arow, .anav-item { transition: none; }
  .vskeleton { animation: none; }
  .door.shake { animation: none; }
}