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

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

来自OGAS数据中枢
弃权者留言 | 贡献
无编辑摘要
弃权者留言 | 贡献
无编辑摘要
第1行: 第1行:
/* --- 头图 --- */
 
#gs-hero-wrap {
#gf-homepage {
   width: 100%;
   width: 100%;
   height: 360px;
   margin: 0 auto;
  border-radius: var(--border-radius-medium);
   margin-top: -1rem;
   margin-bottom: var(--space-md);
  overflow: hidden;
  background: var(--color-surface-2);
}
}


#gs-hero-img {
/* --- 头图区域 --- */
#gf-hero-wrap {
  position: relative;
   width: 100%;
   width: 100%;
   height: 100%;
   height: clamp( 220px, 38vw, 520px );
   object-fit: cover;
   overflow: hidden;
  display: block;
  transition: opacity 0.4s ease;
}
}


.skin-citizen-dark #gs-hero-wrap {
.gf-hero-slide {
   filter: brightness(0.8);
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
   transition: opacity 0.6s ease;
}
}


/* --- 按钮条 --- */
.gf-hero-slide.active {
.gs-tabs {
   opacity: 1;
   display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
}


.gs-tab-btn {
/* 下方渐隐 */
   display: inline-block;
#gf-hero-fade-bottom {
   padding: 8px 20px;
   position: absolute;
   border-radius: var(--border-radius-medium);
   bottom: 0;
   background: var(--color-surface-1);
   left: 0;
   color: var(--color-base);
   right: 0;
   border: 1px solid var(--border-color-base);
   height: 55%;
   cursor: pointer;
   background: linear-gradient( to bottom, transparent 0%, #1d1e20 100% );
  font-size: 0.95rem;
   pointer-events: none;
  user-select: none;
   z-index: 2;
   transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  outline-offset: 2px;
}
}


.gs-tab-btn:hover {
/* 左侧渐隐 */
   background: var(--color-surface-2);
#gf-hero-fade-left {
   box-shadow: 0 2px 8px var(--box-shadow-color-base);
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 20%;
   background: linear-gradient( to right, #1d1e20 0%, transparent 100% );
   pointer-events: none;
  z-index: 2;
}
}


.gs-tab-btn:focus {
/* 右侧渐隐 */
   outline: 2px solid var(--color-progressive);
#gf-hero-fade-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20%;
   background: linear-gradient( to left, #1d1e20 0%, transparent 100% );
  pointer-events: none;
  z-index: 2;
}
}


.gs-tab-btn.gs-active {
/* --- 切换按钮区 --- */
   background: var(--color-progressive);
#gf-switcher {
   color: #fff;
   display: flex;
   border-color: var(--color-progressive);
  justify-content: center;
   font-weight: 700;
  flex-wrap: wrap;
   cursor: default;
  gap: 0.5rem;
   padding: 1rem 0 1.25rem;
   position: relative;
   z-index: 5;
   margin-top: -2.5rem;
}
}


/* --- 内容区 --- */
.gf-tab {
.gs-content {
   position: relative;
   position: relative;
  padding: 0.45rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-radius: 2em;
  border: 1.5px solid rgba( 255, 255, 255, 0.25 );
  background: rgba( 30, 32, 38, 0.72 );
  color: #e8e8e8;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.15s;
  outline: none;
}
}


.gs-content-panel {
.gf-tab:hover {
   display: none;
   background: rgba( 60, 65, 80, 0.85 );
  opacity: 0;
   border-color: #6ea7e0;
  transform: translateY(10px);
   transition: opacity 0.3s ease, transform 0.3s ease;
}
}


.gs-content-panel.gs-active {
.gf-tab.active {
   display: block;
   background: #3d78c4;
  border-color: #3d78c4;
  color: #fff;
  transform: scale( 1.04 );
}
}


.gs-content-panel.gs-visible {
.gf-tab:focus {
   opacity: 1;
   box-shadow: 0 0 0 3px rgba( 61, 120, 196, 0.45 );
  transform: translateY(0);
}
}


/* --- 加载中 --- */
/* --- 内容面板 --- */
.gs-loading {
#gf-content-wrap {
   padding: var(--space-xl);
   position: relative;
   text-align: center;
   min-height: 200px;
  color: var(--color-subtle);
}
}


/* --- 卡片网格(1-4 列自适应) --- */
.gf-content-panel {
.gs-grid {
   display: none;
   display: grid;
   animation: gfFadeIn 0.35s ease;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
   gap: var(--space-md);
}
}


.gs-card {
.gf-content-panel.active {
  background: var(--color-surface-1);
  border: 1px solid var(--border-color-base);
  border-radius: var(--border-radius-medium);
  padding: var(--space-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--color-base);
   display: block;
   display: block;
}
}


.gs-card:hover {
@keyframes gfFadeIn {
   transform: translateY(-3px);
   from {
   box-shadow: 0 2px 8px var(--box-shadow-color-base);
    opacity: 0;
    transform: translateY( 10px );
   }
  to {
    opacity: 1;
    transform: translateY( 0 );
  }
}
}


.gs-card__title {
/* --- 响应式:移动端 --- */
   font-size: 1.05rem;
@media ( max-width: 720px ) {
   font-weight: 700;
   #gf-hero-wrap {
   color: var(--color-emphasized);
    height: clamp( 160px, 52vw, 280px );
  margin: 0 0 4px;
   }
}
 
   .gf-tab {
    font-size: 0.78rem;
    padding: 0.35rem 0.9rem;
  }


.gs-card__desc {
  #gf-switcher {
  font-size: 0.85rem;
    gap: 0.35rem;
  color: var(--color-subtle);
    padding: 0.75rem 0 1rem;
   margin: 0;
    margin-top: -1.8rem;
   }
}
}

2026年6月20日 (六) 16:58的版本

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

/* --- 头图区域 --- */
#gf-hero-wrap {
  position: relative;
  width: 100%;
  height: clamp( 220px, 38vw, 520px );
  overflow: hidden;
}

.gf-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

/* 下方渐隐 */
#gf-hero-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient( to bottom, transparent 0%, #1d1e20 100% );
  pointer-events: none;
  z-index: 2;
}

/* 左侧渐隐 */
#gf-hero-fade-left {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 20%;
  background: linear-gradient( to right, #1d1e20 0%, transparent 100% );
  pointer-events: none;
  z-index: 2;
}

/* 右侧渐隐 */
#gf-hero-fade-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20%;
  background: linear-gradient( to left, #1d1e20 0%, transparent 100% );
  pointer-events: none;
  z-index: 2;
}

/* --- 切换按钮区 --- */
#gf-switcher {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0 1.25rem;
  position: relative;
  z-index: 5;
  margin-top: -2.5rem;
}

.gf-tab {
  position: relative;
  padding: 0.45rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-radius: 2em;
  border: 1.5px solid rgba( 255, 255, 255, 0.25 );
  background: rgba( 30, 32, 38, 0.72 );
  color: #e8e8e8;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.15s;
  outline: 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;
}

.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: clamp( 160px, 52vw, 280px );
  }

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

  #gf-switcher {
    gap: 0.35rem;
    padding: 0.75rem 0 1rem;
    margin-top: -1.8rem;
  }
}