打开/关闭菜单
26
6679
46
1.2万
OGAS数据中枢
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

User:弃权者/首页/styles.css:修订间差异

来自OGAS数据中枢
弃权者留言 | 贡献
无编辑摘要
弃权者留言 | 贡献
无编辑摘要
第5行: 第5行:
}
}


/* ── 头图容器 ── */
#gf-hero-wrap {
#gf-hero-wrap {
   position: relative;
   position: relative;
第12行: 第13行:
}
}


.gf-hero-slide{
/* ── slide层 ── */
    transform:scale(1.04);
.gf-hero-slide {
    opacity:0;
  position: absolute;
 
  inset: 0;
    transition:
  opacity: 0;
        opacity .7s ease,
  transition: opacity 0.7s ease;
        transform 6s linear;
}
}


.gf-hero-slide.active{
.gf-hero-slide.active {
    opacity:1;
  opacity: 1;
    transform:scale(1);
}
}


/* 1200px以内:只用fg层cover展示,bg层隐藏 */
/* ── 模糊背景层(仅超过1200px时显示) ── */
.gf-hero-bg {
.gf-hero-bg {
   display: none;
   display: none;
}
}


/* ── 清晰前景层 ── */
.gf-hero-fg {
.gf-hero-fg {
   position: absolute;
   position: absolute;
第37行: 第37行:
   background-position: center top;
   background-position: center top;
   background-repeat: no-repeat;
   background-repeat: no-repeat;
  /* Ken Burns:缓慢放大 */
  transform: scale( 1.06 );
  transition: transform 8s ease-out, opacity 0.7s ease;
}
.gf-hero-slide.active .gf-hero-fg {
  transform: scale( 1 );
}
}


/* 超过1200px:bg层模糊铺满,fg层居中1200px清晰展示 */
@media ( min-width: 1201px ) {
@media ( min-width: 1201px ) {
   .gf-hero-bg {
   .gf-hero-bg {
第48行: 第54行:
     background-position: center top;
     background-position: center top;
     filter: blur( 18px );
     filter: blur( 18px );
     transform: scale( 1.05 );
     transform: scale( 1.08 );
   }
   }


第56行: 第62行:
     bottom: 0;
     bottom: 0;
     left: 50%;
     left: 50%;
    transform: translateX( -50% );
     width: 1200px;
     width: 1200px;
    transform: translateX( -50% ) scale( 1.06 );
     background-size: cover;
     background-size: cover;
     background-position: center top;
     background-position: center top;
     background-repeat: no-repeat;
     background-repeat: no-repeat;
    transition: transform 8s ease-out, opacity 0.7s ease;
  }
  .gf-hero-slide.active .gf-hero-fg {
    transform: translateX( -50% ) scale( 1 );
   }
   }
}
}


/* 切换按钮 */
/* ── 底部渐变遮罩 ── */
#gf-switcher{
#gf-hero-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  pointer-events: none;
  z-index: 8;
}


    position:relative;
/* ── 导航外层(定位到Banner底部) ── */
#gf-switcher-wrap {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 20;
}


    margin-top:-28px;
/* ── Segmented Control整体 ── */
 
#gf-switcher {
    z-index:20;
  position: relative;
    display:inline-flex;
  display: inline-flex;
 
  padding: 4px;
padding:6px;
  background: rgba( 20, 22, 26, 0.82 );
 
  border-radius: 14px;
background:rgba(20,22,26,.82);
  border: 1px solid rgba( 255, 255, 255, 0.08 );
 
}
backdrop-filter:blur(18px);
 
border-radius:18px;
 
box-shadow:
0 12px 30px rgba(0,0,0,.25);


/* ── 滑动指示器 ── */
#gf-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc( 100% - 8px );
  background: #3d78c4;
  border-radius: 10px;
  transition: transform 0.3s cubic-bezier( 0.4, 0, 0.2, 1 ),
              width 0.3s cubic-bezier( 0.4, 0, 0.2, 1 );
  z-index: 0;
  pointer-events: none;
}
}


/* ── 单个tab ── */
.gf-tab {
.gf-tab {
  position: relative;
  z-index: 1;
   display: inline-block;
   display: inline-block;
   padding: 0.45rem 1.4rem;
   padding: 0.4rem 1.2rem;
   font-size: 0.9rem;
   font-size: 0.88rem;
   font-weight: 500;
   font-weight: 500;
  letter-spacing: 0.03em;
   cursor: pointer;
   cursor: pointer;
   border-radius: 12px;
   border-radius: 10px;
   border: none;
   border: none;
   background: transparent;
   background: transparent;
   color: #e8e8e8;
   color: rgba( 255, 255, 255, 0.6 );
   transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.15s;
   transition: color 0.25s;
   outline: none;
   outline: none;
   user-select: none;
   user-select: none;
  white-space: nowrap;
}
}


