⚡ 初始提交 - FutureOSS v1.0 插件化运行时框架
一切皆为插件的开发者工具运行时框架
🧩 核心特性:
- 插件热插拔 (importlib 动态加载)
- 依赖自动解析 (拓扑排序 + 循环检测)
- 企业级稳定 (熔断/降级/重试/隔离)
- 事件驱动 (发布/订阅事件总线)
- 完整配置 (YAML 配置 + 热重载)
This commit is contained in:
110
website/css/architecture.css
Normal file
110
website/css/architecture.css
Normal file
@@ -0,0 +1,110 @@
|
||||
/* ===== 架构图 ===== */
|
||||
#architecture {
|
||||
padding: 120px 0;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.arch-diagram {
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.arch-layer {
|
||||
border-radius: 16px;
|
||||
padding: 24px;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.arch-core {
|
||||
background: rgba(6, 182, 212, 0.05);
|
||||
border-color: rgba(6, 182, 212, 0.2);
|
||||
}
|
||||
|
||||
.arch-label {
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 16px;
|
||||
color: var(--cyan-light);
|
||||
}
|
||||
|
||||
.arch-modules {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.arch-module {
|
||||
padding: 10px 20px;
|
||||
background: rgba(6, 182, 212, 0.1);
|
||||
border: 1px solid rgba(6, 182, 212, 0.2);
|
||||
border-radius: 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.arch-connector {
|
||||
height: 40px;
|
||||
width: 2px;
|
||||
background: linear-gradient(to bottom, var(--cyan), var(--blue));
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.arch-connector::before,
|
||||
.arch-connector::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
background: var(--cyan);
|
||||
}
|
||||
|
||||
.arch-connector::before { top: -6px; }
|
||||
.arch-connector::after { bottom: -6px; }
|
||||
|
||||
.arch-plugins {
|
||||
background: var(--bg-glass);
|
||||
}
|
||||
|
||||
.arch-plugin-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.arch-plugin {
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.arch-plugin:hover {
|
||||
border-color: var(--border-hover);
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
|
||||
.arch-plugin-title {
|
||||
font-weight: 700;
|
||||
font-size: 15px;
|
||||
margin-bottom: 12px;
|
||||
color: var(--cyan-light);
|
||||
}
|
||||
|
||||
.arch-plugin-items {
|
||||
font-size: 13px;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.arch-plugin-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
}
|
||||
63
website/css/code-examples.css
Normal file
63
website/css/code-examples.css
Normal file
@@ -0,0 +1,63 @@
|
||||
/* ===== 代码示例 ===== */
|
||||
#examples {
|
||||
padding: 120px 0;
|
||||
background: var(--bg-secondary);
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.examples-grid {
|
||||
max-width: 1000px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.example-card:first-child {
|
||||
grid-column: span 2;
|
||||
}
|
||||
|
||||
.example-card {
|
||||
background: rgba(10, 15, 30, 0.9);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.example-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 14px 20px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.example-title {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.example-lang {
|
||||
padding: 4px 10px;
|
||||
border-radius: 4px;
|
||||
background: rgba(6, 182, 212, 0.1);
|
||||
color: var(--cyan);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.example-code {
|
||||
padding: 20px;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 13px;
|
||||
line-height: 1.8;
|
||||
color: var(--text-secondary);
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.examples-grid { grid-template-columns: 1fr; }
|
||||
.example-card:first-child { grid-column: span 1; }
|
||||
}
|
||||
46
website/css/community.css
Normal file
46
website/css/community.css
Normal file
@@ -0,0 +1,46 @@
|
||||
/* ===== 社区区域 ===== */
|
||||
#community {
|
||||
padding: 120px 0;
|
||||
background: var(--bg-secondary);
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.community-content {
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.community-links {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 24px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.community-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 20px 32px;
|
||||
background: var(--bg-glass);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
color: var(--text);
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.community-card:hover {
|
||||
border-color: var(--border-hover);
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 12px 30px rgba(6, 182, 212, 0.1);
|
||||
}
|
||||
|
||||
.community-card svg {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
color: var(--cyan);
|
||||
}
|
||||
156
website/css/dock.css
Normal file
156
website/css/dock.css
Normal file
@@ -0,0 +1,156 @@
|
||||
/* ===== Dock 侧边栏 ===== */
|
||||
#dock {
|
||||
position: fixed;
|
||||
right: 20px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 12px 8px;
|
||||
background: rgba(3, 7, 18, 0.7);
|
||||
backdrop-filter: blur(16px);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.dock-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 10px;
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
transition: all 0.25s ease;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.dock-item:hover, .dock-item.active {
|
||||
color: var(--cyan-light);
|
||||
background: rgba(6, 182, 212, 0.15);
|
||||
transform: scale(1.15);
|
||||
}
|
||||
|
||||
.dock-item svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.dock-separator {
|
||||
width: 20px;
|
||||
height: 1px;
|
||||
background: var(--border);
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
/* 用户头像样式 */
|
||||
.dock-user-avatar {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.dock-user-avatar svg {
|
||||
color: var(--cyan);
|
||||
}
|
||||
|
||||
.dock-user-avatar:hover {
|
||||
color: var(--cyan-light);
|
||||
background: rgba(6, 182, 212, 0.15);
|
||||
transform: scale(1.15);
|
||||
}
|
||||
|
||||
/* 称号徽章 */
|
||||
.user-title-badge {
|
||||
position: absolute;
|
||||
bottom: -18px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-size: 9px;
|
||||
font-weight: 600;
|
||||
padding: 1px 4px;
|
||||
border-radius: 4px;
|
||||
background: linear-gradient(135deg, #f59e0b, #f97316);
|
||||
color: #fff;
|
||||
white-space: nowrap;
|
||||
max-width: 80px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* 用户菜单按钮样式 */
|
||||
.dock-user-menu-btn {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dock-user-menu-btn svg {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.dock-user-menu-btn:hover {
|
||||
color: var(--cyan-light);
|
||||
background: rgba(6, 182, 212, 0.15);
|
||||
transform: scale(1.15);
|
||||
}
|
||||
|
||||
/* Tooltip */
|
||||
.dock-item::before {
|
||||
content: attr(data-tooltip);
|
||||
position: absolute;
|
||||
right: calc(100% + 10px);
|
||||
top: 50%;
|
||||
transform: translateY(-50%) scale(0.9);
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
background: #1f2937;
|
||||
border: 1px solid var(--border);
|
||||
color: #fff;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.dock-item:hover::before {
|
||||
opacity: 1;
|
||||
transform: translateY(-50%) scale(1);
|
||||
}
|
||||
|
||||
/* 响应式 */
|
||||
@media (max-width: 768px) {
|
||||
#dock {
|
||||
right: auto;
|
||||
left: 50%;
|
||||
top: auto;
|
||||
bottom: 12px;
|
||||
transform: translateX(-50%);
|
||||
flex-direction: row;
|
||||
gap: 4px;
|
||||
padding: 8px 12px;
|
||||
}
|
||||
.dock-separator {
|
||||
width: 1px;
|
||||
height: 20px;
|
||||
margin: 0 4px;
|
||||
}
|
||||
.dock-item::before {
|
||||
right: auto;
|
||||
top: auto;
|
||||
bottom: calc(100% + 8px);
|
||||
left: 50%;
|
||||
transform: translateX(-50%) scale(0.9);
|
||||
}
|
||||
.dock-item:hover::before {
|
||||
transform: translateX(-50%) scale(1);
|
||||
}
|
||||
}
|
||||
98
website/css/features.css
Normal file
98
website/css/features.css
Normal file
@@ -0,0 +1,98 @@
|
||||
/* ===== 特性区域 ===== */
|
||||
#features {
|
||||
padding: 120px 0;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.features-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
background: var(--bg-glass);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 20px;
|
||||
padding: 32px;
|
||||
transition: all 0.4s ease;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.feature-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), transparent);
|
||||
opacity: 0;
|
||||
transition: opacity 0.4s;
|
||||
}
|
||||
|
||||
.feature-card:hover {
|
||||
border-color: var(--border-hover);
|
||||
transform: translateY(-8px);
|
||||
box-shadow: 0 20px 40px rgba(6, 182, 212, 0.1);
|
||||
}
|
||||
|
||||
.feature-card:hover::before { opacity: 1; }
|
||||
|
||||
.feature-icon {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 14px;
|
||||
background: linear-gradient(135deg, var(--cyan), var(--blue));
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 20px;
|
||||
transition: transform 0.3s;
|
||||
}
|
||||
|
||||
.feature-card:hover .feature-icon {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.feature-icon svg {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.feature-card h3 {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.feature-card p {
|
||||
font-size: 15px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.7;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.feature-tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.feature-tags span {
|
||||
padding: 4px 12px;
|
||||
border-radius: 6px;
|
||||
background: rgba(6, 182, 212, 0.08);
|
||||
border: 1px solid rgba(6, 182, 212, 0.15);
|
||||
color: var(--cyan-light);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.features-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.features-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
79
website/css/footer.css
Normal file
79
website/css/footer.css
Normal file
@@ -0,0 +1,79 @@
|
||||
/* ===== Footer ===== */
|
||||
#footer {
|
||||
padding: 80px 0 40px;
|
||||
border-top: 1px solid var(--border);
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.footer-container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 2fr;
|
||||
gap: 64px;
|
||||
margin-bottom: 64px;
|
||||
}
|
||||
|
||||
.footer-brand p {
|
||||
color: var(--text-muted);
|
||||
font-size: 14px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.footer-logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-weight: 700;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 32px;
|
||||
}
|
||||
|
||||
.footer-col h4 {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.footer-col a {
|
||||
display: block;
|
||||
color: var(--text-muted);
|
||||
text-decoration: none;
|
||||
font-size: 14px;
|
||||
margin-bottom: 10px;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.footer-col a:hover { color: var(--cyan); }
|
||||
|
||||
.footer-bottom {
|
||||
text-align: center;
|
||||
padding-top: 32px;
|
||||
border-top: 1px solid var(--border);
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding-left: 24px;
|
||||
padding-right: 24px;
|
||||
}
|
||||
|
||||
.footer-bottom p {
|
||||
color: var(--text-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.footer-container { grid-template-columns: 1fr; gap: 40px; }
|
||||
.footer-links { grid-template-columns: repeat(2, 1fr); }
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.footer-links { grid-template-columns: 1fr; }
|
||||
}
|
||||
259
website/css/hero.css
Normal file
259
website/css/hero.css
Normal file
@@ -0,0 +1,259 @@
|
||||
/* ===== Hero 区域 ===== */
|
||||
#hero {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding-top: 64px;
|
||||
}
|
||||
|
||||
.hero-container {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
padding: 60px 24px;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 80px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 20px;
|
||||
border-radius: 999px;
|
||||
background: rgba(6, 182, 212, 0.1);
|
||||
border: 1px solid rgba(6, 182, 212, 0.2);
|
||||
margin-bottom: 32px;
|
||||
font-size: 14px;
|
||||
color: rgba(34, 211, 238, 0.9);
|
||||
}
|
||||
|
||||
.badge-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--cyan);
|
||||
animation: pulse 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.4; }
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
font-size: clamp(48px, 8vw, 80px);
|
||||
font-weight: 900;
|
||||
line-height: 0.95;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.title-line { display: block; }
|
||||
|
||||
.hero-subtitle {
|
||||
font-size: clamp(20px, 3vw, 28px);
|
||||
color: var(--text-secondary);
|
||||
font-weight: 300;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.hero-desc {
|
||||
font-size: 16px;
|
||||
color: var(--text-muted);
|
||||
max-width: 520px;
|
||||
margin-bottom: 48px;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
margin-bottom: 64px;
|
||||
}
|
||||
|
||||
.hero-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.stat { text-align: left; }
|
||||
|
||||
.stat-num {
|
||||
display: block;
|
||||
font-size: 28px;
|
||||
font-weight: 800;
|
||||
color: #fff;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.stat-num .stat-suffix {
|
||||
font-size: 20px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 13px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* 右侧代码区域 */
|
||||
.hero-visual {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.orbit {
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
border: 1px solid rgba(6, 182, 212, 0.1);
|
||||
}
|
||||
|
||||
.orbit-1 {
|
||||
inset: 15%;
|
||||
animation: spin 40s linear infinite;
|
||||
}
|
||||
|
||||
.orbit-2 {
|
||||
inset: 25%;
|
||||
animation: spin 30s linear infinite reverse;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
.orbit-dot {
|
||||
position: absolute;
|
||||
top: -6px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
background: var(--cyan);
|
||||
box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
|
||||
}
|
||||
|
||||
.orbit-dot-lg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background: var(--blue);
|
||||
box-shadow: 0 0 24px rgba(59, 130, 246, 0.5);
|
||||
}
|
||||
|
||||
.code-window {
|
||||
background: rgba(10, 15, 30, 0.9);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 16px;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
max-width: 480px;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.code-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.code-dot {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.code-dot-red { background: #ef4444; }
|
||||
.code-dot-yellow { background: #eab308; }
|
||||
.code-dot-green { background: #22c55e; }
|
||||
|
||||
.code-title {
|
||||
margin-left: 12px;
|
||||
font-size: 13px;
|
||||
color: var(--text-muted);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
.code-body {
|
||||
padding: 20px 24px;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 14px;
|
||||
line-height: 1.8;
|
||||
color: var(--text-secondary);
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
/* 滚动指示器 */
|
||||
.scroll-indicator {
|
||||
position: absolute;
|
||||
bottom: 40px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: var(--text-muted);
|
||||
font-size: 13px;
|
||||
animation: bounce 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes bounce {
|
||||
0%, 100% { transform: translateX(-50%) translateY(0); }
|
||||
50% { transform: translateX(-50%) translateY(8px); }
|
||||
}
|
||||
|
||||
.scroll-mouse {
|
||||
width: 24px;
|
||||
height: 36px;
|
||||
border: 2px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 12px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.scroll-mouse::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 4px;
|
||||
height: 8px;
|
||||
background: var(--cyan);
|
||||
border-radius: 2px;
|
||||
animation: scroll-dot 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes scroll-dot {
|
||||
0%, 100% { opacity: 1; top: 6px; }
|
||||
50% { opacity: 0.3; top: 16px; }
|
||||
}
|
||||
|
||||
/* 响应式 */
|
||||
@media (max-width: 1024px) {
|
||||
.hero-container {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 48px;
|
||||
text-align: center;
|
||||
}
|
||||
.hero-desc, .hero-actions, .hero-stats {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.hero-stats { max-width: 400px; }
|
||||
.stat { text-align: center; }
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.hero-stats { grid-template-columns: 1fr; gap: 16px; }
|
||||
}
|
||||
160
website/css/main.css
Normal file
160
website/css/main.css
Normal file
@@ -0,0 +1,160 @@
|
||||
/* ===== 全局样式 ===== */
|
||||
*, *::before, *::after {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
:root {
|
||||
--bg: #030712;
|
||||
--bg-secondary: #020510;
|
||||
--bg-glass: rgba(255, 255, 255, 0.02);
|
||||
--border: rgba(255, 255, 255, 0.05);
|
||||
--border-hover: rgba(6, 182, 212, 0.3);
|
||||
--cyan: #06b6d4;
|
||||
--cyan-light: #22d3ee;
|
||||
--blue: #3b82f6;
|
||||
--purple: #8b5cf6;
|
||||
--text: #fff;
|
||||
--text-secondary: #9ca3af;
|
||||
--text-muted: #6b7280;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
scroll-padding-top: 80px;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
line-height: 1.6;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* 粒子画布 */
|
||||
#particles {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* 通用 */
|
||||
.section-container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
text-align: center;
|
||||
margin-bottom: 64px;
|
||||
}
|
||||
|
||||
.section-badge {
|
||||
display: inline-block;
|
||||
padding: 6px 16px;
|
||||
border-radius: 999px;
|
||||
background: rgba(6, 182, 212, 0.1);
|
||||
border: 1px solid rgba(6, 182, 212, 0.2);
|
||||
color: var(--cyan-light);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: clamp(32px, 5vw, 48px);
|
||||
font-weight: 800;
|
||||
margin-bottom: 16px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.section-desc {
|
||||
font-size: 18px;
|
||||
color: var(--text-secondary);
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.gradient-text {
|
||||
background: linear-gradient(135deg, var(--cyan), var(--blue));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.glass {
|
||||
background: var(--bg-glass);
|
||||
backdrop-filter: blur(12px);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
/* 按钮 */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 14px 28px;
|
||||
border-radius: 12px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
transition: all 0.3s ease;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: linear-gradient(135deg, var(--cyan), var(--blue));
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
box-shadow: 0 8px 30px rgba(6, 182, 212, 0.3);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
border: 1px solid rgba(6, 182, 212, 0.3);
|
||||
}
|
||||
|
||||
.btn-outline:hover {
|
||||
background: rgba(6, 182, 212, 0.1);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.btn-lg {
|
||||
padding: 18px 36px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.btn-arrow {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.btn:hover .btn-arrow {
|
||||
transform: translateX(4px);
|
||||
}
|
||||
|
||||
/* 代码样式 */
|
||||
.code-comment { color: #6b7280; font-style: italic; }
|
||||
.code-str { color: #34d399; }
|
||||
.code-keyword { color: #c084fc; }
|
||||
.code-func { color: #60a5fa; }
|
||||
.code-bool { color: #f472b6; }
|
||||
.code-type { color: #fbbf24; }
|
||||
.code-cmd { color: #9ca3af; }
|
||||
|
||||
/* 响应式 */
|
||||
@media (max-width: 768px) {
|
||||
.section-container { padding: 0 16px; }
|
||||
.section-header { margin-bottom: 40px; }
|
||||
}
|
||||
396
website/css/page.css
Normal file
396
website/css/page.css
Normal file
@@ -0,0 +1,396 @@
|
||||
/* ===== 通用页面样式 ===== */
|
||||
.page-content {
|
||||
max-width: 1100px;
|
||||
margin: 0 auto;
|
||||
padding: 100px 80px 80px 24px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
text-align: center;
|
||||
margin-bottom: 64px;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: clamp(32px, 5vw, 48px);
|
||||
font-weight: 800;
|
||||
margin-bottom: 16px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.page-desc {
|
||||
font-size: 18px;
|
||||
color: var(--text-secondary);
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* 特性网格 */
|
||||
.features-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
background: var(--bg-glass);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 20px;
|
||||
padding: 32px;
|
||||
transition: all 0.4s ease;
|
||||
}
|
||||
|
||||
.feature-card:hover {
|
||||
border-color: var(--border-hover);
|
||||
transform: translateY(-8px);
|
||||
box-shadow: 0 20px 40px rgba(6, 182, 212, 0.1);
|
||||
}
|
||||
|
||||
.feature-icon {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 14px;
|
||||
background: linear-gradient(135deg, var(--cyan), var(--blue));
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 20px;
|
||||
transition: transform 0.3s;
|
||||
}
|
||||
|
||||
.feature-card:hover .feature-icon { transform: scale(1.1); }
|
||||
|
||||
.feature-icon svg { width: 28px; height: 28px; color: #fff; }
|
||||
|
||||
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
|
||||
|
||||
.feature-card p {
|
||||
font-size: 15px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.7;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
|
||||
.feature-tags span {
|
||||
padding: 4px 12px;
|
||||
border-radius: 6px;
|
||||
background: rgba(6, 182, 212, 0.08);
|
||||
border: 1px solid rgba(6, 182, 212, 0.15);
|
||||
color: var(--cyan-light);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 插件页面 */
|
||||
.pkg-format { text-align: center; margin-bottom: 48px; }
|
||||
|
||||
.pkg-card {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: clamp(20px, 4vw, 36px);
|
||||
font-weight: 700;
|
||||
padding: 32px;
|
||||
background: var(--bg-glass);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
display: inline-block;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.pkg-symbol { color: var(--text-muted); }
|
||||
.pkg-highlight { color: var(--cyan); }
|
||||
.pkg-version { color: var(--blue); }
|
||||
|
||||
.pkg-explain {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 24px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.explain-symbol {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: var(--cyan-light);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.explain-text { font-size: 14px; color: var(--text-muted); }
|
||||
|
||||
/* 终端演示 */
|
||||
.install-demo {
|
||||
max-width: 700px;
|
||||
margin: 0 auto 48px;
|
||||
background: rgba(10, 15, 30, 0.9);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.demo-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 14px 20px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.demo-dot { width: 12px; height: 12px; border-radius: 50%; }
|
||||
.demo-dot-red { background: #ef4444; }
|
||||
.demo-dot-yellow { background: #eab308; }
|
||||
.demo-dot-green { background: #22c55e; }
|
||||
|
||||
.demo-title { margin-left: 12px; font-size: 13px; color: var(--text-muted); }
|
||||
|
||||
.demo-body {
|
||||
padding: 20px;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.cmd-line { display: flex; gap: 12px; margin-bottom: 8px; color: var(--text-secondary); }
|
||||
.prompt { color: var(--cyan); font-weight: 600; }
|
||||
.cmd-text { color: #e5e7eb; }
|
||||
.cmd-output { color: #9ca3af; font-size: 13px; margin-bottom: 4px; }
|
||||
.cmd-output.success { color: #34d399; }
|
||||
.cmd-output.indent { padding-left: 24px; }
|
||||
|
||||
/* 命令表格 */
|
||||
.pkg-table { max-width: 800px; margin: 0 auto; }
|
||||
.pkg-table-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; text-align: center; }
|
||||
|
||||
.pkg-table table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.pkg-table th, .pkg-table td {
|
||||
padding: 12px 16px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.pkg-table th {
|
||||
color: var(--text-muted);
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.pkg-table td code {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
background: rgba(6, 182, 212, 0.1);
|
||||
padding: 2px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
color: var(--cyan-light);
|
||||
}
|
||||
|
||||
/* 架构图 */
|
||||
.arch-diagram { max-width: 900px; margin: 0 auto 64px; }
|
||||
|
||||
.arch-layer {
|
||||
border-radius: 16px;
|
||||
padding: 24px;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.arch-core {
|
||||
background: rgba(6, 182, 212, 0.05);
|
||||
border-color: rgba(6, 182, 212, 0.2);
|
||||
}
|
||||
|
||||
.arch-label {
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 16px;
|
||||
color: var(--cyan-light);
|
||||
}
|
||||
|
||||
.arch-modules {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.arch-module {
|
||||
padding: 10px 20px;
|
||||
background: rgba(6, 182, 212, 0.1);
|
||||
border: 1px solid rgba(6, 182, 212, 0.2);
|
||||
border-radius: 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.arch-connector {
|
||||
height: 40px;
|
||||
width: 2px;
|
||||
background: linear-gradient(to bottom, var(--cyan), var(--blue));
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.arch-connector::before,
|
||||
.arch-connector::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
background: var(--cyan);
|
||||
}
|
||||
|
||||
.arch-connector::before { top: -6px; }
|
||||
.arch-connector::after { bottom: -6px; }
|
||||
|
||||
.arch-plugins { background: var(--bg-glass); }
|
||||
|
||||
.arch-plugin-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.arch-plugin {
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.arch-plugin:hover {
|
||||
border-color: var(--border-hover);
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
|
||||
.arch-plugin-title {
|
||||
font-weight: 700;
|
||||
font-size: 15px;
|
||||
margin-bottom: 12px;
|
||||
color: var(--cyan-light);
|
||||
}
|
||||
|
||||
.arch-plugin-items {
|
||||
font-size: 13px;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
/* 数据流 */
|
||||
.arch-flow { max-width: 900px; margin: 0 auto; }
|
||||
.arch-flow-title { text-align: center; font-size: 28px; font-weight: 800; margin-bottom: 32px; }
|
||||
|
||||
.arch-flow-steps {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.flow-step {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 12px 20px;
|
||||
background: var(--bg-glass);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.flow-step-num {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, var(--cyan), var(--blue));
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.flow-arrow { color: var(--cyan); font-size: 20px; font-weight: 700; }
|
||||
|
||||
/* 快速开始 */
|
||||
.steps-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 24px;
|
||||
margin-bottom: 64px;
|
||||
}
|
||||
|
||||
.step-card {
|
||||
background: var(--bg-glass);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
padding: 32px;
|
||||
text-align: center;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.step-card:hover {
|
||||
border-color: var(--border-hover);
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
|
||||
.step-number {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, var(--cyan), var(--blue));
|
||||
font-size: 20px;
|
||||
font-weight: 800;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.step-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
|
||||
|
||||
.step-code {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 13px;
|
||||
line-height: 1.8;
|
||||
color: var(--text-secondary);
|
||||
text-align: left;
|
||||
background: rgba(10, 15, 30, 0.6);
|
||||
padding: 16px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.quickstart-links {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* 响应式 */
|
||||
@media (max-width: 1024px) {
|
||||
.features-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
.arch-plugin-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.page-content { padding-left: 24px; }
|
||||
.features-grid { grid-template-columns: 1fr; }
|
||||
.arch-plugin-grid { grid-template-columns: 1fr; }
|
||||
.steps-grid { grid-template-columns: 1fr; }
|
||||
.arch-flow-steps { flex-direction: column; }
|
||||
.flow-arrow { transform: rotate(90deg); }
|
||||
.pkg-explain { grid-template-columns: 1fr; }
|
||||
.pkg-table { overflow-x: auto; }
|
||||
}
|
||||
110
website/css/plugins.css
Normal file
110
website/css/plugins.css
Normal file
@@ -0,0 +1,110 @@
|
||||
/* ===== 插件生态 ===== */
|
||||
#plugins {
|
||||
padding: 120px 0;
|
||||
background: var(--bg-secondary);
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.plugins-content {
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.pkg-format { text-align: center; margin-bottom: 48px; }
|
||||
|
||||
.pkg-card {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: clamp(20px, 4vw, 36px);
|
||||
font-weight: 700;
|
||||
padding: 32px;
|
||||
background: var(--bg-glass);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
display: inline-block;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.pkg-symbol { color: var(--text-muted); }
|
||||
.pkg-highlight { color: var(--cyan); }
|
||||
.pkg-version { color: var(--blue); }
|
||||
|
||||
.pkg-explain {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 24px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.explain-symbol {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: var(--cyan-light);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.explain-text {
|
||||
font-size: 14px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.install-demo {
|
||||
background: rgba(10, 15, 30, 0.9);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.demo-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 14px 20px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.demo-dot {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.demo-dot-red { background: #ef4444; }
|
||||
.demo-dot-yellow { background: #eab308; }
|
||||
.demo-dot-green { background: #22c55e; }
|
||||
|
||||
.demo-title {
|
||||
margin-left: 12px;
|
||||
font-size: 13px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.demo-body {
|
||||
padding: 20px;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.cmd-line {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
margin-bottom: 8px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.prompt { color: var(--cyan); font-weight: 600; }
|
||||
.cmd-text { color: #e5e7eb; }
|
||||
|
||||
.cmd-output {
|
||||
color: #9ca3af;
|
||||
font-size: 13px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.cmd-output.success { color: #34d399; }
|
||||
.cmd-output.indent { padding-left: 24px; }
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.pkg-explain { grid-template-columns: 1fr; }
|
||||
}
|
||||
65
website/css/quickstart.css
Normal file
65
website/css/quickstart.css
Normal file
@@ -0,0 +1,65 @@
|
||||
/* ===== 快速开始 ===== */
|
||||
#quickstart {
|
||||
padding: 120px 0;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.steps-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 24px;
|
||||
margin-bottom: 64px;
|
||||
}
|
||||
|
||||
.step-card {
|
||||
background: var(--bg-glass);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
padding: 32px;
|
||||
text-align: center;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.step-card:hover {
|
||||
border-color: var(--border-hover);
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
|
||||
.step-number {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, var(--cyan), var(--blue));
|
||||
font-size: 20px;
|
||||
font-weight: 800;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.step-title {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.step-code {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 13px;
|
||||
line-height: 1.8;
|
||||
color: var(--text-secondary);
|
||||
text-align: left;
|
||||
background: rgba(10, 15, 30, 0.6);
|
||||
padding: 16px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.quickstart-cta {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.steps-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
52
website/css/stats.css
Normal file
52
website/css/stats.css
Normal file
@@ -0,0 +1,52 @@
|
||||
/* ===== 统计区域 ===== */
|
||||
#stats {
|
||||
padding: 80px 0;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(59, 130, 246, 0.05));
|
||||
border-top: 1px solid var(--border);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 32px;
|
||||
max-width: 1000px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.stat-number {
|
||||
font-size: 48px;
|
||||
font-weight: 900;
|
||||
background: linear-gradient(135deg, var(--cyan), var(--blue));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.stat-suffix {
|
||||
font-size: 32px;
|
||||
font-weight: 800;
|
||||
background: linear-gradient(135deg, var(--cyan), var(--blue));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
display: block;
|
||||
margin-top: 8px;
|
||||
font-size: 16px;
|
||||
color: var(--text-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
|
||||
}
|
||||
Reference in New Issue
Block a user