6a76993ca8
Co-authored-by: Cursor <cursoragent@cursor.com>
2471 lines
43 KiB
CSS
2471 lines
43 KiB
CSS
:root {
|
|
--bg: #050810;
|
|
--bg-elevated: #0a1018;
|
|
--panel: rgba(12, 20, 32, 0.82);
|
|
--panel-hover: rgba(18, 28, 44, 0.9);
|
|
--text: #e8f4ff;
|
|
--muted: #6b8aa8;
|
|
--border: rgba(0, 212, 255, 0.22);
|
|
--border-soft: rgba(0, 212, 255, 0.1);
|
|
--green: #00ff9d;
|
|
--red: #ff4d6d;
|
|
--accent: #00d4ff;
|
|
--accent-2: #7b61ff;
|
|
--accent-dim: rgba(0, 212, 255, 0.12);
|
|
--glow: 0 0 24px rgba(0, 212, 255, 0.15);
|
|
--radius: 10px;
|
|
--shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
|
|
--font: "JetBrains Mono", ui-monospace, Consolas, monospace;
|
|
--display: "Orbitron", var(--font);
|
|
--mono: var(--font);
|
|
--layout-max: 1520px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font);
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
margin: 0;
|
|
font-size: 13px;
|
|
line-height: 1.55;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
text-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
|
|
}
|
|
|
|
.app-bg,
|
|
.login-bg {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
background:
|
|
linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px),
|
|
radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.12), transparent),
|
|
radial-gradient(ellipse 60% 40% at 100% 100%, rgba(123, 97, 255, 0.08), transparent);
|
|
background-size: 48px 48px, 48px 48px, auto, auto;
|
|
}
|
|
|
|
.app-bg::after,
|
|
.login-bg::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0;
|
|
background: repeating-linear-gradient(
|
|
0deg,
|
|
transparent,
|
|
transparent 2px,
|
|
rgba(0, 0, 0, 0.03) 2px,
|
|
rgba(0, 0, 0, 0.03) 4px
|
|
);
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.app-shell {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 100%;
|
|
max-width: var(--layout-max);
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
padding: 0 24px 48px;
|
|
}
|
|
|
|
.app-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 18px 0;
|
|
border-bottom: 1px solid var(--border-soft);
|
|
margin-bottom: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.brand-mark {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(0, 212, 255, 0.5);
|
|
animation: pulse-dot 2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes pulse-dot {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
50% {
|
|
opacity: 0.7;
|
|
transform: scale(0.92);
|
|
}
|
|
}
|
|
|
|
.brand-title {
|
|
font-family: var(--display);
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.08em;
|
|
color: var(--text);
|
|
}
|
|
|
|
.brand-sub {
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
letter-spacing: 0.14em;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.sys-pill {
|
|
font-size: 10px;
|
|
letter-spacing: 0.12em;
|
|
padding: 5px 10px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--border);
|
|
color: var(--accent);
|
|
background: var(--accent-dim);
|
|
font-family: var(--display);
|
|
}
|
|
|
|
.sys-pill.warn {
|
|
color: var(--red);
|
|
border-color: rgba(255, 77, 109, 0.4);
|
|
background: rgba(255, 77, 109, 0.1);
|
|
}
|
|
|
|
.sys-pill.syncing {
|
|
opacity: 0.85;
|
|
animation: sys-pill-pulse 1.2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes sys-pill-pulse {
|
|
50% {
|
|
opacity: 0.55;
|
|
}
|
|
}
|
|
|
|
.top-nav {
|
|
display: flex;
|
|
gap: 4px;
|
|
background: rgba(0, 0, 0, 0.35);
|
|
padding: 4px;
|
|
border-radius: var(--radius);
|
|
border: 1px solid var(--border-soft);
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.top-nav a {
|
|
padding: 8px 16px;
|
|
border-radius: 7px;
|
|
text-decoration: none;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
letter-spacing: 0.04em;
|
|
transition: background 0.15s, color 0.15s, box-shadow 0.15s;
|
|
}
|
|
|
|
.top-nav a:hover {
|
|
color: var(--text);
|
|
background: var(--panel-hover);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.top-nav a.active {
|
|
background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 97, 255, 0.15));
|
|
color: var(--accent);
|
|
border: 1px solid var(--border);
|
|
box-shadow: var(--glow);
|
|
}
|
|
|
|
button.ghost {
|
|
background: transparent;
|
|
border: 1px solid var(--border-soft);
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
padding: 7px 12px;
|
|
}
|
|
|
|
button.ghost:hover:not(:disabled) {
|
|
color: var(--text);
|
|
border-color: var(--border);
|
|
}
|
|
|
|
.page.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.page-head {
|
|
margin: 24px 0 16px;
|
|
}
|
|
|
|
.page-head h1 {
|
|
margin: 0 0 6px;
|
|
font-family: var(--display);
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.06em;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.head-tag {
|
|
font-size: 11px;
|
|
padding: 3px 8px;
|
|
border-radius: 4px;
|
|
background: var(--accent-dim);
|
|
border: 1px solid var(--border);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.page-desc {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.hint-box {
|
|
margin-bottom: 16px;
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: var(--radius);
|
|
background: var(--panel);
|
|
backdrop-filter: blur(10px);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hint-box summary {
|
|
padding: 10px 14px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
user-select: none;
|
|
list-style: none;
|
|
}
|
|
.hint-box summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
.hint-box summary::before {
|
|
content: "▸ ";
|
|
color: var(--accent);
|
|
}
|
|
.hint-box[open] summary::before {
|
|
content: "▾ ";
|
|
}
|
|
|
|
.hint-box .hint-body {
|
|
padding: 0 14px 12px;
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
line-height: 1.65;
|
|
border-top: 1px solid var(--border-soft);
|
|
}
|
|
.hint-box .hint-body code {
|
|
font-family: var(--mono);
|
|
font-size: 10px;
|
|
background: rgba(0, 212, 255, 0.08);
|
|
padding: 1px 5px;
|
|
border-radius: 4px;
|
|
color: var(--accent);
|
|
border: 1px solid var(--border-soft);
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
align-items: center;
|
|
padding: 12px 14px;
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
margin-bottom: 16px;
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: var(--glow);
|
|
}
|
|
|
|
.toolbar-spacer {
|
|
flex: 1;
|
|
min-width: 8px;
|
|
}
|
|
|
|
.toolbar-meta {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
button,
|
|
.btn {
|
|
background: rgba(0, 0, 0, 0.4);
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 8px 16px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
font-family: var(--font);
|
|
font-weight: 500;
|
|
letter-spacing: 0.03em;
|
|
transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
|
|
}
|
|
|
|
button:hover:not(:disabled) {
|
|
border-color: var(--accent);
|
|
background: var(--panel-hover);
|
|
box-shadow: 0 0 16px rgba(0, 212, 255, 0.12);
|
|
}
|
|
|
|
button.primary {
|
|
background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(123, 97, 255, 0.2));
|
|
border-color: var(--accent);
|
|
color: #fff;
|
|
text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
|
|
}
|
|
|
|
button.danger {
|
|
border-color: rgba(255, 77, 109, 0.5);
|
|
color: var(--red);
|
|
background: rgba(255, 77, 109, 0.08);
|
|
}
|
|
|
|
button.danger:hover:not(:disabled) {
|
|
background: rgba(255, 77, 109, 0.15);
|
|
border-color: var(--red);
|
|
box-shadow: 0 0 16px rgba(255, 77, 109, 0.2);
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-link {
|
|
background: transparent;
|
|
border: 1px solid var(--border-soft);
|
|
color: var(--accent);
|
|
padding: 5px 10px;
|
|
font-size: 11px;
|
|
border-radius: 6px;
|
|
}
|
|
.btn-link:hover {
|
|
background: var(--accent-dim);
|
|
text-decoration: none;
|
|
box-shadow: var(--glow);
|
|
}
|
|
|
|
.btn-close-pos.btn-sm {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.data-table .td-actions {
|
|
text-align: right;
|
|
width: 1%;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chk-label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
backdrop-filter: blur(12px);
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
position: relative;
|
|
}
|
|
|
|
.card::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: linear-gradient(90deg, transparent, var(--accent), transparent);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.card.card-online {
|
|
border-color: rgba(0, 255, 157, 0.35);
|
|
}
|
|
.card.card-online::before {
|
|
background: linear-gradient(90deg, transparent, var(--green), transparent);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.card.card-offline {
|
|
border-color: rgba(255, 77, 109, 0.3);
|
|
}
|
|
.card.card-offline::before {
|
|
background: linear-gradient(90deg, transparent, var(--red), transparent);
|
|
}
|
|
|
|
.card:hover {
|
|
border-color: rgba(0, 212, 255, 0.45);
|
|
box-shadow: var(--glow);
|
|
}
|
|
|
|
.card-head {
|
|
padding: 14px 16px;
|
|
border-bottom: 1px solid var(--border-soft);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
}
|
|
|
|
.card-title-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
.status-dot.ok {
|
|
background: var(--green);
|
|
box-shadow: 0 0 8px var(--green);
|
|
}
|
|
.status-dot.bad {
|
|
background: var(--red);
|
|
box-shadow: 0 0 8px var(--red);
|
|
}
|
|
|
|
.card-title {
|
|
font-family: var(--display);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.05em;
|
|
margin: 0 0 4px;
|
|
}
|
|
|
|
.card-sub {
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
font-family: var(--mono);
|
|
word-break: break-all;
|
|
}
|
|
|
|
.card-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.card-body {
|
|
padding: 14px 16px;
|
|
}
|
|
|
|
.grid-monitor {
|
|
display: grid;
|
|
gap: 16px;
|
|
/* 列数由 app.js syncMonitorGridColumns 按卡片数量设置 */
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.card-expand-zone {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.card-expand-zone:hover .card-title {
|
|
color: var(--accent);
|
|
}
|
|
|
|
body.hub-fullscreen-open {
|
|
overflow: hidden;
|
|
}
|
|
|
|
body.hub-instance-frame-open {
|
|
overflow: hidden;
|
|
}
|
|
|
|
body.market-chart-fs-open {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.instance-frame-shell {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 200;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg, #0a0e14);
|
|
}
|
|
|
|
.instance-frame-shell.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.instance-frame-toolbar {
|
|
flex: 0 0 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 16px;
|
|
border-bottom: 1px solid var(--border-soft, #2a3150);
|
|
background: rgba(10, 14, 20, 0.98);
|
|
}
|
|
|
|
.instance-frame-title {
|
|
flex: 1;
|
|
font-weight: 600;
|
|
color: var(--text, #dbe4ff);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.instance-frame-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.instance-frame {
|
|
flex: 1 1 auto;
|
|
width: 100%;
|
|
border: none;
|
|
background: #0f1216;
|
|
}
|
|
|
|
.exchange-fullscreen {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 150;
|
|
background: rgba(2, 6, 12, 0.92);
|
|
backdrop-filter: blur(6px);
|
|
overflow: auto;
|
|
padding: 16px 20px 24px;
|
|
}
|
|
|
|
.exchange-fullscreen.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.exchange-fullscreen-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 0;
|
|
border: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.exchange-fullscreen-panel {
|
|
position: relative;
|
|
z-index: 1;
|
|
max-width: min(1800px, 98vw);
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.fs-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 16px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid var(--border-soft);
|
|
}
|
|
|
|
.fs-title {
|
|
margin: 0;
|
|
font-family: var(--display);
|
|
font-size: 18px;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.fs-sub {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
margin-top: 4px;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.fs-head-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.card-expand-hint {
|
|
margin-top: 12px;
|
|
padding: 8px 10px;
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
text-align: center;
|
|
border: 1px dashed var(--border-soft);
|
|
border-radius: 8px;
|
|
background: rgba(0, 212, 255, 0.03);
|
|
}
|
|
|
|
.compact-pos-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.compact-pos-line {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
padding: 6px 8px;
|
|
background: rgba(0, 0, 0, 0.25);
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border-soft);
|
|
}
|
|
|
|
.hub-pos-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
/* 全屏放大:持仓卡片横向排列,列数随仓位数量自适应 */
|
|
.exchange-fullscreen .hub-pos-list {
|
|
display: grid;
|
|
gap: 14px;
|
|
align-items: stretch;
|
|
width: 100%;
|
|
}
|
|
|
|
.exchange-fullscreen .hub-pos-list.count-1 {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
.exchange-fullscreen .hub-pos-list.count-1 .hub-pos-card.pos-card {
|
|
max-width: min(960px, 100%);
|
|
margin-inline: auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.exchange-fullscreen .hub-pos-list.count-2 {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.exchange-fullscreen .hub-pos-list.count-3 {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.exchange-fullscreen .hub-pos-list.count-4 {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.exchange-fullscreen .hub-pos-list.count-5,
|
|
.exchange-fullscreen .hub-pos-list.count-6 {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.exchange-fullscreen .hub-pos-list.count-many {
|
|
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
|
}
|
|
|
|
.exchange-fullscreen .hub-pos-card.pos-card {
|
|
min-width: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.exchange-fullscreen .hub-pos-list.count-3,
|
|
.exchange-fullscreen .hub-pos-list.count-5,
|
|
.exchange-fullscreen .hub-pos-list.count-6 {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
.exchange-fullscreen .hub-pos-list.count-many {
|
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.exchange-fullscreen .hub-pos-list.count-2,
|
|
.exchange-fullscreen .hub-pos-list.count-3,
|
|
.exchange-fullscreen .hub-pos-list.count-4,
|
|
.exchange-fullscreen .hub-pos-list.count-5,
|
|
.exchange-fullscreen .hub-pos-list.count-6,
|
|
.exchange-fullscreen .hub-pos-list.count-many {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
.exchange-fullscreen .hub-pos-list.count-1 .hub-pos-card.pos-card {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
/* 对齐实盘「实时持仓」pos-card */
|
|
.hub-pos-card.pos-card {
|
|
background: rgba(10, 16, 28, 0.95);
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: 10px;
|
|
padding: 12px 14px;
|
|
}
|
|
|
|
.hub-pos-card .pos-card-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.hub-pos-card .pos-card-symbol {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
min-width: 0;
|
|
}
|
|
|
|
.hub-pos-card .pos-card-symbol strong {
|
|
font-size: 14px;
|
|
color: var(--text);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.hub-pos-card .pos-side-badge {
|
|
padding: 3px 8px;
|
|
border-radius: 6px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.hub-pos-card .pos-side-long,
|
|
.hub-pos-card .pos-side-badge.side-long {
|
|
background: rgba(0, 255, 157, 0.12);
|
|
color: var(--green);
|
|
border: 1px solid rgba(0, 255, 157, 0.35);
|
|
}
|
|
|
|
.hub-pos-card .pos-side-short,
|
|
.hub-pos-card .pos-side-badge.side-short {
|
|
background: rgba(255, 77, 109, 0.12);
|
|
color: var(--red);
|
|
border: 1px solid rgba(255, 77, 109, 0.35);
|
|
}
|
|
|
|
.side-long {
|
|
color: var(--green);
|
|
font-weight: 600;
|
|
text-shadow: 0 0 10px rgba(0, 255, 157, 0.25);
|
|
}
|
|
|
|
.side-short {
|
|
color: var(--red);
|
|
font-weight: 600;
|
|
text-shadow: 0 0 10px rgba(255, 77, 109, 0.25);
|
|
}
|
|
|
|
.data-table td.side-long,
|
|
.data-table td.side-short {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.hub-pos-card .pos-head-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.hub-pos-card .pos-entrust-btn {
|
|
padding: 6px 12px;
|
|
background: rgba(42, 74, 122, 0.9);
|
|
color: #8fc8ff;
|
|
border: 1px solid rgba(0, 212, 255, 0.25);
|
|
border-radius: 8px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.hub-pos-card .pos-close-btn {
|
|
padding: 6px 14px;
|
|
background: rgba(196, 84, 84, 0.95);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.hub-pos-card .pos-meta {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
line-height: 1.45;
|
|
margin-bottom: 12px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px 0;
|
|
}
|
|
|
|
.hub-pos-card .pos-meta-item:not(:last-child)::after {
|
|
content: "|";
|
|
margin: 0 8px;
|
|
color: var(--border-soft);
|
|
}
|
|
|
|
.hub-pos-card .pos-meta-on {
|
|
color: #6eb5ff;
|
|
}
|
|
|
|
.hub-pos-card .pos-meta-off {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.hub-pos-card .pos-breakeven-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 2px 8px;
|
|
border-radius: 6px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
background: #1a3d2e;
|
|
color: #4cd97f;
|
|
}
|
|
|
|
.pos-breakeven-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
margin-left: 6px;
|
|
padding: 2px 8px;
|
|
border-radius: 6px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
background: #1a3d2e;
|
|
color: #4cd97f;
|
|
vertical-align: middle;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.data-table .td-symbol {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.hub-pos-card .pos-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 12px 14px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.hub-pos-card .pos-cell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.hub-pos-card .pos-label {
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.hub-pos-card .pos-value {
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.hub-pos-card .pos-value.pnl-pos {
|
|
color: var(--green);
|
|
font-weight: 600;
|
|
text-shadow: 0 0 12px rgba(0, 255, 157, 0.25);
|
|
}
|
|
|
|
.hub-pos-card .pos-value.pnl-neg {
|
|
color: var(--red);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.hub-pos-card .pos-footer {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px 16px;
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.hub-pos-card .pos-ex-orders {
|
|
margin-top: 10px;
|
|
padding-top: 10px;
|
|
border-top: 1px dashed var(--border-soft);
|
|
}
|
|
|
|
.hub-pos-card .pos-ex-orders-title {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.hub-pos-card .pos-ex-order-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.hub-pos-card .pos-ex-order-main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.hub-pos-card .pos-ex-cancel-btn {
|
|
padding: 3px 10px;
|
|
background: rgba(58, 48, 72, 0.9);
|
|
color: #d4b8ff;
|
|
border: 1px solid rgba(123, 97, 255, 0.35);
|
|
border-radius: 6px;
|
|
font-size: 11px;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.hub-pos-card .pos-orders-collapse {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.hub-section-card {
|
|
margin-top: 14px;
|
|
padding: 12px 14px;
|
|
background: rgba(0, 0, 0, 0.22);
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.hub-section-head {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--accent);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.hub-section-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.hub-key-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* 全屏放大:关键位 3 列网格 */
|
|
.exchange-fullscreen .hub-key-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 12px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.exchange-fullscreen .hub-key-list .hub-mini-card {
|
|
min-width: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.exchange-fullscreen .hub-key-list {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.exchange-fullscreen .hub-key-list {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|
|
|
|
.hub-mini-card {
|
|
padding: 10px 12px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.hub-mini-card.hub-key-pending,
|
|
.list-line.hub-key-pending {
|
|
border-color: rgba(0, 212, 255, 0.55);
|
|
background: rgba(0, 212, 255, 0.08);
|
|
box-shadow: 0 0 16px rgba(0, 212, 255, 0.12);
|
|
}
|
|
|
|
.hub-key-pending-tag {
|
|
display: inline-block;
|
|
margin-left: 6px;
|
|
padding: 1px 7px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
background: rgba(0, 212, 255, 0.15);
|
|
border: 1px solid rgba(0, 212, 255, 0.45);
|
|
border-radius: 4px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.hub-key-pending .hub-key-status-line,
|
|
.list-line.hub-key-pending {
|
|
color: var(--text);
|
|
}
|
|
|
|
.hub-mini-title {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.hub-mini-line {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.pos-empty {
|
|
padding: 18px;
|
|
text-align: center;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
border: 1px dashed var(--border-soft);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
@media (max-width: 520px) {
|
|
.hub-pos-card .pos-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
.settings-grid-wrap {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.stat-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.stat-box {
|
|
background: rgba(0, 0, 0, 0.35);
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 17px;
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--text);
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
margin: 14px 0 8px;
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid var(--border-soft);
|
|
}
|
|
|
|
.section-title:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.pos-block {
|
|
margin-bottom: 14px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px dashed var(--border-soft);
|
|
}
|
|
|
|
.pos-block:last-child {
|
|
border-bottom: none;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.pos-action-group {
|
|
display: inline-flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 6px;
|
|
flex-wrap: nowrap;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.data-table .td-actions .btn-sm {
|
|
margin: 0;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
button.btn-sm {
|
|
padding: 4px 11px;
|
|
font-size: 11px;
|
|
line-height: 1.35;
|
|
border-radius: 6px;
|
|
min-width: 48px;
|
|
}
|
|
|
|
.btn-place-tpsl.btn-sm {
|
|
border-color: rgba(0, 212, 255, 0.35);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.pos-orders-collapse {
|
|
margin: 10px 0 0;
|
|
padding: 0;
|
|
background: rgba(0, 0, 0, 0.28);
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.pos-orders-collapse-summary {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 8px 10px;
|
|
cursor: pointer;
|
|
list-style: none;
|
|
user-select: none;
|
|
background: rgba(0, 212, 255, 0.04);
|
|
border-bottom: 1px solid transparent;
|
|
}
|
|
|
|
.pos-orders-collapse[open] > .pos-orders-collapse-summary {
|
|
border-bottom-color: var(--border-soft);
|
|
}
|
|
|
|
.pos-orders-collapse-summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.pos-orders-collapse-summary::before {
|
|
content: "▸";
|
|
flex-shrink: 0;
|
|
color: var(--accent);
|
|
font-size: 11px;
|
|
width: 12px;
|
|
transition: transform 0.15s ease;
|
|
}
|
|
|
|
.pos-orders-collapse[open] > .pos-orders-collapse-summary::before {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.pos-orders-collapse-label {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
color: var(--text);
|
|
}
|
|
|
|
.pos-orders-collapse-label em {
|
|
font-style: normal;
|
|
color: var(--accent);
|
|
margin-left: 2px;
|
|
}
|
|
|
|
.pos-orders-collapse-meta {
|
|
flex: 1;
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
min-width: 0;
|
|
}
|
|
|
|
.pos-orders-collapse-summary .btn-cancel-cond-all {
|
|
flex-shrink: 0;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.pos-orders-collapse-body {
|
|
padding: 8px 10px 10px;
|
|
}
|
|
|
|
.orders-section + .orders-section {
|
|
margin-top: 10px;
|
|
padding-top: 10px;
|
|
border-top: 1px dashed var(--border-soft);
|
|
}
|
|
|
|
.orders-section-head {
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.data-table-sub {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.data-table-sub th,
|
|
.data-table-sub td {
|
|
padding: 5px 6px;
|
|
}
|
|
|
|
.order-empty {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
padding: 6px 4px 8px;
|
|
}
|
|
|
|
.modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 200;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 16px;
|
|
}
|
|
|
|
.modal.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.modal-backdrop {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.65);
|
|
}
|
|
|
|
.modal-panel {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 100%;
|
|
max-width: 380px;
|
|
padding: 20px 22px;
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.modal-panel h3 {
|
|
margin: 0 0 8px;
|
|
font-family: var(--display);
|
|
font-size: 14px;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.modal-meta {
|
|
margin: 0 0 14px;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.modal-field {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.modal-field label {
|
|
display: block;
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
margin-bottom: 4px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.modal-field input {
|
|
width: 100%;
|
|
padding: 8px 10px;
|
|
background: rgba(0, 0, 0, 0.35);
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: 6px;
|
|
color: var(--text);
|
|
font-family: var(--font);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.modal-hint {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
margin: 0 0 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.table-scroll {
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.data-table {
|
|
width: 100%;
|
|
min-width: 300px;
|
|
border-collapse: collapse;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.data-table th {
|
|
color: var(--muted);
|
|
font-weight: 500;
|
|
font-size: 10px;
|
|
padding: 6px 8px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border-soft);
|
|
}
|
|
|
|
.data-table td {
|
|
padding: 8px;
|
|
border-bottom: 1px solid var(--border-soft);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.data-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.list-line {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
padding: 6px 0;
|
|
border-bottom: 1px dashed var(--border-soft);
|
|
line-height: 1.45;
|
|
}
|
|
.list-line:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.empty-hint {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.board-loading-sub {
|
|
margin: 12px 0 0;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
color: var(--muted);
|
|
max-width: 36rem;
|
|
}
|
|
|
|
.board-loading {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
min-height: 120px;
|
|
padding: 24px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
border: 1px dashed var(--border-soft);
|
|
border-radius: var(--radius);
|
|
background: rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.board-loading-spin {
|
|
width: 18px;
|
|
height: 18px;
|
|
border: 2px solid var(--border-soft);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: hub-spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes hub-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.pnl-pos {
|
|
color: var(--green);
|
|
text-shadow: 0 0 12px rgba(0, 255, 157, 0.3);
|
|
}
|
|
.pnl-neg {
|
|
color: var(--red);
|
|
}
|
|
|
|
.data-table td.pnl-pos {
|
|
color: var(--green);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.data-table td.pnl-neg {
|
|
color: var(--red);
|
|
font-weight: 600;
|
|
}
|
|
.err {
|
|
color: var(--red);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.badge {
|
|
font-size: 9px;
|
|
padding: 2px 8px;
|
|
border-radius: 999px;
|
|
background: var(--accent-dim);
|
|
color: var(--accent);
|
|
border: 1px solid var(--border);
|
|
white-space: nowrap;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.settings-meta-line {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
padding: 10px 14px;
|
|
background: var(--panel);
|
|
border-left: 3px solid var(--accent);
|
|
border-radius: 0 var(--radius) var(--radius) 0;
|
|
margin-bottom: 16px;
|
|
line-height: 1.55;
|
|
border: 1px solid var(--border-soft);
|
|
border-left-width: 3px;
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.field label,
|
|
.field > span {
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
font-weight: 500;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.field-wide {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.field input,
|
|
.field select,
|
|
.form-row input,
|
|
.form-row select {
|
|
background: rgba(0, 0, 0, 0.45);
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
border-radius: 8px;
|
|
padding: 9px 11px;
|
|
font-size: 12px;
|
|
font-family: var(--mono);
|
|
width: 100%;
|
|
}
|
|
|
|
.field input:focus,
|
|
.field select:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2), var(--glow);
|
|
}
|
|
|
|
.field-check {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding-top: 20px;
|
|
}
|
|
|
|
.field-check label {
|
|
font-size: 12px;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
text-transform: none;
|
|
}
|
|
|
|
.settings-card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 16px;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.settings-card-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 14px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.settings-card-head .ex-name {
|
|
flex: 1;
|
|
min-width: 160px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
font-family: var(--display);
|
|
background: transparent;
|
|
border: none;
|
|
border-bottom: 1px dashed var(--border);
|
|
color: var(--text);
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.settings-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.settings-grid .field input {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.cap-chips {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.cap-chips label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 11px;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
padding: 6px 12px;
|
|
background: rgba(0, 0, 0, 0.35);
|
|
border-radius: 999px;
|
|
border: 1px solid var(--border-soft);
|
|
}
|
|
|
|
.settings-card-foot {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 12px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--border-soft);
|
|
}
|
|
|
|
.settings-card-foot .field {
|
|
max-width: 80px;
|
|
}
|
|
|
|
#toast {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
max-width: min(420px, 92vw);
|
|
background: var(--panel);
|
|
border: 1px solid var(--accent);
|
|
padding: 12px 16px;
|
|
border-radius: var(--radius);
|
|
display: none;
|
|
z-index: 50;
|
|
white-space: pre-wrap;
|
|
font-size: 12px;
|
|
box-shadow: var(--glow);
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
#toast.show {
|
|
display: block;
|
|
}
|
|
|
|
/* —— 登录页 —— */
|
|
body.login-page {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
padding: 24px;
|
|
}
|
|
|
|
.login-panel {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 100%;
|
|
max-width: 400px;
|
|
padding: 28px 26px;
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
backdrop-filter: blur(16px);
|
|
box-shadow: var(--shadow), var(--glow);
|
|
}
|
|
|
|
.login-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.login-title {
|
|
font-family: var(--display);
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.login-sub {
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
letter-spacing: 0.16em;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.login-form .field {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.login-submit {
|
|
width: 100%;
|
|
padding: 12px;
|
|
}
|
|
|
|
.login-err {
|
|
color: var(--red);
|
|
font-size: 12px;
|
|
margin: 10px 0 0;
|
|
}
|
|
|
|
.login-foot {
|
|
margin: 20px 0 0;
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
line-height: 1.5;
|
|
}
|
|
.login-foot code {
|
|
color: var(--accent);
|
|
font-size: 10px;
|
|
}
|
|
|
|
/* —— 手机 / 窄屏自适应 —— */
|
|
@media (max-width: 720px) {
|
|
.app-shell {
|
|
padding: 0 max(12px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom))
|
|
max(12px, env(safe-area-inset-left));
|
|
}
|
|
|
|
.app-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 12px;
|
|
padding: 14px 0;
|
|
}
|
|
|
|
.header-right {
|
|
width: 100%;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 10px;
|
|
}
|
|
|
|
.sys-pill {
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.top-nav {
|
|
width: 100%;
|
|
justify-content: stretch;
|
|
}
|
|
|
|
.top-nav a {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 10px 12px;
|
|
min-height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
button.ghost#btn-logout {
|
|
width: 100%;
|
|
min-height: 44px;
|
|
}
|
|
|
|
.page-head {
|
|
margin: 16px 0 12px;
|
|
}
|
|
|
|
.page-head h1 {
|
|
font-size: 17px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.toolbar {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 8px;
|
|
}
|
|
|
|
.toolbar-spacer {
|
|
display: none;
|
|
}
|
|
|
|
.toolbar-meta {
|
|
text-align: center;
|
|
order: 10;
|
|
}
|
|
|
|
.toolbar button,
|
|
.toolbar .chk-label {
|
|
width: 100%;
|
|
justify-content: center;
|
|
min-height: 44px;
|
|
}
|
|
|
|
.grid-monitor,
|
|
.settings-grid-wrap {
|
|
grid-template-columns: minmax(0, 1fr) !important;
|
|
gap: 12px;
|
|
}
|
|
|
|
.card-head {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 10px;
|
|
}
|
|
|
|
.card-actions {
|
|
flex-wrap: wrap;
|
|
width: 100%;
|
|
gap: 8px;
|
|
}
|
|
|
|
.card-actions .btn-link,
|
|
.card-actions button {
|
|
flex: 1 1 calc(50% - 4px);
|
|
min-height: 40px;
|
|
text-align: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.card-body {
|
|
padding: 12px;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.stat-row {
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.exchange-fullscreen {
|
|
padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right))
|
|
max(16px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
|
|
}
|
|
|
|
.exchange-fullscreen-panel {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.fs-head {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 12px;
|
|
}
|
|
|
|
.fs-head-actions {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px;
|
|
width: 100%;
|
|
}
|
|
|
|
.fs-head-actions .btn-expand-back {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.fs-head-actions .btn-link,
|
|
.fs-head-actions button {
|
|
min-height: 44px;
|
|
text-align: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.hub-pos-card .pos-card-head {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.hub-pos-card .pos-head-actions {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px;
|
|
width: 100%;
|
|
}
|
|
|
|
.hub-pos-card .pos-entrust-btn,
|
|
.hub-pos-card .pos-close-btn {
|
|
width: 100%;
|
|
min-height: 44px;
|
|
text-align: center;
|
|
}
|
|
|
|
.hub-pos-card .pos-ex-order-row {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 6px;
|
|
}
|
|
|
|
.settings-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.settings-card-foot {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 10px;
|
|
}
|
|
|
|
.settings-card-foot .field {
|
|
max-width: none;
|
|
}
|
|
|
|
.modal {
|
|
padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.modal-panel {
|
|
max-width: none;
|
|
width: 100%;
|
|
border-radius: 12px 12px 0 0;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.modal-actions {
|
|
flex-direction: column-reverse;
|
|
}
|
|
|
|
.modal-actions button {
|
|
width: 100%;
|
|
min-height: 44px;
|
|
}
|
|
|
|
#toast {
|
|
left: 12px;
|
|
right: 12px;
|
|
bottom: max(12px, env(safe-area-inset-bottom));
|
|
max-width: none;
|
|
}
|
|
|
|
body.login-page {
|
|
padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
|
|
}
|
|
|
|
.login-panel {
|
|
padding: 22px 18px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
body {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.brand-title {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.stat-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.card-actions .btn-link,
|
|
.card-actions button {
|
|
flex: 1 1 100%;
|
|
}
|
|
|
|
.fs-head-actions {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.pos-action-group {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
width: 100%;
|
|
}
|
|
|
|
.pos-action-group .btn-sm {
|
|
width: 100%;
|
|
min-height: 44px;
|
|
}
|
|
|
|
.data-table .td-actions {
|
|
white-space: normal;
|
|
}
|
|
}
|
|
|
|
/* ---------- 行情区 ---------- */
|
|
.market-toolbar {
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.market-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
font-size: 0.72rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.market-field select,
|
|
.market-field input {
|
|
min-width: 120px;
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-soft);
|
|
background: var(--bg-elevated);
|
|
color: var(--text);
|
|
font-family: var(--font);
|
|
}
|
|
|
|
.market-status {
|
|
font-size: 0.8rem;
|
|
color: var(--muted);
|
|
margin: 0 0 10px;
|
|
}
|
|
|
|
.market-status.err {
|
|
color: var(--red);
|
|
}
|
|
|
|
.market-status.warn {
|
|
color: #ffb84d;
|
|
}
|
|
|
|
.market-countdown {
|
|
color: var(--accent);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.market-countdown.market-tf-key-hint {
|
|
color: #ffb84d;
|
|
}
|
|
|
|
.market-chart-wrap {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: min(76vh, 680px);
|
|
min-height: 380px;
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: var(--radius);
|
|
background: #0a1018;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.market-chart-wrap.has-pos-panel {
|
|
height: min(80vh, 740px);
|
|
min-height: 440px;
|
|
}
|
|
|
|
.market-chart-wrap.is-fullscreen {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 8500;
|
|
width: 100vw;
|
|
height: 100vh !important;
|
|
max-height: none;
|
|
min-height: 0;
|
|
border-radius: 0;
|
|
border: none;
|
|
}
|
|
|
|
.market-chart-wrap.is-fullscreen.has-pos-panel {
|
|
height: 100vh !important;
|
|
}
|
|
|
|
.market-chart-actions {
|
|
margin-left: auto;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 6px 10px;
|
|
}
|
|
|
|
.market-ind-menu {
|
|
position: relative;
|
|
font-size: 0.72rem;
|
|
}
|
|
|
|
.market-ind-menu summary {
|
|
cursor: pointer;
|
|
list-style: none;
|
|
padding: 2px 10px;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--border-soft);
|
|
color: var(--muted);
|
|
user-select: none;
|
|
}
|
|
|
|
.market-ind-menu summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.market-ind-menu[open] summary {
|
|
color: var(--accent);
|
|
border-color: rgba(0, 255, 157, 0.35);
|
|
}
|
|
|
|
.market-ind-options {
|
|
position: absolute;
|
|
right: 0;
|
|
top: calc(100% + 4px);
|
|
z-index: 20;
|
|
min-width: 168px;
|
|
padding: 8px 10px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border-soft);
|
|
background: rgba(10, 16, 26, 0.98);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.market-ind-opt {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
color: var(--text);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.market-ind-opt input {
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
.market-fs-btn,
|
|
.market-fs-exit {
|
|
font-size: 0.72rem;
|
|
padding: 2px 10px;
|
|
}
|
|
|
|
.market-fs-exit {
|
|
position: absolute;
|
|
top: 8px;
|
|
left: 8px;
|
|
z-index: 12;
|
|
}
|
|
|
|
.market-chart-wrap.is-fullscreen .market-fs-exit:not(.hidden) {
|
|
display: inline-flex !important;
|
|
}
|
|
|
|
.market-chart-wrap.is-fullscreen .market-fs-btn {
|
|
display: none;
|
|
}
|
|
|
|
.market-fs-toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-end;
|
|
gap: 8px 12px;
|
|
margin-top: 8px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid var(--border-soft);
|
|
}
|
|
|
|
.market-fs-toolbar.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.market-fs-field span {
|
|
font-size: 0.68rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.market-fs-field select,
|
|
.market-fs-field input {
|
|
font-size: 0.78rem;
|
|
min-width: 100px;
|
|
}
|
|
|
|
.market-div-legend {
|
|
margin-top: 4px;
|
|
font-size: 0.72rem;
|
|
color: #ffb84d;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.market-div-legend.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.market-ohlcv-bar {
|
|
flex: 0 0 auto;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border-soft);
|
|
background: rgba(8, 14, 24, 0.96);
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.market-chart-body {
|
|
flex: 1;
|
|
display: flex;
|
|
min-height: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.market-chart-host {
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.market-exchange-badge {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
z-index: 1;
|
|
transform: translate(-50%, -50%) rotate(-90deg);
|
|
transform-origin: center center;
|
|
font-family: var(--font-display, var(--font));
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.12em;
|
|
color: rgba(184, 212, 232, 0.18);
|
|
pointer-events: none;
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
}
|
|
|
|
.market-exchange-badge:empty {
|
|
display: none;
|
|
}
|
|
|
|
.market-ohlcv-title {
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
margin-bottom: 4px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 6px 10px;
|
|
}
|
|
|
|
.mkt-exchange-tag {
|
|
padding: 1px 8px;
|
|
border-radius: 4px;
|
|
background: rgba(0, 255, 157, 0.12);
|
|
border: 1px solid rgba(0, 255, 157, 0.35);
|
|
color: #00ff9d;
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.mkt-exchange-tag:empty {
|
|
display: none;
|
|
}
|
|
|
|
.market-ohlcv-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 4px 14px;
|
|
}
|
|
|
|
.market-ohlcv-row .ohlcv-item {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.market-ohlcv-row .k {
|
|
color: var(--muted);
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.market-pos-panel {
|
|
flex: 0 0 auto;
|
|
padding: 6px 12px 8px;
|
|
border-bottom: 1px solid var(--border-soft);
|
|
background: rgba(12, 20, 32, 0.98);
|
|
font-size: 0.76rem;
|
|
}
|
|
|
|
.market-pos-panel.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.market-pos-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 4px 14px;
|
|
}
|
|
|
|
.market-pos-side {
|
|
padding: 1px 8px;
|
|
border-radius: 4px;
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.market-pos-side.side-long {
|
|
background: rgba(0, 255, 157, 0.12);
|
|
border: 1px solid rgba(0, 255, 157, 0.35);
|
|
color: #00ff9d;
|
|
}
|
|
|
|
.market-pos-side.side-short {
|
|
background: rgba(255, 77, 109, 0.12);
|
|
border: 1px solid rgba(255, 77, 109, 0.35);
|
|
color: #ff4d6d;
|
|
}
|
|
|
|
.market-pos-clear {
|
|
margin-left: auto;
|
|
font-size: 0.72rem;
|
|
padding: 2px 8px;
|
|
}
|
|
|
|
.market-pos-orders {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px 10px;
|
|
margin-top: 6px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.market-pos-orders-empty {
|
|
font-size: 0.72rem;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.market-pos-order {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid var(--border-soft);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.market-pos-order-kind {
|
|
color: var(--accent);
|
|
font-size: 0.68rem;
|
|
}
|
|
|
|
.market-pos-order-label {
|
|
color: var(--text);
|
|
}
|
|
|
|
.market-pos-order-price {
|
|
color: #ffb84d;
|
|
font-family: var(--font-mono, monospace);
|
|
}
|
|
|
|
.market-pos-order-amt {
|
|
color: var(--muted);
|
|
font-size: 0.68rem;
|
|
}
|
|
|
|
.market-pos-tp-monitored {
|
|
color: #8fc8ff;
|
|
font-size: 0.72rem;
|
|
}
|
|
|
|
.sym-link {
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
font: inherit;
|
|
color: var(--accent);
|
|
cursor: pointer;
|
|
text-align: left;
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
|
|
.sym-link:hover {
|
|
color: #00ff9d;
|
|
}
|
|
|
|
.pos-symbol-link {
|
|
display: inline;
|
|
}
|
|
|
|
.pos-symbol-link strong {
|
|
font-weight: inherit;
|
|
}
|
|
|
|
.market-price-tag {
|
|
position: absolute;
|
|
right: 0;
|
|
z-index: 5;
|
|
pointer-events: none;
|
|
padding: 4px 8px;
|
|
border-radius: 4px 0 0 4px;
|
|
font-family: var(--font);
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
line-height: 1.25;
|
|
text-align: center;
|
|
transform: translateY(-50%);
|
|
min-width: 72px;
|
|
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
.market-price-tag-head {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: baseline;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
font-variant-numeric: tabular-nums;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.market-price-tag-label {
|
|
font-size: 0.62rem;
|
|
font-weight: 500;
|
|
opacity: 0.9;
|
|
line-height: 1;
|
|
}
|
|
|
|
.market-price-tag.is-up .market-price-tag-label {
|
|
color: rgba(10, 16, 24, 0.75);
|
|
}
|
|
|
|
.market-price-tag.is-down .market-price-tag-label {
|
|
color: rgba(255, 255, 255, 0.85);
|
|
}
|
|
|
|
.market-price-tag.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.market-price-tag.is-up {
|
|
background: #00ff9d;
|
|
color: #0a1018;
|
|
}
|
|
|
|
.market-price-tag.is-down {
|
|
background: #ff4d6d;
|
|
color: #fff;
|
|
}
|
|
|
|
.market-price-tag-value {
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.market-price-tag-time {
|
|
margin-top: 3px;
|
|
font-size: 0.68rem;
|
|
font-weight: 500;
|
|
font-variant-numeric: tabular-nums;
|
|
line-height: 1;
|
|
opacity: 0.95;
|
|
}
|
|
|
|
.market-price-auto {
|
|
position: absolute;
|
|
right: 8px;
|
|
bottom: 10px;
|
|
z-index: 5;
|
|
width: auto;
|
|
padding: 4px 8px;
|
|
font-size: 0.68rem;
|
|
font-family: var(--font);
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border-soft);
|
|
background: rgba(8, 14, 24, 0.92);
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.market-price-auto:hover {
|
|
border-color: var(--accent);
|
|
color: var(--text);
|
|
}
|
|
|
|
.market-price-auto.is-on {
|
|
color: #00ff9d;
|
|
border-color: rgba(0, 255, 157, 0.45);
|
|
background: rgba(0, 255, 157, 0.1);
|
|
}
|