mirror of
https://github.com/Awuqing/BackupX.git
synced 2026-05-31 23:39:35 +08:00
重构: - 首页 Hero 重设计:双列布局(标题+CTA+指标 / macOS 风代码窗口) - 引入渐变文字、pulse 徽章、悬停带动画的主按钮 - 功能卡片加 SVG 图标、悬停提升效果、部分卡片变成可点击链接 - 新增 HomepageShowcase 截图轮播区:Tab 切换四个核心页面(仪表盘/任务/存储/多节点) - 全站换 Arco 蓝 (#165dff) 作为主色,紫色 (#8f4bff) 作为辅助 - 导航栏加毛玻璃效果、表格加圆角与边框、菜单项圆角化 - 深色模式配色整体收敛 内容修正: - API 参考补全遗漏的端点:auth logout/profile、records batch-delete、 storage-targets star/usage/google-drive、notifications test、dashboard timeline、settings - 把 API 表格改为"方法/端点/说明"三列,加响应结构说明 - 中英文 API 文档同步更新 i18n: - code.json 补充 Hero、Features、Showcase 全部新翻译键 - 校对:16 个中英文档 frontmatter 完全对齐,无漏译 构建:双语 build 通过、产物 3.3MB
149 lines
3.0 KiB
CSS
149 lines
3.0 KiB
CSS
.section {
|
|
padding: 6rem 0 4rem;
|
|
}
|
|
|
|
.sectionHead {
|
|
text-align: center;
|
|
max-width: 720px;
|
|
margin: 0 auto 3rem;
|
|
}
|
|
|
|
.sectionTag {
|
|
display: inline-block;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.15em;
|
|
color: var(--ifm-color-primary);
|
|
padding: 4px 12px;
|
|
background: rgba(22, 93, 255, 0.08);
|
|
border-radius: 4px;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
[data-theme='dark'] .sectionTag {
|
|
background: rgba(96, 126, 255, 0.18);
|
|
color: var(--ifm-color-primary-lighter);
|
|
}
|
|
|
|
.sectionTitle {
|
|
font-size: clamp(1.8rem, 3vw, 2.5rem);
|
|
line-height: 1.2;
|
|
letter-spacing: -0.02em;
|
|
font-weight: 700;
|
|
margin: 0 0 1rem;
|
|
color: var(--ifm-heading-color);
|
|
}
|
|
|
|
.sectionSubtitle {
|
|
font-size: 1.05rem;
|
|
line-height: 1.65;
|
|
color: var(--ifm-color-content-secondary);
|
|
margin: 0;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
@media (max-width: 996px) {
|
|
.section {
|
|
padding: 3.5rem 0 2rem;
|
|
}
|
|
.grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 997px) and (max-width: 1200px) {
|
|
.grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
.featureCard,
|
|
.featureCardLink {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 1.75rem;
|
|
background: var(--ifm-background-color);
|
|
border: 1px solid var(--ifm-color-emphasis-200);
|
|
border-radius: 12px;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
|
|
text-decoration: none !important;
|
|
color: inherit;
|
|
height: 100%;
|
|
}
|
|
|
|
.featureCardLink:hover {
|
|
transform: translateY(-3px);
|
|
border-color: var(--ifm-color-primary);
|
|
box-shadow: 0 12px 30px -8px rgba(22, 93, 255, 0.18);
|
|
color: inherit;
|
|
}
|
|
|
|
[data-theme='dark'] .featureCard,
|
|
[data-theme='dark'] .featureCardLink {
|
|
background: rgba(255, 255, 255, 0.02);
|
|
border-color: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
[data-theme='dark'] .featureCardLink:hover {
|
|
background: rgba(64, 128, 255, 0.05);
|
|
border-color: var(--ifm-color-primary);
|
|
box-shadow: 0 12px 30px -8px rgba(64, 128, 255, 0.25);
|
|
}
|
|
|
|
.iconWrap {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(135deg, rgba(22, 93, 255, 0.1) 0%, rgba(143, 75, 255, 0.08) 100%);
|
|
color: var(--ifm-color-primary);
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
[data-theme='dark'] .iconWrap {
|
|
background: linear-gradient(135deg, rgba(96, 126, 255, 0.15) 0%, rgba(143, 75, 255, 0.12) 100%);
|
|
color: var(--ifm-color-primary-lighter);
|
|
}
|
|
|
|
.featureTitle {
|
|
font-size: 1.15rem;
|
|
font-weight: 600;
|
|
margin: 0 0 0.6rem;
|
|
color: var(--ifm-heading-color);
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.featureDesc {
|
|
font-size: 0.95rem;
|
|
line-height: 1.65;
|
|
color: var(--ifm-color-content-secondary);
|
|
margin: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.featureLink {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-top: 1rem;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--ifm-color-primary);
|
|
}
|
|
|
|
.featureArrow {
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.featureCardLink:hover .featureArrow {
|
|
transform: translateX(4px);
|
|
}
|