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

模板:首页/styles.css

来自ANACHRONISM
Maintenance script​(留言 | 贡献)2026年10月13日 (二) 20:10的版本 (2026-10-13 修正首页模板排版与图片显示)
/* 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,
.anach-home-carousel__image > span,
.anach-home-carousel__image img {
  display: block;
  width: 100%;
  height: 100%;
}

.anach-home-carousel__image img {
  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;
  }
}