.gf-tab:hover {
.gf-tab:hover {
   background: rgba( 60, 65, 80, 0.85 );
   color: rgba( 255, 255, 255, 0.9 );
  border-color: #6ea7e0;
}
}


.gf-tab.active {
.gf-tab.active {
  background: #3d78c4;
  border-color: #3d78c4;
   color: #fff;
   color: #fff;
   transform: scale( 1.04 );
   font-weight: 500;
}
}


.gf-tab:focus {
.gf-tab:focus {
   box-shadow: 0 0 0 3px rgba( 61, 120, 196, 0.45 );
   box-shadow: 0 0 0 2px rgba( 61, 120, 196, 0.5 );
}
}


/* 内容区 */
/* ── 内容区 ── */
#gf-content-wrap {
#gf-content-wrap {
   position: relative;
   position: relative;
第128行: 第162行:
   display: none;
   display: none;
   animation: gfFadeIn 0.35s ease;
   animation: gfFadeIn 0.35s ease;
  background: none;
}
}


第148行: 第181行:
@media ( max-width: 720px ) {
@media ( max-width: 720px ) {
   #gf-hero-wrap {
   #gf-hero-wrap {
     height: 220px;
     height: 240px;
   }
   }


   .gf-tab {
   .gf-tab {
     font-size: 0.78rem;
     font-size: 0.78rem;
     padding: 0.35rem 0.9rem;
     padding: 0.35rem 0.7rem;
  }
 
  #gf-switcher {
    gap: 0.35rem;
    padding: 0.75rem 0 1rem;
   }
   }
}
}

2026年6月20日 (六) 22:12的版本

#gf-homepage {
  width: 100%;
  margin: 0 auto;
  margin-top: -1rem;
}

/* ── 头图容器 ── */
#gf-hero-wrap {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

/* ── slide层 ── */
.gf-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.gf-hero-slide.active {
  opacity: 1;
}

/* ── 模糊背景层(仅超过1200px时显示) ── */
.gf-hero-bg {
  display: none;
}

/* ── 清晰前景层 ── */
.gf-hero-fg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* Ken Burns:缓慢放大 */
  transform: scale( 1.06 );
  transition: transform 8s ease-out, opacity 0.7s ease;
}

.gf-hero-slide.active .gf-hero-fg {
  transform: scale( 1 );
}

@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.08 );
  }

  .gf-hero-fg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1200px;
    transform: translateX( -50% ) scale( 1.06 );
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: transform 8s ease-out, opacity 0.7s ease;
  }

  .gf-hero-slide.active .gf-hero-fg {
    transform: translateX( -50% ) scale( 1 );
  }
}

/* ── 底部渐变遮罩 ── */
#gf-hero-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  pointer-events: none;
  z-index: 8;
}

/* ── 导航外层(定位到Banner底部) ── */
#gf-switcher-wrap {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 20;
}

/* ── Segmented Control整体 ── */
#gf-switcher {
  position: relative;
  display: inline-flex;
  padding: 4px;
  background: rgba( 20, 22, 26, 0.82 );
  border-radius: 14px;
  border: 1px solid rgba( 255, 255, 255, 0.08 );
}

/* ── 滑动指示器 ── */
#gf-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc( 100% - 8px );
  background: #3d78c4;
  border-radius: 10px;
  transition: transform 0.3s cubic-bezier( 0.4, 0, 0.2, 1 ),
              width 0.3s cubic-bezier( 0.4, 0, 0.2, 1 );
  z-index: 0;
  pointer-events: none;
}

/* ── 单个tab ── */
.gf-tab {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.4rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba( 255, 255, 255, 0.6 );
  transition: color 0.25s;
  outline: none;
  user-select: none;
  white-space: nowrap;
}

.gf-tab:hover {
  color: rgba( 255, 255, 255, 0.9 );
}

.gf-tab.active {
  color: #fff;
  font-weight: 500;
}

.gf-tab:focus {
  box-shadow: 0 0 0 2px rgba( 61, 120, 196, 0.5 );
}

/* ── 内容区 ── */
#gf-content-wrap {
  position: relative;
  min-height: 200px;
}

.gf-content-panel {
  display: none;
  animation: gfFadeIn 0.35s ease;
}

.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: 240px;
  }

  .gf-tab {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
  }
}