You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

315 lines
4.7 KiB
CSS

:root {
--bg: #f2f4f7;
--card: #ffffffd4;
--text: #10161d;
--muted: #5f6f7d;
--line: #d8e0e7;
--accent: #0f766e;
--accent-soft: #e6f7f4;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: "Segoe UI", "Noto Sans", sans-serif;
color: var(--text);
background: linear-gradient(160deg, #f9fafc, #eef4f7 45%, #f2f4f7);
min-height: 100vh;
overflow-x: hidden;
}
.app-shell {
width: min(1240px, 96vw);
margin: 24px auto;
display: grid;
grid-template-columns: 280px 1fr;
gap: 16px;
position: relative;
z-index: 2;
}
.card {
background: var(--card);
border: 1px solid var(--line);
border-radius: 16px;
padding: 16px;
backdrop-filter: blur(8px);
box-shadow: 0 14px 35px rgba(16, 22, 29, 0.06);
animation: rise 420ms ease both;
}
.side-nav {
position: sticky;
top: 16px;
height: fit-content;
display: grid;
gap: 12px;
}
.kicker {
margin: 0;
text-transform: uppercase;
letter-spacing: 0.14em;
color: var(--accent);
font-weight: 700;
font-size: 0.74rem;
}
.side-title {
margin: 0;
font-size: 1.3rem;
}
.content-area {
display: grid;
}
.panel {
display: none;
animation: fadeSlide 220ms ease;
}
.panel-active {
display: grid;
gap: 16px;
}
.hero h2 {
margin: 0 0 8px;
}
.hero-actions,
.editor-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-top: 10px;
}
.btn {
border: 1px solid var(--line);
background: #fff;
color: var(--text);
border-radius: 10px;
padding: 8px 12px;
cursor: pointer;
transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.btn:hover {
transform: translateY(-1px);
box-shadow: 0 8px 20px rgba(15, 118, 110, 0.1);
}
.btn-primary {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.menu-wrap {
position: relative;
}
.menu-toggle {
width: 100%;
}
.menu-list {
display: none;
position: absolute;
left: 0;
right: 0;
top: calc(100% + 8px);
border: 1px solid var(--line);
border-radius: 12px;
background: #ffffff;
box-shadow: 0 10px 28px rgba(16, 22, 29, 0.1);
padding: 6px;
z-index: 20;
}
.menu-list-open {
display: grid;
gap: 5px;
}
.menu-item {
border: 1px solid transparent;
background: #f7fafb;
color: var(--text);
border-radius: 8px;
padding: 8px 10px;
text-align: left;
cursor: pointer;
}
.menu-item-active {
background: var(--accent-soft);
border-color: color-mix(in oklab, var(--accent), #fff 70%);
}
.side-meta {
display: grid;
gap: 6px;
}
.badge {
border: 1px solid var(--line);
background: #f3f9fb;
border-radius: 999px;
padding: 4px 10px;
font-size: 0.8rem;
width: fit-content;
}
.result-box {
display: grid;
gap: 7px;
}
.muted {
color: var(--muted);
}
.small {
font-size: 0.86rem;
}
.mono {
font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
}
.table-wrap {
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
text-align: left;
padding: 8px;
border-bottom: 1px solid var(--line);
font-size: 0.9rem;
}
tbody tr {
transition: background-color 180ms ease;
}
tbody tr:hover {
background: #f4fbfa;
}
.editor {
width: 100%;
min-height: 320px;
border: 1px solid var(--line);
border-radius: 12px;
padding: 10px;
background: #fbfdff;
font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
font-size: 0.85rem;
margin-top: 10px;
}
.server-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px 14px;
}
.server-grid label {
display: grid;
gap: 6px;
font-size: 0.88rem;
}
.server-grid input,
.server-grid select {
border: 1px solid var(--line);
border-radius: 8px;
padding: 7px 9px;
font-size: 0.9rem;
background: #fff;
}
.bg-glow {
position: fixed;
width: 360px;
height: 360px;
border-radius: 50%;
filter: blur(55px);
opacity: 0.35;
pointer-events: none;
z-index: 1;
animation: drift 10s ease-in-out infinite alternate;
}
.bg-glow-a {
background: #8de4d5;
top: -110px;
right: -80px;
}
.bg-glow-b {
background: #a9c9ff;
bottom: -130px;
left: -90px;
animation-delay: 1.2s;
}
@keyframes rise {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeSlide {
from {
opacity: 0;
transform: translateX(7px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes drift {
from {
transform: translate(0, 0) scale(1);
}
to {
transform: translate(26px, -16px) scale(1.1);
}
}
@media (max-width: 980px) {
.app-shell {
grid-template-columns: 1fr;
}
.side-nav {
position: static;
}
}
@media (max-width: 740px) {
.server-grid {
grid-template-columns: 1fr;
}
}