跳转到内容
打开/关闭菜单
  • 6 条目
  • 2 文件
  • 8 用户
  • 881 编辑
ANACHRONISM
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:首页/styles.css:修订间差异

来自ANACHRONISM
Ancimen​(留言 | 贡献)
无编辑摘要
Maintenance script​(留言 | 贡献)
2026-10-13 首页两列单图预览上线
第1行: 第1行:
/* ============================================
/* TemplateStyles 草案:继承站点/Citizen 字体,不加载外部字体。 */
  首页样式
.anach-home-grid {
  ============================================ */
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(16rem, .82fr);
  gap: 1.4rem;
  align-items: stretch;
}


/* ===== 1. 布局 ===== */
.anach-home-carousel {
.home-grid {
  position: relative;
    display: grid;
  min-height: 32rem;
    grid-template-columns: 2fr 1fr;
  aspect-ratio: 1.58;
    gap: 1.25rem;
  overflow: hidden;
  border-top: 4px solid #650b19;
  background: #161012;
}
}
.home-left,
 
.home-right {
.anach-home-carousel__slide,
    min-width: 0;
.anach-home-carousel__image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
}


.anach-home-carousel__image {
  object-fit: cover;
  object-position: center;
}


/* ===== 2. 通用卡片(日间默认) ===== */
.anach-home-carousel__veil {
.home-card {
  position: absolute;
    background: rgba(255, 255, 255, 0.96);
  right: 0;
    border-radius: 0.75rem;
  bottom: 0;
    box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.12);
  left: 0;
    padding: 1.25rem;
  height: 45%;
    margin-bottom: 1.25rem;
  background: linear-gradient(0deg, rgba(18, 8, 11, .48), transparent);
    overflow: hidden;
  pointer-events: none;
    color: #333;
}
}
.home-card--flush {
 
    padding: 0;
.anach-home-carousel__badge {
  position: absolute;
  top: 1.2rem;
  left: 1.3rem;
  padding: .45rem .65rem;
  background: rgba(17, 12, 14, .7);
  color: #f7eeee;
  font-size: .7rem;
  letter-spacing: .16em;
}
}
.home-card-title {
 
    font-size: 1.2rem;
.anach-home-carousel__controls {
    font-weight: bold;
  position: absolute;
    color: #56000d;
  top: 50%;
    border-left: 0.25rem solid #56000d;
  right: 1.1rem;
    padding-left: 0.625rem;
  left: 1.1rem;
    margin-bottom: 0.875rem;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
}


.anach-home-carousel__arrow {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(20, 12, 14, .56);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  opacity: .46;
}


/* ===== 3. 轮播图 ===== */
.anach-home-carousel__counter {
.home-carousel {
  position: absolute;
    position: relative;
  right: 1.2rem;
    width: 100%;
  bottom: 1.1rem;
    height: clamp(12rem, 22vw, 24rem);
  padding: .35rem .6rem;
    overflow: hidden;
  background: rgba(17, 12, 14, .7);
    border-radius: 0.75rem;
  color: #fff;
    background: #2a0006;
  font-size: .75rem;
  letter-spacing: .16em;
}
}
.home-carousel-item {
 
    position: absolute;
.anach-home-aside {
    top: 0;
  min-height: 32rem;
    right: 0;
  display: flex;
    bottom: 0;
  flex-direction: column;
    left: 0;
  justify-content: center;
    opacity: 0;
  padding: 2.25rem 1.8rem;
    transition: opacity 0.6s ease;
  border-top: 4px solid #8b1e2e;
    display: flex;
  background: #faf8f7;
    align-items: flex-end;
}
}
.home-carousel-item.active {
 
    opacity: 1;
.anach-home-aside__eyebrow {
    z-index: 1;
  margin: 0 0 1.2rem;
  color: #98535c;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.7;
}
}
.home-carousel-img {
 
    position: absolute;
.anach-home-aside h2 {
    top: 0;
  margin: 0;
    right: 0;
  color: #2d2325;
    bottom: 0;
  font-size: clamp(1.55rem, 2.2vw, 2.125rem);
    left: 0;
  font-weight: 500;
    width: 100%;
  line-height: 1.55;
    height: 100%;
    /* 图片就绪后改成:
      background-image: url('/images/首页卡片1.jpg');
      background-size: cover;
      background-position: center; */
    background: linear-gradient(135deg, #56000d 0%, #8b1a2b 100%);
}
}
.home-carousel-caption {
 
    position: relative;
.anach-home-aside__motto {
    z-index: 2;
  margin: 1rem 0 1.3rem;
    width: 100%;
  color: #716568;
    padding: 1.25rem 1.5rem;
  font-size: .875rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  line-height: 1.8;
    color: #fff;
}
}
.home-carousel-caption h3 {
 
    margin: 0 0 0.375rem 0;
.anach-home-aside__divider {
    font-size: 1.5rem;
  width: 2.9rem;
    color: #fff;
  height: 2px;
    border: none;
  margin: 0 0 1.2rem;
}
  background: #8b1e2e;
.home-carousel-caption p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
}
.home-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #56000d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.home-carousel-btn:hover {
    background: #fff;
}
.home-carousel-btn.prev { left: 0.75rem; }
.home-carousel-btn.next { right: 0.75rem; }
.home-carousel-dots {
    position: absolute;
    bottom: 0.625rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}
.home-carousel-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}
.home-carousel-dot.active {
    background: #fff;
}
}


 
.anach-home-aside__nav p {
/* ===== 4. Tabber ===== */
  margin: 0;
.home-card .tabber__tabs {
  padding: .75rem 0;
    border-bottom: 0.125rem solid rgba(86, 0, 13, 0.15);
  border-bottom: 1px solid #e5dfe0;
    padding-left: 0;
}
.home-card .tabber__tab {
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: #56000d;
    text-decoration: none;
    border: none;
    border-bottom: 0.125rem solid transparent;
    transition: border-color 0.2s;
}
.home-card .tabber__tab:hover {
    border-bottom-color: rgba(86, 0, 13, 0.15);
}
.home-card .tabber__tab--active,
.home-card .tabber__tab[aria-selected="true"] {
    border-bottom-color: #56000d;
    font-weight: bold;
}
.home-card .tabber__section {
    padding: 1rem 0 0 0;
}
}


 
.anach-home-aside__nav span {
/* ===== 5. 公告 ===== */
  display: block;
.home-notice {
  color: #a4616a;
    font-size: 0.92rem;
  font-size: .7rem;
    line-height: 1.7;
  letter-spacing: .12em;
    color: #333;
}
.home-notice ul {
    padding-left: 1.2em;
    margin: 0;
}
.home-notice li {
    margin-bottom: 0.375rem;
}
}


 
.anach-home-aside a {
/* ===== 6. 版本信息卡 ===== */
  display: block;
.home-version {
  color: #342a2c;
    text-align: center;
  font-size: 1rem;
    padding: 1rem;
  text-decoration: none;
    background: #56000d;
    border-radius: 0.625rem;
    color: #fff;
}
.home-version-label {
    font-size: 0.85rem;
    opacity: 0.8;
    letter-spacing: 0.125rem;
}
.home-version-num {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0.25rem 0;
}
}


 
.anach-home-aside a:hover {
/* ===== 7. 夜间模式 ===== */
  color: #8b1e2e;
html.skin-theme-clientpref-night .home-card {
    background: rgba(35, 25, 28, 0.95);
    box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.5);
    color: #ddd;
}
html.skin-theme-clientpref-night .home-card-title {
    color: #d4a5b0;
    border-left-color: #d4a5b0;
}
html.skin-theme-clientpref-night .home-notice {
    color: #ddd;
}
html.skin-theme-clientpref-night .home-card .tabber__tabs {
    border-bottom-color: rgba(212, 165, 176, 0.25);
}
html.skin-theme-clientpref-night .home-card .tabber__tab {
    color: #d4a5b0;
}
html.skin-theme-clientpref-night .home-card .tabber__tab--active,
html.skin-theme-clientpref-night .home-card .tabber__tab[aria-selected="true"] {
    border-bottom-color: #d4a5b0;
}
}


