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

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

@@ -0,0 +1,90 @@
/* Admin hint */
.header-components__admin-hint {
margin: 16px auto 0;
padding: 8px 14px;
border-radius: var(--radius-pill, 999px);
background: rgba(0, 0, 0, 0.32);
color: rgba(255, 255, 255, 0.95);
font: 500 13px/1.4 var(--font-ui);
display: inline-flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
justify-content: center;
}
.header-components__admin-link {
color: #fff;
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 2px;
font-weight: 600;
}
.header-components__admin-link:hover {
color: #ffe082;
}
/* ============================================================
* Layer 2: 搜索覆盖模块(在轮播内部 absolute 定位)
* ============================================================ */
.header-components-search {
position: absolute;
bottom: 25%;
left: 50%;
transform: translateX(-50%);
z-index: 10;
width: 100%;
max-width: 600px;
padding: 0 16px;
}
.header-components-search__form {
display: flex;
align-items: center;
background: rgba(255, 255, 255, 0.95);
border-radius: 50px;
padding: 4px 4px 4px 20px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
backdrop-filter: blur(10px);
transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.header-components-search__form:focus-within {
box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
transform: translateY(-1px);
}
.header-components-search__icon {
color: var(--color-ink-3, #999);
font-size: 16px;
margin-right: 12px;
flex-shrink: 0;
}
.header-components-search__input {
flex: 1;
border: none !important;
background: transparent !important;
box-shadow: none !important;
font-size: 15px;
padding: 10px 0;
color: var(--color-ink);
}
.header-components-search__input:focus {
outline: none;
}
.header-components-search__input::placeholder {
color: var(--color-ink-4, #aaa);
}
.header-components-search__btn {
border-radius: 50px;
padding: 10px 24px;
font-size: 14px;
font-weight: 500;
flex-shrink: 0;
}
@@ -0,0 +1,176 @@
/* ============================================================
* AKSRT Header Slider — v5.0 Zibll-Aligned
*
* 三层架构:
* - Layer 1: Swiper 全宽轮播背景
* - Layer 2: 搜索覆盖模块
* - Layer 3: 图标卡片网格覆盖
*
* 对标 zibll 的 new-swiper 体系:
* - CSS 变量高度控制 (--pc-height / --m-height)
* - data-* 属性驱动配置
* - 缩略图分页器、视差、懒加载
* ============================================================ */
/* ============================================================
* .new-swiper 基础样式(对标 zibll)
* ============================================================ */
.aksrt-slider-wrapper {
position: relative;
margin-bottom: 20px;
}
.new-swiper {
position: relative;
overflow: hidden;
--pc-height: auto;
--m-height: auto;
}
.new-swiper .swiper-wrapper {
height: var(--pc-height);
}
.new-swiper .swiper-slide {
position: relative;
overflow: hidden;
}
.new-swiper .swiper-slide img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* 懒加载预加载器 */
.new-swiper .swiper-lazy-preloader {
position: absolute;
top: 50%;
left: 50%;
width: 42px;
height: 42px;
margin: -21px 0 0 -21px;
border: 3px solid rgba(255,255,255,0.3);
border-top-color: #fff;
border-radius: 50%;
animation: aksrt-swiper-spin 0.8s linear infinite;
}
@keyframes aksrt-swiper-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* 懒加载图片 */
.new-swiper .swiper-lazy {
opacity: 0;
transition: opacity 0.3s;
}
.new-swiper .swiper-lazy.lazyloaded,
.new-swiper .swiper-slide-visible .swiper-lazy {
opacity: 1;
}
/* 缩略图分页器 */
.new-swiper .pagination-thumbnail-item {
width: 60px;
height: 40px;
border-radius: 4px;
overflow: hidden;
opacity: 0.5;
transition: opacity 0.3s, border-color 0.3s;
border: 2px solid transparent;
cursor: pointer;
display: inline-block;
}
.new-swiper .pagination-thumbnail-item img {
width: 100%;
height: 100%;
object-fit: cover;
}
.new-swiper .pagination-thumbnail-item-active {
opacity: 1;
border-color: #fff;
}
/* 视差层 */
.new-swiper [data-swiper-parallax] {
transition: none;
}
/* 比例高度模式 */
.new-swiper.scale-height .swiper-wrapper {
height: 0;
padding-bottom: var(--scale-ratio, 45%);
}
/* 幻灯片文字覆盖层 */
.aksrt-slide-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2;
width: calc(100% - 32px);
max-width: 920px;
text-align: center;
color: #fff;
}
.aksrt-slide-text__title {
font-family: var(--font-display, var(--font-ui));
font-size: clamp(1.75rem, 4vw, 3rem);
font-weight: 700;
margin: 0 0 12px;
line-height: 1.2;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.aksrt-slide-text__desc {
font-size: clamp(0.9rem, 1.4vw, 1.125rem);
margin: 0;
line-height: 1.6;
color: rgba(255, 255, 255, 0.9);
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
/* 移动端高度 */
@media (max-width: 767px) {
.new-swiper .swiper-wrapper {
height: var(--m-height);
}
}
/* ============================================================
* Container — 三层叠加的父容器
* ============================================================ */
.header-components-container {
position: relative;
isolation: isolate; /* 创建独立堆叠上下文,内部 z-index 不外泄 */
width: 100%;
margin-bottom: 20px;
}
/* ============================================================
* Device Visibility for Hero/Banner slides
* ============================================================ */
/* PC-only slides: hidden on mobile */
@media (max-width: 767.98px) {
.hero-slide--pc-only,
.banner-slide--pc-only {
display: none !important;
}
}
/* Mobile-only slides: hidden on PC */
@media (min-width: 768px) {
.hero-slide--mobile-only,
.banner-slide--mobile-only {
display: none !important;
}
}
@@ -0,0 +1,169 @@
/* ===== Card device visibility ===== */
@media (min-width: 768px) {
.hide-cards-pc .header-components-card { display: none; }
}
@media (max-width: 767px) {
.hide-cards-mobile .header-components-card { display: none; }
}
.theme-dark .header-components-search .line-form,
html.dark .header-components-search .line-form {
background: rgba(30, 30, 30, 0.86);
color: #ddd;
}
.header-components-search .search-input-text {
position: relative;
padding: 3px 42px 3px 8px;
}
.header-components-search .line-form-input {
width: 100%;
padding: 0.65em 0 0.2em 0;
font-size: 16px;
border: none !important;
outline: 0 !important;
background: transparent !important;
box-shadow: none !important;
opacity: 0.92;
color: var(--color-ink);
}
.theme-dark .header-components-search .line-form-input,
html.dark .header-components-search .line-form-input {
color: #f2f2f2;
}
.header-components-search .line-form-input::placeholder {
color: transparent;
}
.header-components-search .line-form-line,
.header-components-search .line-form-line::before {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 1px;
transition: 0.4s;
background: rgba(255, 255, 255, 0.34);
}
.header-components-search .line-form-line::before {
content: "";
width: 0;
background: rgba(255, 255, 255, 0.92);
}
.header-components-search .line-form-input:focus ~ .line-form-line::before,
.header-components-search .line-form-input:not(:placeholder-shown) ~ .line-form-line::before {
width: 100%;
}
.header-components-search .scale-placeholder {
position: absolute;
left: 0;
bottom: 0.72em;
opacity: 0.68;
transition: transform 0.2s, font-size 0.2s, color 0.2s, opacity 0.2s;
pointer-events: none;
transform-origin: left top;
}
.header-components-search .scale-placeholder.is-focus,
.header-components-search .line-form-input:focus ~ .scale-placeholder,
.header-components-search .line-form-input:not(:placeholder-shown) ~ .scale-placeholder {
transform: translateY(-1.45em);
font-size: 12px;
color: #fff;
opacity: 0.92;
}
.header-components-search .line-form .abs-right {
position: absolute;
right: -6px;
top: 50%;
transform: translateY(-50%);
margin: 0;
}
.header-components-search__submit {
width: 34px;
height: 34px;
border: none;
border-radius: 999px;
background: var(--color-primary, var(--color-primary));
color: #fff;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.header-components-search__submit svg {
width: 15px;
height: 15px;
}
/* Search add-ons: category dropdown */
.header-components-search__cat {
appearance: none;
-webkit-appearance: none;
background: transparent;
border: none;
border-right: 1px solid rgba(255, 255, 255, 0.25);
color: inherit;
font-size: 13px;
padding: 0 12px;
min-width: 90px;
max-width: 140px;
cursor: pointer;
outline: none;
height: 40px;
}
.header-components-search__cat option {
color: #333;
background: #fff;
}
/* Search add-ons: type switcher */
.header-components-search__types {
display: flex;
align-items: center;
gap: 4px;
padding: 0 8px;
border-right: 1px solid rgba(255, 255, 255, 0.25);
}
.header-components-search__type-label {
display: inline-flex;
align-items: center;
cursor: pointer;
font-size: 12px;
padding: 3px 8px;
border-radius: 100px;
transition: background 0.2s, color 0.2s;
white-space: nowrap;
}
.header-components-search__type-radio {
display: none;
}
.header-components-search__type-radio:checked + .header-components-search__type-text {
color: var(--color-primary, #4a90d9);
font-weight: 600;
}
/* has-addons: pill adjustments */
.line-form.has-addons {
display: flex;
align-items: center;
}
.line-form.has-addons .search-input-text {
flex: 1;
min-width: 0;
}
@@ -0,0 +1,377 @@
/* Dark theme */
.theme-dark .header-components-search__form,
html.dark .header-components-search__form,
body.dark-theme .header-components-search__form {
background: rgba(30, 30, 30, 0.9);
}
.theme-dark .header-components-search__input,
html.dark .header-components-search__input,
body.dark-theme .header-components-search__input {
color: #eee;
}
/* ============================================================
* Layer 3: 图标卡片(模仿 zibll — 骑在 hero 底部边界线上)
*
* 关键技术:卡片在 DOM 中位于轮播之后,
* 使用 margin-top: -40px 向上拉,使其骑在 hero 底部边界线上
* ============================================================ */
.header-components-card {
position: relative;
z-index: 10;
margin-top: -40px;
}
.header-components-card__container {
max-width: var(--container, 1280px);
margin: 0 auto;
padding: 0 16px;
}
/* 卡片行:flex 水平排列 */
.header-components-card__row {
display: flex;
gap: 10px;
padding-top: 4px; /* 为 hover 上浮留出空间 */
}
/* 每个卡片项等宽 */
.header-components-card__item {
flex: 1;
min-width: 0;
}
/* 共享背景模式:一个大卡片包裹 */
.header-components-card__wrap--shared {
background: var(--surface-page);
border-radius: 8px;
padding: 10px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
border: 1px solid var(--color-line);
}
/* 独立背景模式:每个卡片有自己的背景 */
.header-components-card__item-bg {
background: var(--surface-page);
border-radius: 8px;
padding: 12px 14px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
border: 1px solid var(--color-line);
height: 100%;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.header-components-card__item-bg:hover {
transform: none;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
/* 毛玻璃效果 */
.filter-blur .header-components-card__wrap--shared,
.filter-blur .header-components-card__item-bg {
background: rgba(255, 255, 255, 0.75);
backdrop-filter: saturate(3) blur(20px);
-webkit-backdrop-filter: saturate(3) blur(20px);
border-color: rgba(255, 255, 255, 0.3);
}
.theme-dark .filter-blur .header-components-card__wrap--shared,
html.dark .filter-blur .header-components-card__wrap--shared,
body.dark-theme .filter-blur .header-components-card__wrap--shared,
.theme-dark .filter-blur .header-components-card__item-bg,
html.dark .filter-blur .header-components-card__item-bg,
body.dark-theme .filter-blur .header-components-card__item-bg {
background: rgba(30, 30, 30, 0.75);
border-color: rgba(255, 255, 255, 0.1);
}
/* ============================================================
* 单个图标卡片样式(模仿 zibll icon-cover-card)
* 结构:左侧圆形图标 + 右侧标题/描述
* ============================================================ */
.icon-cover-card {
display: flex;
align-items: center;
gap: 10px;
padding: 8px;
border-radius: 6px;
text-decoration: none;
color: var(--color-ink);
transition: background 0.15s ease;
}
a.icon-cover-card:hover {
background: var(--surface-3);
text-decoration: none;
color: var(--color-ink);
}
/* 图标容器 — 圆形 */
.icon-cover-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
min-width: 40px;
border-radius: 50%;
font-size: 18px;
flex-shrink: 0;
}
/* 方形图标 */
.icon-cover-icon.radius4 {
border-radius: 6px;
}
/* 图标颜色类(模仿 zibll 的调色板) */
.icon-cover-icon.c-blue {
background: rgba(66, 133, 244, 0.12);
color: #4285f4;
}
.icon-cover-icon.c-yellow {
background: rgba(251, 188, 4, 0.12);
color: #fbbc04;
}
.icon-cover-icon.c-green {
background: rgba(52, 168, 83, 0.12);
color: #34a853;
}
.icon-cover-icon.c-red {
background: rgba(234, 67, 53, 0.12);
color: #ea4335;
}
.icon-cover-icon.c-orange {
background: rgba(255, 152, 0, 0.12);
color: #ff9800;
}
.icon-cover-icon.c-cyan {
background: rgba(0, 188, 212, 0.12);
color: #00bcd4;
}
.icon-cover-icon.c-pink {
background: rgba(233, 30, 99, 0.12);
color: #e91e63;
}
/* 渐变图标背景 */
.icon-cover-icon.jb-cyan {
background: linear-gradient(135deg, #4facfe, #00f2fe);
color: #fff;
}
.icon-cover-icon.jb-green {
background: linear-gradient(135deg, #43e97b, #38f9d7);
color: #fff;
}
.icon-cover-icon.jb-orange {
background: linear-gradient(135deg, #fa709a, #fee140);
color: #fff;
}
/* 文字区 */
.icon-cover-desc {
flex: 1;
min-width: 0;
overflow: hidden;
}
.icon-cover-title {
font-size: 13px;
font-weight: 600;
line-height: 1.3;
color: var(--color-ink);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.icon-cover-subtitle {
font-size: 11px;
color: var(--color-ink-4);
margin-top: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.3;
}
/* ============================================================
* 响应式
* ============================================================ */
@media (max-width: 767px) {
.header-components-card {
margin-top: -35px;
}
.header-components-card__row {
flex-wrap: wrap;
gap: 6px;
}
/* 移动端 2 列 */
.header-components-card__item {
flex: 0 0 calc(50% - 3px);
}
.header-components-card__item-bg {
padding: 10px;
}
.header-components-card__wrap--shared {
padding: 6px;
}
.icon-cover-card {
gap: 6px;
padding: 6px;
}
.icon-cover-icon {
width: 32px;
height: 32px;
min-width: 32px;
font-size: 14px;
}
.icon-cover-title {
font-size: 12px;
}
.icon-cover-subtitle {
display: none;
}
}
@media (max-width: 480px) {
.icon-cover-card {
gap: 4px;
padding: 2px;
}
.icon-cover-icon {
width: 28px;
height: 28px;
min-width: 28px;
font-size: 12px;
}
}
/* ============================================================
* Nav 透明模式(轮播可见时 nav 变透明)
* ============================================================ */
/* ============================================================
* Zibll-aligned text/search structure overrides
* ============================================================ */
.header-components__content.slide-text {
width: calc(100% - 32px);
max-width: 920px;
top: 42%;
z-index: 12;
padding-top: 0;
}
.header-components__content.slide-text .slide-title {
font-size: clamp(1.75rem, 4vw, 3rem);
line-height: 1.2;
margin: 0 0 12px;
}
.header-components__content.slide-text .slide-desc {
max-width: 680px;
margin: 0 auto;
font-size: clamp(0.9rem, 1.4vw, 1.125rem);
line-height: 1.6;
color: rgba(255, 255, 255, 0.9);
}
.header-components-search {
top: calc(50% + 56px);
bottom: auto;
max-width: 680px;
padding: 0 20px;
font-size: 16px;
}
.card-0 .header-components-search {
top: calc(50% + 76px);
}
.header-components-search .search-input {
max-width: 620px;
margin: 0 auto;
}
.header-components-search .search-form {
margin: 0;
display: block;
background: transparent;
border-radius: 0;
padding: 0;
box-shadow: none;
-webkit-backdrop-filter: none;
backdrop-filter: none;
transform: none;
}
.header-components-search .search-form:focus-within {
box-shadow: none;
transform: none;
}
.header-components-search .line-form {
position: relative;
border-radius: 100px;
padding: 0.35em 1em;
background: rgba(255, 255, 255, 0.82);
color: #555;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
-webkit-backdrop-filter: saturate(5) blur(20px);
backdrop-filter: saturate(5) blur(20px);
}
.filter-blur .header-components-search .line-form {
background: rgba(255, 255, 255, 0.75);
}
/* ===== Container-level blur: PC/Mobile split ===== */
@media (min-width: 768px) {
.has-blur-pc .header-components-card__wrap--shared,
.has-blur-pc .header-components-card__item-bg {
background: rgba(255, 255, 255, 0.75);
backdrop-filter: saturate(3) blur(20px);
-webkit-backdrop-filter: saturate(3) blur(20px);
border-color: rgba(255, 255, 255, 0.3);
}
.has-blur-pc .header-components-search .line-form {
background: rgba(255, 255, 255, 0.75);
}
.theme-dark .has-blur-pc .header-components-card__wrap--shared,
html.dark .has-blur-pc .header-components-card__wrap--shared,
.theme-dark .has-blur-pc .header-components-card__item-bg,
html.dark .has-blur-pc .header-components-card__item-bg {
background: rgba(30, 30, 30, 0.75);
border-color: rgba(255, 255, 255, 0.1);
}
}
@media (max-width: 767px) {
.has-blur-mobile .header-components-card__wrap--shared,
.has-blur-mobile .header-components-card__item-bg {
background: rgba(255, 255, 255, 0.75);
backdrop-filter: saturate(3) blur(20px);
-webkit-backdrop-filter: saturate(3) blur(20px);
border-color: rgba(255, 255, 255, 0.3);
}
.has-blur-mobile .header-components-search .line-form {
background: rgba(255, 255, 255, 0.75);
}
.theme-dark .has-blur-mobile .header-components-card__wrap--shared,
html.dark .has-blur-mobile .header-components-card__wrap--shared,
.theme-dark .has-blur-mobile .header-components-card__item-bg,
html.dark .has-blur-mobile .header-components-card__item-bg {
background: rgba(30, 30, 30, 0.75);
border-color: rgba(255, 255, 255, 0.1);
}
}
@@ -0,0 +1,455 @@
/* Search keywords row */
.header-components-search__keywords {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 10px;
justify-content: center;
}
.header-components-search__kw-tag {
display: inline-block;
padding: 3px 10px;
font-size: 12px;
line-height: 1.4;
border-radius: 100px;
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(6px);
color: inherit;
text-decoration: none;
transition: background 0.2s;
}
.header-components-search__kw-tag:hover {
background: rgba(255, 255, 255, 0.4);
}
@media (max-width: 991px) {
.header-components {
height: var(--pc-height);
}
.header-components-search {
top: calc(50% + 44px);
max-width: 560px;
}
}
@media (max-width: 767px) {
.header-components {
height: var(--m-height);
}
.header-components__content.slide-text {
width: calc(100% - 28px);
max-width: 480px;
top: 40%;
padding-top: 0;
}
.header-components__content.slide-text .slide-title {
font-size: clamp(1.25rem, 5vw, 1.75rem);
margin-bottom: 10px;
}
.header-components__content[style*="--hero-text-size-m"] .slide-title {
font-size: var(--hero-text-size-m);
}
.header-components__content.slide-text .slide-desc {
font-size: 0.875rem;
line-height: 1.5;
}
.header-components-search {
top: calc(50% + 20px);
width: calc(100% - 24px);
max-width: 420px;
padding: 0 12px;
font-size: 12px;
}
.card-1 .header-components-search,
.card-2 .header-components-search {
top: calc(50% + 46px);
}
.card-5 .header-components-search,
.card-6 .header-components-search {
top: calc(50% - 22px);
}
.card-7 .header-components-search,
.card-8 .header-components-search {
top: calc(50% - 52px);
}
.header-components-search .line-form {
font-size: 14px;
padding: 4px 12px;
}
.header-components-search .scale-placeholder.is-focus,
.header-components-search .line-form-input:focus ~ .scale-placeholder {
transform: translateY(-32px);
font-size: 12px;
color: #fff;
}
.header-components-card {
margin-top: -35px;
}
.header-components-card__container {
padding: 0 10px;
}
.header-components-card__row {
flex-wrap: wrap;
gap: 6px;
}
.header-components-card__item {
flex: 0 0 calc(50% - 3px);
}
.header-components-card__item-bg {
padding: 8px 10px;
}
.header-components-card__wrap--shared {
padding: 6px;
}
.icon-cover-card {
gap: 6px;
padding: 4px;
min-height: 52px;
border-radius: 6px;
}
.icon-cover-icon {
width: 30px;
height: 30px;
min-width: 30px;
font-size: 14px;
}
.icon-cover-title {
font-size: 12px;
}
.icon-cover-subtitle {
display: none;
}
}
@media (max-width: 480px) {
.header-components {
height: var(--m-height);
}
.header-components__content.slide-text .slide-title {
font-size: clamp(1.1rem, 5.4vw, 1.4rem);
margin-bottom: 8px;
}
.header-components__content.slide-text .slide-desc {
font-size: 0.8125rem;
}
.header-components-search {
top: calc(50% + 26px);
width: calc(100% - 20px);
padding: 0 10px;
}
.card-5 .header-components-search,
.card-6 .header-components-search {
top: calc(50% - 12px);
}
.card-7 .header-components-search,
.card-8 .header-components-search {
top: calc(50% - 40px);
}
.header-components-search .search-input-text {
padding-right: 40px;
}
.header-components-search__submit {
width: 34px;
height: 34px;
}
}
.site-nav.nav-transparent {
background-color: transparent;
border-bottom-color: transparent;
color: #fff;
}
.site-nav.nav-transparent .site-brand,
.site-nav.nav-transparent .site-brand__name {
color: #fff;
}
.site-nav.nav-transparent .icon-btn {
color: rgba(255, 255, 255, 0.9);
}
.site-nav.nav-transparent .icon-btn:hover {
background: rgba(255, 255, 255, 0.15);
color: #fff;
}
.site-nav.nav-transparent ul.nav-desktop a {
color: rgba(255, 255, 255, 0.85);
}
.site-nav.nav-transparent ul.nav-desktop a:hover {
color: #fff;
background: rgba(255, 255, 255, 0.15);
}
.site-nav.nav-transparent ul.nav-desktop .current-menu-item > a,
.site-nav.nav-transparent ul.nav-desktop .current_page_item > a {
background: rgba(255, 255, 255, 0.2);
color: #fff;
}
.site-nav.nav-transparent .nav-auth .btn-outline {
border-color: rgba(255, 255, 255, 0.6);
color: #fff;
}
.site-nav.nav-transparent .nav-auth .btn-outline:hover {
background: rgba(255, 255, 255, 0.15);
border-color: #fff;
}
.site-nav.nav-transparent .nav-user__toggle {
border-color: rgba(255, 255, 255, 0.5);
}
/* 滚动后恢复实心 */
.site-nav.nav-transparent.is-scrolled {
background-color: var(--surface-page);
border-bottom-color: var(--color-line);
color: var(--color-ink);
}
.site-nav.nav-transparent.is-scrolled .site-brand,
.site-nav.nav-transparent.is-scrolled .site-brand__name {
color: var(--color-ink);
}
.site-nav.nav-transparent.is-scrolled .icon-btn {
color: var(--color-ink-3);
}
.site-nav.nav-transparent.is-scrolled ul.nav-desktop a {
color: var(--color-ink-3);
}
.site-nav.nav-transparent.is-scrolled .nav-auth .btn-outline {
border-color: var(--color-line);
color: var(--color-ink);
}
.site-nav.nav-transparent.is-scrolled .nav-user__toggle {
border-color: var(--color-line);
}
/* ============================================================
* Header Slider — Swiper Navigation & Pagination (Zibll-style)
* ============================================================ */
.header-components .swiper-button-prev,
.header-components .swiper-button-next {
width: 30px;
height: 40px;
color: #fff;
text-shadow: 0 0 6px #444;
opacity: 0;
transition: opacity 0.3s, background-color 0.3s;
z-index: 10;
}
.header-components .swiper-button-prev::after,
.header-components .swiper-button-next::after {
font-size: 16px;
font-weight: 700;
}
.header-slider:hover .swiper-button-prev,
.header-slider:hover .swiper-button-next {
opacity: 0.8;
}
.header-components .swiper-button-prev:hover,
.header-components .swiper-button-next:hover {
opacity: 1;
background-color: rgba(0, 0, 0, 0.3);
}
.header-components .swiper-pagination-bullet {
width: 10px;
height: 10px;
background: transparent;
border: 2px solid rgba(255, 255, 255, 0.6);
opacity: 0.7;
border-radius: 20px;
transition: 0.4s;
}
.header-components .swiper-pagination-bullet-active {
background: #fff;
border-color: #fff;
opacity: 1;
}
@media (max-width: 640px) {
.header-components .swiper-button-prev,
.header-components .swiper-button-next {
display: none;
}
}
/* ============================================================
* Banner Module — 内联轮播条(模仿 zibll)
* ============================================================ */
.banner-module {
position: relative;
width: 100%;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.banner-module__swiper {
position: relative;
width: 100%;
height: clamp(180px, 22vw, 300px);
}
.banner-module__swiper .swiper-slide {
position: relative;
overflow: hidden;
cursor: pointer;
height: 100%;
}
.banner-module__slide-bg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.banner-module__slide-bg img,
.banner-module__slide-bg .fit-cover {
width: 100%;
height: 100%;
object-fit: cover;
}
.banner-module__slide-fallback {
width: 100%;
height: 100%;
background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark, #5a8bc4));
}
.banner-module__slide-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 0%,
rgba(0, 0, 0, 0.15) 50%,
rgba(0, 0, 0, 0.5) 100%
);
pointer-events: none;
}
.banner-module__content {
position: absolute;
bottom: 24px;
left: 24px;
right: 24px;
z-index: 2;
color: #fff;
max-width: 680px;
}
.banner-module__title {
font-family: var(--font-display, var(--font-ui));
font-size: clamp(1.125rem, 2vw, 1.5rem);
font-weight: 700;
margin: 0 0 4px;
line-height: 1.3;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.banner-module__subtitle {
font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
margin: 0;
opacity: 0.9;
line-height: 1.5;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
/* Swiper 导航箭头 */
.banner-module .swiper-button-prev,
.banner-module .swiper-button-next {
width: 36px;
height: 36px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.85);
color: var(--color-ink);
opacity: 0;
pointer-events: none;
z-index: 10;
transition: opacity 0.3s ease, transform 0.2s ease;
}
.banner-module .swiper-button-prev::after,
.banner-module .swiper-button-next::after {
font-size: 14px;
font-weight: 700;
}
.banner-module:hover .swiper-button-prev,
.banner-module:hover .swiper-button-next {
opacity: 1;
pointer-events: auto;
}
.banner-module .swiper-button-prev:hover,
.banner-module .swiper-button-next:hover {
transform: scale(1.1);
background: #fff;
}
/* Banner 响应式 */
@media (max-width: 767px) {
.banner-module {
border-radius: 8px;
}
.banner-module__swiper {
height: clamp(120px, 30vw, 180px);
}
.banner-module__content {
bottom: 12px;
left: 12px;
right: 12px;
}
.banner-module .swiper-button-prev,
.banner-module .swiper-button-next {
display: none;
}
}
@@ -0,0 +1,198 @@
/* Widget device visibility */
@media (max-width: 767.98px) {
.aksrt-widget--mobile-only {
display: none !important;
}
}
@media (min-width: 768px) {
.aksrt-widget--pc-only {
display: none !important;
}
}
/* 首页首屏模块:向上抵消导航占位,保证 Hero 与导航重叠显示 */
.home-modules > .header-components-container:first-child,
.home-modules--fullbleed > .header-components-container:first-child {
margin-top: calc(var(--nav-height, 60px) * -1);
}
/* WordPress Admin Bar 已全局禁用,无需偏移规则 */
/* ============================================================
* Layer 1: Swiper 轮播
* ============================================================ */
.header-components {
position: relative;
width: 100%;
--pc-height: 550px;
--m-height: 280px;
height: var(--pc-height);
max-height: none;
overflow: hidden;
background: #111;
}
/* slide-header 模式:背景保持满铺,仅将文本层下移避开导航 */
.header-components.slide-header {
padding-top: 0;
}
.header-components.slide-header .header-components__content.slide-text {
padding-top: var(--nav-height, 60px);
}
/* WordPress Admin Bar 已全局禁用,无需偏移规则 */
/* 渐变兜底 */
.header-components--gradient {
background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-active, var(--color-primary-dark)) 100%);
display: flex;
align-items: center;
justify-content: center;
}
.header-components--gradient::before {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 255, 255, 0.15), transparent),
radial-gradient(ellipse 50% 50% at 80% 80%, rgba(0, 0, 0, 0.2), transparent);
pointer-events: none;
}
/* Swiper 内部 */
.header-components .swiper-wrapper {
position: absolute;
inset: 0;
height: 100%;
width: 100%;
}
.header-components .swiper-slide {
position: relative;
height: 100%;
overflow: hidden;
cursor: pointer;
}
/* 幻灯片背景图 */
.header-components__slide-bg {
position: absolute;
inset: 0;
overflow: hidden;
}
.header-components__slide-bg img,
.header-components__slide-bg .fit-cover {
width: 100%;
height: 100%;
object-fit: cover;
}
.header-components__slide-fallback {
width: 100%;
height: 100%;
background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}
/* 视频背景 */
.header-components__video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 0;
}
/* 图片图层(视差叠加) */
.header-components__layer {
position: absolute;
inset: 0;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
pointer-events: none;
}
.header-components__layer--free-size {
background-size: auto;
}
.header-components__layer--parallax {
will-change: transform, opacity;
opacity: var(--layer-parallax-opacity, 0.6);
transform: translateY(calc(var(--scroll-y, 0) * var(--layer-parallax-scale, 0.3) * 1px));
}
/* 文字视差 */
.has-text-parallax {
will-change: transform;
transform: translate(-50%, calc(-50% + var(--scroll-y, 0) * var(--hero-text-parallax, 0) * 0.15px));
}
/* 文字尺寸覆盖 */
.header-components__content[style*="--hero-text-size-pc"] .slide-title {
font-size: var(--hero-text-size-pc);
}
/* 幻灯片遮罩 */
.header-components__slide-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0.1) 0%,
rgba(0, 0, 0, 0.25) 40%,
rgba(0, 0, 0, 0.55) 100%
);
z-index: 1;
pointer-events: none;
}
/* 幻灯片文字内容 */
.header-components__content {
position: absolute;
bottom: auto;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2;
width: calc(100% - 32px);
max-width: 920px;
text-align: center;
color: #fff;
}
.header-components__title {
font-family: var(--font-display, var(--font-ui));
font-size: clamp(1.75rem, 4vw, 3rem);
font-weight: 700;
margin: 0 0 12px;
line-height: 1.2;
letter-spacing: -0.02em;
color: #fff;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.header-components__subtitle {
font-size: clamp(0.9rem, 1.4vw, 1.125rem);
margin: 0;
max-width: 680px;
margin-left: auto;
margin-right: auto;
line-height: 1.6;
color: rgba(255, 255, 255, 0.9);
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.header-components__description {
font-size: clamp(0.8rem, 1.2vw, 0.95rem);
margin: 8px auto 0;
max-width: 600px;
line-height: 1.5;
color: rgba(255, 255, 255, 0.8);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}