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

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

来自ANACHRONISM
Ancimen​(留言 | 贡献)
创建页面,内容为“→========== 背景层 ==========:​ .home-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; →background-image: url('/images/你的背景图.jpg');:​ background: linear-gradient(135deg, #1a0003 0%, #56000d 50%, #2a0006 100%); background-size: cover; background-position: center; background-attachment: fixed; z-index: -1; } .home-bg::after { content: ""; position: absolute; inset: 0; backg…”
 
Ancimen​(留言 | 贡献)
无编辑摘要
 
第1行: 第1行:
/* ========== 背景层 ========== */
/* ============================================
.home-bg {
  首页样式
    position: fixed;
   ============================================ */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*   background-image: url('/images/你的背景图.jpg');*/
background: linear-gradient(135deg, #1a0003 0%, #56000d 50%, #2a0006 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}
.home-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}


/* ========== 内容容器 ========== */
/* ===== 1. 布局 ===== */
.home-wrapper {
    max-width: 87.5rem;
    margin: 0 auto;
    padding: 1.25rem;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
 
/* ========== 两栏布局 ========== */
.home-grid {
.home-grid {
     display: grid;
     display: grid;
第34行: 第9行:
     gap: 1.25rem;
     gap: 1.25rem;
}
}
@media (max-width: 900px) {
.home-left,
    .home-grid {
.home-right {
        grid-template-columns: 1fr;
    min-width: 0;
    }
}
}


/* ========== 通用卡片 ========== */
 
/* ===== 2. 通用卡片(日间默认) ===== */
.home-card {
.home-card {
     background: rgba(255, 255, 255, 0.96);
     background: rgba(255, 255, 255, 0.96);
     border-radius: 0.75rem;
     border-radius: 0.75rem;
     box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.25);
     box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.12);
     padding: 1.25rem;
     padding: 1.25rem;
     margin-bottom: 1.25rem;
     margin-bottom: 1.25rem;
     overflow: hidden;
     overflow: hidden;
    color: #333;
}
.home-card--flush {
    padding: 0;
}
}
.home-card-title {
.home-card-title {
     font-size: 1.2rem;
     font-size: 1.2rem;
第59行: 第37行:
}
}


/* ========== 轮播图 ========== */
 