@media (max-width: 850px) {
  .anach-home-grid {
    grid-template-columns: 1fr;
  }


/* ===== 8. 纯黑模式 ===== */
  .anach-home-carousel,
html.skin-theme-clientpref-pureblack .home-card {
  .anach-home-aside {
    background: #0d0d0d;
     min-height: auto;
    box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.8);
  }
    color: #ccc;
}
html.skin-theme-clientpref-pureblack .home-card-title {
    color: #d4a5b0;
    border-left-color: #d4a5b0;
}
html.skin-theme-clientpref-pureblack .home-notice {
    color: #ccc;
}
html.skin-theme-clientpref-pureblack .home-card .tabber__tabs {
    border-bottom-color: rgba(212, 165, 176, 0.25);
}
html.skin-theme-clientpref-pureblack .home-card .tabber__tab {
     color: #d4a5b0;
}
html.skin-theme-clientpref-pureblack .home-card .tabber__tab--active,
html.skin-theme-clientpref-pureblack .home-card .tabber__tab[aria-selected="true"] {
    border-bottom-color: #d4a5b0;
}


  .anach-home-carousel {
    aspect-ratio: 1.4;
  }


/* ===== 9. 宽度偏好 ===== */
  .anach-home-aside {
html.citizen-feature-custom-width-clientpref-narrow .home-grid {
     padding: 1.6rem;
     grid-template-columns: 1fr;
  }
}
}


 
@media (max-width: 520px) {
/* ===== 10. 移动端 / 窄屏 ===== */
  .anach-home-carousel {
@media (max-width: 900px) {
     aspect-ratio: 1.12;
    .home-grid {
  }
        grid-template-columns: 1fr;
    }
    .home-carousel {
        height: clamp(10rem, 50vw, 16rem);
    }
    .home-card {
        padding: 1rem;
    }
    .home-card-title {
        font-size: 1.1rem;
     }
    .home-carousel-caption h3 {
        font-size: 1.2rem;
    }
    .home-carousel-caption p {
        font-size: 0.85rem;
    }
}
}

