525 lines
8.1 KiB
CSS
525 lines
8.1 KiB
CSS
:root {
|
|
--ink: #0F1218;
|
|
--cyan: #00E5FF;
|
|
--cyan-50: #E8FCFF;
|
|
--white: #fff;
|
|
--gray-500: #5B6573;
|
|
--gray-100: #F2F4F7;
|
|
--gray-800: #1a1d24;
|
|
--gray-900: #14171e;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
|
|
color: var(--ink);
|
|
background: var(--white);
|
|
}
|
|
|
|
.container {
|
|
max-width: 1140px;
|
|
margin: 0 auto;
|
|
padding: 80px 24px;
|
|
}
|
|
|
|
/* Navigation */
|
|
.nav {
|
|
background: var(--ink);
|
|
padding: 16px 0;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
border-bottom: 1px solid rgba(255,255,255,0.08);
|
|
}
|
|
|
|
.nav-inner {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0 24px;
|
|
}
|
|
|
|
.nav-logo {
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
color: var(--cyan);
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
gap: 24px;
|
|
}
|
|
|
|
.nav-links a {
|
|
color: var(--gray-500);
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.nav-links a:hover {
|
|
color: var(--cyan);
|
|
}
|
|
|
|
/* Hero */
|
|
.hero {
|
|
background: var(--ink);
|
|
color: var(--white);
|
|
padding: 100px 0;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 64px;
|
|
font-weight: 800;
|
|
line-height: 1.05;
|
|
margin-bottom: 24px;
|
|
letter-spacing: -1.5px;
|
|
}
|
|
|
|
.hero-sub {
|
|
font-size: 19px;
|
|
color: #9aa3b2;
|
|
max-width: 640px;
|
|
margin-bottom: 36px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 14px 28px;
|
|
border-radius: 8px;
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--cyan);
|
|
color: var(--ink);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #1be5ff;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: transparent;
|
|
color: var(--white);
|
|
border: 2px solid rgba(255,255,255,0.25);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
border-color: var(--cyan);
|
|
color: var(--cyan);
|
|
}
|
|
|
|
/* Sections */
|
|
.section {
|
|
padding: 80px 0;
|
|
}
|
|
|
|
.section-dark {
|
|
background: var(--ink);
|
|
color: var(--white);
|
|
}
|
|
|
|
.section-dark .section-desc {
|
|
color: #9aa3b2;
|
|
}
|
|
|
|
.section h2 {
|
|
font-size: 36px;
|
|
font-weight: 700;
|
|
line-height: 1.15;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.section-desc {
|
|
font-size: 18px;
|
|
color: var(--gray-500);
|
|
max-width: 600px;
|
|
margin-bottom: 48px;
|
|
}
|
|
|
|
/* Architecture */
|
|
.arch-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 24px;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.arch-card {
|
|
background: var(--gray-100);
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.section-dark .arch-card {
|
|
background: var(--gray-800);
|
|
color: var(--white);
|
|
}
|
|
|
|
.arch-card-header {
|
|
background: var(--ink);
|
|
color: var(--cyan);
|
|
padding: 12px 20px;
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
letter-spacing: 0.5px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.section-dark .arch-card-header {
|
|
background: var(--gray-900);
|
|
}
|
|
|
|
.arch-card-body {
|
|
padding: 20px;
|
|
font-size: 14px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.arch-card-body code {
|
|
display: block;
|
|
background: rgba(0,0,0,0.06);
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.section-dark .arch-card-body code {
|
|
background: rgba(255,255,255,0.06);
|
|
}
|
|
|
|
.arch-sub {
|
|
font-weight: 700;
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.3px;
|
|
color: var(--gray-500);
|
|
}
|
|
|
|
.arch-desc {
|
|
display: block;
|
|
margin-top: 4px;
|
|
font-size: 13px;
|
|
color: var(--gray-500);
|
|
}
|
|
|
|
.params-bar {
|
|
display: flex;
|
|
gap: 40px;
|
|
padding: 20px 24px;
|
|
background: var(--gray-100);
|
|
border-radius: 12px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.section-dark .params-bar {
|
|
background: var(--gray-800);
|
|
}
|
|
|
|
.params-bar strong {
|
|
color: var(--cyan);
|
|
}
|
|
|
|
/* Generator */
|
|
.generator-box {
|
|
background: var(--gray-800);
|
|
border-radius: 16px;
|
|
padding: 32px;
|
|
max-width: 700px;
|
|
}
|
|
|
|
.gen-row {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.gen-input {
|
|
width: 100%;
|
|
padding: 14px 18px;
|
|
border-radius: 8px;
|
|
border: 2px solid rgba(255,255,255,0.12);
|
|
background: var(--gray-900);
|
|
color: var(--white);
|
|
font-size: 17px;
|
|
outline: none;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.gen-input:focus {
|
|
border-color: var(--cyan);
|
|
}
|
|
|
|
.gen-input::placeholder {
|
|
color: var(--gray-500);
|
|
}
|
|
|
|
.gen-controls {
|
|
display: flex;
|
|
gap: 32px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.gen-slider-group {
|
|
flex: 1;
|
|
}
|
|
|
|
.gen-slider-group label {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 14px;
|
|
color: #9aa3b2;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.gen-slider-group input[type="range"] {
|
|
width: 100%;
|
|
height: 4px;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
background: rgba(255,255,255,0.15);
|
|
border-radius: 2px;
|
|
outline: none;
|
|
}
|
|
|
|
.gen-slider-group input[type="range"]::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: var(--cyan);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-gen {
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.status-msg {
|
|
font-size: 14px;
|
|
color: #9aa3b2;
|
|
margin-bottom: 12px;
|
|
min-height: 20px;
|
|
}
|
|
|
|
.status-msg.error {
|
|
color: #ff6b6b;
|
|
}
|
|
|
|
.gen-output {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.gen-output-item {
|
|
background: var(--gray-900);
|
|
border-radius: 8px;
|
|
padding: 14px 18px;
|
|
font-size: 15px;
|
|
color: var(--white);
|
|
line-height: 1.5;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
.gen-output-item .gen-badge {
|
|
display: inline-block;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: var(--cyan);
|
|
background: rgba(0,229,255,0.1);
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(8px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* Examples */
|
|
.ex-tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-bottom: 28px;
|
|
background: var(--gray-100);
|
|
border-radius: 10px;
|
|
padding: 4px;
|
|
display: inline-flex;
|
|
}
|
|
|
|
.ex-tab {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
background: transparent;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
color: var(--gray-500);
|
|
}
|
|
|
|
.ex-tab.active {
|
|
background: var(--white);
|
|
color: var(--ink);
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
|
|
}
|
|
|
|
.ex-tab:hover:not(.active) {
|
|
color: var(--ink);
|
|
}
|
|
|
|
.ex-content {
|
|
display: none;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.ex-content.active {
|
|
display: flex;
|
|
}
|
|
|
|
.ex-item {
|
|
background: var(--gray-100);
|
|
border-radius: 10px;
|
|
padding: 16px 20px;
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.ex-item mark {
|
|
background: var(--cyan-50);
|
|
color: var(--ink);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-block;
|
|
background: var(--ink);
|
|
color: var(--cyan);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
padding: 3px 8px;
|
|
border-radius: 4px;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
/* Code */
|
|
.code-block {
|
|
background: var(--gray-900);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
margin-bottom: 20px;
|
|
border: 1px solid rgba(255,255,255,0.06);
|
|
}
|
|
|
|
.code-block:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.code-header {
|
|
padding: 10px 20px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--gray-500);
|
|
background: rgba(255,255,255,0.03);
|
|
border-bottom: 1px solid rgba(255,255,255,0.06);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.code-block pre {
|
|
padding: 20px;
|
|
font-size: 14px;
|
|
line-height: 1.7;
|
|
color: #e2e8f0;
|
|
overflow-x: auto;
|
|
font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
|
|
}
|
|
|
|
.code-block .kw { color: #ff79c6; }
|
|
.code-block .fn { color: #50fa7b; }
|
|
.code-block .str { color: #f1fa8c; }
|
|
.code-block .num { color: #bd93f9; }
|
|
|
|
/* Footer */
|
|
.footer {
|
|
background: var(--ink);
|
|
color: var(--gray-500);
|
|
text-align: center;
|
|
padding: 40px 0;
|
|
border-top: 1px solid rgba(255,255,255,0.06);
|
|
}
|
|
|
|
.footer p {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.footer-small {
|
|
font-size: 13px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 48px 20px;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 36px;
|
|
}
|
|
|
|
.hero-sub {
|
|
font-size: 17px;
|
|
}
|
|
|
|
.section h2 {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.arch-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.params-bar {
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.gen-controls {
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.nav-links {
|
|
display: none;
|
|
}
|
|
|
|
.ex-tabs {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
}
|
|
}
|