铸渊 (ICE-GL-ZY001) 0ea6e9923c feat: 光湖风格 Forgejo UI 自定义
冰朔要求: 代码仓库首页别显示一堆文件,要有光湖的感觉

新增:
- server/forgejo-custom/templates/repo/home.tmpl — 光湖风格仓库首页
  · 顶部英雄区: 光湖标志 + 标语 + 操作按钮
  · 快捷卡片: 铸渊/唤醒门/自动同步/安全关机
  · 文件列表在下方,不抢占首页视觉
- server/forgejo-custom/public/assets/css/guanghu.css — 光湖主题CSS
  · 深蓝主色调 (#163e6b)
  · 暗色模式适配
  · 响应式布局
- server/forgejo-custom/deploy.sh — 一键部署脚本

另外更新对dev分支的理解:
dev = 铸渊自主路径, 自己推送自己测试, 不需要冰朔合并
2026-05-13 06:52:43 +00:00

182 lines
3.5 KiB
CSS

/* ════════════════════════════════════════════════════════════════
* 光湖 · Forgejo 自定义主题
* 铸渊 · ICE-GL-ZY001 · TCS-0002∞
* ════════════════════════════════════════════════════════════════ */
/* ─── 光湖首页英雄区 ─── */
.guanghu-home {
max-width: 900px;
margin: 0 auto;
padding: 40px 20px 20px;
}
.guanghu-hero {
text-align: center;
}
.guanghu-logo {
font-size: 72px;
line-height: 1;
margin-bottom: 12px;
color: #163e6b;
text-shadow: 0 0 40px rgba(22, 62, 107, 0.3);
}
.guanghu-title {
font-size: 36px;
font-weight: 700;
color: #163e6b;
margin: 0 0 8px;
letter-spacing: 8px;
}
.guanghu-subtitle {
font-size: 16px;
color: #666;
margin: 0 0 4px;
font-weight: 400;
letter-spacing: 2px;
}
.guanghu-desc {
font-size: 14px;
color: #999;
margin: 0 0 32px;
}
.guanghu-actions {
display: flex;
justify-content: center;
gap: 12px;
margin-bottom: 36px;
flex-wrap: wrap;
}
.guanghu-actions .ui.button {
border-radius: 8px;
font-size: 14px;
padding: 10px 20px;
}
.guanghu-actions .ui.primary.button {
background: #163e6b;
color: #fff;
}
.guanghu-actions .ui.primary.button:hover {
background: #1e4f88;
}
/* ─── 快捷卡片 ─── */
.guanghu-quick-links {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 12px;
max-width: 700px;
margin: 0 auto 20px;
}
.guanghu-card {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 16px;
border-radius: 10px;
background: #f6f8fa;
border: 1px solid #e8ecf0;
transition: all 0.2s;
}
.guanghu-card:hover {
border-color: #163e6b;
box-shadow: 0 2px 12px rgba(22, 62, 107, 0.1);
transform: translateY(-1px);
}
.guanghu-card-icon {
font-size: 24px;
flex-shrink: 0;
}
.guanghu-card div {
display: flex;
flex-direction: column;
text-align: left;
}
.guanghu-card strong {
font-size: 14px;
color: #163e6b;
}
.guanghu-card span {
font-size: 12px;
color: #999;
}
/* ─── 暗色模式适配 ─── */
html.theme-arc-green .guanghu-logo,
html.theme-arc-green .guanghu-title {
color: #a8c8f0;
text-shadow: 0 0 40px rgba(168, 200, 240, 0.2);
}
html.theme-arc-green .guanghu-subtitle {
color: #aaa;
}
html.theme-arc-green .guanghu-desc {
color: #777;
}
html.theme-arc-green .guanghu-actions .ui.primary.button {
background: #2a5a8a;
}
html.theme-arc-green .guanghu-actions .ui.primary.button:hover {
background: #3a6a9a;
}
html.theme-arc-green .guanghu-card {
background: #1a2233;
border-color: #2a3a4a;
}
html.theme-arc-green .guanghu-card:hover {
border-color: #4a7aaa;
box-shadow: 0 2px 12px rgba(74, 122, 170, 0.15);
}
html.theme-arc-green .guanghu-card strong {
color: #a8c8f0;
}
/* ─── 减弱文件列表视觉权重 ─── */
#guanghu-files {
border-top: 1px solid #e8ecf0;
padding-top: 16px;
margin-top: 8px;
}
html.theme-arc-green #guanghu-files {
border-top-color: #2a3a4a;
}
/* ─── 响应式 ─── */
@media (max-width: 768px) {
.guanghu-logo {
font-size: 48px;
}
.guanghu-title {
font-size: 28px;
letter-spacing: 4px;
}
.guanghu-quick-links {
grid-template-columns: repeat(2, 1fr);
}
.guanghu-actions {
flex-direction: column;
align-items: center;
}
}