DNF90 服务端与启动器完整源码(含 GM 工具功能增强)
服务端(Go): - GM 塞背包/带属性装备发放:在线角色推送 op14 增量物品行,背包实时刷新,无需回角色选择界面 - GM 改金币/改等级:去掉在线拒绝,落库后推送 op14 钱包/op37 等级状态,在线实时刷新 - 等级端点统一切换到新版 GMSetCharacterLevel(自带在线刷新) - 无限/锁死疲劳模式 + 燃烧疲劳:每房间消耗 2 点、打怪与通关经验双倍 - 燃烧疲劳开关时给所有在线角色推送系统提示(op12 mode 0) - 深渊史诗掉率:GM 全局倍率 + 城镇增益药剂窗口倍率,真实接入掉落结算 启动器(Python/JS): - 标题栏自绘、窗口 1204x717、禁止拖拽改大小、仅最小化/关闭 - GM 工具:疲劳与燃烧、深渊史诗掉率、拍卖行上架(单一定价对齐) - 拍卖行上架前端对齐服务端单一价格语义,修复 400 报错
This commit is contained in:
commit
645b64fe21
4388 files changed
+1405457
No files matched your search
@@ -0,0 +1,838 @@
|
||||
/* DNF90 单机模拟器 启动器 · 精美深色主题 */
|
||||
:root {
|
||||
--bg: #0b0b14;
|
||||
--panel: rgba(20, 20, 36, 0.82);
|
||||
--panel-solid: #141424;
|
||||
--border: rgba(255, 255, 255, 0.08);
|
||||
--border-strong: rgba(255, 255, 255, 0.16);
|
||||
--text: #f2f3f8;
|
||||
--text-dim: #b8bcd0;
|
||||
--text-muted: #6d7188;
|
||||
--primary: #7c5cff;
|
||||
--primary-2: #b45cff;
|
||||
--gold: #ffc44d;
|
||||
--danger: #ff5d6c;
|
||||
--green: #35d07f;
|
||||
--radius: 18px;
|
||||
--font: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
}
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
font-family: var(--font);
|
||||
color: var(--text);
|
||||
background: var(--bg);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ============ 无边框窗口标题栏(透明悬浮,与页面背景融为一体) ============ */
|
||||
#titlebar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
padding: 0 14px;
|
||||
background: transparent;
|
||||
border-bottom: none;
|
||||
z-index: 9999;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
cursor: default;
|
||||
}
|
||||
.tb-title { flex: 1; }
|
||||
.tb-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.tb-btn {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
background: rgba(255, 255, 255, 0.07);
|
||||
color: var(--text-dim);
|
||||
font-size: 15px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
backdrop-filter: blur(6px);
|
||||
}
|
||||
.tb-min:hover {
|
||||
background: rgba(255, 255, 255, 0.16);
|
||||
color: var(--text);
|
||||
}
|
||||
.tb-close:hover {
|
||||
background: var(--danger);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
||||
.stage {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: calc(100vh - 40px);
|
||||
margin-top: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
background:
|
||||
radial-gradient(1200px 700px at 20% -10%, rgba(124, 92, 255, 0.22), transparent 55%),
|
||||
radial-gradient(1000px 650px at 100% 0%, rgba(56, 217, 240, 0.12), transparent 50%),
|
||||
radial-gradient(900px 900px at 50% 120%, rgba(180, 92, 255, 0.18), transparent 55%);
|
||||
}
|
||||
|
||||
/* 背景光斑 */
|
||||
.bg-glow {
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
filter: blur(90px);
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
animation: float 12s ease-in-out infinite;
|
||||
}
|
||||
.bg-1 { width: 420px; height: 420px; background: rgba(124,92,255,0.35); top: -120px; left: -80px; }
|
||||
.bg-2 { width: 360px; height: 360px; background: rgba(255,196,77,0.22); bottom: -100px; right: -60px; animation-delay: 3s; }
|
||||
.bg-3 { width: 300px; height: 300px; background: rgba(56,217,240,0.25); bottom: 20%; left: -100px; animation-delay: 6s; }
|
||||
|
||||
@keyframes float {
|
||||
0%, 100% { transform: translate(0, 0) scale(1); }
|
||||
50% { transform: translate(20px, -20px) scale(1.08); }
|
||||
}
|
||||
|
||||
.panel {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
width: 760px;
|
||||
max-width: 96vw;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
|
||||
backdrop-filter: blur(20px);
|
||||
padding: 30px 36px 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
|
||||
}
|
||||
|
||||
@keyframes rise {
|
||||
from { transform: translateY(24px); opacity: 0; }
|
||||
to { transform: none; opacity: 1; }
|
||||
}
|
||||
|
||||
/* 头部 */
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.logo-ring {
|
||||
width: 58px;
|
||||
height: 58px;
|
||||
border-radius: 16px;
|
||||
background: linear-gradient(135deg, var(--primary), var(--primary-2));
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 0 28px rgba(124, 92, 255, 0.45);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.logo-inner {
|
||||
font-size: 28px;
|
||||
font-weight: 800;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.title-box { flex: 1; }
|
||||
.title-box h1 {
|
||||
font-size: 22px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 1px;
|
||||
background: linear-gradient(90deg, #fff, #cfc3ff);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
.subtitle { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; letter-spacing: 0.5px; }
|
||||
|
||||
.status-area {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.account-setting-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 7px 13px;
|
||||
border-radius: 20px;
|
||||
background: rgba(124, 92, 255, 0.14);
|
||||
border: 1px solid rgba(124, 92, 255, 0.35);
|
||||
font-size: 12.5px;
|
||||
color: #cfc3ff;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.account-setting-btn:hover {
|
||||
background: rgba(124, 92, 255, 0.28);
|
||||
border-color: rgba(124, 92, 255, 0.6);
|
||||
color: #fff;
|
||||
}
|
||||
.loadout-btn {
|
||||
background: rgba(56, 189, 248, 0.14);
|
||||
border-color: rgba(56, 189, 248, 0.35);
|
||||
color: #bae6fd;
|
||||
}
|
||||
.loadout-btn:hover {
|
||||
background: rgba(56, 189, 248, 0.28);
|
||||
border-color: rgba(56, 189, 248, 0.6);
|
||||
color: #fff;
|
||||
}
|
||||
.status-badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
padding: 7px 13px;
|
||||
border-radius: 20px;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border: 1px solid var(--border);
|
||||
font-size: 12.5px;
|
||||
color: var(--text-dim);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.status-badge .dot {
|
||||
width: 8px; height: 8px; border-radius: 50%;
|
||||
background: var(--text-muted);
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.status-badge.on .dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
|
||||
.status-badge.off .dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
|
||||
|
||||
/* 按钮区 */
|
||||
.btn-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 18px 20px;
|
||||
border-radius: 14px;
|
||||
border: 1px solid var(--border-strong);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
transition: all 0.18s;
|
||||
overflow: hidden;
|
||||
}
|
||||
.action-btn:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: rgba(255, 255, 255, 0.28);
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
.action-btn:active { transform: translateY(0); }
|
||||
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
|
||||
|
||||
.action-btn .btn-icon {
|
||||
width: 44px; height: 44px;
|
||||
border-radius: 11px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 20px;
|
||||
flex-shrink: 0;
|
||||
color: #fff;
|
||||
}
|
||||
.action-btn .btn-text {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.btn-label { font-size: 16px; font-weight: 700; display: block; white-space: nowrap; }
|
||||
.btn-desc { font-size: 12px; color: var(--text-muted); display: block; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
|
||||
.action-btn.primary .btn-icon {
|
||||
background: linear-gradient(135deg, var(--primary), var(--primary-2));
|
||||
box-shadow: 0 4px 16px rgba(124, 92, 255, 0.4);
|
||||
}
|
||||
.action-btn.primary { border-color: rgba(124, 92, 255, 0.4); }
|
||||
.action-btn.gold .btn-icon {
|
||||
background: linear-gradient(135deg, #ffb84d, #ff8a4d);
|
||||
box-shadow: 0 4px 16px rgba(255, 196, 77, 0.35);
|
||||
}
|
||||
.action-btn.gold { border-color: rgba(255, 196, 77, 0.4); }
|
||||
.action-btn.danger .btn-icon {
|
||||
background: linear-gradient(135deg, #ff5d6c, #ff3d5a);
|
||||
box-shadow: 0 4px 16px rgba(255, 93, 108, 0.35);
|
||||
}
|
||||
.action-btn.danger { border-color: rgba(255, 93, 108, 0.35); }
|
||||
.action-btn:not(.primary):not(.gold):not(.danger) .btn-icon {
|
||||
background: linear-gradient(135deg, #38d9f0, #4d9fff);
|
||||
box-shadow: 0 4px 16px rgba(56, 217, 240, 0.3);
|
||||
}
|
||||
|
||||
/* 日志区 */
|
||||
.log-panel {
|
||||
margin-top: 22px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 180px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.log-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px 14px;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
border-bottom: 1px solid var(--border);
|
||||
letter-spacing: 0.5px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.log-clear {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
}
|
||||
.log-clear:hover { color: var(--text); }
|
||||
.log-body {
|
||||
padding: 10px 14px;
|
||||
font-size: 12.5px;
|
||||
line-height: 1.7;
|
||||
overflow-y: auto;
|
||||
flex: 1;
|
||||
font-family: "Cascadia Code", "Consolas", "Microsoft YaHei", monospace;
|
||||
}
|
||||
/* 日志区自定义滚动条 */
|
||||
.log-body::-webkit-scrollbar { width: 8px; }
|
||||
.log-body::-webkit-scrollbar-track { background: transparent; }
|
||||
.log-body::-webkit-scrollbar-thumb {
|
||||
background: rgba(255, 255, 255, 0.14);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.log-body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.26); }
|
||||
.log-line { color: var(--text-dim); word-break: break-all; }
|
||||
.log-line.muted { color: var(--text-muted); }
|
||||
.log-line.error { color: var(--danger); }
|
||||
.log-line.ok { color: var(--green); }
|
||||
|
||||
/* 底部 */
|
||||
.footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-top: 16px;
|
||||
font-size: 11.5px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.footer .sep { opacity: 0.5; }
|
||||
|
||||
/* 弹窗 */
|
||||
.modal-mask {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 100;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
backdrop-filter: blur(6px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
animation: fadeIn 0.2s;
|
||||
}
|
||||
.modal-mask.hidden { display: none; }
|
||||
.modal {
|
||||
width: 400px;
|
||||
max-width: 92vw;
|
||||
background: var(--panel-solid);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 18px;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
|
||||
overflow: hidden;
|
||||
animation: popIn 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
|
||||
}
|
||||
.modal-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-muted);
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
.modal-close:hover { color: var(--text); }
|
||||
.modal-body {
|
||||
padding: 22px;
|
||||
text-align: center;
|
||||
}
|
||||
.sponsor-tip {
|
||||
font-size: 13px;
|
||||
color: var(--text-dim);
|
||||
line-height: 1.8;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.qrcode-box {
|
||||
width: 240px;
|
||||
height: 240px;
|
||||
margin: 0 auto;
|
||||
border-radius: 14px;
|
||||
border: 1px dashed var(--border-strong);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
overflow: hidden;
|
||||
}
|
||||
.qrcode-box img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
.qrcode-placeholder {
|
||||
font-size: 13px;
|
||||
color: var(--text-muted);
|
||||
padding: 0 20px;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
||||
@keyframes popIn { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
|
||||
|
||||
/* 滚动条 */
|
||||
::-webkit-scrollbar { width: 8px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.btn-grid { grid-template-columns: 1fr; }
|
||||
.header { flex-wrap: wrap; }
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
GM 工具视图样式(内置管理工具)
|
||||
============================================================ */
|
||||
.hidden { display: none !important; }
|
||||
|
||||
.gm-app {
|
||||
display: flex;
|
||||
height: calc(100vh - 40px);
|
||||
margin-top: 40px;
|
||||
width: 100%;
|
||||
background:
|
||||
radial-gradient(1200px 700px at 15% -10%, rgba(124, 92, 255, 0.16), transparent 55%),
|
||||
radial-gradient(1000px 600px at 100% 0%, rgba(56, 217, 240, 0.10), transparent 50%),
|
||||
radial-gradient(900px 900px at 50% 120%, rgba(180, 92, 255, 0.12), transparent 55%),
|
||||
var(--bg);
|
||||
}
|
||||
|
||||
/* 侧边栏 */
|
||||
.gm-sidebar {
|
||||
width: 220px;
|
||||
flex-shrink: 0;
|
||||
background: linear-gradient(180deg, rgba(22, 22, 42, 0.92), rgba(13, 13, 26, 0.96));
|
||||
border-right: 1px solid var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 20px 12px;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.gm-logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 4px 10px 20px;
|
||||
}
|
||||
.gm-logo-mark {
|
||||
width: 38px; height: 38px;
|
||||
border-radius: 11px;
|
||||
background: linear-gradient(135deg, var(--primary), var(--primary-2));
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-weight: 800; font-size: 18px; color: #fff;
|
||||
box-shadow: 0 0 22px rgba(124, 92, 255, 0.35);
|
||||
}
|
||||
.gm-logo-title { font-size: 17px; font-weight: 700; letter-spacing: 0.5px; }
|
||||
.gm-logo-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
|
||||
|
||||
.gm-nav-group {
|
||||
font-size: 10.5px;
|
||||
color: var(--text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1.5px;
|
||||
padding: 16px 12px 6px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.gm-nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 11px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 10px;
|
||||
color: var(--text-dim);
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
transition: all 0.18s;
|
||||
border: 1px solid transparent;
|
||||
user-select: none;
|
||||
}
|
||||
.gm-nav-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
|
||||
.gm-nav-item.active {
|
||||
background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(180, 92, 255, 0.12));
|
||||
color: #fff;
|
||||
border-color: rgba(124, 92, 255, 0.4);
|
||||
box-shadow: 0 0 18px rgba(124, 92, 255, 0.15);
|
||||
}
|
||||
.gm-nav-item .ico { width: 20px; text-align: center; font-size: 16px; }
|
||||
|
||||
.gm-sidebar-foot {
|
||||
margin-top: auto;
|
||||
padding: 12px;
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
.conn-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
|
||||
.conn-dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
|
||||
.conn-dot.off { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
|
||||
|
||||
.gm-back {
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 9px;
|
||||
color: var(--text-dim);
|
||||
padding: 9px 12px;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
transition: all 0.16s;
|
||||
}
|
||||
.gm-back:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
|
||||
|
||||
/* 主内容 */
|
||||
.gm-main {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.gm-topbar {
|
||||
height: 58px;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 0 22px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: rgba(16, 16, 28, 0.6);
|
||||
backdrop-filter: blur(14px);
|
||||
}
|
||||
.gm-topbar h1 { font-size: 17px; font-weight: 700; }
|
||||
.gm-crumb { color: var(--text-muted); font-size: 12px; }
|
||||
.topbar-spacer { flex: 1; }
|
||||
|
||||
.gm-content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 22px;
|
||||
}
|
||||
|
||||
/* GM 通用组件 */
|
||||
.gm-card {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
padding: 20px;
|
||||
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
.gm-card + .gm-card { margin-top: 16px; }
|
||||
.gm-card-title {
|
||||
font-size: 15px; font-weight: 700; margin-bottom: 14px;
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
}
|
||||
.gm-card-title .dot { width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--primary), var(--primary-2)); }
|
||||
|
||||
.gm-grid { display: grid; gap: 16px; }
|
||||
.gm-grid-2 { grid-template-columns: 1fr 1fr; }
|
||||
.gm-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
|
||||
.gm-grid-4 { grid-template-columns: repeat(4, 1fr); }
|
||||
@media (max-width: 1100px) { .gm-grid-3, .gm-grid-4 { grid-template-columns: 1fr 1fr; } }
|
||||
@media (max-width: 720px) { .gm-grid-2, .gm-grid-3, .gm-grid-4 { grid-template-columns: 1fr; } }
|
||||
|
||||
/* 统计卡片 */
|
||||
.gm-stat {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
padding: 18px 20px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.gm-stat .label { font-size: 12.5px; color: var(--text-muted); }
|
||||
.gm-stat .value { font-size: 28px; font-weight: 800; margin-top: 6px; letter-spacing: -0.5px; }
|
||||
.gm-stat .unit { font-size: 13px; color: var(--text-muted); margin-left: 3px; font-weight: 500; }
|
||||
.gm-stat .ico-bg { position: absolute; right: -10px; bottom: -14px; font-size: 70px; opacity: 0.08; }
|
||||
.gm-stat.accent { border-color: rgba(124, 92, 255, 0.4); }
|
||||
.gm-stat.accent .value { color: #a98aff; }
|
||||
|
||||
/* GM 按钮 */
|
||||
.gm-btn {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
||||
padding: 9px 16px;
|
||||
border-radius: 9px;
|
||||
border: 1px solid var(--border-strong);
|
||||
background: #1d1d36;
|
||||
color: var(--text);
|
||||
font-size: 13.5px;
|
||||
font-weight: 600;
|
||||
transition: all 0.16s;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
font-family: var(--font);
|
||||
}
|
||||
.gm-btn:hover { background: #24243f; border-color: rgba(255,255,255,0.25); transform: translateY(-1px); }
|
||||
.gm-btn:active { transform: translateY(0); }
|
||||
.gm-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
|
||||
|
||||
.gm-btn-primary {
|
||||
background: linear-gradient(135deg, var(--primary), var(--primary-2));
|
||||
border-color: transparent;
|
||||
box-shadow: 0 4px 18px rgba(124, 92, 255, 0.35);
|
||||
}
|
||||
.gm-btn-primary:hover { filter: brightness(1.12); background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
|
||||
.gm-btn-danger { background: linear-gradient(135deg, #ff5d6c, #ff3d5a); border-color: transparent; }
|
||||
.gm-btn-danger:hover { filter: brightness(1.1); background: linear-gradient(135deg, #ff5d6c, #ff3d5a); }
|
||||
.gm-btn-ghost { background: transparent; }
|
||||
.gm-btn-sm { padding: 6px 12px; font-size: 12.5px; }
|
||||
.gm-btn-xs { padding: 4px 9px; font-size: 11.5px; border-radius: 7px; }
|
||||
|
||||
/* 物品分区 Tab(装备 / 道具) */
|
||||
.gm-item-tabs {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
margin-bottom: 12px;
|
||||
padding: 4px;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 11px;
|
||||
}
|
||||
.gm-item-tab {
|
||||
flex: 1;
|
||||
padding: 8px 0;
|
||||
border: none;
|
||||
background: transparent;
|
||||
border-radius: 8px;
|
||||
color: var(--text-dim);
|
||||
font-size: 13.5px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.16s;
|
||||
font-family: var(--font);
|
||||
}
|
||||
.gm-item-tab:hover { color: var(--text); }
|
||||
.gm-item-tab.active {
|
||||
background: linear-gradient(135deg, var(--primary), var(--primary-2));
|
||||
color: #fff;
|
||||
box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35);
|
||||
}
|
||||
|
||||
/* GM 输入 */
|
||||
.gm-field { display: flex; flex-direction: column; gap: 6px; }
|
||||
.gm-field label { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
|
||||
.gm-input, .gm-select, .gm-textarea {
|
||||
background: #10101c;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 9px;
|
||||
padding: 9px 12px;
|
||||
font-size: 13.5px;
|
||||
color: var(--text);
|
||||
outline: none;
|
||||
transition: all 0.16s;
|
||||
width: 100%;
|
||||
font-family: var(--font);
|
||||
}
|
||||
.gm-input:focus, .gm-select:focus, .gm-textarea:focus {
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
|
||||
}
|
||||
.gm-input::placeholder, .gm-textarea::placeholder { color: var(--text-muted); }
|
||||
.gm-select option { background: #16162a; color: var(--text); }
|
||||
.gm-textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
|
||||
|
||||
/* GM 表格 */
|
||||
.gm-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }
|
||||
.gm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
||||
.gm-table thead th {
|
||||
text-align: left; padding: 11px 14px;
|
||||
background: #16162a;
|
||||
color: var(--text-muted);
|
||||
font-weight: 600; font-size: 12px;
|
||||
letter-spacing: 0.3px;
|
||||
position: sticky; top: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.gm-table tbody td { padding: 11px 14px; border-top: 1px solid var(--border); color: var(--text-dim); }
|
||||
.gm-table tbody tr { transition: background 0.12s; }
|
||||
.gm-table tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
|
||||
|
||||
/* GM 标签 */
|
||||
.gm-tag {
|
||||
display: inline-flex; align-items: center;
|
||||
padding: 3px 9px; border-radius: 20px;
|
||||
font-size: 11.5px; font-weight: 600;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.gm-tag-green { background: rgba(53, 208, 127, 0.15); color: var(--green); }
|
||||
.gm-tag-red { background: rgba(255, 93, 108, 0.15); color: var(--danger); }
|
||||
.gm-tag-gray { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
|
||||
.gm-tag-gold { background: rgba(255, 196, 77, 0.15); color: var(--gold); }
|
||||
.gm-tag-purple { background: rgba(124, 92, 255, 0.16); color: #b79bff; }
|
||||
|
||||
/* GM Toast */
|
||||
.gm-toast-wrap {
|
||||
position: fixed; top: 20px; right: 20px; z-index: 999;
|
||||
display: flex; flex-direction: column; gap: 10px;
|
||||
}
|
||||
.gm-toast {
|
||||
min-width: 240px; max-width: 360px;
|
||||
padding: 13px 16px;
|
||||
border-radius: 11px;
|
||||
background: #16162a;
|
||||
border: 1px solid var(--border-strong);
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
|
||||
font-size: 13.5px;
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
animation: slideIn 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
|
||||
}
|
||||
.gm-toast.ok { border-left: 3px solid var(--green); }
|
||||
.gm-toast.err { border-left: 3px solid var(--danger); }
|
||||
.gm-toast.info { border-left: 3px solid #4d9fff; }
|
||||
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
|
||||
|
||||
/* GM 加载 / 空态 */
|
||||
.gm-loading {
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
||||
padding: 60px 0; gap: 16px; color: var(--text-muted);
|
||||
}
|
||||
.gm-spinner {
|
||||
width: 34px; height: 34px;
|
||||
border: 3px solid rgba(255,255,255,0.12);
|
||||
border-top-color: var(--primary);
|
||||
border-radius: 50%;
|
||||
animation: spin 0.8s linear infinite;
|
||||
}
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
.gm-empty {
|
||||
text-align: center; padding: 50px 20px; color: var(--text-muted);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* GM 其他 */
|
||||
.gm-search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
|
||||
.gm-search-row .gm-input { flex: 1; min-width: 160px; }
|
||||
.gm-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
|
||||
.gm-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
|
||||
.gm-num-gold { color: var(--gold); font-weight: 700; }
|
||||
.gm-num-cyan { color: #38d9f0; font-weight: 700; }
|
||||
|
||||
.gm-avatar {
|
||||
width: 40px; height: 40px; border-radius: 10px;
|
||||
background: linear-gradient(135deg, var(--primary), var(--primary-2));
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
color: #fff; font-weight: 700; font-size: 16px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.gm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
|
||||
.gm-form-row .full { grid-column: 1 / -1; }
|
||||
@media (max-width: 620px) { .gm-form-row { grid-template-columns: 1fr; } }
|
||||
|
||||
/* 危险区 */
|
||||
.gm-danger-zone {
|
||||
border: 1px solid rgba(255, 93, 108, 0.35);
|
||||
border-radius: 12px;
|
||||
padding: 18px;
|
||||
background: rgba(255, 93, 108, 0.05);
|
||||
}
|
||||
|
||||
/* ===== 账号设置面板 ===== */
|
||||
.account-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
margin-bottom: 10px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
transition: border-color 0.15s, background 0.15s;
|
||||
}
|
||||
.account-row.default {
|
||||
border-color: rgba(124, 92, 255, 0.55);
|
||||
background: rgba(124, 92, 255, 0.08);
|
||||
}
|
||||
.account-info { min-width: 0; }
|
||||
.account-user {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.account-pass {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
margin-top: 3px;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
.account-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.accounts-add {
|
||||
border-top: 1px solid var(--border);
|
||||
padding-top: 14px;
|
||||
}
|
||||
.accounts-add-title {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text-dim);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
Reference in new issue
Block a user