2026年10月13日 (二) 20:07的版本

/* TemplateStyles 草案:继承站点/Citizen 字体,不加载外部字体。 */
.anach-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(16rem, .82fr);
  gap: 1.4rem;
  align-items: stretch;
}

.anach-home-carousel {
  position: relative;
  min-height: 32rem;
  aspect-ratio: 1.58;
  overflow: hidden;
  border-top: 4px solid #650b19;
  background: #161012;
}

.anach-home-carousel__slide,
.anach-home-carousel__image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.anach-home-carousel__image {
  object-fit: cover;
  object-position: center;
}

.anach-home-carousel__veil {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(18, 8, 11, .48), transparent);
  pointer-events: none;
}

.anach-home-carousel__badge {
  position: absolute;
  top: 1.2rem;
  left: 1.3rem;
  padding: .45rem .65rem;
  background: rgba(17, 12, 14, .7);
  color: #f7eeee;
  font-size: .7rem;
  letter-spacing: .16em;
}

.anach-home-carousel__controls {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  left: 1.1rem;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.anach-home-carousel__arrow {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(20, 12, 14, .56);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  opacity: .46;
}

.anach-home-carousel__counter {
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
  padding: .35rem .6rem;
  background: rgba(17, 12, 14, .7);
  color: #fff;
  font-size: .75rem;
  letter-spacing: .16em;
}

.anach-home-aside {
  min-height: 32rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.25rem 1.8rem;
  border-top: 4px solid #8b1e2e;
  background: #faf8f7;
}

.anach-home-aside__eyebrow {
  margin: 0 0 1.2rem;
  color: #98535c;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.7;
}

.anach-home-aside h2 {
  margin: 0;
  color: #2d2325;
  font-size: clamp(1.55rem, 2.2vw, 2.125rem);
  font-weight: 500;
  line-height: 1.55;
}

.anach-home-aside__motto {
  margin: 1rem 0 1.3rem;
  color: #716568;
  font-size: .875rem;
  line-height: 1.8;
}

.anach-home-aside__divider {
  width: 2.9rem;
  height: 2px;
  margin: 0 0 1.2rem;
  background: #8b1e2e;
}

.anach-home-aside__nav p {
  margin: 0;
  padding: .75rem 0;
  border-bottom: 1px solid #e5dfe0;
}

.anach-home-aside__nav span {
  display: block;
  color: #a4616a;
  font-size: .7rem;
  letter-spacing: .12em;
}

.anach-home-aside a {
  display: block;
  color: #342a2c;
  font-size: 1rem;
  text-decoration: none;
}

.anach-home-aside a:hover {
  color: #8b1e2e;
}

@media (max-width: 850px) {
  .anach-home-grid {
    grid-template-columns: 1fr;
  }

  .anach-home-carousel,
  .anach-home-aside {
    min-height: auto;
  }

  .anach-home-carousel {
    aspect-ratio: 1.4;
  }

  .anach-home-aside {
    padding: 1.6rem;
  }
}

@media (max-width: 520px) {
  .anach-home-carousel {
    aspect-ratio: 1.12;
  }
}