视觉系统主干落地:对齐 design tokens 与核心组件样式向 Zibll 收敛

- tokens:收紧 surface 层级/边框/圆角/阴影/间距与暗黑基线
- 组件:按钮、卡片原语、导航、侧栏、分页、模态、浮动按钮
- 首页:hero 外壳、fixed 列表/宫格、tab、skeleton/error 及各运营模块卡片化
- 内容页:单篇封面/标题/正文/blockquote/相关/TOC/上一篇下一篇、评论区
- 社区:forum board/topic/compose 子控件与卡片体系
- 交易/认证:cart/orders/revenue/product/auth 表面块与模态浮层统一
- footer:页脚主体、社交/联系、移动端 tabbar/搜索覆盖
This commit is contained in:
2026-07-06 15:19:25 +08:00
parent 5402768f23
commit 0b5b153265
47 changed files with 542 additions and 325 deletions
+4 -4
View File
@@ -12,8 +12,8 @@
.home-modules {
display: flex;
flex-direction: column;
gap: var(--space-9, 48px);
padding-bottom: var(--space-9, 48px);
gap: var(--space-8, 40px);
padding-bottom: var(--space-8, 40px);
}
.home-modules--fullbleed {
@@ -47,12 +47,12 @@
/* ============ 公共 header ============ */
.home-module__header {
display: flex;
align-items: baseline;
align-items: center;
justify-content: space-between;
gap: var(--space-3, 12px);
margin-bottom: var(--space-5, 20px);
padding-bottom: var(--space-3, 12px);
border-bottom: 1px solid var(--color-line);
border-bottom: 1px solid var(--color-line-soft);
}
.home-module__title {
@@ -16,31 +16,32 @@
align-items: center;
gap: 6px;
padding: 10px 24px;
border-radius: var(--radius-md, 8px);
border-radius: var(--radius-btn, 4px);
font-size: 14px;
font-weight: 500;
text-decoration: none;
transition: opacity 0.2s, transform 0.2s;
transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.aksrt-btn:hover {
opacity: 0.85;
opacity: 1;
transform: translateY(-1px);
}
.aksrt-btn--primary {
background: var(--color-primary);
color: #fff;
box-shadow: 0 8px 18px rgba(240, 68, 148, 0.22);
}
.aksrt-btn--outline {
background: transparent;
background: var(--surface-1);
color: var(--color-primary);
border: 1px solid var(--color-primary);
}
.aksrt-btn--ghost {
background: transparent;
background: var(--surface-4);
color: var(--color-ink);
}
+10 -2
View File
@@ -12,8 +12,16 @@
.aksrt-data-cell {
padding: 24px 16px;
background: var(--surface-1, #fff);
border-radius: var(--radius-md, 8px);
border: 1px solid var(--color-line, #e8e8e8);
border-radius: var(--radius-lg, 10px);
border: 1px solid rgba(255, 255, 255, 0.55);
box-shadow: var(--shadow-sm);
transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.aksrt-data-cell:hover {
box-shadow: var(--shadow);
border-color: rgba(240, 68, 148, 0.12);
transform: translateY(-2px);
}
.aksrt-data-cell i {
+10 -2
View File
@@ -10,9 +10,11 @@
.aksrt-faq-item {
break-inside: avoid;
margin-bottom: 12px;
border: 1px solid var(--color-line, #e8e8e8);
border-radius: var(--radius-md, 8px);
border: 1px solid rgba(255, 255, 255, 0.55);
border-radius: var(--radius-lg, 10px);
box-shadow: var(--shadow-sm);
overflow: hidden;
background: var(--surface-1, #fff);
}
.aksrt-faq-item__question {
@@ -22,6 +24,12 @@
cursor: pointer;
background: var(--surface-1, #fff);
list-style: none;
transition: color .18s ease, background .18s ease;
}
.aksrt-faq-item__question:hover {
color: var(--color-primary);
background: var(--surface-4);
}
.aksrt-faq-item__question::-webkit-details-marker {
@@ -13,16 +13,18 @@
align-items: center;
gap: var(--space-3, 12px);
padding: 12px;
border-radius: var(--radius);
border: 1px solid var(--color-line);
border-radius: var(--radius-lg, 10px);
border: 1px solid rgba(255, 255, 255, 0.55);
box-shadow: var(--shadow-sm);
background: var(--surface-1);
color: var(--color-ink);
text-decoration: none;
transition: border-color .18s ease, transform .18s ease;
transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.home-module__friend-card:hover {
border-color: var(--color-primary);
border-color: rgba(240, 68, 148, 0.12);
box-shadow: var(--shadow);
transform: translateY(-1px);
}
@@ -11,16 +11,18 @@
.aksrt-highlight-card {
padding: 24px;
background: var(--surface-1, #fff);
border-radius: var(--radius-md, 8px);
border: 1px solid var(--color-line, #e8e8e8);
border-radius: var(--radius-lg, 10px);
border: 1px solid rgba(255, 255, 255, 0.55);
box-shadow: var(--shadow-sm);
text-decoration: none;
color: inherit;
transition: box-shadow 0.2s, transform 0.2s;
transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.aksrt-highlight-card:hover {
box-shadow: none;
transform: none;
box-shadow: var(--shadow);
border-color: rgba(240, 68, 148, 0.12);
transform: translateY(-2px);
}
.aksrt-highlight-card__image {
@@ -2,6 +2,11 @@
.home-module--html .home-module__html-body {
color: var(--color-ink);
font-size: 15px;
line-height: 1.7;
line-height: 1.75;
padding: 20px 22px;
background: var(--surface-1);
border: 1px solid rgba(255, 255, 255, 0.55);
border-radius: var(--radius-2xl, 16px);
box-shadow: var(--shadow-sm);
}
@@ -21,7 +21,11 @@
display: flex;
align-items: center;
justify-content: center;
padding: 8px 16px;
padding: 10px 18px;
border-radius: var(--radius-lg, 10px);
background: var(--surface-1);
border: 1px solid rgba(255, 255, 255, 0.55);
box-shadow: var(--shadow-sm);
}
.aksrt-marquee__item img {
@@ -10,17 +10,19 @@
.aksrt-product-card {
background: var(--surface-1, #fff);
border-radius: var(--radius-md, 8px);
border: 1px solid var(--color-line, #e8e8e8);
border-radius: var(--radius-lg, 10px);
border: 1px solid rgba(255, 255, 255, 0.55);
box-shadow: var(--shadow-sm);
overflow: hidden;
text-decoration: none;
color: inherit;
transition: box-shadow 0.2s, transform 0.2s;
transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.aksrt-product-card:hover {
box-shadow: none;
transform: none;
box-shadow: var(--shadow);
border-color: rgba(240, 68, 148, 0.12);
transform: translateY(-2px);
}
.aksrt-product-card__image img {
+10 -2
View File
@@ -14,8 +14,16 @@
gap: var(--space-3, 12px);
padding: 12px 14px;
background: var(--surface-1);
border: 1px solid var(--color-line);
border-radius: var(--radius);
border: 1px solid rgba(255, 255, 255, 0.55);
border-radius: var(--radius-lg, 10px);
box-shadow: var(--shadow-sm);
transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.home-module__ranking-item:hover {
box-shadow: var(--shadow);
border-color: rgba(240, 68, 148, 0.12);
transform: translateY(-1px);
}
.home-module__ranking-num {
+11 -8
View File
@@ -8,31 +8,34 @@
.home-module__tabs {
display: flex;
flex-wrap: wrap;
gap: var(--space-1, 4px);
border-bottom: 1px solid var(--color-line);
gap: var(--space-2, 8px);
border-bottom: 1px solid var(--color-line-soft);
margin-top: var(--space-3, 12px);
padding-bottom: 12px;
width: 100%;
}
.home-module__tab {
background: transparent;
border: 0;
padding: 8px 16px;
padding: 9px 18px;
font: 500 14px/1 var(--font-ui);
color: var(--color-ink-2);
color: var(--color-ink-3);
cursor: pointer;
border-radius: 8px 8px 0 0;
border-bottom: 2px solid transparent;
transition: color .18s ease, border-color .18s ease;
border-radius: 999px;
border-bottom: 0;
transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.home-module__tab:hover {
color: var(--color-ink);
background: var(--surface-4);
}
.home-module__tab.is-active {
color: var(--color-primary);
border-bottom-color: var(--color-primary);
background: var(--color-primary-soft);
box-shadow: inset 0 0 0 1px rgba(240, 68, 148, 0.08);
}
.home-module__tab-panel {
@@ -14,16 +14,17 @@
gap: 6px;
padding: 6px 12px;
border-radius: var(--radius-pill);
background: var(--surface-2);
background: var(--surface-4);
color: var(--color-ink-2);
font: 500 13px/1 var(--font-ui);
text-decoration: none;
transition: background .18s ease, color .18s ease;
transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.home-module__tag:hover {
background: var(--color-primary);
color: var(--color-on-primary);
background: var(--color-primary-soft);
color: var(--color-primary);
box-shadow: inset 0 0 0 1px rgba(240, 68, 148, 0.08);
}
.home-module__tag-count {
@@ -10,16 +10,18 @@
flex-direction: column;
align-items: center;
text-align: center;
padding: 20px 16px;
border-radius: var(--radius);
border: 1px solid var(--color-line);
padding: 24px 18px;
border-radius: var(--radius-lg);
border: 1px solid rgba(255, 255, 255, 0.55);
background: var(--surface-1);
transition: border-color .18s ease, transform .18s ease;
box-shadow: var(--shadow-sm);
transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.home-module__user-card:hover {
border-color: var(--color-line);
transform: none;
border-color: rgba(240, 68, 148, 0.12);
box-shadow: var(--shadow);
transform: translateY(-2px);
}
.home-module__user-link {