/* ===== 3. 轮播图 ===== */
.home-carousel {
.home-carousel {
     position: relative;
     position: relative;
第70行: 第49行:
.home-carousel-item {
.home-carousel-item {
     position: absolute;
     position: absolute;
     inset: 0;
     top: 0;
    right: 0;
    bottom: 0;
    left: 0;
     opacity: 0;
     opacity: 0;
     transition: opacity 0.6s ease;
     transition: opacity 0.6s ease;
第82行: 第64行:
.home-carousel-img {
.home-carousel-img {
     position: absolute;
     position: absolute;
     inset: 0;
     top: 0;
    right: 0;
    bottom: 0;
    left: 0;
     width: 100%;
     width: 100%;
     height: 100%;
     height: 100%;
     object-fit: cover;
     /* 图片就绪后改成:
      background-image: url('/images/首页卡片1.jpg');
      background-size: cover;
      background-position: center; */
     background: linear-gradient(135deg, #56000d 0%, #8b1a2b 100%);
     background: linear-gradient(135deg, #56000d 0%, #8b1a2b 100%);
}
}
第93行: 第81行:
     width: 100%;
     width: 100%;
     padding: 1.25rem 1.5rem;
     padding: 1.25rem 1.5rem;
     background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
     background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
     color: #fff;
     color: #fff;
}
}
第115行: 第103行:
     height: 2.5rem;
     height: 2.5rem;
     border-radius: 50%;
     border-radius: 50%;
     background: rgba(255,255,255,0.85);
     background: rgba(255, 255, 255, 0.85);
     border: none;
     border: none;
     cursor: pointer;
     cursor: pointer;
第130行: 第118行:
.home-carousel-btn.prev { left: 0.75rem; }
.home-carousel-btn.prev { left: 0.75rem; }
.home-carousel-btn.next { right: 0.75rem; }
.home-carousel-btn.next { right: 0.75rem; }
.home-carousel-dots {
.home-carousel-dots {
     position: absolute;
     position: absolute;
第144行: 第131行:
     height: 0.625rem;
     height: 0.625rem;
     border-radius: 50%;
     border-radius: 50%;
     background: rgba(255,255,255,0.5);
     background: rgba(255, 255, 255, 0.5);
     cursor: pointer;
     cursor: pointer;
     transition: background 0.2s;
     transition: background 0.2s;
第152行: 第139行:
}
}


/* ========== Tabber 美化 ========== */
 
.home-card .tabber .wds-tabs {
/* ===== 4. Tabber ===== */
     border-bottom: 0.125rem solid #e0d5d7;
.home-card .tabber__tabs {
     border-bottom: 0.125rem solid rgba(86, 0, 13, 0.15);
     padding-left: 0;
     padding-left: 0;
}
}
.home-card .tabber .wds-tabs__tab {
.home-card .tabber__tab {
     padding: 0.5rem 1rem;
     padding: 0.5rem 1rem;
     cursor: pointer;
     cursor: pointer;
     color: #56000d;
     color: #56000d;
    text-decoration: none;
    border: none;
    border-bottom: 0.125rem solid transparent;
    transition: border-color 0.2s;
}
}
.home-card .tabber .wds-tabs__tab.wds-is-current {
.home-card .tabber__tab:hover {
     border-bottom: 0.125rem solid #56000d;
    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;
     font-weight: bold;
}
}
.home-card .tabber .wds-tab__content {
.home-card .tabber__section {
     padding: 1rem 0 0 0;
     padding: 1rem 0 0 0;
}
}


/* ========== 公告栏 ========== */
 
/* ===== 5. 公告 ===== */
.home-notice {
.home-notice {
     font-size: 0.92rem;
     font-size: 0.92rem;
第184行: 第181行:
}
}


/* ========== 版本信息卡 ========== */
 
/* ===== 6. 版本信息卡 ===== */
.home-version {
.home-version {
     text-align: center;
     text-align: center;
第201行: 第199行:
     font-weight: bold;
     font-weight: bold;
     margin: 0.25rem 0;
     margin: 0.25rem 0;
}
/* ===== 7. 夜间模式 ===== */
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;
}
/* ===== 8. 纯黑模式 ===== */
html.skin-theme-clientpref-pureblack .home-card {
    background: #0d0d0d;
    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;
}
/* ===== 9. 宽度偏好 ===== */
html.citizen-feature-custom-width-clientpref-narrow .home-grid {
    grid-template-columns: 1fr;
}
/* ===== 10. 移动端 / 窄屏 ===== */
@media (max-width: 900px) {
    .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年9月28日 (一) 00:36的最新版本

/* ============================================
   首页样式
   ============================================ */

/* ===== 1. 布局 ===== */
.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
}
.home-left,
.home-right {
    min-width: 0;
}


/* ===== 2. 通用卡片(日间默认) ===== */
.home-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0.75rem;
    box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.12);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    color: #333;
}
.home-card--flush {
    padding: 0;
}
.home-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #56000d;
    border-left: 0.25rem solid #56000d;
    padding-left: 0.625rem;
    margin-bottom: 0.875rem;
}


/* ===== 3. 轮播图 ===== */
.home-carousel {
    position: relative;
    width: 100%;
    height: clamp(12rem, 22vw, 24rem);
    overflow: hidden;
    border-radius: 0.75rem;
    background: #2a0006;
}
.home-carousel-item {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: flex-end;
}
.home-carousel-item.active {
    opacity: 1;
    z-index: 1;
}
.home-carousel-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    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;
    z-index: 2;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    color: #fff;
}
.home-carousel-caption h3 {
    margin: 0 0 0.375rem 0;
    font-size: 1.5rem;
    color: #fff;
    border: none;
}
.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;
}


/* ===== 4. Tabber ===== */
.home-card .tabber__tabs {
    border-bottom: 0.125rem solid rgba(86, 0, 13, 0.15);
    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;
}


/* ===== 5. 公告 ===== */
.home-notice {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #333;
}
.home-notice ul {
    padding-left: 1.2em;
    margin: 0;
}
.home-notice li {
    margin-bottom: 0.375rem;
}


/* ===== 6. 版本信息卡 ===== */
.home-version {
    text-align: center;
    padding: 1rem;
    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;
}


/* ===== 7. 夜间模式 ===== */
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;
}


/* ===== 8. 纯黑模式 ===== */
html.skin-theme-clientpref-pureblack .home-card {
    background: #0d0d0d;
    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;
}


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


/* ===== 10. 移动端 / 窄屏 ===== */
@media (max-width: 900px) {
    .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;
    }
}