MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 标签:已被回退 |
无编辑摘要 标签:已被回退 |
||
| 第9行: | 第9行: | ||
} | } | ||
/* | /* 响应式图片卡片样式 */ | ||
.gallery-card { | .gallery-card { | ||
position: relative; | position: relative; | ||
| 第16行: | 第16行: | ||
text-align: center; | text-align: center; | ||
} | } | ||
.gallery-card-small { | .gallery-card-small { | ||
position: relative; | position: relative; | ||
| 第23行: | 第22行: | ||
text-align: center; | text-align: center; | ||
} | } | ||
.gallery-card img, | .gallery-card img, | ||
.gallery-card-small img { | .gallery-card-small img { | ||
| 第29行: | 第27行: | ||
height: auto; | height: auto; | ||
} | } | ||
.image-overlay { | .image-overlay { | ||
position: absolute; | position: absolute; | ||
| 第40行: | 第37行: | ||
border-radius: 4px; | border-radius: 4px; | ||
} | } | ||
.flex-gallery { | .flex-gallery { | ||
display: flex; | display: flex; | ||
| 第49行: | 第45行: | ||
} | } | ||
/* | /* 手机端响应式 */ | ||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
.responsive-two-columns, | .responsive-two-columns, | ||
| 第58行: | 第54行: | ||
width: 100%; | width: 100%; | ||
} | } | ||
.responsive-two-columns .right-col { | .responsive-two-columns .right-col { | ||
padding-left: 0; | padding-left: 0; | ||
margin-top: 20px; | margin-top: 20px; | ||
} | } | ||
.responsive-two-columns img { | .responsive-two-columns img { | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
} | } | ||
.gallery-card, | .gallery-card, | ||
.gallery-card-small { | .gallery-card-small { | ||
| 第74行: | 第67行: | ||
max-width: none; | max-width: none; | ||
} | } | ||
.pvz-navigation { | .pvz-navigation { | ||
float: none; | float: none; | ||
| 第80行: | 第72行: | ||
width: 100%; | width: 100%; | ||
} | } | ||
.pvz-navigation .nav-table { | .pvz-navigation .nav-table { | ||
display: flex; | display: flex; | ||
| 第88行: | 第79行: | ||
width: 100%; | width: 100%; | ||
} | } | ||
.pvz-navigation .nav-table tbody { | .pvz-navigation .nav-table tbody { | ||
display: contents; | display: contents; | ||
} | } | ||
.pvz-navigation .nav-table tr { | .pvz-navigation .nav-table tr { | ||
display: contents; | display: contents; | ||
} | } | ||
.pvz-navigation .nav-table td { | .pvz-navigation .nav-table td { | ||
display: block; | display: block; | ||
| 第104行: | 第92行: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
.pvz-navigation .nav-table td img { | .pvz-navigation .nav-table td img { | ||
width: 100%; | width: 100%; | ||
| 第110行: | 第97行: | ||
height: auto; | height: auto; | ||
} | } | ||
.pvz-navigation .nav-title { | .pvz-navigation .nav-title { | ||
font-size: 1.2em; | font-size: 1.2em; | ||
} | } | ||
} | } | ||
@media screen and (max-width: 480px) { | @media screen and (max-width: 480px) { | ||
.gallery-card, | .gallery-card, | ||
| 第123行: | 第108行: | ||
} | } | ||
/* 图片悬停 */ | |||
a img { | a img { | ||
transition: transform 0.3s ease; | transition: transform 0.3s ease; | ||
} | } | ||
a img:hover { | a img:hover { | ||
transform: scale(1.08); | transform: scale(1.08); | ||
| 第132行: | 第117行: | ||
position: relative; | position: relative; | ||
} | } | ||
.card a img, | .card a img, | ||
.swiper a img, | .swiper a img, | ||
| 第141行: | 第125行: | ||
transition: none; | transition: none; | ||
} | } | ||
.card a img:hover, | .card a img:hover, | ||
.swiper a img:hover, | .swiper a img:hover, | ||
| 第151行: | 第134行: | ||
} | } | ||
/* | /* 表格响应式 */ | ||
@media screen and (min-width: 769px) { | @media screen and (min-width: 769px) { | ||
.responsive-fixed-grid { | |||
width: auto; | |||
margin: 0 auto; | |||
table-layout: fixed; | |||
} | |||
.responsive-fixed-grid td { | |||
width: 20%; | |||
padding: 5px; | |||
text-align: center; | |||
box-sizing: border-box; | |||
} | |||
.responsive-fixed-grid td img { | |||
max-width: 100%; | |||
height: auto; | |||
} | |||
} | } | ||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
.responsive-fixed-grid { | |||
display: flex; | |||
flex-wrap: wrap; | |||
justify-content: center; | |||
gap: 5px; | |||
width: 100%; | |||
} | |||
.responsive-fixed-grid tbody, | |||
.responsive-fixed-grid tr { | |||
display: contents; | |||
} | |||
.responsive-fixed-grid td { | |||
display: block; | |||
flex: 0 1 auto; | |||
max-width: calc(33.33% - 6px); | |||
width: auto; | |||
padding: 3px; | |||
text-align: center; | |||
box-sizing: border-box; | |||
} | |||
.responsive-fixed-grid td img { | |||
max-width: 100%; | |||
height: auto; | |||
display: block; | |||
} | |||
} | } | ||
@media screen and (max-width: 480px) { | @media screen and (max-width: 480px) { | ||
.responsive-fixed-grid td { | |||
max-width: calc(50% - 5px); | |||
} | |||
} | } | ||
| 第214行: | 第190行: | ||
max-width: 750px; | max-width: 750px; | ||
} | } | ||
img { | img { | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
} | } | ||
.responsive-two-columns { | .responsive-two-columns { | ||
padding-left: 50px; | padding-left: 50px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
.responsive-two-columns { | .responsive-two-columns { | ||
| 第230行: | 第203行: | ||
} | } | ||
} | } | ||
@media screen and (min-width: 769px) { | @media screen and (min-width: 769px) { | ||
.responsive-two-columns { | .responsive-two-columns { | ||
| 第236行: | 第208行: | ||
} | } | ||
} | } | ||
.responsive-img img { | .responsive-img img { | ||
max-width: 100%; | max-width: 100%; | ||
| 第276行: | 第247行: | ||
.pvzhe-card.hidden-card { display: none; } | .pvzhe-card.hidden-card { display: none; } | ||
/* | /* 昵称标签 */ | ||
.user-title-tag { | .user-title-tag { | ||
display: inline-block; | display: inline-block; | ||
| 第290行: | 第261行: | ||
} | } | ||
/* | /* 版本公告 */ | ||
.update-notice-content { | .update-notice-content { font-family: sans-serif; color: #333; } | ||
} | |||
.update-version { | .update-version { | ||
font-size: 22px; | font-size: 22px; font-weight: bold; color: #2c3e50; | ||
margin-bottom: 5px; text-align: center; | |||
margin-bottom: 5px; | |||
} | } | ||
.update-date { | .update-date { | ||
font-size: 13px; | font-size: 13px; color: #888; text-align: center; margin-bottom: 15px; | ||
} | } | ||
.update-notice-content ul { list-style: none; padding: 0; } | |||
.update-notice-content ul li { | .update-notice-content ul li { | ||
padding: 6px 0; | padding: 6px 0; border-bottom: 1px solid #eee; font-size: 15px; | ||
} | } | ||
/* | /* 返回顶部 */ | ||
#back-to-top { | #back-to-top { | ||
position: fixed; | position: fixed; bottom: 40px; right: 30px; | ||
background: #4CAF50; color: #fff; border: none; | |||
border-radius: 50%; width: 45px; height: 45px; | |||
background: #4CAF50; | font-size: 22px; cursor: pointer; display: none; | ||
z-index: 9999; box-shadow: 0 2px 10px rgba(0,0,0,0.3); | |||
border-radius: 50%; | |||
font-size: 22px; | |||
z-index: 9999; | |||
transition: opacity 0.3s, transform 0.3s; | transition: opacity 0.3s, transform 0.3s; | ||
} | } | ||
#back-to-top:hover { | #back-to-top:hover { background: #45a049; transform: scale(1.1); } | ||
} | |||
/* | /* 私信 */ | ||
.msg-badge { | .msg-badge { | ||
position: fixed; | position: fixed; bottom: 20px; left: 20px; | ||
background: #f44336; color: #fff; border-radius: 50%; | |||
width: 20px; height: 20px; font-size: 12px; | |||
background: #f44336; | text-align: center; line-height: 20px; cursor: pointer; | ||
z-index: 100001; display: none; | |||
width: 20px; | |||
text-align: center; | |||
z-index: 100001; | |||
box-shadow: 0 2px 6px rgba(0,0,0,0.3); | box-shadow: 0 2px 6px rgba(0,0,0,0.3); | ||
animation: msgPulse 2s infinite; | animation: msgPulse 2s infinite; | ||
| 第365行: | 第301行: | ||
} | } | ||
.msg-overlay { | .msg-overlay { | ||
position: fixed; | position: fixed; top: 0; left: 0; width: 100%; height: 100%; | ||
background: rgba(0,0,0,0.5); z-index: 100000; | |||
display: flex; align-items: center; justify-content: center; | |||
background: rgba(0,0,0,0.5); | |||
display: flex; | |||
} | } | ||
.msg-box { | .msg-box { | ||
background: #fff; | background: #fff; border-radius: 12px; padding: 25px; | ||
max-width: 500px; width: 90%; max-height: 70vh; | |||
overflow-y: auto; box-shadow: 0 8px 30px rgba(0,0,0,0.4); | |||
max-width: 500px; | |||
overflow-y: auto; | |||
} | } | ||
.msg-item { border-bottom: 1px solid #eee; padding: 10px 0; } | |||
.msg-sender { font-weight: bold; color: #333; } | |||
.msg-time { font-size: 11px; color: #999; margin-left: 8px; } | |||
.msg-text { margin-top: 4px; color: #555; word-break: break-word; } | |||
.msg-actions { margin-top: 4px; } | |||
.msg-actions button { | .msg-actions button { | ||
font-size: 11px; | font-size: 11px; padding: 2px 8px; margin-right: 5px; | ||
cursor: pointer; border: 1px solid #ccc; border-radius: 3px; background: #f9f9f9; | |||
cursor: pointer; | |||
} | } | ||
.msg-item.unread { background: #fffde7; } | |||
.msg-send-btn { | .msg-send-btn { | ||
margin-left: 8px; | margin-left: 8px; font-size: 12px; padding: 2px 10px; | ||
cursor: pointer; border: 1px solid #4CAF50; border-radius: 4px; | |||
background: #4CAF50; color: #fff; vertical-align: middle; | |||
cursor: pointer; | |||
background: #4CAF50; | |||
} | } | ||
.msg-send-btn:hover { background: #45a049; } | |||
.msg-textarea { | .msg-textarea { | ||
width: 100%; | width: 100%; height: 80px; padding: 8px; | ||
border: 1px solid #ccc; border-radius: 6px; | |||
resize: vertical; font-size: 14px; margin-top: 10px; box-sizing: border-box; | |||
border: 1px solid #ccc; | |||
resize: vertical; | |||
} | } | ||
.msg-loading { text-align: center; color: #999; padding: 20px; } | |||
/* | /* 好友 */ | ||
.friend-btn { | .friend-btn { | ||
margin-left: 8px; | margin-left: 8px; font-size: 12px; padding: 4px 12px; | ||
cursor: pointer; border: none; border-radius: 4px; color: #fff; vertical-align: middle; | |||
cursor: pointer; | |||
} | } | ||
.friend-add-btn { background: #4CAF50; } | .friend-add-btn { background: #4CAF50; } | ||
| 第469行: | 第346行: | ||
.friend-reject-btn { background: #f44336; font-size: 11px; padding: 2px 8px; cursor: pointer; border: none; color: #fff; border-radius: 3px; } | .friend-reject-btn { background: #f44336; font-size: 11px; padding: 2px 8px; cursor: pointer; border: none; color: #fff; border-radius: 3px; } | ||
.friend-list-item { | .friend-list-item { | ||
display: inline-block; | display: inline-block; margin: 4px 8px 4px 0; padding: 4px 10px; | ||
background: #f5f5f5; border-radius: 16px; font-size: 13px; | |||
background: #f5f5f5; | |||
} | } | ||
.friend-list-item a { text-decoration: none; } | .friend-list-item a { text-decoration: none; } | ||
.friend-list-item .friend-remove { | .friend-list-item .friend-remove { margin-left: 6px; color: #999; cursor: pointer; font-size: 14px; } | ||
} | |||
.friend-list-item .friend-remove:hover { color: #f44336; } | .friend-list-item .friend-remove:hover { color: #f44336; } | ||
.friend-request-item { | .friend-request-item { | ||
padding: 8px; | padding: 8px; border-bottom: 1px solid #eee; | ||
display: flex; align-items: center; justify-content: space-between; | |||
display: flex; | |||
} | } | ||
.friend-overlay { | .friend-overlay { | ||
position: fixed; | position: fixed; top: 0; left: 0; width: 100%; height: 100%; | ||
background: rgba(0,0,0,0.5); z-index: 100000; | |||
display: flex; align-items: center; justify-content: center; | |||
background: rgba(0,0,0,0.5); | |||
display: flex; | |||
} | } | ||
.friend-dialog { | .friend-dialog { | ||
background: #fff; | background: #fff; border-radius: 12px; padding: 25px; | ||
max-width: 450px; width: 90%; max-height: 70vh; | |||
overflow-y: auto; box-shadow: 0 8px 30px rgba(0,0,0,0.4); | |||
max-width: 450px; | |||
overflow-y: auto; | |||
} | } | ||
.friend-count { | .friend-count { | ||
display: inline-block; | display: inline-block; background: #e0e0e0; color: #555; | ||
border-radius: 12px; padding: 1px 8px; font-size: 12px; margin-left: 6px; | |||
border-radius: 12px; | |||
} | } | ||
/* Wiki 宠物 */ | /* Wiki 宠物 */ | ||
.wiki-pet { | .wiki-pet { | ||
position: fixed; | position: fixed; bottom: 20px; left: 50px; | ||
z-index: 9998; cursor: pointer; user-select: none; transition: transform 0.2s; | |||
z-index: 9998; | |||
} | } | ||
.wiki-pet img { width: 100px; height: auto; display: block; image-rendering: auto; } | |||
.wiki-pet:active { transform: scale(0.95); } | |||
.wiki-pet.petting { animation: petBounce 0.6s ease; } | |||
@keyframes petBounce { | @keyframes petBounce { | ||
0%, 100% { transform: scale(1); } | 0%, 100% { transform: scale(1); } | ||
| 第549行: | 第385行: | ||
70% { transform: scale(1.05) translateY(-5px); } | 70% { transform: scale(1.05) translateY(-5px); } | ||
} | } | ||
.wiki-pet.attacking { | .wiki-pet.attacking { animation: petAttack 0.3s ease; } | ||
} | |||
@keyframes petAttack { | @keyframes petAttack { | ||
0% { transform: scale(1) translateX(0); } | 0% { transform: scale(1) translateX(0); } | ||
| 第557行: | 第391行: | ||
100% { transform: scale(1) translateX(0); } | 100% { transform: scale(1) translateX(0); } | ||
} | } | ||
.pet-affection { | .pet-affection { | ||
position: absolute; | position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); | ||
margin-bottom: 8px; background: rgba(0,0,0,0.7); color: #fff; | |||
padding: 3px 8px; border-radius: 10px; font-size: 11px; | |||
white-space: nowrap; opacity: 0; transition: opacity 0.3s; | |||
margin-bottom: 8px; | |||
padding: 3px 8px; | |||
white-space: nowrap; | |||
} | } | ||
.wiki-pet:hover .pet-affection { opacity: 1; } | |||
.pet-tooltip { | .pet-tooltip { | ||
position: absolute; | position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); | ||
margin-bottom: 28px; background: rgba(0,0,0,0.8); color: #fff; | |||
padding: 6px 12px; border-radius: 12px; font-size: 12px; | |||
white-space: nowrap; opacity: 0; transition: opacity 0.3s; pointer-events: none; | |||
margin-bottom: 28px; | |||
padding: 6px 12px; | |||
white-space: nowrap; | |||
} | } | ||
.wiki-pet:hover .pet-tooltip { opacity: 1; } | |||
.pet-heart { | .pet-heart { | ||
position: fixed; | position: fixed; pointer-events: none; | ||
animation: floatUp 1.5s ease-out forwards; font-size: 20px; z-index: 9999; | |||
animation: floatUp 1.5s ease-out forwards; | |||
} | } | ||
@keyframes floatUp { | @keyframes floatUp { | ||
| 第608行: | 第413行: | ||
100% { opacity: 0; transform: translateY(-60px) scale(1.5); } | 100% { opacity: 0; transform: translateY(-60px) scale(1.5); } | ||
} | } | ||
.wiki-pet.level-up { animation: levelUpGlow 0.8s ease; } | |||
.wiki-pet.level-up { | |||
} | |||
@keyframes levelUpGlow { | @keyframes levelUpGlow { | ||
0%, 100% { filter: drop-shadow(0 0 5px gold); } | 0%, 100% { filter: drop-shadow(0 0 5px gold); } | ||
50% { filter: drop-shadow(0 0 20px gold) brightness(1.3); } | 50% { filter: drop-shadow(0 0 20px gold) brightness(1.3); } | ||
} | } | ||
.pet-switch-btn { | .pet-switch-btn { | ||
position: absolute; | position: absolute; bottom: -5px; right: -5px; | ||
width: 24px; height: 24px; background: rgba(0,0,0,0.6); color: #fff; | |||
border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; | |||
width: 24px; | font-size: 12px; cursor: pointer; z-index: 10; display: none; | ||
text-align: center; line-height: 22px; transition: transform 0.2s; | |||
border: 1px solid rgba(255,255,255,0.3); | |||
font-size: 12px; | |||
text-align: center; | |||
} | } | ||
.pet-switch-btn:hover { transform: scale(1.2); background: rgba(0,0,0,0.8); } | |||
.wiki-pet:hover .pet-switch-btn, | .wiki-pet:hover .pet-switch-btn, | ||
.wiki-pet.touching .pet-switch-btn { | .wiki-pet.touching .pet-switch-btn { display: block; } | ||
} | |||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
.wiki-pet { | .wiki-pet { bottom: 60px; left: 10px; } | ||
.wiki-pet img { width: 70px; } | |||
.wiki-pet img { | |||
} | } | ||
/* | /* 阅读位置开关 */ | ||
.readposition-switch { | .readposition-switch { | ||
display: flex; | display: flex; align-items: center; gap: 10px; padding: 12px 0; | ||
} | } | ||
.readposition-switch .readposition-label-text { font-size: 14px; font-weight: 500; } | |||
.readposition-switch .readposition-label-desc { font-size: 12px; color: #888; margin-top: 2px; } | |||
/* 卡片计数 */ | |||
.card-counter { | .card-counter { | ||
display: inline-block; | display: inline-block; background: #4CAF50; color: #fff; | ||
padding: 4px 12px; border-radius: 12px; font-size: 13px; margin-bottom: 8px; | |||
padding: 4px 12px; | |||
} | } | ||
.pvzhe-card { | /* 卡片悬停 */ | ||
.pvzhe-card { transition: box-shadow 0.3s, transform 0.3s; } | |||
} | .pvzhe-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.2); transform: translateY(-3px); } | ||
.pvzhe-card:hover { | |||
} | |||
/* | /* 页面切换动画 */ | ||
body { | body { | ||
animation: | animation: swooshIn 0.3s ease-out; | ||
} | } | ||
@keyframes | @keyframes swooshIn { | ||
0% { | 0% { | ||
opacity: 0; | opacity: 0; | ||
transform: | transform: translateX(30px) scale(0.95); | ||
} | } | ||
100% { | 100% { | ||
opacity: 1; | opacity: 1; | ||
transform: | transform: translateX(0) scale(1); | ||
} | } | ||
} | } | ||
body.page-flip-out { | body.page-flip-out { | ||
animation: | animation: swooshOut 0.2s ease-in forwards; | ||
} | } | ||
@keyframes | @keyframes swooshOut { | ||
0% { | 0% { | ||
opacity: 1; | opacity: 1; | ||
transform: | transform: translateX(0) scale(1); | ||
} | } | ||
100% { | 100% { | ||
opacity: 0; | opacity: 0; | ||
transform: | transform: translateX(-20px) scale(0.97); | ||
} | } | ||
} | } | ||
/* | /* 字体 */ | ||
.font-cartoon { | .font-cartoon { | ||
font-family: 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif !important; | font-family: 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif !important; | ||
} | } | ||
.font-cartoon-italic { | .font-cartoon-italic { | ||
font-family: 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif !important; | font-family: 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif !important; | ||
font-style: italic !important; | font-style: italic !important; | ||
} | } | ||
.font-handwrite { | .font-handwrite { | ||
font-family: 'STXingkai', '华文行楷', 'STKaiti', '楷体', sans-serif !important; | font-family: 'STXingkai', '华文行楷', 'STKaiti', '楷体', sans-serif !important; | ||
} | } | ||
.font-fzjianzhi { | .font-fzjianzhi { | ||
font-family: 'FZJianZhi', 'PingFang SC', 'Microsoft YaHei', sans-serif !important; | font-family: 'FZJianZhi', 'PingFang SC', 'Microsoft YaHei', sans-serif !important; | ||
} | } | ||
@font-face { | @font-face { | ||
font-family: 'Huakang POP2 W9'; | font-family: 'Huakang POP2 W9'; | ||
src: url('https://new.pvzhe.wiki/images/3/37/%E5%8D%8E%E5%BA%B7POP2%E4%BD%93W9.woff2') format('woff2'); | src: url('https://new.pvzhe.wiki/images/3/37/%E5%8D%8E%E5%BA%B7POP2%E4%BD%93W9.woff2') format('woff2'); | ||
font-weight: normal; | font-weight: normal; font-style: normal; font-display: swap; | ||
} | } | ||
.font-huapop { | .font-huapop { | ||
font-family: 'Huakang POP2 W9', 'PingFang SC', 'Microsoft YaHei', cursive, sans-serif !important; | font-family: 'Huakang POP2 W9', 'PingFang SC', 'Microsoft YaHei', cursive, sans-serif !important; | ||
} | } | ||
@font-face { | @font-face { | ||
font-family: 'FZKaTong'; | font-family: 'FZKaTong'; | ||
src: url('https://new.pvzhe.wiki/images/a/a4/%E6%96%B9%E6%AD%A3%E5%8D%A1%E9%80%9A%E7%AE%80%E4%BD%93.woff2') format('woff2'); | src: url('https://new.pvzhe.wiki/images/a/a4/%E6%96%B9%E6%AD%A3%E5%8D%A1%E9%80%9A%E7%AE%80%E4%BD%93.woff2') format('woff2'); | ||
font-weight: normal; | font-weight: normal; font-style: normal; font-display: swap; | ||
} | } | ||
.font-fzkatong { | .font-fzkatong { | ||
font-family: 'FZKaTong', 'PingFang SC', 'Microsoft YaHei', cursive, sans-serif !important; | font-family: 'FZKaTong', 'PingFang SC', 'Microsoft YaHei', cursive, sans-serif !important; | ||
} | } | ||
/* | /* 卡片点击 */ | ||
.pvzhe-card { | .pvzhe-card { position: relative; } | ||
} | |||
.pvzhe-card-image a { | .pvzhe-card-image a { | ||
position: absolute; | position: absolute; top: 0; left: 0; width: 100%; height: 100%; | ||
display: block; z-index: 1; background: transparent !important; | |||
display: block; | |||
} | } | ||
.pvzhe-card-image a img { position: relative; z-index: -1; } | |||
.pvzhe-card-name { position: relative; z-index: 2; pointer-events: none; } | |||
/* | /* 浏览量 */ | ||
.citizen-page-info:contains("citizen-page-info-viewcount") { | .citizen-page-info:contains("citizen-page-info-viewcount") { | ||
font-size: 12px; | font-size: 12px; color: #888; | ||
} | } | ||
2026年7月7日 (二) 10:05的版本
/* 电脑端样式 */
.responsive-two-columns .left-col {
width: 320px;
vertical-align: top;
}
.responsive-two-columns .right-col {
vertical-align: top;
padding-left: 20px;
}
/* 响应式图片卡片样式 */
.gallery-card {
position: relative;
width: calc(50% - 5px);
max-width: 500px;
text-align: center;
}
.gallery-card-small {
position: relative;
width: calc(50% - 5px);
max-width: 150px;
text-align: center;
}
.gallery-card img,
.gallery-card-small img {
width: 100%;
height: auto;
}
.image-overlay {
position: absolute;
bottom: 30px;
left: 10px;
text-align: left;
background: rgba(0,0,0,0.5);
color: white;
padding: 5px;
border-radius: 4px;
}
.flex-gallery {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
gap: 10px;
align-items: flex-start;
}
/* 手机端响应式 */
@media screen and (max-width: 768px) {
.responsive-two-columns,
.responsive-two-columns tbody,
.responsive-two-columns tr,
.responsive-two-columns td {
display: block;
width: 100%;
}
.responsive-two-columns .right-col {
padding-left: 0;
margin-top: 20px;
}
.responsive-two-columns img {
max-width: 100%;
height: auto;
}
.gallery-card,
.gallery-card-small {
width: calc(50% - 5px);
max-width: none;
}
.pvz-navigation {
float: none;
max-width: 100%;
width: 100%;
}
.pvz-navigation .nav-table {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 5px;
width: 100%;
}
.pvz-navigation .nav-table tbody {
display: contents;
}
.pvz-navigation .nav-table tr {
display: contents;
}
.pvz-navigation .nav-table td {
display: block;
flex: 0 0 calc(33.33% - 5px);
width: auto !important;
padding: 4px;
box-sizing: border-box;
}
.pvz-navigation .nav-table td img {
width: 100%;
max-width: 120px;
height: auto;
}
.pvz-navigation .nav-title {
font-size: 1.2em;
}
}
@media screen and (max-width: 480px) {
.gallery-card,
.gallery-card-small {
width: 100%;
}
}
/* 图片悬停 */
a img {
transition: transform 0.3s ease;
}
a img:hover {
transform: scale(1.08);
z-index: 10;
position: relative;
}
.card a img,
.swiper a img,
.carousel a img,
.slider a img,
.owl-carousel a img,
.flexslider a img {
transition: none;
}
.card a img:hover,
.swiper a img:hover,
.carousel a img:hover,
.slider a img:hover,
.owl-carousel a img:hover,
.flexslider a img:hover {
transform: none;
}
/* 表格响应式 */
@media screen and (min-width: 769px) {
.responsive-fixed-grid {
width: auto;
margin: 0 auto;
table-layout: fixed;
}
.responsive-fixed-grid td {
width: 20%;
padding: 5px;
text-align: center;
box-sizing: border-box;
}
.responsive-fixed-grid td img {
max-width: 100%;
height: auto;
}
}
@media screen and (max-width: 768px) {
.responsive-fixed-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 5px;
width: 100%;
}
.responsive-fixed-grid tbody,
.responsive-fixed-grid tr {
display: contents;
}
.responsive-fixed-grid td {
display: block;
flex: 0 1 auto;
max-width: calc(33.33% - 6px);
width: auto;
padding: 3px;
text-align: center;
box-sizing: border-box;
}
.responsive-fixed-grid td img {
max-width: 100%;
height: auto;
display: block;
}
}
@media screen and (max-width: 480px) {
.responsive-fixed-grid td {
max-width: calc(50% - 5px);
}
}
.responsive-img {
width: 100%;
height: auto;
max-width: 750px;
}
img {
max-width: 100%;
height: auto;
}
.responsive-two-columns {
padding-left: 50px;
box-sizing: border-box;
}
@media screen and (max-width: 768px) {
.responsive-two-columns {
padding-left: 0 !important;
}
}
@media screen and (min-width: 769px) {
.responsive-two-columns {
margin-left: -50px !important;
}
}
.responsive-img img {
max-width: 100%;
height: auto;
}
/* 等级颜色 */
.bronze-user { color: #CD7F32 !important; font-weight: bold; }
.silver-user { color: #0000FF !important; font-weight: bold; }
.platinum-user { color: #EE82EE !important; font-weight: bold; }
.gold-user { color: #FFD700 !important; font-weight: bold; }
.rainbow-user { color: #FFD700 !important; font-weight: bold; }
/* 状态圆点 */
.user-status-dot {
display: inline-block; width: 8px; height: 8px;
border-radius: 50%; margin-left: 4px; vertical-align: middle;
}
.status-online { background-color: #4CAF50; }
.status-away { background-color: #FF9800; }
.status-offline { background-color: #9E9E9E; }
/* 师徒标签 */
.user-tag {
display: inline-block; font-size: 0.75em; padding: 0px 4px;
margin-left: 4px; border-radius: 3px; vertical-align: middle;
font-weight: normal;
}
.user-tag-mentor { background: #4CAF50; color: white; }
.user-tag-newbie { background: #FF9800; color: white; }
/* 等级图标 */
.user-level-icons {
margin-left: 2px; font-size: 0.9em; vertical-align: middle;
white-space: nowrap;
}
/* 卡片筛选隐藏 */
.pvzhe-card.hidden-card { display: none; }
/* 昵称标签 */
.user-title-tag {
display: inline-block;
font-size: 0.75em;
padding: 1px 5px;
margin-left: 4px;
border-radius: 4px;
vertical-align: middle;
font-weight: normal;
background: #f0f0f0;
color: #555;
white-space: nowrap;
}
/* 版本公告 */
.update-notice-content { font-family: sans-serif; color: #333; }
.update-version {
font-size: 22px; font-weight: bold; color: #2c3e50;
margin-bottom: 5px; text-align: center;
}
.update-date {
font-size: 13px; color: #888; text-align: center; margin-bottom: 15px;
}
.update-notice-content ul { list-style: none; padding: 0; }
.update-notice-content ul li {
padding: 6px 0; border-bottom: 1px solid #eee; font-size: 15px;
}
/* 返回顶部 */
#back-to-top {
position: fixed; bottom: 40px; right: 30px;
background: #4CAF50; color: #fff; border: none;
border-radius: 50%; width: 45px; height: 45px;
font-size: 22px; cursor: pointer; display: none;
z-index: 9999; box-shadow: 0 2px 10px rgba(0,0,0,0.3);
transition: opacity 0.3s, transform 0.3s;
}
#back-to-top:hover { background: #45a049; transform: scale(1.1); }
/* 私信 */
.msg-badge {
position: fixed; bottom: 20px; left: 20px;
background: #f44336; color: #fff; border-radius: 50%;
width: 20px; height: 20px; font-size: 12px;
text-align: center; line-height: 20px; cursor: pointer;
z-index: 100001; display: none;
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
animation: msgPulse 2s infinite;
}
@keyframes msgPulse {
0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
50% { box-shadow: 0 2px 16px rgba(244,67,54,0.6); }
}
.msg-overlay {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.5); z-index: 100000;
display: flex; align-items: center; justify-content: center;
}
.msg-box {
background: #fff; border-radius: 12px; padding: 25px;
max-width: 500px; width: 90%; max-height: 70vh;
overflow-y: auto; box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.msg-item { border-bottom: 1px solid #eee; padding: 10px 0; }
.msg-sender { font-weight: bold; color: #333; }
.msg-time { font-size: 11px; color: #999; margin-left: 8px; }
.msg-text { margin-top: 4px; color: #555; word-break: break-word; }
.msg-actions { margin-top: 4px; }
.msg-actions button {
font-size: 11px; padding: 2px 8px; margin-right: 5px;
cursor: pointer; border: 1px solid #ccc; border-radius: 3px; background: #f9f9f9;
}
.msg-item.unread { background: #fffde7; }
.msg-send-btn {
margin-left: 8px; font-size: 12px; padding: 2px 10px;
cursor: pointer; border: 1px solid #4CAF50; border-radius: 4px;
background: #4CAF50; color: #fff; vertical-align: middle;
}
.msg-send-btn:hover { background: #45a049; }
.msg-textarea {
width: 100%; height: 80px; padding: 8px;
border: 1px solid #ccc; border-radius: 6px;
resize: vertical; font-size: 14px; margin-top: 10px; box-sizing: border-box;
}
.msg-loading { text-align: center; color: #999; padding: 20px; }
/* 好友 */
.friend-btn {
margin-left: 8px; font-size: 12px; padding: 4px 12px;
cursor: pointer; border: none; border-radius: 4px; color: #fff; vertical-align: middle;
}
.friend-add-btn { background: #4CAF50; }
.friend-add-btn:hover { background: #45a049; }
.friend-added-btn { background: #2196F3; }
.friend-added-btn:hover { background: #1e88e5; }
.friend-pending-btn { background: #FF9800; cursor: not-allowed; }
.friend-accept-btn { background: #4CAF50; font-size: 11px; padding: 2px 8px; cursor: pointer; border: none; color: #fff; border-radius: 3px; margin-right: 5px; }
.friend-reject-btn { background: #f44336; font-size: 11px; padding: 2px 8px; cursor: pointer; border: none; color: #fff; border-radius: 3px; }
.friend-list-item {
display: inline-block; margin: 4px 8px 4px 0; padding: 4px 10px;
background: #f5f5f5; border-radius: 16px; font-size: 13px;
}
.friend-list-item a { text-decoration: none; }
.friend-list-item .friend-remove { margin-left: 6px; color: #999; cursor: pointer; font-size: 14px; }
.friend-list-item .friend-remove:hover { color: #f44336; }
.friend-request-item {
padding: 8px; border-bottom: 1px solid #eee;
display: flex; align-items: center; justify-content: space-between;
}
.friend-overlay {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.5); z-index: 100000;
display: flex; align-items: center; justify-content: center;
}
.friend-dialog {
background: #fff; border-radius: 12px; padding: 25px;
max-width: 450px; width: 90%; max-height: 70vh;
overflow-y: auto; box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.friend-count {
display: inline-block; background: #e0e0e0; color: #555;
border-radius: 12px; padding: 1px 8px; font-size: 12px; margin-left: 6px;
}
/* Wiki 宠物 */
.wiki-pet {
position: fixed; bottom: 20px; left: 50px;
z-index: 9998; cursor: pointer; user-select: none; transition: transform 0.2s;
}
.wiki-pet img { width: 100px; height: auto; display: block; image-rendering: auto; }
.wiki-pet:active { transform: scale(0.95); }
.wiki-pet.petting { animation: petBounce 0.6s ease; }
@keyframes petBounce {
0%, 100% { transform: scale(1); }
30% { transform: scale(1.15) translateY(-10px); }
50% { transform: scale(0.95) translateY(0); }
70% { transform: scale(1.05) translateY(-5px); }
}
.wiki-pet.attacking { animation: petAttack 0.3s ease; }
@keyframes petAttack {
0% { transform: scale(1) translateX(0); }
50% { transform: scale(1.1) translateX(-30px); }
100% { transform: scale(1) translateX(0); }
}
.pet-affection {
position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
margin-bottom: 8px; background: rgba(0,0,0,0.7); color: #fff;
padding: 3px 8px; border-radius: 10px; font-size: 11px;
white-space: nowrap; opacity: 0; transition: opacity 0.3s;
}
.wiki-pet:hover .pet-affection { opacity: 1; }
.pet-tooltip {
position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
margin-bottom: 28px; background: rgba(0,0,0,0.8); color: #fff;
padding: 6px 12px; border-radius: 12px; font-size: 12px;
white-space: nowrap; opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.wiki-pet:hover .pet-tooltip { opacity: 1; }
.pet-heart {
position: fixed; pointer-events: none;
animation: floatUp 1.5s ease-out forwards; font-size: 20px; z-index: 9999;
}
@keyframes floatUp {
0% { opacity: 1; transform: translateY(0) scale(1); }
100% { opacity: 0; transform: translateY(-60px) scale(1.5); }
}
.wiki-pet.level-up { animation: levelUpGlow 0.8s ease; }
@keyframes levelUpGlow {
0%, 100% { filter: drop-shadow(0 0 5px gold); }
50% { filter: drop-shadow(0 0 20px gold) brightness(1.3); }
}
.pet-switch-btn {
position: absolute; bottom: -5px; right: -5px;
width: 24px; height: 24px; background: rgba(0,0,0,0.6); color: #fff;
border: 1px solid rgba(255,255,255,0.3); border-radius: 50%;
font-size: 12px; cursor: pointer; z-index: 10; display: none;
text-align: center; line-height: 22px; transition: transform 0.2s;
}
.pet-switch-btn:hover { transform: scale(1.2); background: rgba(0,0,0,0.8); }
.wiki-pet:hover .pet-switch-btn,
.wiki-pet.touching .pet-switch-btn { display: block; }
@media screen and (max-width: 768px) {
.wiki-pet { bottom: 60px; left: 10px; }
.wiki-pet img { width: 70px; }
}
/* 阅读位置开关 */
.readposition-switch {
display: flex; align-items: center; gap: 10px; padding: 12px 0;
}
.readposition-switch .readposition-label-text { font-size: 14px; font-weight: 500; }
.readposition-switch .readposition-label-desc { font-size: 12px; color: #888; margin-top: 2px; }
/* 卡片计数 */
.card-counter {
display: inline-block; background: #4CAF50; color: #fff;
padding: 4px 12px; border-radius: 12px; font-size: 13px; margin-bottom: 8px;
}
/* 卡片悬停 */
.pvzhe-card { transition: box-shadow 0.3s, transform 0.3s; }
.pvzhe-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.2); transform: translateY(-3px); }
/* 页面切换动画 */
body {
animation: swooshIn 0.3s ease-out;
}
@keyframes swooshIn {
0% {
opacity: 0;
transform: translateX(30px) scale(0.95);
}
100% {
opacity: 1;
transform: translateX(0) scale(1);
}
}
body.page-flip-out {
animation: swooshOut 0.2s ease-in forwards;
}
@keyframes swooshOut {
0% {
opacity: 1;
transform: translateX(0) scale(1);
}
100% {
opacity: 0;
transform: translateX(-20px) scale(0.97);
}
}
/* 字体 */
.font-cartoon {
font-family: 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif !important;
}
.font-cartoon-italic {
font-family: 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif !important;
font-style: italic !important;
}
.font-handwrite {
font-family: 'STXingkai', '华文行楷', 'STKaiti', '楷体', sans-serif !important;
}
.font-fzjianzhi {
font-family: 'FZJianZhi', 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
}
@font-face {
font-family: 'Huakang POP2 W9';
src: url('https://new.pvzhe.wiki/images/3/37/%E5%8D%8E%E5%BA%B7POP2%E4%BD%93W9.woff2') format('woff2');
font-weight: normal; font-style: normal; font-display: swap;
}
.font-huapop {
font-family: 'Huakang POP2 W9', 'PingFang SC', 'Microsoft YaHei', cursive, sans-serif !important;
}
@font-face {
font-family: 'FZKaTong';
src: url('https://new.pvzhe.wiki/images/a/a4/%E6%96%B9%E6%AD%A3%E5%8D%A1%E9%80%9A%E7%AE%80%E4%BD%93.woff2') format('woff2');
font-weight: normal; font-style: normal; font-display: swap;
}
.font-fzkatong {
font-family: 'FZKaTong', 'PingFang SC', 'Microsoft YaHei', cursive, sans-serif !important;
}
/* 卡片点击 */
.pvzhe-card { position: relative; }
.pvzhe-card-image a {
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
display: block; z-index: 1; background: transparent !important;
}
.pvzhe-card-image a img { position: relative; z-index: -1; }
.pvzhe-card-name { position: relative; z-index: 2; pointer-events: none; }
/* 浏览量 */
.citizen-page-info:contains("citizen-page-info-viewcount") {
font-size: 12px; color: #888;
}