Files
real-time-fund/app/globals.css
2026-01-31 21:04:50 +08:00

300 lines
5.5 KiB
CSS

:root {
--bg: #0f172a;
--card: #111827;
--text: #e5e7eb;
--muted: #9ca3af;
--primary: #22d3ee;
--accent: #60a5fa;
--success: #34d399;
--danger: #f87171;
--border: #1f2937;
}
* {
box-sizing: border-box;
}
html, body {
height: 100%;
}
body {
margin: 0;
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
background: radial-gradient(1200px 600px at 10% -10%, rgba(96,165,250,0.15), transparent 40%) , radial-gradient(1000px 500px at 90% 0%, rgba(34,211,238,0.12), transparent 45%), var(--bg);
color: var(--text);
}
.container {
max-width: 1120px;
margin: 0 auto;
padding: 24px;
}
.glass {
background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
border: 1px solid var(--border);
border-radius: 16px;
box-shadow: 0 8px 30px rgba(0,0,0,0.25);
backdrop-filter: blur(8px);
}
.title {
display: flex;
align-items: center;
gap: 12px;
font-weight: 700;
letter-spacing: 0.2px;
}
.muted {
color: var(--muted);
}
.grid {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 16px;
}
.col-12 { grid-column: span 12; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
@media (max-width: 1024px) {
.col-6, .col-4, .col-3 { grid-column: span 12; }
}
.navbar {
position: fixed;
top: 16px;
left: 16px;
right: 16px;
z-index: 50;
padding: 12px 16px;
display: flex;
align-items: center;
justify-content: space-between;
}
.brand {
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
}
.content {
padding-top: 84px;
}
.form {
display: flex;
gap: 12px;
align-items: center;
}
.input {
flex: 1;
height: 44px;
padding: 0 14px;
border-radius: 12px;
border: 1px solid var(--border);
background: #0b1220;
color: var(--text);
outline: none;
transition: border-color 200ms ease, box-shadow 200ms ease;
}
.input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(96,165,250,0.2);
}
.button {
height: 44px;
padding: 0 16px;
border-radius: 12px;
border: 1px solid var(--border);
background: linear-gradient(180deg, #0ea5e9, #22d3ee);
color: #05263b;
font-weight: 600;
cursor: pointer;
transition: transform 150ms ease, box-shadow 200ms ease;
}
.button:hover {
transform: translateY(-1px);
box-shadow: 0 10px 20px rgba(34,211,238,0.25);
}
.button:active {
transform: translateY(0);
}
.card {
padding: 16px;
}
.row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.badge {
display: inline-flex;
gap: 8px;
align-items: center;
padding: 6px 10px;
border-radius: 999px;
border: 1px solid var(--border);
background: #0b1220;
font-size: 12px;
}
.stat {
display: flex;
align-items: baseline;
gap: 8px;
}
.stat .label {
font-size: 12px;
color: var(--muted);
}
.stat .value {
font-size: 20px;
font-weight: 700;
}
.up { color: var(--success); }
.down { color: var(--danger); }
.list {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px;
}
@media (max-width: 640px) {
.list { grid-template-columns: 1fr; }
}
.item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 10px;
border-radius: 10px;
border: 1px solid var(--border);
background: #0b1220;
}
.item .name {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.item .weight {
font-weight: 600;
color: var(--accent);
}
.empty {
padding: 24px;
text-align: center;
color: var(--muted);
}
.footer {
margin-top: 24px;
font-size: 12px;
color: var(--muted);
text-align: center;
}
.actions {
display: inline-flex;
align-items: center;
gap: 8px;
}
.icon-button {
width: 36px;
height: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 10px;
border: 1px solid var(--border);
background: #0b1220;
color: var(--muted);
cursor: pointer;
transition: box-shadow 200ms ease, border-color 200ms ease, transform 150ms ease, color 200ms ease;
}
.icon-button:hover {
color: var(--text);
transform: translateY(-1px);
border-color: var(--accent);
}
.icon-button:active {
transform: translateY(0);
}
.icon-button.danger {
background: linear-gradient(180deg, #ef4444, #f87171);
color: #2b0b0b;
}
.icon-button.danger:hover {
box-shadow: 0 10px 20px rgba(248,113,113,0.25);
}
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(2,6,23,0.6);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: 60;
}
.modal {
width: 560px;
max-width: 92vw;
padding: 16px;
}
.chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.chip {
display: inline-flex;
align-items: center;
justify-content: center;
height: 32px;
padding: 0 12px;
border-radius: 999px;
border: 1px solid var(--border);
background: #0b1220;
color: var(--text);
cursor: pointer;
transition: border-color 200ms ease, transform 150ms ease;
}
.chip:hover { transform: translateY(-1px); border-color: var(--accent); }
.chip.active { background: linear-gradient(180deg, #0ea5e9, #22d3ee); color: #05263b; border-color: transparent; }
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.spin {
animation: spin 0.8s linear infinite;
}
.icon-button[aria-busy="true"] {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
cursor: default;
}
@media (prefers-reduced-motion: reduce) {
.spin {
animation: none;
}
}