273 lines
4.7 KiB
CSS
273 lines
4.7 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
--bg: #02040b;
|
|
--panel: #09101b;
|
|
--border: #164a76;
|
|
--text: #e6edf3;
|
|
--muted: #7d9bb1;
|
|
--accent: #58d8ff;
|
|
--accent-soft: rgba(88, 216, 255, 0.16);
|
|
--danger: #ff5a5f;
|
|
--radius: 20px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
min-height: 100%;
|
|
background:
|
|
radial-gradient(
|
|
circle at top,
|
|
rgba(88, 216, 255, 0.08),
|
|
transparent 35%
|
|
),
|
|
linear-gradient(180deg, #02040b 0%, #050915 100%);
|
|
color: var(--text);
|
|
font-family: "Fira Code", Consolas, "Courier New", monospace;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
body {
|
|
padding: 0;
|
|
}
|
|
|
|
a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover,
|
|
a:focus {
|
|
color: #bae9ff;
|
|
}
|
|
|
|
.site-shell {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 24px;
|
|
}
|
|
|
|
.site-header {
|
|
padding: 28px 20px;
|
|
border: 1px solid rgba(88, 216, 255, 0.12);
|
|
border-radius: var(--radius);
|
|
background: rgba(6, 13, 22, 0.85);
|
|
backdrop-filter: blur(12px);
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.header-inner {
|
|
display: grid;
|
|
gap: 20px;
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0 0 10px;
|
|
color: var(--accent);
|
|
letter-spacing: 0.2em;
|
|
text-transform: uppercase;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.site-header h1 {
|
|
margin: 0;
|
|
font-size: clamp(2rem, 4vw, 3.6rem);
|
|
}
|
|
|
|
.subtitle {
|
|
margin: 14px 0 0;
|
|
color: var(--muted);
|
|
max-width: 700px;
|
|
}
|
|
|
|
.site-nav {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.nav-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(88, 216, 255, 0.12);
|
|
background: rgba(255, 255, 255, 0.02);
|
|
transition:
|
|
background 0.2s ease,
|
|
border-color 0.2s ease;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
background: rgba(88, 216, 255, 0.12);
|
|
border-color: rgba(88, 216, 255, 0.28);
|
|
}
|
|
|
|
.hero-panel,
|
|
.content-panel {
|
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
background: rgba(8, 16, 28, 0.88);
|
|
border-radius: var(--radius);
|
|
padding: 28px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.hero-panel {
|
|
display: grid;
|
|
grid-template-columns: 1.6fr 1fr;
|
|
gap: 24px;
|
|
align-items: center;
|
|
}
|
|
|
|
.hero-panel h2 {
|
|
margin-top: 0;
|
|
font-size: clamp(2.1rem, 3.5vw, 3.5rem);
|
|
}
|
|
|
|
.hero-panel p {
|
|
max-width: 640px;
|
|
}
|
|
|
|
.hero-code {
|
|
background: rgba(15, 23, 40, 0.95);
|
|
border: 1px solid rgba(88, 216, 255, 0.14);
|
|
border-radius: 18px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hero-code pre {
|
|
margin: 0;
|
|
padding: 24px;
|
|
font-size: 0.92rem;
|
|
color: #a7d2ff;
|
|
}
|
|
|
|
.post-grid,
|
|
.overview-grid {
|
|
display: grid;
|
|
gap: 20px;
|
|
}
|
|
|
|
.post-grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
}
|
|
|
|
.overview-grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
}
|
|
|
|
.post-card,
|
|
.overview-card {
|
|
border: 1px solid rgba(88, 216, 255, 0.1);
|
|
border-radius: 18px;
|
|
padding: 24px;
|
|
background: rgba(10, 18, 32, 0.9);
|
|
transition:
|
|
transform 0.2s ease,
|
|
border-color 0.2s ease;
|
|
}
|
|
|
|
.post-card:hover,
|
|
.overview-card:hover {
|
|
transform: translateY(-4px);
|
|
border-color: rgba(88, 216, 255, 0.22);
|
|
}
|
|
|
|
.post-card h3,
|
|
.overview-card h3 {
|
|
margin: 8px 0 14px;
|
|
color: #f1f8ff;
|
|
}
|
|
|
|
.card-meta {
|
|
margin: 0 0 12px;
|
|
color: var(--accent);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.post-card p,
|
|
.overview-card p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.post-detail {
|
|
max-width: 900px;
|
|
}
|
|
|
|
.detail-header {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.post-body {
|
|
padding-top: 8px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.post-body h2,
|
|
.post-body h3,
|
|
.post-body h4 {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.post-body code,
|
|
.post-body pre {
|
|
font-family: "Fira Code", Consolas, "Courier New", monospace;
|
|
}
|
|
|
|
.post-body pre {
|
|
background: rgba(4, 11, 20, 0.95);
|
|
padding: 18px;
|
|
border-radius: 16px;
|
|
overflow-x: auto;
|
|
border: 1px solid rgba(88, 216, 255, 0.14);
|
|
}
|
|
|
|
.post-body code {
|
|
background: rgba(88, 216, 255, 0.08);
|
|
padding: 3px 6px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 12px 18px;
|
|
margin-top: 20px;
|
|
background: var(--accent);
|
|
color: #02040b;
|
|
border-radius: 999px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.site-footer {
|
|
padding: 24px 20px;
|
|
text-align: center;
|
|
color: var(--muted);
|
|
}
|
|
|
|
@media (max-width: 840px) {
|
|
.hero-panel {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.site-shell {
|
|
padding: 16px;
|
|
}
|
|
|
|
.site-nav {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.button {
|
|
width: 100%;
|
|
}
|
|
}
|