User:弃权者/首页/styles.css:修订间差异
来自OGAS数据中枢
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第21行: | 第21行: | ||
} | } | ||
.gf-hero-slide.active { | .gf-hero-slide.active{ | ||
opacity:1; | |||
transform:scale(1); | |||
} | } | ||
| 第64行: | 第65行: | ||
/* 切换按钮 */ | /* 切换按钮 */ | ||
#gf-switcher { | #gf-switcher{ | ||
position:relative; | |||
margin-top:-28px; | |||
z-index:20; | |||
display:inline-flex; | |||
padding:6px; | |||
background:rgba(20,22,26,.82); | |||
backdrop-filter:blur(18px); | |||
border-radius:18px; | |||
box-shadow: | |||
0 12px 30px rgba(0,0,0,.25); | |||
} | } | ||
| 第79行: | 第94行: | ||
letter-spacing: 0.03em; | letter-spacing: 0.03em; | ||
cursor: pointer; | cursor: pointer; | ||
border-radius: | border-radius: 12px; | ||
border: | border: none; | ||
background: | background: transparent; | ||
color: #e8e8e8; | color: #e8e8e8; | ||
transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.15s; | transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.15s; | ||
2026年6月20日 (六) 19:05的版本
#gf-homepage {
width: 100%;
margin: 0 auto;
margin-top: -1rem;
}
#gf-hero-wrap {
position: relative;
width: 100%;
height: 400px;
overflow: hidden;
}
.gf-hero-slide{
transform:scale(1.04);
opacity:0;
transition:
opacity .7s ease,
transform 6s linear;
}
.gf-hero-slide.active{
opacity:1;
transform:scale(1);
}
/* 1200px以内:只用fg层cover展示,bg层隐藏 */
.gf-hero-bg {
display: none;
}
.gf-hero-fg {
position: absolute;
inset: 0;
background-size: cover;
background-position: center top;
background-repeat: no-repeat;
}
/* 超过1200px:bg层模糊铺满,fg层居中1200px清晰展示 */
@media ( min-width: 1201px ) {
.gf-hero-bg {
display: block;
position: absolute;
inset: 0;
background-size: cover;
background-position: center top;
filter: blur( 18px );
transform: scale( 1.05 );
}
.gf-hero-fg {
position: absolute;
top: 0;
bottom: 0;
left: 50%;
transform: translateX( -50% );
width: 1200px;
background-size: cover;
background-position: center top;
background-repeat: no-repeat;
}
}
/* 切换按钮 */
#gf-switcher{
position:relative;
margin-top:-28px;
z-index:20;
display:inline-flex;
padding:6px;
background:rgba(20,22,26,.82);
backdrop-filter:blur(18px);
border-radius:18px;
box-shadow:
0 12px 30px rgba(0,0,0,.25);
}
.gf-tab {
display: inline-block;
padding: 0.45rem 1.4rem;
font-size: 0.9rem;
font-weight: 500;
letter-spacing: 0.03em;
cursor: pointer;
border-radius: 12px;
border: none;
background: transparent;
color: #e8e8e8;
transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.15s;
outline: none;
user-select: none;
}
.gf-tab:hover {
background: rgba( 60, 65, 80, 0.85 );
border-color: #6ea7e0;
}
.gf-tab.active {
background: #3d78c4;
border-color: #3d78c4;
color: #fff;
transform: scale( 1.04 );
}
.gf-tab:focus {
box-shadow: 0 0 0 3px rgba( 61, 120, 196, 0.45 );
}
/* 内容区 */
#gf-content-wrap {
position: relative;
min-height: 200px;
}
.gf-content-panel {
display: none;
animation: gfFadeIn 0.35s ease;
background: none;
}
.gf-content-panel.active {
display: block;
}
@keyframes gfFadeIn {
from {
opacity: 0;
transform: translateY( 10px );
}
to {
opacity: 1;
transform: translateY( 0 );
}
}
@media ( max-width: 720px ) {
#gf-hero-wrap {
height: 220px;
}
.gf-tab {
font-size: 0.78rem;
padding: 0.35rem 0.9rem;
}
#gf-switcher {
gap: 0.35rem;
padding: 0.75rem 0 1rem;
}
}