跳转到内容

MediaWiki:Common.css:修订间差异

来自次元企鹅情报局百科
Admin留言 | 贡献
无编辑摘要
Admin留言 | 贡献
无编辑摘要
标签手工回退
 
(未显示同一用户的27个中间版本)
第1行: 第1行:
/****************************************************
/****************************************************
  * ✅ Penguin Cute UI Final Clean Version
  * ✅ 次元企鹅百科 v5.8 首页 + PV 卡片 + YouTube 模块
  * ✅ 首页专属冰蓝柔和风 + 企鹅可爱 UI
  * 顶部渐变 + 完美去白框 + 轻萌风图片 + PV 网格系统
* Vector-2022 完整适配
  ****************************************************/
  ****************************************************/




/* ===============================
/* ==================================================
   ✅ 顶部 Banner(渐变 + LOGO 漂浮动画)
   ✅ 顶部渐变 Header (保持原样)
   =============================== */
   ================================================== */
.pg-hero{
 
  width:100%;
.pg-header {
  padding:64px 20px 72px;
    width: 100%;
  background:linear-gradient(145deg,#e6f3ff,#f7fbff); /* 冰蓝渐变 */
    background: linear-gradient(180deg, #e9f4ff 0%, #ffffff 80%);
  text-align:center;
    padding: 55px 0 70px;
  box-sizing:border-box;
    text-align: center;
  position:relative;
    border-radius: 0 0 26px 26px;
    box-shadow: none !important;
    margin-bottom: 35px;
}
}


.pg-hero__logo{
.pg-header__inner {
  margin:0 0 18px;
    max-width: 900px;
  animation:pg-float 6s ease-in-out infinite;
    margin: 0 auto;
}
}


.pg-hero__title{
/* Logo */
  font-size:44px;
.pg-header__logo {
  font-weight:800;
    background: none !important;
  color:#1b4d7a;
    padding: 0 !important;
  letter-spacing:.5px;
    margin-bottom: 18px;
  margin-bottom:10px;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-block !important;
}
}


.pg-hero__subtitle{
.pg-logo-img {
  font-size:18px;
    display: inline-block !important;
  color:#2b2d42;
    margin: 0 !important;
  line-height:1.85;
    max-width: none !important;
  max-width:860px;
    height: auto !important;
  margin:0 auto;
    object-fit: contain !important;
}
}


/* ✅ Logo 漂浮动画 */
@keyframes pg-float{
  0%,100%{ transform:translateY(0) }
  50%{ transform:translateY(-6px) }
}


/* ==================================================
  ✅ 首页标题与副标题
  ================================================== */


.pg-header__title {
    font-size: 30px;
    font-weight: 800;
    color: #174d79;
    margin-bottom: 15px;
}


/****************************************************
.pg-header__subtitle {
* ✅ 全站背景清理(去掉默认灰框/灰底)
    font-size: 17px;
****************************************************/
    line-height: 1.9;
.vector-body,
     color: #3c4654;
.vector-content,
     max-width: 720px;
.mw-body,
     margin: 0 auto;
.mw-body-content,
.mw-parser-output,
.mw-workspace-container {
     background: transparent !important;
     border: none !important;
     box-shadow: none !important;
}
}


/* 去掉默认 padding,否则首页外层会出现难看的空白 */
.pg-header__prints {
.mw-body,
    margin-top: 18px;
.mw-body-content {
    font-size: 20px;
     padding: 0 !important;
     opacity: 0.85;
}
}




/* ==================================================
  ✅ 首页核心导航卡片
  ================================================== */
.pg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px;
}


/****************************************************
.pg-card {
* ✅ 首页主要内容区:冰蓝柔和框(只作用首页)
     background: #ffffff;
****************************************************/
     padding: 20px 18px;
body.page-Main_Page .mw-parser-output > div {
     border-radius: 20px;
     background: rgba(240, 248, 255, 0.65) !important; /* 半透明冰蓝 */
     box-shadow: 0 4px 14px rgba(0,0,0,0.06);
     border: 1px solid #cfe8ff !important;             /* 柔和蓝边框 */
     text-align: center;
     border-radius: 18px !important;                   /* 大圆角 */
    transition: .25s ease;
     box-shadow: 0 4px 12px rgba(0, 86, 179, 0.10) !important; /* 蓝色柔光 */
     overflow: hidden;
     padding: 25px !important;
     margin: 25px 0 !important;
}
}


