补充主题静态资源与归档模板

This commit is contained in:
kate522 committed 2026-07-03 23:15:11 +08:00
1 parent 1268a55dd0
commit 3247db7ed1
265 files changed
+59174

No files matched your search

+300
View File
@@ -0,0 +1,300 @@
/* ============================================================
* AKSRT Footer — v4.0 Zibll-Inspired
*
* 包含:
* - 页脚主体(Bootstrap Grid)
* - 浮动右侧按钮组
* - 移动端底部 Tab 栏
* ============================================================ */
/* ============================================================
* 页脚主体
* ============================================================ */
:root {
--aksrt-footer-tabbar-height: 49px;
}
.site-footer {
margin-top: auto;
background: var(--footer-bg, var(--surface-1));
padding: 30px;
}
.site-footer__inner {
max-width: var(--container);
margin: 0 auto;
padding: 0 16px;
}
@media (min-width: 768px) {
.site-footer__inner {
padding: 0 24px;
}
}
.site-footer__grid {
padding-bottom: 32px;
}
.site-footer__brand {
margin-bottom: 24px;
}
.site-footer__title {
font-size: 1rem;
font-weight: 700;
margin: 0 0 12px;
color: var(--color-ink);
}
.site-footer__desc {
font-size: 14px;
color: var(--color-ink-4);
line-height: 1.6;
margin: 0 0 16px;
max-width: 360px;
}
.site-footer__col {
margin-bottom: 24px;
}
.site-footer__col ul {
list-style: none;
margin: 0;
padding: 0;
}
.site-footer__col li {
margin-bottom: 8px;
}
.site-footer__col a {
font-size: 14px;
color: var(--footer-color, var(--color-ink-3));
transition: color 0.15s ease;
}
.site-footer__col a:hover {
color: var(--focus-color, var(--color-primary));
}
/* 社交链接行 */
.social-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 16px;
}
.social-row a {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--surface-3);
color: var(--color-ink-3);
transition: background 0.2s, color 0.2s, transform 0.2s;
}
.social-row a:hover {
background: var(--color-primary);
color: #fff;
transform: translateY(-2px);
}
.social-row .social-icon-link {
background: var(--surface-3);
color: var(--color-ink-3);
}
.social-row .social-icon-link:hover {
background: var(--color-primary);
color: #fff;
}
/* 友情链接 */
.site-footer__friends {
margin-top: 16px;
}
.site-footer__friends-title {
font-size: 0.8125rem;
font-weight: 600;
color: var(--color-ink-4);
margin: 0 0 8px;
}
.site-footer__friends-list {
display: flex;
flex-wrap: wrap;
gap: 6px 12px;
}
.site-footer__friends-list a {
font-size: 0.8125rem;
color: var(--color-ink-4);
}
.site-footer__friends-list a:hover {
color: var(--color-primary);
}
/* 底部栏 */
.site-footer__bottom {
border-top: 1px solid var(--color-line);
padding: 20px 0;
text-align: center;
}
.site-footer__filings {
display: flex;
justify-content: center;
gap: 16px;
margin-bottom: 8px;
flex-wrap: wrap;
}
.site-footer__filings a {
font-size: 0.75rem;
color: var(--color-ink-4);
}
.site-footer__filings a:hover {
color: var(--color-primary);
}
.site-footer__copyright {
font-size: 12px;
color: var(--color-ink-4);
margin: 0;
}
/* §2.3 三列结构化字段 */
/* 品牌 Logo */
.site-footer__logo {
margin-bottom: 16px;
}
.site-footer__logo-img {
max-height: 48px;
width: auto;
}
.site-footer__logo-img--dark {
display: none;
}
[data-theme="dark"] .site-footer__logo-img--light {
display: none;
}
[data-theme="dark"] .site-footer__logo-img--dark {
display: inline-block;
}
/* 标准联系项 */
.site-footer__contact-std {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
margin: 12px 0;
}
.site-footer__contact-item {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--surface-2, rgba(0,0,0,.05));
color: var(--color-ink-3, #888);
font-size: 16px;
position: relative;
cursor: pointer;
text-decoration: none;
transition: background .2s, color .2s;
}
.site-footer__contact-item:hover,
.site-footer__contact-item:focus {
background: var(--color-primary);
color: #fff;
}
.site-footer__contact-hover {
display: none;
position: absolute;
bottom: calc(100% + 10px);
left: 50%;
transform: translateX(-50%);
padding: 8px;
background: var(--surface-1, #fff);
border-radius: 8px;
box-shadow: 0 4px 16px rgba(0,0,0,.15);
z-index: 10;
white-space: nowrap;
}
.site-footer__contact-hover img {
width: 120px;
height: 120px;
object-fit: contain;
border-radius: 4px;
}
.site-footer__contact-item:hover .site-footer__contact-hover,
.site-footer__contact-item:focus .site-footer__contact-hover {
display: block;
}
/* 自定义代码区域 */
.site-footer__custom-code,
.site-footer__customize-code {
margin-top: 8px;
font-size: 0.85rem;
color: var(--color-ink-4, #999);
}
/* 二维码图片组 */
.site-footer__mini-qr {
display: flex;
justify-content: center;
gap: 24px;
padding: 20px 0;
border-top: 1px solid var(--color-line, #eee);
}
.site-footer__mini-qr-item {
text-align: center;
}
.site-footer__mini-qr-item img {
width: 80px;
height: 80px;
object-fit: contain;
border-radius: 6px;
border: 1px solid var(--color-line, #eee);
}
.site-footer__mini-qr-item span {
display: block;
margin-top: 6px;
font-size: 12px;
color: var(--color-ink-4, #999);
}
/* 设备可见性工具类 */
@media (max-width: 767px) {
.hide-on-mobile { display: none !important; }
}
@media (min-width: 768px) {
.hide-on-desktop { display: none !important; }
}
/* ============================================================
* 浮动右侧按钮组(模仿 zibll float-right)
* ============================================================ */
/* 对齐 zibll: bottom 60px, z-index 1030 */
.float-right-btns {
position: fixed;
right: 20px;
bottom: 60px;
z-index: 1030;
display: flex;
flex-direction: column;
gap: 8px;
transition: opacity 0.3s ease;
+300
View File
@@ -0,0 +1,300 @@
}
/* 对齐 zibll: 40px, 1.4em icon */
.float-btn {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
min-height: 40px;
border-radius: 50%;
border: none;
background: var(--float-btn-bg);
color: var(--color-ink-3);
box-shadow: var(--shadow-sm);
cursor: pointer;
transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
font-size: 1.4em;
text-decoration: none;
}
.float-btn:hover {
transform: translateY(-2px);
box-shadow: var(--shadow);
color: var(--color-primary);
background: var(--surface-page);
text-decoration: none;
}
.float-btn:active {
transform: scale(0.95);
}
/* 回到顶部按钮 — 滚动后显示 */
.float-btn--top {
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}
.float-btn--top.is-visible {
opacity: 1;
visibility: visible;
display: flex;
}
/* 主题切换按钮 */
#float-theme-toggle .float-btn__icon-moon {
display: none !important;
}
#float-theme-toggle .float-btn__icon-sun {
display: inline-block !important;
}
#float-theme-toggle[aria-pressed="true"] .float-btn__icon-moon,
.theme-dark #float-theme-toggle .float-btn__icon-moon,
html.dark #float-theme-toggle .float-btn__icon-moon,
body.dark-theme #float-theme-toggle .float-btn__icon-moon {
display: inline-block !important;
}
#float-theme-toggle[aria-pressed="true"] .float-btn__icon-sun,
.theme-dark #float-theme-toggle .float-btn__icon-sun,
html.dark #float-theme-toggle .float-btn__icon-sun,
body.dark-theme #float-theme-toggle .float-btn__icon-sun {
display: none !important;
}
/* 移动端隐藏浮动按钮(用 tabbar 代替) */
@media (max-width: 767px) {
.float-right-btns {
right: 12px;
bottom: 80px;
}
.float-btn {
width: 38px;
height: 38px;
font-size: 14px;
}
}
/* ============================================================
* 移动端底部 Tab 栏(模仿 zibll footer-tabbar)
* ============================================================ */
.footer-tabbar {
display: none;
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 1035;
min-height: var(--aksrt-footer-tabbar-height);
background: var(--blur-bg);
border-top: 1px solid var(--color-line-soft);
padding: 0 0 env(safe-area-inset-bottom, 0px);
justify-content: space-around;
align-items: center;
box-shadow: 0 -4px 5px var(--main-shadow, rgba(0, 0, 0, 0.06));
-webkit-backdrop-filter: saturate(5) blur(20px);
backdrop-filter: saturate(5) blur(20px);
--tabbar-active-color: #f04494;
--tabbar-icon-size: 24px;
--tabbar-text-size: 10px;
}
.footer-tabbar.no-border {
border-top: none;
}
.footer-tabbar.no-shadow {
box-shadow: none;
}
.footer-tabbar.hide-text .tabbar-item span {
display: none;
}
.footer-tabbar.has-animation .tabbar-item {
transition: color 0.15s ease, transform 0.15s ease;
}
.footer-tabbar.has-animation .tabbar-item:active {
transform: scale(0.9);
}
.footer-tabbar-placeholder {
display: none;
height: calc(var(--aksrt-footer-tabbar-height) + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 767px) {
.footer-tabbar {
display: flex;
}
.footer-tabbar-placeholder {
display: block;
}
/* 有 tabbar 时页脚需要额外底部间距 */
.site-footer {
padding-bottom: calc(var(--aksrt-footer-tabbar-height) + env(safe-area-inset-bottom, 0px));
}
}
.tabbar-item {
display: flex;
flex: 1 1 0;
min-width: 0;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1px;
min-height: 49px;
padding: 4px 0 3px;
color: var(--muted-color, var(--color-ink-3));
font-size: 13px;
text-decoration: none;
border: none;
background: none;
cursor: pointer;
transition: color 0.15s ease;
-webkit-tap-highlight-color: transparent;
position: relative;
}
/* 对齐 zibll: 24px 图标 */
.tabbar-item i {
font-size: var(--tabbar-icon-size, 24px);
line-height: 1;
}
.tabbar-item span {
display: block;
font-size: var(--tabbar-text-size, 10px);
font-weight: 500;
line-height: 1;
transform: scale(0.8);
transform-origin: center top;
}
.tabbar-item:hover,
.tabbar-item.active {
color: var(--tabbar-active-color, var(--color-primary));
text-decoration: none;
}
.tabbar-item.active i {
font-weight: 900;
}
.tabbar-badge {
position: absolute;
top: 2px;
right: 8px;
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: 999px;
background: var(--color-error);
color: #fff;
font-size: 10px;
line-height: 16px;
font-style: normal;
font-weight: 700;
text-align: center;
box-shadow: 0 2px 8px rgba(239, 68, 68, 0.20);
}
.tabbar-badge--dot {
min-width: 0;
width: 8px;
height: 8px;
padding: 0;
top: 4px;
right: 10px;
font-size: 0;
line-height: 1;
box-shadow: 0 0 0 2px var(--blur-bg);
}
.tabbar-item--add {
margin-top: -22px;
width: 62px;
height: 62px;
min-height: 62px;
border-radius: 50%;
background: var(--color-accent);
color: #fff;
box-shadow: 0 12px 24px var(--color-accent-shadow);
flex: 0 0 62px;
z-index: 1;
}
.tabbar-item--add i {
font-size: 22px;
}
.tabbar-item--add span {
font-size: 11px;
}
.tabbar-item--add:hover,
.tabbar-item--add.active {
color: #fff;
}
.tabbar-add-backdrop {
position: fixed;
inset: 0;
z-index: 951;
background: rgba(15, 23, 42, 0.38);
}
.tabbar-add-panel {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 952;
padding: 0 12px calc(84px + env(safe-area-inset-bottom, 0px));
}
.tabbar-add-panel__sheet {
border-radius: 20px;
background: var(--surface-page);
box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
overflow: hidden;
}
.tabbar-add-panel__head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 18px 12px;
border-bottom: 1px solid var(--color-line);
}
.tabbar-add-panel__close {
width: 32px;
height: 32px;
border: 0;
border-radius: 50%;
background: var(--surface-2);
color: var(--color-ink-3);
}
.tabbar-add-panel__list {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
padding: 18px;
}
.tabbar-add-panel__item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
+300
View File
@@ -0,0 +1,300 @@
gap: 8px;
min-height: 88px;
border-radius: 18px;
background: var(--surface-2);
color: var(--color-ink-3);
text-decoration: none;
}
.tabbar-add-panel__item i {
font-size: 22px;
color: var(--color-accent);
}
.tabbar-add-panel__item span {
font-size: 13px;
font-weight: 600;
}
.tabbar-search-overlay {
position: fixed;
inset: 0;
z-index: 953;
background: rgba(15, 23, 42, 0.58);
display: flex;
align-items: stretch;
justify-content: center;
}
.tabbar-search-overlay__dialog {
width: 100%;
min-height: 100%;
background: var(--surface-page);
padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px));
}
.tabbar-search-overlay__head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.tabbar-search-overlay__close {
width: 36px;
height: 36px;
border: 0;
border-radius: 50%;
background: var(--surface-2);
color: var(--color-ink-3);
}
.tabbar-search-overlay__form {
display: grid;
grid-template-columns: 20px 1fr auto;
gap: 10px;
align-items: center;
padding: 14px 14px 14px 12px;
border-radius: 18px;
background: var(--surface-2);
}
.tabbar-search-overlay__icon {
color: var(--color-ink-4);
}
.tabbar-search-overlay__form input {
min-width: 0;
border: 0;
background: transparent;
color: var(--color-ink);
font-size: 15px;
outline: none;
}
.tabbar-search-overlay__submit {
border: 0;
border-radius: 12px;
padding: 10px 14px;
background: var(--color-accent);
color: #fff;
font-weight: 700;
}
.tabbar-search-overlay__types {
display: flex;
gap: 8px;
margin-top: 14px;
}
.tabbar-search-overlay__type {
border: 0;
border-radius: 999px;
padding: 9px 14px;
background: var(--surface-2);
color: var(--color-ink-3);
font-size: 13px;
font-weight: 600;
}
.tabbar-search-overlay__type.is-active {
background: var(--color-accent-soft);
color: var(--color-accent);
}
.tabbar-search-overlay__section {
margin-top: 20px;
}
.tabbar-search-overlay__section-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.tabbar-search-overlay__label {
color: var(--color-ink-3);
font-size: 13px;
font-weight: 700;
}
.tabbar-search-overlay__clear {
border: 0;
background: transparent;
color: var(--color-accent);
font-size: 12px;
font-weight: 700;
}
.tabbar-search-overlay__history,
.tabbar-search-overlay__suggestions {
display: flex;
flex-direction: column;
gap: 10px;
}
.tabbar-search-overlay__history-item,
.tabbar-search-overlay__suggestion-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
width: 100%;
border: 0;
border-radius: 16px;
padding: 12px 14px;
background: var(--surface-2);
color: var(--color-ink-3);
text-decoration: none;
text-align: left;
}
.tabbar-search-overlay__history-item i {
color: var(--color-accent);
}
.tabbar-search-overlay__history-item span,
.tabbar-search-overlay__suggestion-item span {
flex: 1;
min-width: 0;
font-size: 14px;
font-weight: 600;
}
.tabbar-search-overlay__suggestion-item small {
color: var(--color-ink-4);
font-size: 12px;
}
.tabbar-search-overlay__empty {
padding: 14px;
border-radius: 16px;
background: var(--surface-2);
color: var(--color-ink-4);
font-size: 13px;
text-align: center;
}
.tabbar-search-overlay__tags {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.tabbar-search-overlay__tag {
padding: 10px 14px;
border-radius: 999px;
background: var(--surface-2);
color: var(--color-ink-3);
text-decoration: none;
font-size: 13px;
}
body.tabbar-search-open,
body.tabbar-add-open {
overflow: hidden;
}
/* 滚动时隐藏 tabbar(可选,通过 JS 添加 class) */
.footer-tabbar.scrolling-hide {
transform: translateY(100%);
transition: transform 0.3s ease;
}
/* 向下滚动隐藏,向上滚动显示 */
.footer-tabbar.scroll-down-hide {
transition: transform 0.3s ease;
}
.footer-tabbar.scroll-down-hide.is-hidden {
transform: translateY(120%);
}
/* 返回顶部包裹项(首页按钮 + 返回顶部切换) */
.tabbar-ontop-wrap {
position: relative;
}
.tabbar-ontop-wrap .tabbar-ontop-btn {
display: none;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
padding: 4px 12px;
color: var(--color-primary);
font-size: 13px;
text-decoration: none;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
.tabbar-ontop-wrap .tabbar-ontop-btn i {
font-size: 18px;
line-height: 1;
}
.tabbar-ontop-wrap .tabbar-ontop-btn span {
font-weight: 500;
line-height: 1;
transform: scale(0.8);
transform-origin: center top;
}
.tabbar-ontop-wrap.is-scrolled .tabbar-ontop-btn {
display: flex;
}
.tabbar-ontop-wrap.is-scrolled > .tabbar-item:not(.tabbar-ontop-btn) {
opacity: 0;
pointer-events: none;
}
/* ============================================================
* 暗色模式适配
* ============================================================ */
.theme-dark .site-footer,
html.dark .site-footer {
background: var(--surface-1);
}
.theme-dark .float-btn,
html.dark .float-btn {
background: var(--float-btn-bg);
box-shadow: var(--shadow-sm);
}
.theme-dark .footer-tabbar,
html.dark .footer-tabbar {
background: var(--blur-bg);
box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.20);
}
/* ============================================================
* 旧版 back-to-top 按钮兼容(隐藏,用浮动按钮代替)
* ============================================================ */
.back-to-top {
display: none !important;
}
/* ============================================================
* 页脚布局模板变体
* ============================================================ */
/* 紧凑模板:单行版权 + 链接 */
.site-footer--compact .site-footer__grid {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 16px;
}
.site-footer--compact .site-footer__brand {
flex: 1 1 100%;
}
+52
View File
@@ -0,0 +1,52 @@
.site-footer--compact .site-footer__brand .site-footer__desc,
.site-footer--compact .site-footer__brand .social-row,
.site-footer--compact .site-footer__brand .site-footer__friends {
display: none;
}
.site-footer--compact .site-footer__col {
flex: 0 0 auto;
}
.site-footer--compact .site-footer__col ul {
display: flex;
flex-wrap: wrap;
gap: 12px;
list-style: none;
padding: 0;
margin: 0;
}
.site-footer--compact .site-footer__bottom {
border-top: 1px solid var(--color-line);
padding-top: 12px;
margin-top: 12px;
}
/* 中央模板:居中品牌 + 链接 */
.site-footer--centered .site-footer__grid {
text-align: center;
}
.site-footer--centered .site-footer__brand {
flex: 1 1 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.site-footer--centered .site-footer__col {
flex: 1 1 auto;
}
.site-footer--centered .site-footer__col ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 16px;
}