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

This commit is contained in:
2026-07-03 23:15:11 +08:00
parent 1268a55dd0
commit 3247db7ed1
265 changed files with 59174 additions and 0 deletions
@@ -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);
}