/* 首页标题更好看 */
.pg-card:hover {
body.page-Main_Page h1,
    transform: translateY(-6px);
body.page-Main_Page h2 {
     box-shadow: 0 12px 34px rgba(0,0,0,0.14);
     color: #174b75 !important;
}
}
.pg-card__icon { font-size: 32px; }
.pg-card__title { font-size: 20px; font-weight: 800; color: #185480; }
.pg-card__desc { margin-top: 6px; color: #67727e; font-size: 14.8px; }
.pg-card__link { margin-top: 10px; color: #007bba !important; font-weight: 700; }




/* ==================================================
  ✅ 新番推荐(封面卡片)
  ================================================== */


/****************************************************
.pg-gallery {
* ✅ 核心导航 — 可爱企鹅卡片风
    display: grid;
****************************************************/
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
.pg-grid{
    gap: 20px;
  display:grid;
    max-width: 1100px;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    margin: 25px auto;
  gap:20px;
    padding: 0 15px;
  padding:12px 2px 26px;
  max-width:1100px;
  margin:0 auto;
}
}


.pg-card{
.pg-cover-img {
  background:#ffffff;
    border-radius: 16px !important;
  border-radius:20px;
    transition: .25s ease;
  padding:18px 18px 16px;
    max-width: none !important;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
    width: 100% !important;
  transition:.2s ease;
  text-align:center;
}
}


.pg-card:hover{
.pg-cover-img:hover {
  transform:translateY(-4px);
    transform: scale(1.045);
  box-shadow:0 10px 24px rgba(0,0,0,.10);
    box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}
}


.pg-card__icon{
.pg-cover__title {
  font-size:28px;  
    text-align: center;
  margin-bottom:8px;
    margin-top: 8px;
    font-weight: 700;
    color: #2d3e50;
}
}


.pg-card__title{
  font-size:19px;
  font-weight:800;
  color:#1b4d7a;
}


.pg-card__desc{
/* ==================================================
  margin:6px 0 10px;
  ✅ 关于本站
  color:#54606f;
  ================================================== */
  font-size:14.5px;
}


.pg-card__link a,
.pg-about {
.pg-card__link{
    max-width: 900px;
  color:#0a78b5 !important;  
    margin: 30px auto 60px;
  text-decoration:none;  
    padding: 20px 10px;
  font-weight:700;
    color: #333;
    font-size: 16px;
    line-height: 1.9;
}
}




/* ==================================================
  ✅ 首页去白框(Vector-2022)
  ================================================== */


/****************************************************
body.page-Main_Page .vector-page-container,
* ✅ 新番推荐 Gallery(平图卡片)
body.page-Main_Page .vector-page-container-inner,
****************************************************/
body.page-Main_Page #content,
.pg-gallery{
body.page-Main_Page .vector-main-container,
  display:grid;
body.page-Main_Page .vector-column-view,
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
body.page-Main_Page .mw-body,
  gap:18px;
body.page-Main_Page .mw-body-content,
  max-width:1100px;
body.page-Main_Page .vector-body,
  margin:0 auto 6px;
body.page-Main_Page .client-js .vector-body-before-content {
  padding:8px 2px 26px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
}


.pg-cover{  
 
  text-align:center;
/* ==================================================
  ✅ 首页图片白框清除
  ================================================== */
 
body.page-Main_Page figure,
body.page-Main_Page .thumb,
body.page-Main_Page .thumbinner,
body.page-Mainorg_Page .mw-file-element,
body.page-Main_Page .tleft,
body.page-Main_Page .tright {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
}


.pg-cover__title{
body.page-Main_Page img,
  margin-top:8px;  
body.page-Main_Page .mw-file-element img {
  font-size:16px;  
    display: block !important;
  font-weight:700;  
    visibility: visible !important;
  color:#2b2d42;
    opacity: 1 !important;
    max-width: 100% !important;
    height: auto !important;
}
}




/* ==================================================
  ✅ 手机端适配
  ================================================== */


/****************************************************
@media (max-width: 600px) {
* ✅ 关于本站模块优化
    .pg-header { padding: 40px 0 55px; }
****************************************************/
    .pg-header__title { font-size: 24px; }
.pg-about{
    .pg-header__subtitle { font-size: 15px; }
  max-width:900px;  
    .pg-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
  margin:8px auto 40px;  
    .pg-cover-img { border-radius: 14px !important; }
  padding:0 2px;
    .pg-about { padding: 10px 6px; }
  font-size:16px;  
  line-height:1.9;  
  color:#333;
}
}




/* ==================================================
  🔥 新增:PV 卡片系统(方案 A)
  ================================================== */


/****************************************************
/* PV 网格布局 */
* ✅ TOC(目录)扁平化美化
.pv-grid {
****************************************************/
    display: grid;
#toc, .toc{
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  background:transparent !important;
    gap: 22px;
  border:none !important;
    margin: 25px 0;
  box-shadow:none !important;
}
 
/* PV 卡片主体 */
.pv-card {
    background: #ffffff;
    border: 1px solid #e3ebf5;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
}


.tocnumber{  
.pv-card:hover {
  color:#0096c7;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}
}


.pv-thumb {
    width: 100%;
    display: block;
    border-bottom: 1px solid #edf3fa;
}


.pv-title {
    padding: 12px 14px;
    font-size: 15px;
    font-weight: bold;
    color: #2b4a70;
    text-align: center;
}


/****************************************************
/* PV 播放器框 */
* ✅ 小屏适配(手机友好)
.pv-player {
****************************************************/
    margin: 25px 0;
@media (max-width:680px){
    padding: 15px;
  .pg-hero__title{ font-size:32px }
    background: linear-gradient(180deg,#f7fbff 0%,#ffffff 100%);
  .pg-hero__subtitle{ font-size:16px }
    border: 1px solid #d8e4f1;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
}




/* ==================================================
  🔥 YouTube 弹窗播放器(保留)
  ================================================== */


/****************************************************
.pg-yt-overlay {
* ✅ 彻底去掉 Vector-2022 所有外层灰框/白框
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
****************************************************/
  display: none; align-items: center; justify-content: center; z-index: 9999;
.vector-feature-main,
}
.vector-feature-body,
.pg-yt-overlay.active { display: flex; }
.vector-main-container,
 
.vector-content-container,
.pg-yt-modal {
.vector-sticky-header-container,
  width: min(92vw, 960px); aspect-ratio: 16/9; background: #000;
.vector-page-toolbar,
  border-radius: 12px; overflow: hidden; position: relative;  
body.skin-vector-2022 .vector-feature-main,
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
body.skin-vector-2022 .vector-main-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
}


/* 修复因为取消背景导致的额外白边距 */
.pg-yt-close {
body.skin-vector-2022 .vector-main-container,
  position: absolute; top: -44px; right: 0;
body.skin-vector-2022 .vector-feature-body {
  background: rgba(0,0,0,.65); color: #fff; border: 0; cursor: pointer;
    padding: 0 !important;
  padding: 8px 12px; border-radius: 8px; font-size: 14px;
    margin: 0 !important;
}
}
/* ✅ 强制移除 Vector-2022 外层灰框和边框 */
 
.vector-feature-main,
.pg-yt-thumb__img {
.vector-feature-body,
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px;
.vector-feature-container,
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
.vector-feature-body > div:first-child,
.vector-feature-container > .vector-feature-body,
.vector-main-container {
    background: #ffffff !important;   /* 彻底改为白色 */
    border: none !important;
    box-shadow: none !important;
}
}
.pg-yt-thumb__title { color: #333; text-align: left; font-size: 14px; }
.pg-yt-thumb:hover .pg-yt-thumb__img { filter: brightness(0.92); }

2025年11月25日 (二) 15:17的最新版本

/****************************************************
 * ✅ 次元企鹅百科 v5.8 — 首页 + PV 卡片 + YouTube 模块
 * 顶部渐变 + 完美去白框 + 轻萌风图片 + PV 网格系统
 * Vector-2022 完整适配
 ****************************************************/


/* ==================================================
   ✅ 顶部渐变 Header (保持原样)
   ================================================== */

.pg-header {
    width: 100%;
    background: linear-gradient(180deg, #e9f4ff 0%, #ffffff 80%);
    padding: 55px 0 70px;
    text-align: center;
    border-radius: 0 0 26px 26px;
    box-shadow: none !important;
    margin-bottom: 35px;
}

.pg-header__inner {
    max-width: 900px;
    margin: 0 auto;
}

/* Logo */
.pg-header__logo {
    background: none !important;
    padding: 0 !important;
    margin-bottom: 18px;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-block !important;
}

.pg-logo-img {
    display: inline-block !important;
    margin: 0 !important;
    max-width: none !important;
    height: auto !important;
    object-fit: contain !important;
}


/* ==================================================
   ✅ 首页标题与副标题
   ================================================== */

.pg-header__title {
    font-size: 30px;
    font-weight: 800;
    color: #174d79;
    margin-bottom: 15px;
}

.pg-header__subtitle {
    font-size: 17px;
    line-height: 1.9;
    color: #3c4654;
    max-width: 720px;
    margin: 0 auto;
}

.pg-header__prints {
    margin-top: 18px;
    font-size: 20px;
    opacity: 0.85;
}


/* ==================================================
   ✅ 首页核心导航卡片
   ================================================== */

.pg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px;
}

.pg-card {
    background: #ffffff;
    padding: 20px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    text-align: center;
    transition: .25s ease;
    overflow: hidden;
}

.pg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 34px rgba(0,0,0,0.14);
}

.pg-card__icon { font-size: 32px; }
.pg-card__title { font-size: 20px; font-weight: 800; color: #185480; }
.pg-card__desc { margin-top: 6px; color: #67727e; font-size: 14.8px; }
.pg-card__link { margin-top: 10px; color: #007bba !important; font-weight: 700; }


/* ==================================================
   ✅ 新番推荐(封面卡片)
   ================================================== */

.pg-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 25px auto;
    padding: 0 15px;
}

.pg-cover-img {
    border-radius: 16px !important;
    transition: .25s ease;
    max-width: none !important;
    width: 100% !important;
}

.pg-cover-img:hover {
    transform: scale(1.045);
    box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}

.pg-cover__title {
    text-align: center;
    margin-top: 8px;
    font-weight: 700;
    color: #2d3e50;
}


/* ==================================================
   ✅ 关于本站
   ================================================== */

.pg-about {
    max-width: 900px;
    margin: 30px auto 60px;
    padding: 20px 10px;
    color: #333;
    font-size: 16px;
    line-height: 1.9;
}


/* ==================================================
   ✅ 首页去白框(Vector-2022)
   ================================================== */

body.page-Main_Page .vector-page-container,
body.page-Main_Page .vector-page-container-inner,
body.page-Main_Page #content,
body.page-Main_Page .vector-main-container,
body.page-Main_Page .vector-column-view,
body.page-Main_Page .mw-body,
body.page-Main_Page .mw-body-content,
body.page-Main_Page .vector-body,
body.page-Main_Page .client-js .vector-body-before-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}


/* ==================================================
   ✅ 首页图片白框清除
   ================================================== */

body.page-Main_Page figure,
body.page-Main_Page .thumb,
body.page-Main_Page .thumbinner,
body.page-Mainorg_Page .mw-file-element,
body.page-Main_Page .tleft,
body.page-Main_Page .tright {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

body.page-Main_Page img,
body.page-Main_Page .mw-file-element img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100% !important;
    height: auto !important;
}


/* ==================================================
   ✅ 手机端适配
   ================================================== */

@media (max-width: 600px) {
    .pg-header { padding: 40px 0 55px; }
    .pg-header__title { font-size: 24px; }
    .pg-header__subtitle { font-size: 15px; }
    .pg-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
    .pg-cover-img { border-radius: 14px !important; }
    .pg-about { padding: 10px 6px; }
}


/* ==================================================
   🔥 新增:PV 卡片系统(方案 A)
   ================================================== */

/* PV 网格布局 */
.pv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    margin: 25px 0;
}

/* PV 卡片主体 */
.pv-card {
    background: #ffffff;
    border: 1px solid #e3ebf5;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.pv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

.pv-thumb {
    width: 100%;
    display: block;
    border-bottom: 1px solid #edf3fa;
}

.pv-title {
    padding: 12px 14px;
    font-size: 15px;
    font-weight: bold;
    color: #2b4a70;
    text-align: center;
}

/* PV 播放器框 */
.pv-player {
    margin: 25px 0;
    padding: 15px;
    background: linear-gradient(180deg,#f7fbff 0%,#ffffff 100%);
    border: 1px solid #d8e4f1;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}


/* ==================================================
   🔥 YouTube 弹窗播放器(保留)
   ================================================== */

.pg-yt-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: none; align-items: center; justify-content: center; z-index: 9999;
}
.pg-yt-overlay.active { display: flex; }

.pg-yt-modal {
  width: min(92vw, 960px); aspect-ratio: 16/9; background: #000;
  border-radius: 12px; overflow: hidden; position: relative; 
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}

.pg-yt-close {
  position: absolute; top: -44px; right: 0;
  background: rgba(0,0,0,.65); color: #fff; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 8px; font-size: 14px;
}

.pg-yt-thumb__img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.pg-yt-thumb__title { color: #333; text-align: left; font-size: 14px; }
.pg-yt-thumb:hover .pg-yt-thumb__img { filter: brightness(0.92); }