feat: 国际化支持 + 导航右侧改造

- 新建 js/i18n.js:轻量 i18n 引擎,130+ key 中英字典
- header.html: 去掉文档链接,控制台移入已登录区域
- header.html: 新增语言切换按钮 🌐(中/EN)
- header.html: 所有文字加 data-i18n 属性
- index.html: Banner/促销/产品/解决方案/基础设施/荣誉/新闻约 60 处 data-i18n
- common.css: 新增 .lang-switch 按钮样式
- 移动端侧边栏同步更新
This commit is contained in:
yiqiu
2026-03-18 18:33:12 +08:00
parent f78bded54f
commit f42dde0f95
5 changed files with 487 additions and 96 deletions

View File

@@ -129,6 +129,38 @@
color: rgba(220, 228, 240, 0.9);
}
/* 语言切换按钮 */
.lang-switch {
display: flex;
align-items: center;
gap: 4px;
padding: 6px 12px;
margin-left: 12px;
border-radius: 6px;
cursor: pointer;
color: rgba(220, 228, 240, 0.85);
font-size: 13px;
font-weight: 500;
transition: background 0.15s ease, color 0.15s ease;
user-select: none;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.lang-switch:hover {
background: rgba(255, 255, 255, 0.12);
color: #fff;
}
.lang-switch .lang-icon {
font-size: 15px;
line-height: 1;
}
.lang-switch .lang-text {
font-weight: 600;
}
.breadcrumb {
padding-left: 0;
margin-bottom: 8px;