Files
Airtep/gig-poc/apps/web/src/styles/global.css
2026-03-30 20:49:40 +08:00

177 lines
2.8 KiB
CSS

:root {
font-family: "PingFang SC", "Noto Sans SC", sans-serif;
color: #0f172a;
background:
radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 25%),
radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.16), transparent 22%),
linear-gradient(135deg, #f8fafc 0%, #eefbf3 45%, #f3f7fb 100%);
line-height: 1.5;
font-weight: 400;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
}
button,
textarea {
font: inherit;
}
.layout-shell {
display: grid;
grid-template-columns: 320px 1fr;
min-height: 100vh;
}
.side-nav {
padding: 32px 24px;
background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(21, 44, 79, 0.92) 100%);
color: #e2e8f0;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.eyebrow {
margin: 0 0 10px;
letter-spacing: 0.14em;
text-transform: uppercase;
font-size: 12px;
color: #38bdf8;
}
.side-copy {
color: #bfd6ea;
max-width: 220px;
}
.nav-list {
display: grid;
gap: 12px;
}
.nav-link {
color: #dbeafe;
text-decoration: none;
padding: 12px 14px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.06);
transition: transform 160ms ease, background 160ms ease;
}
.nav-link.active,
.nav-link:hover {
background: rgba(56, 189, 248, 0.18);
transform: translateX(3px);
}
.content-area {
padding: 28px;
}
.page-grid {
display: grid;
gap: 20px;
}
.hero-card,
.panel,
.match-card {
border: 1px solid rgba(148, 163, 184, 0.25);
background: rgba(255, 255, 255, 0.82);
backdrop-filter: blur(10px);
border-radius: 24px;
box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}
.hero-card,
.panel {
padding: 22px;
}
.panel-head,
.match-topline,
.button-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
textarea {
width: 100%;
margin: 12px 0 0;
border: 1px solid #cbd5e1;
border-radius: 18px;
padding: 16px;
background: #f8fafc;
resize: vertical;
}
button {
border: 0;
border-radius: 999px;
padding: 12px 18px;
background: linear-gradient(135deg, #0f766e 0%, #0284c7 100%);
color: white;
cursor: pointer;
}
button.ghost {
background: #e2e8f0;
color: #0f172a;
}
button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.badge {
background: #dcfce7;
color: #166534;
border-radius: 999px;
padding: 4px 12px;
font-size: 12px;
}
.code-block,
.mini-code {
margin: 0;
overflow: auto;
background: #0f172a;
color: #dbeafe;
border-radius: 18px;
padding: 16px;
}
.match-grid {
display: grid;
gap: 14px;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.match-card {
padding: 18px;
}
.reason-list p {
margin: 10px 0;
}
@media (max-width: 920px) {
.layout-shell {
grid-template-columns: 1fr;
}
.side-copy {
max-width: none;
}
}