EternalAI/styles.css

1434 lines
26 KiB
CSS

/* Reset & base */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--bg: #050508;
--bg-elevated: rgba(15, 18, 32, 0.72);
--card-bg: rgba(20, 24, 45, 0.55);
--card-border: rgba(147, 155, 211, 0.22);
--card-glow: rgba(120, 140, 255, 0.18);
--text: #f1f3fb;
--text-muted: #9aa3c2;
--accent: #7c8cff;
--accent-soft: #a5b4fc;
--accent-dark: #4b55a8;
--distill-pink: #ffb6d5;
--distill-purple: #c4b5fd;
--radius: 24px;
--radius-sm: 14px;
--shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
--transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
html {
scroll-behavior: smooth;
}
body {
min-height: 100vh;
font-family: "Inter", "Noto Serif SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background:
linear-gradient(90deg, #06040d 0%, transparent 18%, transparent 82%, #06040d 100%),
linear-gradient(180deg, transparent 0%, transparent 55%, #06040d 92%),
url(img/bg.png);
background-color: #06040d;
background-size: 100% 100%, 100% 100%, auto 100vh;
background-position: center, center, center top;
background-repeat: no-repeat, no-repeat, no-repeat;
background-attachment: scroll, scroll, scroll;
color: var(--text);
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}
.universe,
.stars,
.glow-orb {
display: none;
}
/* App shell */
.app {
position: relative;
z-index: 1;
min-height: 100vh;
max-width: 520px;
margin: 0 auto;
padding: 48px 38px 32px;
display: flex;
flex-direction: column;
}
.view {
display: none;
flex: 1;
flex-direction: column;
animation: fadeIn 0.5s ease forwards;
}
.view.active {
display: flex;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
/* Landing */
.view--landing {
justify-content: flex-start;
padding-top: 40vh;
gap: 0;
}
/* Cards */
.cards {
display: flex;
flex-direction: column;
gap: 22px;
margin: 0;
}
.card {
position: relative;
border-radius: 30px;
overflow: hidden;
transition: transform var(--transition), box-shadow var(--transition);
cursor: pointer;
isolation: isolate;
}
.card__frame {
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
z-index: 3;
}
/* Characters card: deep space crystal */
.card--characters {
min-height: 188px;
display: flex;
align-items: center;
padding: 26px 24px;
background:
linear-gradient(100deg, rgba(8, 10, 26, 0.82) 0%, rgba(15, 20, 55, 0.45) 45%, transparent 75%),
url(img/card1.png);
background-size: cover, cover;
background-position: center, center;
box-shadow:
inset 0 0 0 1px rgba(255, 255, 255, 0.18),
0 0 0 1px rgba(140, 160, 255, 0.28),
0 12px 40px rgba(0, 0, 0, 0.55),
0 0 48px rgba(100, 120, 255, 0.2);
}
.card--characters .card__frame {
box-shadow:
inset 0 0 0 1px rgba(255, 255, 255, 0.12),
inset 0 0 24px rgba(120, 140, 255, 0.12);
}
.card--characters:hover {
transform: translateY(-3px);
box-shadow:
inset 0 0 0 1px rgba(255, 255, 255, 0.25),
0 0 0 1px rgba(160, 180, 255, 0.45),
0 18px 50px rgba(0, 0, 0, 0.6),
0 0 60px rgba(110, 135, 255, 0.3);
}
/* Distill card: warm sunset lovers */
.card--distill {
min-height: 210px;
display: flex;
align-items: flex-end;
padding: 26px 24px;
background:
linear-gradient(100deg, rgba(45, 25, 60, 0.78) 0%, rgba(80, 40, 80, 0.35) 40%, transparent 72%),
linear-gradient(0deg, rgba(20, 15, 35, 0.55) 0%, transparent 45%),
url(img/card2.png);
background-size: cover, cover, cover;
background-position: center, center, center;
box-shadow:
inset 0 0 0 1px rgba(255, 255, 255, 0.2),
0 0 0 1px rgba(255, 160, 205, 0.35),
0 12px 40px rgba(0, 0, 0, 0.5),
0 0 52px rgba(255, 130, 180, 0.22);
}
.card--distill .card__frame {
box-shadow:
inset 0 0 0 1px rgba(255, 255, 255, 0.1),
inset 0 0 28px rgba(255, 160, 200, 0.12);
}
.card--distill:hover {
transform: translateY(-3px);
box-shadow:
inset 0 0 0 1px rgba(255, 255, 255, 0.28),
0 0 0 1px rgba(255, 170, 210, 0.5),
0 18px 50px rgba(0, 0, 0, 0.55),
0 0 68px rgba(255, 140, 190, 0.32);
}
.card__content {
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
z-index: 2;
}
.card__title {
font-family: "Noto Serif SC", serif;
font-size: 27px;
font-weight: 700;
letter-spacing: 1px;
color: #fff;
text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.card__desc {
font-size: 14px;
color: rgba(235, 238, 255, 0.82);
margin-bottom: 6px;
text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 10px 20px;
border-radius: 999px;
border: 1px solid transparent;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all var(--transition);
font-family: inherit;
white-space: nowrap;
}
.btn--primary {
background: linear-gradient(135deg, #8b9dff 0%, #6c7bf7 100%);
color: #fff;
box-shadow: 0 6px 24px rgba(108, 123, 247, 0.35);
}
.btn--primary:hover {
transform: translateY(-1px);
box-shadow: 0 10px 32px rgba(108, 123, 247, 0.5);
}
.btn--outline {
background: rgba(0, 0, 0, 0.22);
border-color: rgba(255,255,255,0.35);
color: var(--text);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.btn--outline:hover {
background: rgba(0, 0, 0, 0.35);
border-color: rgba(255,255,255,0.55);
}
.btn--ghost {
background: transparent;
color: var(--text-muted);
}
.btn--ghost:hover {
color: var(--text);
}
.btn--small {
padding: 7px 14px;
font-size: 13px;
}
.btn--block {
width: 100%;
}
.btn__arrow {
transition: transform var(--transition);
}
.btn:hover .btn__arrow {
transform: translateX(3px);
}
.icon-btn {
width: 38px;
height: 38px;
border-radius: 50%;
border: 1px solid rgba(255,255,255,0.12);
background: rgba(255,255,255,0.05);
color: var(--text);
font-size: 18px;
cursor: pointer;
transition: background var(--transition);
}
.icon-btn:hover {
background: rgba(255,255,255,0.12);
}
/* Footer */
.landing-footer {
display: flex;
justify-content: space-between;
margin-top: 28px;
padding: 0 6px 8px;
}
.footer-link {
font-size: 13px;
color: var(--text-muted);
text-decoration: none;
transition: color var(--transition);
}
.footer-link:hover {
color: var(--text);
}
/* Creator view */
.view--creator {
padding-top: 40vh;
}
.creator-header {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 24px;
}
.creator-brand {
display: flex;
flex-direction: column;
flex: 1;
}
.creator-brand__name {
font-family: "Noto Serif SC", serif;
font-size: 18px;
font-weight: 600;
letter-spacing: 1px;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.creator-brand__step {
font-size: 12px;
color: var(--text-muted);
text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.stepper {
display: flex;
gap: 6px;
}
.stepper__dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: rgba(255,255,255,0.15);
transition: background var(--transition);
}
.stepper__dot.active {
background: var(--accent);
box-shadow: 0 0 8px var(--accent);
}
/* Form */
.creator-form {
display: flex;
flex-direction: column;
flex: 1;
}
.form-step {
display: none;
flex-direction: column;
flex: 1;
border: none;
animation: fadeIn 0.35s ease;
}
.form-step.active {
display: flex;
}
.form-step__legend {
font-family: "Noto Serif SC", serif;
font-size: 22px;
font-weight: 600;
margin-bottom: 18px;
padding: 0;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.field-group {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
}
.field {
display: flex;
flex-direction: column;
gap: 6px;
grid-column: 1 / -1;
}
.field--half {
grid-column: span 1;
}
.field--checkbox {
flex-direction: row;
align-items: center;
gap: 10px;
cursor: pointer;
}
.field__label {
font-size: 13px;
color: var(--text-muted);
}
.field__label small {
color: rgba(154, 163, 194, 0.7);
font-size: 11px;
}
.field__input {
width: 100%;
padding: 12px 14px;
border-radius: var(--radius-sm);
border: 1px solid rgba(255,255,255,0.12);
background: rgba(8, 10, 26, 0.78);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
color: var(--text);
font-size: 14px;
font-family: inherit;
outline: none;
transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.field__input::placeholder {
color: rgba(154, 163, 194, 0.7);
}
.field__input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.12);
}
textarea.field__input {
resize: vertical;
min-height: 86px;
line-height: 1.6;
}
textarea.field__input--tall {
min-height: 120px;
}
.field--checkbox input {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.checkmark {
width: 18px;
height: 18px;
border-radius: 5px;
border: 1px solid rgba(255,255,255,0.2);
background: rgba(8, 10, 26, 0.78);
display: grid;
place-items: center;
transition: all var(--transition);
flex-shrink: 0;
}
.field--checkbox input:checked + .checkmark {
background: var(--accent);
border-color: var(--accent);
}
.field--checkbox input:checked + .checkmark::after {
content: "✓";
color: #fff;
font-size: 11px;
font-weight: 700;
}
.form-actions {
margin-top: auto;
padding-top: 22px;
display: flex;
justify-content: flex-end;
}
.form-actions--split {
justify-content: space-between;
}
/* Result panel */
.result-panel {
display: flex;
flex-direction: column;
gap: 18px;
animation: fadeIn 0.5s ease;
}
.result-panel__header {
text-align: center;
}
.result-panel__title {
font-family: "Noto Serif SC", serif;
font-size: 24px;
font-weight: 600;
}
.result-panel__desc {
font-size: 13px;
color: var(--text-muted);
margin-top: 4px;
}
.result-panel__files {
display: flex;
gap: 12px;
}
.file-card {
flex: 1;
display: flex;
align-items: center;
gap: 10px;
padding: 14px;
border-radius: var(--radius-sm);
border: 1px solid var(--card-border);
background: var(--card-bg);
backdrop-filter: blur(16px);
}
.file-card__icon {
font-size: 24px;
}
.file-card__info {
display: flex;
flex-direction: column;
flex: 1;
gap: 2px;
}
.file-card__info strong {
font-size: 14px;
}
.file-card__info small {
font-size: 11px;
color: var(--text-muted);
}
.result-panel__preview {
border-radius: var(--radius);
border: 1px solid var(--card-border);
background: rgba(0, 0, 0, 0.35);
overflow: hidden;
}
.preview-tabs {
display: flex;
border-bottom: 1px solid rgba(255,255,255,0.08);
}
.preview-tab {
flex: 1;
padding: 12px;
background: transparent;
border: none;
color: var(--text-muted);
font-size: 13px;
cursor: pointer;
transition: color var(--transition), background var(--transition);
}
.preview-tab.active {
color: var(--text);
background: rgba(255,255,255,0.05);
}
.preview-code {
padding: 16px;
margin: 0;
overflow-x: auto;
max-height: 320px;
overflow-y: auto;
font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
font-size: 12px;
line-height: 1.6;
color: #d4d8f0;
white-space: pre-wrap;
word-break: break-word;
}
.preview-code code {
font-family: inherit;
}
/* Auth view */
.view--auth {
padding-top: 40vh;
}
.auth-tabs {
display: flex;
gap: 8px;
margin-bottom: 22px;
padding: 5px;
border-radius: var(--radius);
background: rgba(8, 9, 22, 0.55);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-tab {
flex: 1;
padding: 10px;
border-radius: var(--radius-sm);
border: none;
background: transparent;
color: var(--text-muted);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: color var(--transition), background var(--transition);
}
.auth-tab.active {
background: rgba(255, 255, 255, 0.1);
color: var(--text);
}
.auth-form {
display: none;
flex-direction: column;
flex: 1;
animation: fadeIn 0.35s ease;
}
.auth-form.active {
display: flex;
}
.auth-hint {
margin-top: 14px;
font-size: 12px;
color: var(--text-muted);
text-align: center;
line-height: 1.6;
}
/* Distill ex service page */
.view--distill-page {
padding-top: 40vh;
}
.distill-page {
display: flex;
flex-direction: column;
gap: 20px;
}
.distill-quick {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 12px 16px;
border-radius: var(--radius-sm);
background: linear-gradient(135deg, rgba(255, 160, 205, 0.22), rgba(160, 140, 255, 0.22));
border: 1px solid rgba(255, 160, 205, 0.35);
color: #ffe4f0;
font-size: 14px;
text-decoration: none;
text-align: center;
transition: transform var(--transition), box-shadow var(--transition);
}
.distill-quick:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(255, 130, 180, 0.2);
}
.distill-section {
padding: 18px;
border-radius: var(--radius);
background: rgba(8, 9, 22, 0.55);
border: 1px solid rgba(255, 255, 255, 0.08);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
}
.distill-section__title {
font-family: "Noto Serif SC", serif;
font-size: 17px;
font-weight: 600;
margin-bottom: 10px;
color: #fff;
}
.distill-section__text,
.distill-list,
.distill-steps {
font-size: 13px;
line-height: 1.75;
color: rgba(220, 225, 255, 0.85);
}
.distill-list,
.distill-steps {
padding-left: 18px;
margin: 0;
}
.distill-list li {
margin-bottom: 6px;
}
.distill-steps li {
margin-bottom: 8px;
}
.distill-steps span {
color: var(--accent);
font-weight: 600;
margin-right: 4px;
}
.distill-price {
display: flex;
align-items: baseline;
justify-content: center;
gap: 8px;
padding: 18px;
border-radius: var(--radius);
background: rgba(8, 9, 22, 0.55);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.distill-price__label {
font-size: 14px;
color: var(--text-muted);
}
.distill-price__value {
font-size: 32px;
font-weight: 700;
color: #fff;
}
.distill-price__unit {
font-size: 13px;
color: var(--text-muted);
}
.distill-note,
.distill-revenue {
font-size: 12px;
line-height: 1.7;
color: var(--text-muted);
text-align: center;
}
.distill-revenue {
padding: 12px;
border-radius: var(--radius-sm);
background: rgba(255, 255, 255, 0.04);
}
/* Utility */
[hidden] {
display: none !important;
}
/* Role Library (P2) */
.view--role-library,
.view--role-detail,
.view--about,
.view--onboarding,
.view--creator-center {
padding-top: 40vh;
}
.role-list {
display: flex;
flex-direction: column;
gap: 14px;
}
.role-card {
display: flex;
align-items: center;
gap: 14px;
padding: 14px;
border-radius: var(--radius);
background: rgba(8, 9, 22, 0.55);
border: 1px solid rgba(255, 255, 255, 0.08);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
cursor: pointer;
transition: transform var(--transition), border-color var(--transition);
}
.role-card:hover {
transform: translateY(-2px);
border-color: rgba(124, 140, 255, 0.3);
}
.role-card__avatar {
width: 56px;
height: 56px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
border: 2px solid rgba(255, 255, 255, 0.15);
}
.role-card__info {
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
}
.role-card__name {
font-family: "Noto Serif SC", serif;
font-size: 16px;
font-weight: 600;
color: #fff;
}
.role-card__desc {
font-size: 12px;
color: var(--text-muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.role-card__price {
font-size: 15px;
font-weight: 600;
color: var(--accent-soft);
}
.role-card__status {
font-size: 11px;
padding: 2px 8px;
border-radius: 999px;
display: inline-block;
width: fit-content;
}
.role-card__status--running {
background: rgba(80, 200, 120, 0.18);
color: #6ee7a0;
}
.role-card__status--stopped {
background: rgba(200, 80, 80, 0.18);
color: #f08a8a;
}
.empty-state {
text-align: center;
padding: 40px 20px;
}
.empty-state__text {
font-family: "Noto Serif SC", serif;
font-size: 17px;
color: var(--text);
margin-bottom: 8px;
}
.empty-state__hint {
font-size: 13px;
color: var(--text-muted);
line-height: 1.6;
}
/* Role Detail (P3) */
.detail-page {
display: flex;
flex-direction: column;
gap: 16px;
}
.detail-hero {
width: 100%;
height: 200px;
border-radius: var(--radius);
background-size: cover;
background-position: center;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.detail-title {
font-family: "Noto Serif SC", serif;
font-size: 24px;
font-weight: 700;
color: #fff;
}
.detail-desc {
font-size: 14px;
line-height: 1.7;
color: rgba(220, 225, 255, 0.85);
}
.detail-price {
display: flex;
align-items: baseline;
gap: 4px;
}
.detail-price__value {
font-size: 28px;
font-weight: 700;
color: #fff;
}
.detail-price__unit {
font-size: 13px;
color: var(--text-muted);
}
.detail-paid {
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
padding: 20px;
border-radius: var(--radius);
background: rgba(8, 9, 22, 0.55);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.detail-qr {
width: 100%;
display: flex;
justify-content: center;
}
.qr-placeholder {
width: 160px;
height: 160px;
border-radius: var(--radius-sm);
background: rgba(255, 255, 255, 0.08);
border: 2px dashed rgba(255, 255, 255, 0.2);
display: grid;
place-items: center;
text-align: center;
font-size: 14px;
color: var(--text-muted);
line-height: 1.6;
}
.detail-paid__hint {
font-size: 12px;
color: var(--text-muted);
text-align: center;
line-height: 1.6;
}
.detail-avatar {
width: 80px;
height: 80px;
border-radius: 50%;
background-size: cover;
background-position: center;
border: 2px solid rgba(255, 255, 255, 0.2);
}
/* About Page (P5) */
.about-page {
display: flex;
flex-direction: column;
gap: 18px;
}
.about-section {
padding: 18px;
border-radius: var(--radius);
background: rgba(8, 9, 22, 0.55);
border: 1px solid rgba(255, 255, 255, 0.08);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
}
.about-section__title {
font-family: "Noto Serif SC", serif;
font-size: 16px;
font-weight: 600;
margin-bottom: 10px;
color: #fff;
}
.about-section__text {
font-size: 13px;
line-height: 1.75;
color: rgba(220, 225, 255, 0.85);
}
.faq-item {
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.faq-item:first-child {
border-top: none;
}
.faq-q {
width: 100%;
padding: 12px 0;
background: none;
border: none;
color: var(--text);
font-size: 13px;
font-family: inherit;
text-align: left;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
.faq-icon {
font-size: 18px;
color: var(--accent);
flex-shrink: 0;
}
.faq-a {
display: none;
padding-bottom: 12px;
}
.faq-a p {
font-size: 12px;
line-height: 1.7;
color: var(--text-muted);
}
/* Onboarding Page (P6) */
.onboarding-page {
display: flex;
flex-direction: column;
gap: 18px;
}
.onboarding-section {
padding: 18px;
border-radius: var(--radius);
background: rgba(8, 9, 22, 0.55);
border: 1px solid rgba(255, 255, 255, 0.08);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
}
.onboarding-section__title {
font-family: "Noto Serif SC", serif;
font-size: 16px;
font-weight: 600;
margin-bottom: 10px;
color: #fff;
}
.onboarding-section__text {
font-size: 13px;
line-height: 1.75;
color: rgba(220, 225, 255, 0.85);
}
.onboarding-list {
padding-left: 18px;
margin: 0;
font-size: 13px;
line-height: 1.75;
color: rgba(220, 225, 255, 0.85);
}
.onboarding-list li {
margin-bottom: 6px;
}
.onboarding-contact {
text-align: center;
}
.onboarding-qr {
width: 140px;
height: 140px;
margin: 0 auto 12px;
border-radius: var(--radius-sm);
background: rgba(255, 255, 255, 0.08);
border: 2px dashed rgba(255, 255, 255, 0.2);
display: grid;
place-items: center;
}
.onboarding-qr::after {
content: "二维码";
font-size: 12px;
color: var(--text-muted);
}
.onboarding-wechat {
font-size: 14px;
color: var(--text);
margin-bottom: 4px;
}
.onboarding-wechat-id {
font-size: 13px;
color: var(--accent-soft);
margin-bottom: 8px;
}
.onboarding-note {
font-size: 12px;
color: var(--text-muted);
line-height: 1.6;
}
/* Creator Center (P7) */
.center-tabs {
display: flex;
gap: 8px;
margin-bottom: 20px;
padding: 5px;
border-radius: var(--radius);
background: rgba(8, 9, 22, 0.55);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.center-tab {
flex: 1;
padding: 10px;
border-radius: var(--radius-sm);
border: none;
background: transparent;
color: var(--text-muted);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: color var(--transition), background var(--transition);
}
.center-tab.active {
background: rgba(255, 255, 255, 0.1);
color: var(--text);
}
.center-panel {
display: none;
flex-direction: column;
flex: 1;
gap: 16px;
}
.center-panel.active {
display: flex;
}
.income-balance {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 24px;
border-radius: var(--radius);
background: rgba(8, 9, 22, 0.55);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.income-balance__label {
font-size: 13px;
color: var(--text-muted);
}
.income-balance__value {
font-size: 36px;
font-weight: 700;
color: #fff;
}
.income-section {
padding: 18px;
border-radius: var(--radius);
background: rgba(8, 9, 22, 0.55);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.income-section__title {
font-family: "Noto Serif SC", serif;
font-size: 15px;
font-weight: 600;
margin-bottom: 12px;
color: #fff;
}
.income-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.income-record {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.income-record:last-child {
border-bottom: none;
}
.income-record__info {
display: flex;
flex-direction: column;
gap: 2px;
}
.income-record__role {
font-size: 13px;
color: var(--text);
}
.income-record__time {
font-size: 11px;
color: var(--text-muted);
}
.income-record__amount {
font-size: 14px;
font-weight: 600;
color: #6ee7a0;
}
.income-empty {
font-size: 13px;
color: var(--text-muted);
text-align: center;
padding: 12px;
}
.withdraw-form,
.settings-form {
display: flex;
flex-direction: column;
gap: 14px;
}
/* Tab Bar (U8) */
.tab-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
display: flex;
background: rgba(6, 6, 14, 0.92);
border-top: 1px solid rgba(255, 255, 255, 0.08);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
z-index: 100;
padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab-bar__item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
padding: 10px 0 8px;
background: none;
border: none;
color: var(--text-muted);
font-size: 11px;
font-family: inherit;
cursor: pointer;
transition: color var(--transition);
}
.tab-bar__item.active {
color: var(--accent);
}
.tab-bar__icon {
font-size: 20px;
line-height: 1;
}
.tab-bar__label {
font-size: 10px;
}
/* Add bottom padding for tab bar */
.app {
padding-bottom: 72px;
}
/* Responsive */
@media (max-width: 420px) {
.app {
padding: 36px 26px 24px;
}
.card--characters {
padding: 22px 20px;
}
.card__title {
font-size: 22px;
}
.field-group {
grid-template-columns: 1fr;
}
.field--half {
grid-column: 1 / -1;
}
.result-panel__files {
flex-direction: column;
}
}
@media (min-width: 640px) {
.app {
max-width: 560px;
}
}
/* ===== Accessibility (a11y) ===== */
/* Visually hidden, but available to screen readers */
.visually-hidden {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
margin: -1px !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;
}
/* Visible keyboard focus for all interactive elements */
.btn:focus-visible,
.icon-btn:focus-visible,
.tab-bar__item:focus-visible,
.auth-tab:focus-visible,
.center-tab:focus-visible,
.faq-q:focus-visible,
.preview-tab:focus-visible,
.footer-link:focus-visible,
.role-card:focus-visible {
outline: 2px solid var(--accent-soft);
outline-offset: 2px;
border-radius: 6px;
}
/* Views can receive focus via JS for screen-reader navigation */
.view {
outline: none;
}
.view:focus-visible {
outline: none;
}
/* FAQ answer region: ensure it's focusable-friendly */
.faq-a {
outline: none;
}
/* Skip link for keyboard users */
.skip-link {
position: absolute;
top: -40px;
left: 8px;
z-index: 1000;
padding: 8px 16px;
background: var(--accent);
color: #fff;
border-radius: 8px;
font-size: 14px;
text-decoration: none;
transition: top 0.2s;
}
.skip-link:focus {
top: 8px;
}
/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* === 管理员后台样式 === */
.admin-panel { min-height: 60vh; }
/* 审核状态标签颜色 */
.role-card__status--pending { background: #f3f4f6; color: #6b7280; }
.role-card__status--approved { background: #dbeafe; color: #1d4ed8; }
.role-card__status--rejected { background: #fee2e2; color: #dc2626; }
.role-card__status--syncing { background: #fef3c7; color: #d97706; }
.role-card__status--synced { background: #d1fae5; color: #059669; }
.role-card__status--failed { background: #ffedd5; color: #ea580c; }
/* 管理员筛选按钮 active 状态 */
.admin-filter.active { background: var(--primary, #667eea); color: #fff; border-color: var(--primary, #667eea); }
/* 管理员审核卡片 */
.admin-review-card { cursor: pointer; }