nomadro/apps/admin/src/styles.css
eric 534400f554 Merge stash WIP onto BMI A/B: join-group, live config, channel tracking.
Keep Douyin homeVariant BMI router intact while restoring admin join-group controls, TLS-safe config fetch, and ntfy channel labels.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-03 15:42:09 +08:00

390 lines
9.7 KiB
CSS

:root {
--bg: #0e1512;
--panel: #152019;
--line: rgba(150, 210, 170, 0.16);
--text: #e7f3ea;
--muted: #8fad99;
--accent: #5ec478;
--accent-2: #d7b35a;
--danger: #e07060;
--font-display: 'Syne', sans-serif;
--font-body: 'IBM Plex Sans', 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(900px 500px at 0% 0%, rgba(70, 150, 100, 0.22), transparent 55%),
radial-gradient(700px 400px at 100% 0%, rgba(180, 150, 60, 0.12), transparent 50%),
var(--bg);
}
a { color: inherit; text-decoration: none; }
.shell {
display: grid;
grid-template-columns: 260px 1fr;
min-height: 100vh;
}
.side {
border-right: 1px solid var(--line);
padding: 28px 20px;
display: flex;
flex-direction: column;
gap: 24px;
background: rgba(10, 18, 14, 0.7);
backdrop-filter: blur(10px);
}
.logo { display: flex; gap: 12px; align-items: center; }
.logo-mark {
width: 42px; height: 42px; border-radius: 12px;
display: grid; place-items: center;
background: linear-gradient(135deg, #3f9d68, #7be0a4);
color: #062012; font-family: var(--font-display); font-weight: 800;
}
.logo-title { font-family: var(--font-display); font-size: 20px; }
.logo-sub { color: var(--muted); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nav a {
padding: 12px 14px; border-radius: 12px; color: var(--muted);
}
.nav a.active, .nav a:hover {
background: rgba(94, 196, 120, 0.12);
color: var(--text);
}
.ghost-btn {
border: 1px solid var(--line);
background: transparent;
color: var(--muted);
border-radius: 12px;
padding: 10px 12px;
cursor: pointer;
}
.main { padding: 32px 36px 60px; }
.page-head {
display: flex; justify-content: space-between; align-items: end; gap: 16px;
margin-bottom: 24px;
}
.page-head h1 {
margin: 0 0 6px;
font-family: var(--font-display);
font-size: 32px;
}
.page-head p { margin: 0; color: var(--muted); }
.primary-link {
background: linear-gradient(135deg, #3f9d68, #67d094);
color: #062012 !important;
padding: 12px 16px;
border-radius: 12px;
font-weight: 600;
}
.stat-grid {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 14px;
margin-bottom: 20px;
}
.stat-card {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 18px;
padding: 18px;
}
.stat-emoji { font-size: 22px; }
.stat-value { font-size: 28px; font-family: var(--font-display); margin-top: 8px; }
.stat-label { color: var(--muted); margin-top: 4px; font-size: 13px; }
.panel {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 20px;
padding: 22px;
}
.panel h2, .panel h3 { font-family: var(--font-display); margin-top: 0; }
.quick { display: flex; flex-wrap: wrap; gap: 12px; }
.quick a {
padding: 12px 16px;
border-radius: 12px;
background: rgba(255,255,255,0.04);
border: 1px solid var(--line);
}
.login-page {
min-height: 100vh; display: grid; place-items: center; position: relative;
}
.login-bg {
position: absolute; inset: 0;
background:
radial-gradient(600px 300px at 30% 20%, rgba(94,196,120,.25), transparent),
radial-gradient(500px 280px at 70% 70%, rgba(215,179,90,.15), transparent);
}
.login-card {
position: relative;
width: min(420px, 92vw);
background: rgba(18, 30, 24, 0.92);
border: 1px solid var(--line);
border-radius: 24px;
padding: 28px;
display: flex; flex-direction: column; gap: 14px;
}
.login-card h1 { font-family: var(--font-display); margin: 0; }
.login-card p { margin: 0; color: var(--muted); font-size: 14px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
input, textarea, button {
font: inherit;
}
input, textarea {
border-radius: 12px;
border: 1px solid var(--line);
background: rgba(0,0,0,0.25);
color: var(--text);
padding: 12px 14px;
}
button {
border: none;
border-radius: 12px;
padding: 12px 16px;
background: linear-gradient(135deg, #3f9d68, #67d094);
color: #062012;
font-weight: 700;
cursor: pointer;
}
.error { color: #ffb4a8; font-size: 13px; }
.banner {
padding: 12px 14px;
border-radius: 12px;
background: rgba(94,196,120,0.12);
border: 1px solid rgba(94,196,120,0.3);
}
.form { display: flex; flex-direction: column; gap: 16px; }
.grid-2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
}
.unlock-hero {
display: grid;
grid-template-columns: 1.4fr 1fr;
gap: 18px;
padding: 16px;
border-radius: 16px;
background: rgba(0,0,0,0.2);
}
.unlock-row { display: flex; align-items: center; gap: 12px; }
.unlock-row input[type=range] { flex: 1; }
.bar-preview {
position: relative;
height: 12px;
border-radius: 999px;
background: rgba(255,255,255,0.08);
margin-top: 14px;
}
.bar-preview-fill {
height: 100%;
border-radius: inherit;
background: linear-gradient(90deg, #3f9d68, #7be0a4);
}
.bar-preview span {
position: absolute; top: -18px; transform: translateX(-50%);
}
.hint { color: var(--muted); font-size: 13px; }
.price-box { display: flex; flex-direction: column; gap: 8px; }
.yuan { color: var(--accent-2); font-weight: 600; }
.chapter-editor {
border: 1px solid var(--line);
border-radius: 14px;
padding: 12px;
display: flex;
flex-direction: column;
gap: 10px;
}
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
display: flex; justify-content: space-between; gap: 16px; align-items: center;
padding: 14px 0; border-bottom: 1px solid var(--line);
}
.badge {
flex-shrink: 0;
font-size: 12px;
padding: 4px 10px;
border-radius: 999px;
}
.badge.ok { background: rgba(94,196,120,.18); color: #9ee0b4; }
.badge.bad { background: rgba(220,80,60,.18); color: #ffb4a8; }
.badge.manual { background: rgba(215,179,90,.18); color: #f0d78a; }
.fee-note { margin-top: 20px; color: var(--muted); }
.fee-note ul { padding-left: 18px; }
.guide-ol { color: var(--muted); line-height: 1.7; padding-left: 22px; }
.guide-ol code {
color: var(--accent-2);
background: rgba(0,0,0,0.25);
padding: 2px 8px;
border-radius: 6px;
}
/* 平台选择中间页 */
.platform-page {
min-height: 100vh;
display: grid;
place-items: center;
padding: 32px 20px;
position: relative;
}
.platform-bg {
position: absolute;
inset: 0;
pointer-events: none;
background:
radial-gradient(700px 420px at 18% 8%, rgba(94, 196, 120, 0.18), transparent 55%),
radial-gradient(640px 400px at 88% 12%, rgba(254, 44, 85, 0.1), transparent 52%),
radial-gradient(480px 320px at 50% 100%, rgba(37, 244, 238, 0.06), transparent 55%);
}
.platform-inner {
position: relative;
width: min(720px, 100%);
}
.platform-brand {
display: flex;
gap: 14px;
align-items: center;
margin-bottom: 28px;
}
.platform-brand h1 {
margin: 0 0 4px;
font-family: var(--font-display);
font-size: 28px;
}
.platform-brand p {
margin: 0;
color: var(--muted);
font-size: 14px;
line-height: 1.5;
}
.platform-brand-note {
opacity: 0.7;
font-size: 13px;
}
.platform-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.platform-grid--duo {
grid-template-columns: 1fr 1fr;
}
.platform-card {
text-align: left;
border: 1px solid var(--line);
border-radius: 20px;
padding: 22px 20px 20px;
background: rgba(21, 32, 25, 0.9);
color: var(--text);
cursor: pointer;
display: flex;
flex-direction: column;
gap: 8px;
min-height: 200px;
transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.platform-card:hover {
transform: translateY(-3px);
}
.platform-card-top {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 6px;
}
.platform-ico {
width: 48px;
height: 48px;
border-radius: 14px;
display: grid;
place-items: center;
font-size: 22px;
line-height: 1;
}
.platform-ico--wechat {
background: rgba(94, 196, 120, 0.15);
box-shadow: inset 0 0 0 1px rgba(94, 196, 120, 0.25);
}
.platform-ico--douyin {
background: linear-gradient(145deg, rgba(254, 44, 85, 0.9), rgba(37, 244, 238, 0.55));
color: #fff;
font-weight: 800;
font-size: 18px;
font-family: var(--font-display);
box-shadow: 0 8px 20px rgba(254, 44, 85, 0.28);
}
.platform-badge {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 4px 9px;
border-radius: 999px;
color: var(--accent);
background: rgba(94, 196, 120, 0.12);
border: 1px solid rgba(94, 196, 120, 0.28);
}
.platform-badge--dy {
color: #ff7a93;
background: rgba(254, 44, 85, 0.1);
border-color: rgba(254, 44, 85, 0.28);
}
.platform-card--wechat:hover {
border-color: rgba(94, 196, 120, 0.5);
box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}
.platform-card--douyin {
background:
linear-gradient(160deg, rgba(22, 14, 20, 0.96), rgba(12, 12, 16, 0.96));
border-color: rgba(255, 255, 255, 0.08);
}
.platform-card--douyin:hover {
border-color: rgba(254, 44, 85, 0.45);
box-shadow: 0 16px 40px rgba(254, 44, 85, 0.16);
}
.platform-card strong {
font-family: var(--font-display);
font-size: 20px;
letter-spacing: -0.02em;
}
.platform-desc {
color: var(--muted);
font-size: 13px;
line-height: 1.5;
flex: 1;
}
.platform-cta {
margin-top: 8px;
color: var(--accent);
font-weight: 700;
font-size: 14px;
}
.platform-card--douyin .platform-cta {
color: #ff7a93;
}
@media (max-width: 960px) {
.shell { grid-template-columns: 1fr; }
.side { border-right: none; border-bottom: 1px solid var(--line); }
.stat-grid, .unlock-hero, .grid-2, .platform-grid { grid-template-columns: 1fr; }
}