Add InsightFace/OpenCV challenge upload, PC vs mobile capture branching, and fix avatar persistence into roster/profile pages. Co-authored-by: Cursor <cursoragent@cursor.com>
1244 lines
23 KiB
CSS
1244 lines
23 KiB
CSS
:root {
|
|
--bg: #0c0c0f;
|
|
--panel: #141418;
|
|
--line: rgba(245, 158, 11, 0.18);
|
|
--text: #f4f4f5;
|
|
--muted: #a1a1aa;
|
|
--accent: #f59e0b;
|
|
--accent-2: #38bdf8;
|
|
--danger: #f87171;
|
|
--font-display: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
--font-body: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
html,
|
|
body,
|
|
#root {
|
|
min-height: 100%;
|
|
margin: 0;
|
|
}
|
|
body {
|
|
font-family: var(--font-body);
|
|
color: var(--text);
|
|
background:
|
|
radial-gradient(800px 420px at 10% 0%, rgba(245, 158, 11, 0.14), transparent 55%),
|
|
radial-gradient(640px 360px at 90% 10%, rgba(56, 189, 248, 0.08), transparent 50%),
|
|
var(--bg);
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
button,
|
|
a,
|
|
input {
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
/* login */
|
|
.login-page {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 24px;
|
|
position: relative;
|
|
}
|
|
.login-bg {
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
background: radial-gradient(600px 360px at 50% 0%, rgba(245, 158, 11, 0.12), transparent 60%);
|
|
}
|
|
.login-card {
|
|
position: relative;
|
|
width: min(420px, 100%);
|
|
background: rgba(20, 20, 24, 0.92);
|
|
border: 1px solid var(--line);
|
|
border-radius: 20px;
|
|
padding: 28px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
.login-brand {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
.login-mark {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 14px;
|
|
display: grid;
|
|
place-items: center;
|
|
font-weight: 800;
|
|
background: linear-gradient(135deg, #f59e0b, #fbbf24);
|
|
color: #1c1408;
|
|
}
|
|
.login-brand h1 {
|
|
margin: 0 0 4px;
|
|
font-size: 22px;
|
|
font-family: var(--font-display);
|
|
}
|
|
.login-brand p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
.login-card label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
}
|
|
.login-card input {
|
|
border: 1px solid var(--line);
|
|
background: #0c0c0f;
|
|
color: var(--text);
|
|
border-radius: 12px;
|
|
padding: 12px 14px;
|
|
min-height: 44px;
|
|
font-size: 16px;
|
|
}
|
|
.login-card button {
|
|
margin-top: 6px;
|
|
min-height: 46px;
|
|
border: 0;
|
|
border-radius: 12px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
background: linear-gradient(135deg, #f59e0b, #d97706);
|
|
color: #1c1408;
|
|
}
|
|
.login-card button:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
.error {
|
|
color: var(--danger);
|
|
font-size: 13px;
|
|
}
|
|
.login-hint {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
/* shell */
|
|
.com-shell {
|
|
display: grid;
|
|
grid-template-columns: 260px 1fr;
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
}
|
|
.com-topbar {
|
|
display: none;
|
|
}
|
|
.com-nav-scrim {
|
|
display: none;
|
|
}
|
|
.com-side {
|
|
border-right: 1px solid var(--line);
|
|
padding: 28px 18px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
background: rgba(10, 10, 12, 0.85);
|
|
}
|
|
.com-logo {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
.com-mark,
|
|
.com-topbar-mark {
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 12px;
|
|
display: grid;
|
|
place-items: center;
|
|
font-weight: 800;
|
|
background: linear-gradient(135deg, #f59e0b, #fbbf24);
|
|
color: #1c1408;
|
|
flex-shrink: 0;
|
|
}
|
|
.com-title {
|
|
font-family: var(--font-display);
|
|
font-size: 15px;
|
|
}
|
|
.com-sub {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
.com-pill {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
padding: 8px 10px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--line);
|
|
}
|
|
.com-pill-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
|
|
}
|
|
.com-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
flex: 1;
|
|
}
|
|
.com-nav a {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 12px 14px;
|
|
border-radius: 12px;
|
|
color: var(--muted);
|
|
min-height: 44px;
|
|
}
|
|
.com-nav a.active,
|
|
.com-nav a:hover {
|
|
background: rgba(245, 158, 11, 0.12);
|
|
color: var(--text);
|
|
}
|
|
.com-nav-ico {
|
|
width: 1.25em;
|
|
text-align: center;
|
|
}
|
|
.com-logout {
|
|
border: 1px solid var(--line);
|
|
background: transparent;
|
|
color: var(--muted);
|
|
border-radius: 12px;
|
|
padding: 10px 12px;
|
|
min-height: 44px;
|
|
cursor: pointer;
|
|
}
|
|
.com-main {
|
|
padding: 32px 36px 60px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.com-page-head {
|
|
margin-bottom: 24px;
|
|
}
|
|
.com-page-head h1 {
|
|
margin: 0 0 8px;
|
|
font-family: var(--font-display);
|
|
font-size: 30px;
|
|
}
|
|
.com-page-head p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
line-height: 1.55;
|
|
max-width: 52rem;
|
|
}
|
|
.com-page-head code {
|
|
color: var(--accent-2);
|
|
}
|
|
|
|
.com-stat-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 14px;
|
|
margin-bottom: 22px;
|
|
}
|
|
.com-stat {
|
|
border: 1px solid var(--line);
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
background: rgba(20, 20, 24, 0.7);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
.com-stat-label {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
.com-stat strong {
|
|
font-size: 18px;
|
|
font-family: var(--font-display);
|
|
}
|
|
.com-stat-note {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.com-panel {
|
|
border: 1px solid var(--line);
|
|
border-radius: 16px;
|
|
padding: 18px 20px;
|
|
background: rgba(20, 20, 24, 0.7);
|
|
margin-bottom: 16px;
|
|
}
|
|
.com-panel h2 {
|
|
margin: 0 0 12px;
|
|
font-size: 16px;
|
|
}
|
|
.com-list {
|
|
margin: 0;
|
|
padding-left: 1.2em;
|
|
color: var(--muted);
|
|
line-height: 1.7;
|
|
}
|
|
.com-list strong {
|
|
color: var(--text);
|
|
}
|
|
.com-list code {
|
|
color: var(--accent-2);
|
|
}
|
|
.com-pre {
|
|
margin: 0;
|
|
padding: 14px;
|
|
border-radius: 12px;
|
|
background: #09090b;
|
|
border: 1px solid var(--line);
|
|
overflow: auto;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.com-module-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
|
gap: 14px;
|
|
}
|
|
.com-module-card {
|
|
border: 1px solid var(--line);
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
background: rgba(20, 20, 24, 0.7);
|
|
}
|
|
.com-module-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
.com-module-card p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
}
|
|
.com-badge {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
padding: 4px 8px;
|
|
border-radius: 999px;
|
|
color: var(--accent);
|
|
border: 1px solid rgba(245, 158, 11, 0.35);
|
|
background: rgba(245, 158, 11, 0.1);
|
|
}
|
|
|
|
@media (max-width: 860px) {
|
|
.com-shell {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.com-topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--line);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
background: rgba(12, 12, 15, 0.92);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
.com-topbar-menu {
|
|
width: 44px;
|
|
height: 44px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
background: transparent;
|
|
display: grid;
|
|
place-content: center;
|
|
gap: 5px;
|
|
padding: 0;
|
|
}
|
|
.com-topbar-menu span {
|
|
display: block;
|
|
width: 18px;
|
|
height: 2px;
|
|
background: var(--text);
|
|
}
|
|
.com-topbar-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.com-topbar-title {
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
}
|
|
.com-topbar-sub {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
.com-topbar-action {
|
|
border: 1px solid var(--line);
|
|
background: transparent;
|
|
color: var(--muted);
|
|
border-radius: 12px;
|
|
min-height: 40px;
|
|
padding: 0 12px;
|
|
cursor: pointer;
|
|
}
|
|
.com-side {
|
|
position: fixed;
|
|
inset: 0 auto 0 0;
|
|
width: min(280px, 86vw);
|
|
z-index: 30;
|
|
transform: translateX(-105%);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
.com-shell--nav-open .com-side {
|
|
transform: translateX(0);
|
|
}
|
|
.com-nav-scrim {
|
|
display: block;
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 25;
|
|
border: 0;
|
|
background: rgba(0, 0, 0, 0.55);
|
|
}
|
|
.com-main {
|
|
padding: 20px 16px 40px;
|
|
}
|
|
.com-stat-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.com-stat-grid-5,
|
|
.com-stat-grid-6,
|
|
.com-chart-grid,
|
|
.com-hub-grid,
|
|
.com-switch-grid,
|
|
.com-form-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.com-page-head-row {
|
|
flex-direction: column;
|
|
}
|
|
.com-toolbar {
|
|
flex-direction: column;
|
|
}
|
|
.com-table {
|
|
min-width: 640px;
|
|
}
|
|
}
|
|
|
|
/* —— real ops UI —— */
|
|
.com-page-head-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 16px;
|
|
}
|
|
.com-stat-grid-5 {
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
}
|
|
.com-stat-grid-6 {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
.com-stat-link {
|
|
transition: border-color 0.15s ease, transform 0.15s ease;
|
|
}
|
|
.com-stat-link:hover {
|
|
border-color: rgba(245, 158, 11, 0.45);
|
|
transform: translateY(-1px);
|
|
}
|
|
.com-stat-warn {
|
|
border-color: rgba(248, 113, 113, 0.35);
|
|
}
|
|
.com-stat strong.is-loading {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.com-btn,
|
|
.com-btn-danger {
|
|
background: rgba(239, 68, 68, 0.14);
|
|
border: 1px solid rgba(239, 68, 68, 0.4);
|
|
color: #fca5a5;
|
|
}
|
|
.com-btn-danger:hover:not(:disabled) {
|
|
background: rgba(239, 68, 68, 0.28);
|
|
}
|
|
.com-btn-ghost,
|
|
.com-btn-sm {
|
|
min-height: 44px;
|
|
border-radius: 12px;
|
|
padding: 0 16px;
|
|
font-weight: 650;
|
|
cursor: pointer;
|
|
border: 1px solid transparent;
|
|
font-size: 14px;
|
|
}
|
|
.com-btn {
|
|
background: linear-gradient(135deg, #f59e0b, #d97706);
|
|
color: #1c1408;
|
|
}
|
|
.com-btn:disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
}
|
|
.com-btn-ghost {
|
|
background: transparent;
|
|
border-color: var(--line);
|
|
color: var(--muted);
|
|
}
|
|
.com-btn-ghost.is-on {
|
|
border-color: rgba(52, 211, 153, 0.45);
|
|
color: #34d399;
|
|
}
|
|
.com-btn-sm {
|
|
min-height: 32px;
|
|
padding: 0 10px;
|
|
font-size: 12px;
|
|
background: transparent;
|
|
border-color: var(--line);
|
|
color: var(--muted);
|
|
}
|
|
.com-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-top: 14px;
|
|
}
|
|
.com-row-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.com-toast {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 14px;
|
|
border-radius: 12px;
|
|
margin-bottom: 14px;
|
|
font-size: 13px;
|
|
}
|
|
.com-toast button {
|
|
border: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
}
|
|
.com-toast-ok {
|
|
background: rgba(52, 211, 153, 0.12);
|
|
border: 1px solid rgba(52, 211, 153, 0.35);
|
|
color: #6ee7b7;
|
|
}
|
|
.com-toast-err {
|
|
background: rgba(248, 113, 113, 0.12);
|
|
border: 1px solid rgba(248, 113, 113, 0.35);
|
|
color: #fca5a5;
|
|
}
|
|
|
|
.com-panel-head {
|
|
margin-bottom: 14px;
|
|
}
|
|
.com-panel-head h2 {
|
|
margin: 0 0 4px;
|
|
}
|
|
.com-panel-head p,
|
|
.com-panel-desc {
|
|
margin: 0 0 14px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.com-chart-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 14px;
|
|
margin-bottom: 18px;
|
|
}
|
|
.com-chart {
|
|
border: 1px solid var(--line);
|
|
border-radius: 16px;
|
|
padding: 14px 16px;
|
|
background: rgba(20, 20, 24, 0.7);
|
|
}
|
|
.com-chart-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
margin-bottom: 8px;
|
|
font-size: 14px;
|
|
}
|
|
.com-chart-sub,
|
|
.com-chart-max {
|
|
display: block;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
margin-top: 2px;
|
|
}
|
|
.com-chart-max {
|
|
white-space: nowrap;
|
|
}
|
|
.com-chart-svg {
|
|
width: 100%;
|
|
height: auto;
|
|
color: var(--muted);
|
|
}
|
|
.com-rank {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
.com-rank-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
}
|
|
.com-rank-name {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.com-rank-n {
|
|
color: var(--muted);
|
|
}
|
|
.com-rank-track {
|
|
height: 6px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
overflow: hidden;
|
|
}
|
|
.com-rank-track i {
|
|
display: block;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #f59e0b, #fbbf24);
|
|
border-radius: inherit;
|
|
}
|
|
.com-rank-empty {
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.com-hub-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.com-hub {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 14px;
|
|
border-radius: 14px;
|
|
border: 1px solid var(--line);
|
|
background: rgba(12, 12, 15, 0.55);
|
|
min-height: 110px;
|
|
}
|
|
.com-hub-primary {
|
|
border-color: rgba(245, 158, 11, 0.4);
|
|
background: rgba(245, 158, 11, 0.08);
|
|
}
|
|
.com-hub span:last-child {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
.com-hub-ico {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.com-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
.com-tab {
|
|
min-height: 40px;
|
|
padding: 0 14px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--line);
|
|
background: transparent;
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
}
|
|
.com-tab.is-on {
|
|
color: #1c1408;
|
|
background: var(--accent);
|
|
border-color: transparent;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.com-chip-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin: 12px 0 16px;
|
|
}
|
|
.com-chip {
|
|
border: 1px solid var(--line);
|
|
background: rgba(20, 20, 24, 0.7);
|
|
color: var(--muted);
|
|
border-radius: 999px;
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
button.com-chip.is-on,
|
|
.com-chip-ok {
|
|
border-color: rgba(52, 211, 153, 0.4);
|
|
color: #6ee7b7;
|
|
}
|
|
|
|
.com-switch-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.com-switch-card {
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
padding: 14px;
|
|
background: rgba(12, 12, 15, 0.5);
|
|
}
|
|
.com-switch-card.is-on {
|
|
border-color: rgba(52, 211, 153, 0.35);
|
|
}
|
|
.com-switch-card.is-off {
|
|
opacity: 0.72;
|
|
}
|
|
.com-switch-card-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
.com-switch-card strong {
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
}
|
|
.com-switch-card p {
|
|
margin: 0 0 10px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
.com-status {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
.com-status.on {
|
|
color: #34d399;
|
|
}
|
|
.com-status.off {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.com-switch {
|
|
position: relative;
|
|
width: 46px;
|
|
height: 28px;
|
|
display: inline-block;
|
|
}
|
|
.com-switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
.com-switch-track {
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: 999px;
|
|
background: #27272a;
|
|
border: 1px solid var(--line);
|
|
transition: 0.15s ease;
|
|
}
|
|
.com-switch-thumb {
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
background: #a1a1aa;
|
|
transition: 0.15s ease;
|
|
}
|
|
.com-switch input:checked + .com-switch-track {
|
|
background: rgba(245, 158, 11, 0.35);
|
|
border-color: rgba(245, 158, 11, 0.55);
|
|
}
|
|
.com-switch input:checked + .com-switch-track .com-switch-thumb {
|
|
left: 21px;
|
|
background: #f59e0b;
|
|
}
|
|
.com-switch input:disabled + .com-switch-track {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.com-flag-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
.com-flag-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
.com-flag-row p {
|
|
margin: 4px 0 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
.com-select,
|
|
.com-toolbar select,
|
|
.com-toolbar input,
|
|
.com-field input,
|
|
.com-textarea {
|
|
min-height: 44px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--line);
|
|
background: #0c0c0f;
|
|
color: var(--text);
|
|
padding: 0 12px;
|
|
font-size: 14px;
|
|
}
|
|
.com-textarea {
|
|
padding: 12px;
|
|
resize: vertical;
|
|
width: 100%;
|
|
font-family: inherit;
|
|
}
|
|
.com-toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-bottom: 14px;
|
|
}
|
|
.com-toolbar input,
|
|
.com-toolbar select {
|
|
flex: 1;
|
|
min-width: 160px;
|
|
}
|
|
.com-form-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.com-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.com-table-wrap {
|
|
overflow: auto;
|
|
border: 1px solid var(--line);
|
|
border-radius: 16px;
|
|
background: rgba(20, 20, 24, 0.7);
|
|
}
|
|
.com-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
.com-table th,
|
|
.com-table td {
|
|
text-align: left;
|
|
padding: 12px 14px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
vertical-align: top;
|
|
}
|
|
.com-table th {
|
|
color: var(--muted);
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
.com-table code {
|
|
color: var(--accent-2);
|
|
font-size: 12px;
|
|
}
|
|
.com-detail {
|
|
margin: 8px 0 0;
|
|
padding: 10px;
|
|
border-radius: 10px;
|
|
background: #09090b;
|
|
border: 1px solid var(--line);
|
|
font-size: 11px;
|
|
overflow: auto;
|
|
max-width: 360px;
|
|
}
|
|
.com-empty {
|
|
padding: 36px 16px;
|
|
text-align: center;
|
|
color: var(--muted);
|
|
}
|
|
.com-badge.tone-ok {
|
|
color: #6ee7b7;
|
|
border-color: rgba(52, 211, 153, 0.35);
|
|
background: rgba(52, 211, 153, 0.1);
|
|
}
|
|
.com-badge.tone-bad {
|
|
color: #fca5a5;
|
|
border-color: rgba(248, 113, 113, 0.35);
|
|
background: rgba(248, 113, 113, 0.1);
|
|
}
|
|
.com-badge.tone-warn {
|
|
color: #fcd34d;
|
|
border-color: rgba(251, 191, 36, 0.35);
|
|
background: rgba(251, 191, 36, 0.1);
|
|
}
|
|
.com-badge.tone-info {
|
|
color: #7dd3fc;
|
|
border-color: rgba(56, 189, 248, 0.35);
|
|
background: rgba(56, 189, 248, 0.1);
|
|
}
|
|
.com-badge.tone-muted {
|
|
color: var(--muted);
|
|
}
|
|
.com-module-card-link {
|
|
transition: border-color 0.15s ease, transform 0.15s ease;
|
|
}
|
|
.com-module-card-link:hover {
|
|
border-color: rgba(245, 158, 11, 0.45);
|
|
transform: translateY(-1px);
|
|
}
|
|
.com-list a {
|
|
color: var(--accent-2);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.com-pill-btn {
|
|
cursor: pointer;
|
|
width: 100%;
|
|
text-align: left;
|
|
font: inherit;
|
|
}
|
|
|
|
/* 登录后选模块(无侧栏) */
|
|
.modsel-page {
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 28px 16px;
|
|
position: relative;
|
|
}
|
|
.modsel-bg {
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
background:
|
|
radial-gradient(700px 380px at 20% 0%, rgba(245, 158, 11, 0.14), transparent 55%),
|
|
radial-gradient(640px 360px at 85% 10%, rgba(56, 189, 248, 0.12), transparent 50%);
|
|
}
|
|
.modsel-inner {
|
|
position: relative;
|
|
width: min(880px, 100%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 28px;
|
|
}
|
|
.modsel-brand {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 14px;
|
|
}
|
|
.modsel-mark {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 14px;
|
|
display: grid;
|
|
place-items: center;
|
|
font-weight: 800;
|
|
background: linear-gradient(135deg, #f59e0b, #fbbf24);
|
|
color: #1c1408;
|
|
flex-shrink: 0;
|
|
}
|
|
.modsel-brand h1 {
|
|
margin: 0 0 6px;
|
|
font-family: var(--font-display);
|
|
font-size: 28px;
|
|
}
|
|
.modsel-brand p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
line-height: 1.5;
|
|
font-size: 14px;
|
|
}
|
|
.modsel-brand code {
|
|
color: var(--accent-2);
|
|
}
|
|
.modsel-note {
|
|
opacity: 0.85;
|
|
}
|
|
.modsel-logout {
|
|
margin-left: auto;
|
|
min-height: 40px;
|
|
padding: 0 14px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--line);
|
|
background: transparent;
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
}
|
|
.modsel-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 16px;
|
|
}
|
|
.modsel-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
min-height: 240px;
|
|
padding: 24px;
|
|
border-radius: 20px;
|
|
border: 1px solid var(--line);
|
|
background: rgba(20, 20, 24, 0.85);
|
|
color: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
transition: transform 0.15s ease, border-color 0.15s ease;
|
|
}
|
|
.modsel-card:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
.modsel-card--cn {
|
|
border-color: rgba(245, 158, 11, 0.45);
|
|
background:
|
|
radial-gradient(360px 180px at 0% 0%, rgba(245, 158, 11, 0.2), transparent 65%),
|
|
rgba(20, 20, 24, 0.9);
|
|
}
|
|
.modsel-card--intl {
|
|
border-color: rgba(56, 189, 248, 0.4);
|
|
background:
|
|
radial-gradient(360px 180px at 100% 0%, rgba(56, 189, 248, 0.18), transparent 65%),
|
|
rgba(20, 20, 24, 0.9);
|
|
}
|
|
.modsel-card-top {
|
|
display: flex;
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.modsel-ico {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 12px;
|
|
display: grid;
|
|
place-items: center;
|
|
font-weight: 800;
|
|
background: rgba(245, 158, 11, 0.2);
|
|
color: var(--accent);
|
|
}
|
|
.modsel-ico--intl {
|
|
background: rgba(56, 189, 248, 0.18);
|
|
color: var(--accent-2);
|
|
}
|
|
.modsel-badge {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
padding: 4px 8px;
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(245, 158, 11, 0.35);
|
|
color: var(--accent);
|
|
}
|
|
.modsel-badge--intl {
|
|
border-color: rgba(56, 189, 248, 0.35);
|
|
color: var(--accent-2);
|
|
}
|
|
.modsel-card strong {
|
|
font-size: 26px;
|
|
font-family: var(--font-display);
|
|
}
|
|
.modsel-desc {
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
flex: 1;
|
|
}
|
|
.modsel-cta {
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
}
|
|
.modsel-card--intl .modsel-cta {
|
|
color: var(--accent-2);
|
|
}
|
|
@media (max-width: 720px) {
|
|
.modsel-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.modsel-brand {
|
|
flex-wrap: wrap;
|
|
}
|
|
.modsel-logout {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
.com-lane-eyebrow {
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
letter-spacing: 0.04em;
|
|
margin-bottom: 6px;
|
|
}
|
|
.com-lane-en {
|
|
font-weight: 500;
|
|
color: var(--muted);
|
|
font-size: 0.55em;
|
|
margin-left: 8px;
|
|
}
|
|
.com-lane-hub--cn .com-hub-primary {
|
|
border-color: rgba(245, 158, 11, 0.35);
|
|
}
|
|
.com-lane-hub--intl .com-hub-primary {
|
|
border-color: rgba(56, 189, 248, 0.35);
|
|
}
|
|
|
|
@media (max-width: 860px) {
|
|
.com-entry-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* Nomad Blog admin */
|
|
.com-stat-grid-4 {
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
}
|
|
.com-blog-head-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
align-items: flex-start;
|
|
}
|
|
.com-blog-quicklinks {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin: 0 0 18px;
|
|
}
|
|
.com-blog-quick {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 36px;
|
|
padding: 0 12px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--line);
|
|
color: var(--muted);
|
|
text-decoration: none;
|
|
font-size: 13px;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
transition: border-color 0.2s, color 0.2s;
|
|
}
|
|
.com-blog-quick:hover {
|
|
color: #fff;
|
|
border-color: rgba(245, 158, 11, 0.45);
|
|
}
|
|
.com-blog-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 14px;
|
|
}
|
|
.com-blog-card {
|
|
border: 1px solid var(--line);
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
background: rgba(20, 20, 24, 0.72);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
transition: border-color 0.2s, transform 0.2s;
|
|
}
|
|
.com-blog-card:hover {
|
|
border-color: rgba(245, 158, 11, 0.35);
|
|
}
|
|
.com-blog-card.is-featured {
|
|
border-color: rgba(52, 211, 153, 0.45);
|
|
box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.12);
|
|
}
|
|
.com-blog-card.is-hidden {
|
|
opacity: 0.62;
|
|
}
|
|
.com-blog-card-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
.com-blog-card-link {
|
|
color: var(--accent-2, #f59e0b);
|
|
font-size: 12px;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
.com-blog-card h3 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
line-height: 1.35;
|
|
font-family: var(--font-display);
|
|
}
|
|
.com-blog-card > p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
}
|
|
.com-blog-card-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px 12px;
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
}
|
|
.com-blog-card-meta code {
|
|
color: var(--accent-2, #f59e0b);
|
|
}
|
|
.com-blog-card-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-top: 4px;
|
|
}
|
|
@media (max-width: 900px) {
|
|
.com-stat-grid-4 {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
.com-blog-cards {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|