Files
role-user/src/app/globals.css
T

1126 lines
19 KiB
CSS

:root {
color-scheme: light;
--background: #ffffff;
--foreground: #0a0a0a;
--foreground-soft: rgba(0, 0, 0, 0.72);
--muted: rgba(0, 0, 0, 0.5);
--muted-strong: rgba(0, 0, 0, 0.64);
--page: #f4f4f6;
--surface: #ffffff;
--surface-muted: #f5f5f5;
--surface-subtle: #fafafa;
--accent: #000000;
--accent-soft: rgba(0, 0, 0, 0.06);
--accent-ink: #ffffff;
--border: rgba(0, 0, 0, 0.08);
--border-strong: rgba(0, 0, 0, 0.14);
--ring: rgba(0, 0, 0, 0.28);
--success: #17734f;
--success-bg: #eef8f3;
--warning: #9a5d0a;
--warning-bg: #fff8ea;
--danger: #b42318;
--danger-bg: #fff1ef;
--radius-button: 4px;
--radius-input: 4px;
--radius-control: 7px;
--radius-card: 12px;
--shadow-panel: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 20px rgba(0, 0, 0, 0.04);
--shadow-floating: 0 12px 34px rgba(0, 0, 0, 0.065), 0 1px 2px rgba(0, 0, 0, 0.035);
--font-sans: "Inter", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
min-height: 100%;
}
html {
background: var(--page);
}
body {
background: var(--page);
color: var(--foreground);
font-family: var(--font-sans);
font-variant-numeric: tabular-nums;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
a {
color: inherit;
text-decoration: none;
}
button,
input,
textarea {
font: inherit;
}
button {
cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
outline: 2px solid var(--ring);
outline-offset: 2px;
}
.app-shell {
min-height: 100vh;
}
.app-main {
margin: 0 auto;
max-width: 480px;
min-height: 100vh;
padding: 14px 14px 104px;
}
.page-stack {
display: flex;
flex-direction: column;
gap: 12px;
}
.page-header,
.dashboard-hero,
.identity-card,
.profile-card,
.store-panel,
.section-block,
.login-panel,
.detail-card,
.info-list,
.metric-tile,
.quick-grid a,
.list-card,
.empty-state {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-card);
box-shadow: var(--shadow-panel);
}
.page-header {
display: flex;
flex-direction: column;
gap: 7px;
padding: 18px;
}
.page-header h1,
.dashboard-hero h1,
.login-hero h1,
.identity-card h2,
.profile-card h2,
.store-panel h2,
.section-title h2,
.list-card h2,
.list-card h3,
.empty-state h2 {
color: var(--foreground);
letter-spacing: 0;
margin: 0;
}
.page-header h1 {
font-size: 24px;
font-weight: 750;
line-height: 1.18;
}
.page-header p,
.dashboard-hero p,
.login-hero p,
.identity-card p,
.profile-card p,
.store-panel p,
.list-card p,
.empty-state p,
.muted-copy {
color: var(--muted);
font-size: 13px;
line-height: 1.6;
margin: 0;
}
.eyebrow,
.hero-kicker {
color: #a2a9b7;
font-size: 10px;
font-weight: 750;
letter-spacing: 0.1em;
line-height: 1;
margin: 0;
text-transform: uppercase;
}
.dashboard-hero {
display: flex;
flex-direction: column;
gap: 16px;
overflow: hidden;
padding: 18px;
position: relative;
}
.dashboard-hero::before {
background: linear-gradient(90deg, #0a0a0a, rgba(0, 0, 0, 0.18));
content: "";
height: 3px;
left: 0;
position: absolute;
right: 0;
top: 0;
}
.dashboard-hero__content {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
padding-top: 2px;
}
.dashboard-hero h1,
.login-hero h1 {
font-size: 28px;
font-weight: 800;
line-height: 1.12;
}
.dashboard-hero p:not(.hero-kicker),
.login-hero p:not(.hero-kicker) {
max-width: 28em;
}
.hero-stat-strip {
background: var(--surface-muted);
border: 1px solid var(--border);
border-radius: var(--radius-card);
display: grid;
gap: 8px;
grid-template-columns: repeat(3, minmax(0, 1fr));
padding: 8px;
}
.hero-stat-strip span {
background: var(--surface);
border: 1px solid rgba(0, 0, 0, 0.055);
border-radius: var(--radius-control);
color: var(--muted);
display: flex;
flex-direction: column;
font-size: 12px;
font-weight: 650;
gap: 5px;
min-width: 0;
padding: 11px 10px;
}
.hero-stat-strip strong {
color: var(--foreground);
font-size: 24px;
font-weight: 800;
line-height: 1;
}
.identity-card {
align-items: center;
display: grid;
gap: 12px;
grid-template-columns: auto minmax(0, 1fr);
padding: 14px;
}
.identity-card__media {
align-items: center;
background: var(--surface-muted);
border: 1px solid var(--border);
border-radius: var(--radius-card);
display: flex;
height: 60px;
justify-content: center;
width: 60px;
}
.identity-card__body {
min-width: 0;
}
.identity-card h2,
.profile-card h2,
.store-panel h2 {
font-size: 18px;
font-weight: 750;
line-height: 1.25;
}
.identity-card p,
.profile-card p,
.store-panel p,
.list-card p,
.empty-state p {
margin-top: 5px;
}
.avatar {
align-items: center;
background: linear-gradient(135deg, rgba(17, 17, 17, 0.94), rgba(97, 97, 97, 0.78));
border-radius: 50%;
color: #ffffff;
display: inline-flex;
font-size: 19px;
font-weight: 750;
height: 46px;
justify-content: center;
width: 46px;
}
.avatar.large {
font-size: 25px;
height: 66px;
width: 66px;
}
.pill-row {
display: flex;
flex-wrap: wrap;
gap: 7px;
margin-top: 10px;
}
.status-pill {
align-items: center;
background: var(--surface-muted);
border: 1px solid var(--border);
border-radius: 999px;
color: var(--muted-strong);
display: inline-flex;
font-size: 12px;
font-weight: 650;
line-height: 1.2;
min-height: 25px;
padding: 5px 10px;
white-space: nowrap;
}
.status-pill--default {
background: var(--surface-muted);
color: var(--muted-strong);
}
.status-pill--success {
background: var(--success-bg);
border-color: rgba(23, 115, 79, 0.22);
color: var(--success);
}
.status-pill--warning {
background: var(--warning-bg);
border-color: rgba(154, 93, 10, 0.22);
color: var(--warning);
}
.status-pill--danger {
background: var(--danger-bg);
border-color: rgba(180, 35, 24, 0.22);
color: var(--danger);
}
.metric-grid,
.quick-grid {
display: grid;
gap: 10px;
}
.metric-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric-tile {
color: var(--foreground);
display: flex;
flex-direction: column;
gap: 8px;
min-height: 104px;
min-width: 0;
padding: 13px;
transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.metric-tile:hover,
.quick-grid a:hover,
.list-card[href]:hover {
border-color: var(--border-strong);
box-shadow: var(--shadow-floating);
}
.metric-tile:active,
.quick-grid a:active,
.list-card[href]:active {
transform: translateY(1px);
}
.metric-tile svg,
.quick-grid svg,
.section-title svg,
.info-list svg,
.store-panel svg,
.empty-state svg {
color: rgba(0, 0, 0, 0.52);
flex: 0 0 auto;
}
.metric-tile span {
color: var(--foreground);
font-size: 27px;
font-weight: 800;
line-height: 1;
}
.metric-tile p {
color: var(--muted);
font-size: 12px;
font-weight: 650;
margin: 0;
}
.section-block {
display: flex;
flex-direction: column;
gap: 12px;
padding: 15px;
}
.section-title {
align-items: center;
display: flex;
gap: 12px;
justify-content: space-between;
min-width: 0;
}
.section-title h2 {
font-size: 16px;
font-weight: 750;
line-height: 1.3;
}
.section-title a,
.inline-link {
align-items: center;
color: var(--muted-strong);
display: inline-flex;
font-size: 13px;
font-weight: 650;
gap: 3px;
min-height: 30px;
white-space: nowrap;
}
.section-title a:hover,
.inline-link:hover {
color: var(--foreground);
}
.inline-link {
width: fit-content;
}
.list-stack {
display: flex;
flex-direction: column;
gap: 10px;
}
.list-card {
align-items: center;
display: flex;
gap: 12px;
justify-content: space-between;
min-height: 74px;
min-width: 0;
padding: 13px;
transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.list-card > div {
min-width: 0;
}
.list-card h2,
.list-card h3 {
font-size: 15px;
font-weight: 700;
line-height: 1.35;
overflow-wrap: anywhere;
}
.quick-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.quick-grid a {
align-items: center;
color: var(--foreground-soft);
display: flex;
flex-direction: column;
font-size: 13px;
font-weight: 650;
gap: 8px;
justify-content: center;
min-height: 76px;
min-width: 0;
padding: 12px 6px;
transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.empty-state {
align-items: center;
border-style: dashed;
box-shadow: none;
color: var(--muted);
display: flex;
flex-direction: column;
gap: 8px;
padding: 24px 14px;
text-align: center;
}
.empty-state h2 {
font-size: 16px;
font-weight: 700;
}
.empty-state p {
max-width: 26em;
}
.segmented {
background: #eeeeec;
border: 1px solid var(--border);
border-radius: var(--radius-card);
display: grid;
gap: 4px;
grid-template-columns: repeat(var(--segment-count, 4), minmax(0, 1fr));
padding: 4px;
}
.segmented a,
.segmented button {
align-items: center;
background: transparent;
border: 0;
border-radius: var(--radius-control);
color: var(--muted);
display: inline-flex;
font-size: 13px;
font-weight: 650;
justify-content: center;
min-height: 36px;
padding: 0 6px;
}
.segmented a.is-active,
.segmented button.is-active {
background: var(--surface);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
color: var(--foreground);
}
.store-panel {
align-items: center;
display: grid;
gap: 12px;
grid-template-columns: auto minmax(0, 1fr) auto;
padding: 15px;
}
.info-list {
overflow: hidden;
}
.info-list.compact {
box-shadow: none;
}
.info-list div {
align-items: center;
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
display: grid;
gap: 10px;
grid-template-columns: auto 78px minmax(0, 1fr);
min-height: 54px;
padding: 0 13px;
}
.info-list div:last-child {
border-bottom: 0;
}
.info-list span {
color: var(--muted);
font-size: 14px;
}
.info-list strong {
color: var(--foreground);
font-size: 14px;
font-weight: 650;
min-width: 0;
overflow-wrap: anywhere;
text-align: right;
}
.profile-card {
align-items: center;
display: flex;
flex-direction: column;
padding: 24px 16px;
text-align: center;
}
.detail-card {
display: flex;
flex-direction: column;
gap: 14px;
padding: 15px;
}
.detail-meta {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.detail-meta > span {
align-items: center;
color: var(--muted);
display: inline-flex;
font-size: 13px;
font-weight: 650;
gap: 4px;
margin-right: auto;
}
.long-copy {
color: var(--foreground);
font-size: 15px;
line-height: 1.76;
white-space: pre-wrap;
word-break: break-word;
}
.button-row {
display: grid;
gap: 10px;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-stack,
.login-form {
display: flex;
flex-direction: column;
gap: 14px;
}
.form-stack label,
.login-form label {
display: flex;
flex-direction: column;
gap: 8px;
}
.form-stack label > span,
.login-form label > span {
color: var(--foreground-soft);
font-size: 13px;
font-weight: 650;
}
.text-area,
.input-wrap {
background: var(--surface);
border: 1px solid var(--border-strong);
border-radius: var(--radius-input);
color: var(--foreground);
transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.text-area {
min-height: 98px;
outline: 0;
padding: 12px;
resize: vertical;
width: 100%;
}
.input-wrap {
align-items: center;
display: flex;
gap: 8px;
min-height: 42px;
padding: 0 12px;
}
.input-wrap:focus-within,
.text-area:focus {
border-color: rgba(0, 0, 0, 0.4);
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.input-wrap svg {
color: rgba(0, 0, 0, 0.42);
flex: 0 0 auto;
}
.input-wrap input {
background: transparent;
border: 0;
color: var(--foreground);
flex: 1;
font-size: 14px;
min-width: 0;
outline: 0;
}
.input-wrap input::placeholder,
.text-area::placeholder {
color: rgba(0, 0, 0, 0.32);
}
.timeline {
display: flex;
flex-direction: column;
gap: 10px;
}
.timeline-item {
border-left: 3px solid rgba(0, 0, 0, 0.32);
display: flex;
flex-direction: column;
gap: 4px;
padding: 2px 0 2px 12px;
}
.timeline-item strong {
font-size: 14px;
line-height: 1.45;
}
.timeline-item span {
color: var(--muted);
font-size: 12px;
}
.primary-button,
.secondary-button {
align-items: center;
border: 0;
border-radius: var(--radius-button);
display: inline-flex;
font-size: 13px;
font-weight: 650;
gap: 8px;
justify-content: center;
line-height: 1.2;
min-height: 42px;
padding: 0 16px;
transition: background-color 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
width: 100%;
}
.primary-button {
background: var(--accent);
color: var(--accent-ink);
}
.primary-button:hover {
opacity: 0.86;
}
.primary-button:disabled,
.secondary-button:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.secondary-button {
background: var(--surface);
border: 1px solid var(--border-strong);
color: var(--foreground);
}
.secondary-button:hover {
background: var(--surface-muted);
border-color: rgba(0, 0, 0, 0.24);
}
.secondary-button.danger {
background: var(--danger-bg);
border-color: rgba(180, 35, 24, 0.2);
color: var(--danger);
}
.icon-button {
align-items: center;
background: transparent;
border: 0;
border-radius: var(--radius-button);
color: var(--muted);
display: inline-flex;
flex: 0 0 auto;
height: 30px;
justify-content: center;
padding: 0;
width: 30px;
}
.icon-button:hover,
.icon-button:active {
background: var(--accent-soft);
color: var(--foreground);
}
.form-error,
.form-success {
border-radius: var(--radius-control);
font-size: 13px;
line-height: 1.5;
margin: 0;
padding: 10px 12px;
}
.form-error {
background: var(--danger-bg);
border: 1px solid rgba(180, 35, 24, 0.22);
color: var(--danger);
}
.form-success {
background: var(--success-bg);
border: 1px solid rgba(23, 115, 79, 0.22);
color: var(--success);
}
.login-page {
display: flex;
flex-direction: column;
gap: 12px;
margin: 0 auto;
max-width: 430px;
min-height: 100vh;
padding: 14px 14px 28px;
}
.login-hero {
background: var(--surface-muted);
border: 1px solid var(--border);
border-radius: var(--radius-card);
box-shadow: var(--shadow-panel);
display: flex;
flex-direction: column;
gap: 18px;
overflow: hidden;
padding: 18px;
position: relative;
}
.login-hero::after {
background-image:
linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
background-size: 32px 32px;
content: "";
inset: 0;
mask-image: linear-gradient(180deg, black, transparent 74%);
pointer-events: none;
position: absolute;
}
.login-brand-line {
align-items: center;
color: var(--foreground);
display: inline-flex;
font-size: 14px;
font-weight: 750;
gap: 10px;
position: relative;
z-index: 1;
}
.brand-mark {
background: var(--foreground);
border-radius: 50%;
display: inline-flex;
height: 24px;
overflow: hidden;
position: relative;
width: 24px;
}
.brand-mark::before {
background: var(--surface);
border-radius: 50%;
content: "";
height: 12px;
left: 5px;
position: absolute;
top: 5px;
width: 12px;
}
.brand-mark::after {
background: var(--foreground);
border-radius: 50%;
content: "";
height: 10px;
position: absolute;
right: 2px;
top: 12px;
width: 10px;
}
.login-hero h1,
.login-hero p {
position: relative;
z-index: 1;
}
.login-preview {
background: rgba(255, 255, 255, 0.7);
border: 1px solid rgba(0, 0, 0, 0.085);
border-radius: var(--radius-card);
display: flex;
flex-direction: column;
gap: 12px;
margin-top: 2px;
padding: 12px;
position: relative;
z-index: 1;
}
.login-preview__top,
.login-preview__grid {
display: grid;
gap: 8px;
}
.login-preview__top {
grid-template-columns: 1fr auto;
}
.login-preview__top span,
.login-preview__grid span {
background: rgba(0, 0, 0, 0.08);
border-radius: 999px;
height: 8px;
}
.login-preview__top span:first-child {
width: 108px;
}
.login-preview__top span:last-child {
width: 42px;
}
.login-preview__body {
background: var(--surface);
border: 1px solid rgba(0, 0, 0, 0.065);
border-radius: var(--radius-control);
color: var(--foreground);
display: flex;
flex-direction: column;
gap: 4px;
padding: 14px;
}
.login-preview__body strong {
font-size: 28px;
font-weight: 800;
line-height: 1;
}
.login-preview__body span {
color: var(--muted);
font-size: 13px;
font-weight: 650;
}
.login-preview__grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.login-preview__grid span {
border-radius: var(--radius-control);
height: 44px;
}
.login-panel {
padding: 18px;
}
.login-panel__header {
margin-bottom: 18px;
text-align: center;
}
.login-panel__header h2 {
color: var(--foreground);
font-size: 22px;
font-weight: 750;
line-height: 1.18;
margin: 0 0 6px;
}
.login-panel__header p {
color: var(--muted);
font-size: 13px;
line-height: 1.6;
margin: 0;
}
.bottom-nav {
backdrop-filter: blur(18px);
background: rgba(255, 255, 255, 0.94);
border-top: 1px solid rgba(0, 0, 0, 0.08);
bottom: 0;
box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.08);
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
left: 0;
min-height: calc(68px + env(safe-area-inset-bottom));
padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
position: fixed;
right: 0;
z-index: 20;
}
.bottom-nav__item {
align-items: center;
border-radius: var(--radius-button);
color: var(--muted);
display: flex;
flex-direction: column;
font-size: 11px;
font-weight: 650;
gap: 4px;
justify-content: center;
min-width: 0;
}
.bottom-nav__item.is-active {
background: var(--accent);
color: var(--accent-ink);
}
.environment-badge {
background: rgba(20, 20, 24, 0.86);
border-radius: 999px;
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
color: #ffffff;
font-size: 12px;
font-weight: 750;
letter-spacing: 0;
line-height: 1;
padding: 8px 10px;
position: fixed;
right: 12px;
top: 12px;
z-index: 60;
}
.skeleton {
animation: pulse 1.2s ease-in-out infinite;
background: linear-gradient(90deg, #ececef, #fafafa, #ececef);
background-size: 200% 100%;
border-radius: var(--radius-card);
}
.skeleton-title {
height: 72px;
}
.skeleton-card {
height: 112px;
}
@keyframes pulse {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
@media (max-width: 390px) {
.app-main,
.login-page {
padding-left: 12px;
padding-right: 12px;
}
.dashboard-hero h1,
.login-hero h1 {
font-size: 26px;
}
.metric-tile {
padding: 12px 10px;
}
.metric-tile span {
font-size: 25px;
}
.quick-grid a {
font-size: 12px;
}
}
@media (min-width: 768px) {
.app-main {
padding-top: 24px;
}
.login-page {
padding-top: 24px;
}
.page-header h1,
.dashboard-hero h1,
.login-hero h1 {
font-size: 32px;
}
.bottom-nav {
border: 1px solid rgba(0, 0, 0, 0.08);
border-radius: var(--radius-card);
bottom: 18px;
left: 50%;
max-width: 430px;
min-height: 66px;
padding: 8px;
right: auto;
transform: translateX(-50%);
width: calc(100% - 32px);
}
}