feat(frontend): 拆分双站点品牌与主题层

This commit is contained in:
yml
2026-11-16 20:03:00 +08:00
parent ac9717a5d8
commit 4f8edce1cf
95 changed files with 1831 additions and 1062 deletions
+40 -10
View File
@@ -1,15 +1,13 @@
:root {
--el-color-primary: var(--brand-primary);
--el-color-primary-light-3: var(--brand-primary-hover);
--el-color-primary-light-5: var(--brand-primary-light);
--el-color-primary-light-8: var(--brand-primary-soft);
--el-color-primary-dark-2: var(--brand-primary-strong);
--van-primary-color: var(--brand-primary);
color: #1f2933;
background: #f6f8fb;
font-family:
Inter,
'PingFang SC',
'Microsoft YaHei',
system-ui,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
sans-serif;
background: var(--brand-canvas);
font-family: var(--brand-font-body);
font-synthesis: none;
text-rendering: optimizeLegibility;
}
@@ -27,6 +25,11 @@ body {
overflow-x: clip;
}
body {
background: var(--brand-canvas);
color: var(--brand-ink);
}
#app {
max-width: 100%;
overflow-x: clip;
@@ -37,6 +40,33 @@ a {
text-decoration: none;
}
.site-brand-logo {
display: block;
width: auto;
max-width: min(220px, 42vw);
object-fit: contain;
}
.site-brand-mark {
display: grid;
flex: 0 0 auto;
place-items: center;
border-radius: 10px;
background: linear-gradient(135deg, var(--brand-primary-hover), var(--brand-primary-strong));
box-shadow: 0 8px 20px var(--brand-shadow);
color: var(--brand-on-primary);
font-family: var(--brand-font-display);
font-size: 1.15em;
font-weight: 900;
}
html[data-site='jieyou'] h1,
html[data-site='jieyou'] h2,
html[data-site='jieyou'] h3,
html[data-site='jieyou'] .brand-lockup strong {
font-family: var(--brand-font-display);
}
/*
* iOS Safari 在 input/textarea/select 的 font-size < 16px 时,
* 聚焦会自动放大页面,导致 UI 被轻微放大且需手动缩小才能恢复。
+40 -36
View File
@@ -31,14 +31,14 @@
width: 4px;
height: 16px;
border-radius: 999px;
background: #ff6a00 !important;
box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.12);
background: var(--brand-primary) !important;
box-shadow: 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.12);
}
.filter-title strong {
font-size: 15px;
font-weight: 800;
color: #17233d;
color: var(--brand-ink);
}
.filter-title span {
@@ -47,7 +47,7 @@
background: #f1f5f9;
font-size: 12px;
font-weight: 700;
color: #64748b;
color: var(--brand-muted);
}
/* 重置全部条件:橙色胶囊按钮,默认浅色描边,悬停填充品牌橙,按下加深,突出主题色。
@@ -58,12 +58,12 @@
padding: 0 16px;
border: 1px solid #ffc79b !important;
border-radius: 999px;
background: linear-gradient(135deg, #fff7ed 0%, #ffeedd 100%) !important;
color: #ff6a00 !important;
background: linear-gradient(135deg, var(--brand-primary-soft) 0%, #ffeedd 100%) !important;
color: var(--brand-primary) !important;
font-size: 13px;
font-weight: 800;
letter-spacing: 0.2px;
box-shadow: 0 2px 6px rgba(255, 106, 0, 0.14);
box-shadow: 0 2px 6px rgb(var(--brand-primary-rgb) / 0.14);
transition:
background 0.2s ease,
border-color 0.2s ease,
@@ -79,10 +79,14 @@
.filter-header .reset-conditions-btn:hover,
.filter-header .reset-conditions-btn:focus-visible {
border-color: #ff6a00 !important;
background: linear-gradient(135deg, #ff6a00 0%, #ff8533 100%) !important;
border-color: var(--brand-primary) !important;
background: linear-gradient(
135deg,
var(--brand-primary) 0%,
var(--brand-primary-hover) 100%
) !important;
color: #ffffff !important;
box-shadow: 0 8px 18px rgba(255, 106, 0, 0.3) !important;
box-shadow: 0 8px 18px rgb(var(--brand-primary-rgb) / 0.3) !important;
transform: translateY(-1px);
}
@@ -91,7 +95,7 @@
background: linear-gradient(135deg, #e85f00 0%, #ff7a20 100%) !important;
color: #ffffff !important;
transform: translateY(0);
box-shadow: 0 3px 8px rgba(255, 106, 0, 0.3) !important;
box-shadow: 0 3px 8px rgb(var(--brand-primary-rgb) / 0.3) !important;
}
/* PC 点击式快速筛选:上下两块(快速筛选 / 高级筛选)共用同一套两列网格。
@@ -161,8 +165,8 @@
/* 悬浮/按下统一走主题橙,避免灰蓝色调与品牌色脱节(active 更实,便于区分已选) */
.pill-chip:hover {
background: #fff4ea;
color: #ff6a00;
box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.28);
color: var(--brand-primary);
box-shadow: inset 0 0 0 1px rgb(var(--brand-primary-rgb) / 0.28);
}
.pill-chip:active {
@@ -173,9 +177,9 @@
.pill-chip.active {
background: #ffe8d5;
color: #ff6a00;
color: var(--brand-primary);
font-weight: 700;
box-shadow: inset 0 0 0 1px #ff6a00;
box-shadow: inset 0 0 0 1px var(--brand-primary);
}
.pill-empty {
@@ -197,14 +201,14 @@
padding: 6px 12px;
border: none;
background: transparent;
color: #64748b;
color: var(--brand-muted);
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
.advanced-toggle:hover {
color: #ff6a00;
color: var(--brand-primary);
}
.advanced-toggle em {
@@ -212,7 +216,7 @@
height: 18px;
padding: 0 5px;
border-radius: 999px;
background: #ff6a00;
background: var(--brand-primary);
color: #fff;
font-size: 11px;
font-style: normal;
@@ -235,7 +239,7 @@
.advanced-filter-panel {
margin-top: 12px;
padding-top: 14px;
border-top: 1px dashed rgba(255, 106, 0, 0.4);
border-top: 1px dashed rgb(var(--brand-primary-rgb) / 0.4);
}
@media (max-width: 960px) {
@@ -270,14 +274,14 @@
}
.filter-chip:hover {
border-color: #ff6a00;
background: #fff7ed;
border-color: var(--brand-primary);
background: var(--brand-primary-soft);
}
.filter-chip.active {
border-color: #ff6a00;
background: #fff7ed;
color: #ff6a00;
border-color: var(--brand-primary);
background: var(--brand-primary-soft);
color: var(--brand-primary);
}
.filter-chip.wide {
@@ -318,8 +322,8 @@
.filter-menu button.active,
.range-menu button.active {
background: #fff7ed;
color: #ff6a00;
background: var(--brand-primary-soft);
color: var(--brand-primary);
font-weight: 700;
}
@@ -340,8 +344,8 @@
}
.filter-option-check.checked {
border-color: #ff6a00;
background: #ff6a00;
border-color: var(--brand-primary);
background: var(--brand-primary);
box-shadow: inset 0 0 0 2px #ffffff;
}
@@ -390,8 +394,8 @@
}
.skin-reset.active {
background: #fff7ed;
color: #ff6a00;
background: var(--brand-primary-soft);
color: var(--brand-primary);
font-weight: 700;
}
@@ -411,7 +415,7 @@
.skin-filter-title strong {
font-size: 13px;
font-weight: 700;
color: #17233d;
color: var(--brand-ink);
}
.skin-filter-title button {
@@ -421,7 +425,7 @@
background: transparent;
font-size: 11px;
font-weight: 600;
color: #64748b;
color: var(--brand-muted);
cursor: pointer;
transition: all 0.15s;
}
@@ -431,8 +435,8 @@
}
.skin-filter-title button.active {
background: #fff7ed;
color: #ff6a00;
background: var(--brand-primary-soft);
color: var(--brand-primary);
}
.skin-filter-options {
@@ -459,7 +463,7 @@
}
.skin-filter-options button.active {
background: #fff7ed;
color: #ff6a00;
background: var(--brand-primary-soft);
color: var(--brand-primary);
font-weight: 700;
}
+6 -6
View File
@@ -511,7 +511,7 @@ h1 {
height: 38px;
border-radius: 12px;
background: #fff3e8;
color: #ff6a00;
color: var(--brand-primary);
font-size: 13px;
font-weight: 900;
}
@@ -540,7 +540,7 @@ h1 {
.pc-nav-link.router-link-active,
.pc-nav-link:hover {
background: #fff3e8;
color: #ff6a00;
color: var(--brand-primary);
}
.pc-search {
@@ -593,10 +593,10 @@ h1 {
.pc-post-link {
gap: 6px;
background: #ff6a00;
background: var(--brand-primary);
padding: 0 16px;
color: #ffffff;
box-shadow: 0 10px 22px rgba(255, 106, 0, 0.18);
box-shadow: 0 10px 22px rgb(var(--brand-primary-rgb) / 0.18);
}
.pc-post-link.large {
@@ -755,8 +755,8 @@ h1 {
width: 42px;
height: 42px;
border-radius: 14px;
background: #fff7ed;
color: #ea580c;
background: var(--brand-primary-soft);
color: var(--brand-primary-strong);
font-size: 20px;
}