MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* ========== | /* ===== 全局变量与基础重置 ===== */ | ||
:root { | |||
--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |||
--glass-bg: rgba(255, 255, 255, 0.15); | |||
--glass-border: rgba(255, 255, 255, 0.25); | |||
--glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); | |||
--text-primary: #2d3748; | |||
--text-light: #f7fafc; | |||
--transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |||
--radius-lg: 24px; | |||
--radius-md: 16px; | |||
--radius-sm: 12px; | |||
} | |||
/* | /* ===== 全局动态背景 ===== */ | ||
body { | body { | ||
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab); | |||
background-size: 400% 400%; | |||
animation: gradientShift 15s ease infinite; | |||
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | |||
color: var(--text-primary); | |||
min-height: 100vh; | |||
margin: 0; | |||
padding: 0; | |||
backdrop-filter: blur(2px); | |||
} | } | ||
@keyframes gradientShift { | |||
0% { background-position: 0% 50%; } | |||
50% { background-position: 100% 50%; } | |||
100% { background-position: 0% 50%; } | |||
} | } | ||
/* - | /* ===== 主容器 - 毛玻璃卡片 ===== */ | ||
# | #mw-content-wrapper, | ||
#mw-page-base, | |||
#mw-head-base { | |||
background: transparent !important; | |||
} | } | ||
#mw-content { | |||
background: var(--glass-bg); | |||
backdrop-filter: blur(20px) saturate(180%); | |||
-webkit-backdrop-filter: blur(20px) saturate(180%); | |||
border: 1px solid var(--glass-border); | |||
border-radius: var(--radius-lg); | |||
box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.3); | |||
margin: 2rem auto; | |||
padding: 2.5rem; | |||
max-width: 1200px; | |||
transition: var(--transition-smooth); | |||
animation: fadeSlideUp 0.8s ease-out; | |||
} | } | ||
#mw-content:hover { | |||
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4); | |||
transform: translateY(-2px); | |||
. | |||
} | } | ||
@keyframes fadeSlideUp { | |||
from { opacity: 0; transform: translateY(30px); } | |||
to { opacity: 1; transform: translateY(0); } | |||
} | } | ||
/* | /* ===== 标题与文字 ===== */ | ||
h1, h2, h3, h4, h5, h6 { | |||
color: white; | |||
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); | |||
letter-spacing: -0.02em; | |||
position: relative; | |||
display: inline-block; | |||
} | } | ||
h1:after, h2:after { | |||
content: ''; | |||
position: absolute; | |||
bottom: -6px; | |||
left: 0; | |||
width: 60px; | |||
height: 4px; | |||
background: var(--primary-gradient); | |||
border-radius: 4px; | |||
animation: underlineGrow 0.6s ease-out; | |||
} | } | ||
@keyframes underlineGrow { | |||
from { width: 0; opacity: 0; } | |||
to { width: 60px; opacity: 1; } | |||
} | } | ||
/* ---------- | /* ===== 导航栏 - 玻璃态 ===== */ | ||
#mw-panel, | |||
#p-logo, | |||
#p-navigation, | |||
#p-tb, | |||
#p-personal { | |||
background: var(--glass-bg) !important; | |||
backdrop-filter: blur(16px) saturate(180%); | |||
-webkit-backdrop-filter: blur(16px) saturate(180%); | |||
border: 1px solid var(--glass-border); | |||
border-radius: var(--radius-md); | |||
box-shadow: var(--glass-shadow); | |||
padding: 1rem; | |||
margin-bottom: 1.5rem; | |||
transition: var(--transition-smooth); | |||
} | } | ||
#mw-panel | #mw-panel:hover, | ||
#p-logo:hover, | |||
#p-navigation:hover, | |||
#p-tb:hover, | |||
#p-personal:hover { | |||
transform: scale(1.01) translateY(-2px); | |||
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); | |||
} | } | ||
# | /* ===== 搜索框 - 发光效果 ===== */ | ||
#searchInput { | |||
background: rgba(255, 255, 255, 0.15) !important; | |||
backdrop-filter: blur(8px); | |||
-webkit-backdrop-filter: blur(8px); | |||
border: 1px solid rgba(255, 255, 255, 0.3) !important; | |||
border-radius: 50px !important; | |||
padding: 0.75rem 1.5rem !important; | |||
color: white !important; | |||
font-weight: 500; | |||
transition: var(--transition-smooth); | |||
width: 100%; | |||
max-width: 300px; | |||
} | } | ||
# | #searchInput::placeholder { | ||
color: rgba(255, 255, 255, 0.6); | |||
font-weight: 300; | |||
} | } | ||
# | #searchInput:focus { | ||
background: rgba(255, 255, 255, 0.25) !important; | |||
border-color: #ffffff !important; | |||
box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 0 30px rgba(102, 126, 234, 0.3); | |||
transform: scale(1.02); | |||
outline: none; | |||
} | } | ||
/* ===== 按钮 - 动态悬浮 ===== */ | |||
.mw-ui-button, | |||
button, | |||
input[type="submit"], | |||
input[type="button"] { | |||
background: var(--primary-gradient) !important; | |||
border: none !important; | |||
border-radius: 50px !important; | |||
padding: 0.6rem 1.8rem !important; | |||
color: white !important; | |||
font-weight: 600 !important; | |||
letter-spacing: 0.3px; | |||
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); | |||
transition: var(--transition-smooth); | |||
cursor: pointer; | |||
position: relative; | |||
overflow: hidden; | |||
} | } | ||
.mw-ui-button:hover, | |||
button:hover, | |||
input[type="submit"]:hover, | |||
input[type="button"]:hover { | |||
transform: translateY(-3px) scale(1.02); | |||
box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6); | |||
} | } | ||
.mw-ui-button:active, | |||
button:active { | |||
transform: scale(0.96); | |||
} | } | ||
/* 按钮涟漪效果 */ | |||
.mw-ui-button::after, | |||
button::after { | |||
content: ''; | |||
position: absolute; | |||
top: 50%; | |||
left: 50%; | |||
width: 0; | |||
height: 0; | |||
background: rgba(255, 255, 255, 0.2); | |||
border-radius: 50%; | |||
transform: translate(-50%, -50%); | |||
transition: width 0.6s, height 0.6s; | |||
} | } | ||
.mw-ui-button:active::after, | |||
button:active::after { | |||
width: 300px; | |||
height: 300px; | |||
} | } | ||
/* - | /* ===== 链接 - 动态下划线 ===== */ | ||
a { | |||
color: #fff; | |||
text-decoration: none; | |||
font-weight: 500; | |||
position: relative; | |||
transition: var(--transition-smooth); | |||
} | } | ||
. | |||
a:not(.mw-ui-button):not(.new):after { | |||
content: ''; | |||
position: absolute; | |||
bottom: -2px; | |||
left: 0; | |||
width: 0; | |||
height: 2px; | |||
background: var(--primary-gradient); | |||
transition: width 0.4s ease; | |||
} | } | ||
a:not(.mw-ui-button):not(.new):hover:after { | |||
width: 100%; | |||
} | } | ||
. | |||
a:not(.mw-ui-button):not(.new):hover { | |||
color: #fff; | |||
text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); | |||
} | } | ||
/* - | /* ===== 表格 - 玻璃卡片风格 ===== */ | ||
. | .wikitable, | ||
.mw-datatable { | |||
background: rgba(255, 255, 255, 0.08); | |||
backdrop-filter: blur(12px); | |||
-webkit-backdrop-filter: blur(12px); | |||
border-radius: var(--radius-md); | |||
border: 1px solid var(--glass-border); | |||
overflow: hidden; | |||
box-shadow: var(--glass-shadow); | |||
width: 100%; | |||
border-collapse: separate; | |||
border-spacing: 0; | |||
} | } | ||
. | |||
.wikitable th, | |||
.mw-datatable th { | |||
background: rgba(255, 255, 255, 0.15); | |||
color: white; | |||
font-weight: 600; | |||
padding: 1rem; | |||
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); | |||
} | } | ||
. | |||
. | .wikitable td, | ||
.mw-datatable td { | |||
padding: 0.75rem 1rem; | |||
border-bottom: 1px solid rgba(255, 255, 255, 0.05); | |||
color: rgba(255, 255, 255, 0.9); | |||
} | } | ||
. | |||
.wikitable tr:hover, | |||
.mw-datatable tr:hover { | |||
background: rgba(255, 255, 255, 0.1); | |||
transition: var(--transition-smooth); | |||
} | } | ||
/* | /* ===== 信息框/提示框 ===== */ | ||
.mw-message-box, | |||
.infobox { | |||
background: rgba(255, 255, 255, 0.1) !important; | |||
backdrop-filter: blur(12px); | |||
-webkit-backdrop-filter: blur(12px); | |||
border: 1px solid var(--glass-border) !important; | |||
border-radius: var(--radius-sm) !important; | |||
box-shadow: var(--glass-shadow); | |||
padding: 1.25rem !important; | |||
color: white; | |||
transition: var(--transition-smooth); | |||
} | } | ||
.mw-message-box:hover, | |||
. | .infobox:hover { | ||
transform: translateY(-3px); | |||
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); | |||
} | } | ||
/* ===== 侧边栏/目录 - 玻璃风格 ===== */ | |||
#toc, | |||
.toc { | |||
background: rgba(255, 255, 255, 0.08) !important; | |||
backdrop-filter: blur(12px); | |||
-webkit-backdrop-filter: blur(12px); | |||
border: 1px solid var(--glass-border) !important; | |||
border-radius: var(--radius-md); | |||
padding: 1.5rem; | |||
box-shadow: var(--glass-shadow); | |||
transition: var(--transition-smooth); | |||
} | } | ||
#toc:hover, | |||
.toc:hover { | |||
transform: translateX(4px); | |||
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); | |||
} | } | ||
#toc .toctitle { | |||
# | color: white; | ||
font-weight: 600; | |||
} | } | ||
# | |||
#toc ul { | |||
list-style: none; | |||
padding-left: 1rem; | |||
} | } | ||
#toc li { | |||
# | padding: 0.3rem 0; | ||
border-bottom: 1px solid rgba(255, 255, 255, 0.05); | |||
} | } | ||
# | |||
#toc a { | |||
color: rgba(255, 255, 255, 0.85); | |||
transition: var(--transition-smooth); | |||
} | } | ||
# | |||
#toc a:hover { | |||
color: white; | |||
padding-left: 0.5rem; | |||
} | } | ||
/* | /* ===== 编辑区 - 代码编辑器风格 ===== */ | ||
textarea, | |||
.mw-editform textarea { | .mw-editform textarea { | ||
background: rgba(0, 0, 0, 0.3) !important; | |||
backdrop-filter: blur(8px); | |||
-webkit-backdrop-filter: blur(8px); | |||
border: 1px solid rgba(255, 255, 255, 0.15) !important; | |||
border-radius: var(--radius-sm) !important; | |||
color: #e2e8f0 !important; | |||
font-family: 'JetBrains Mono', 'Fira Code', monospace !important; | |||
padding: 1.25rem !important; | |||
transition: var(--transition-smooth); | |||
box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2); | |||
} | } | ||
textarea:focus, | |||
.mw-editform textarea:focus { | .mw-editform textarea:focus { | ||
border-color: rgba(255, 255, 255, 0.4) !important; | |||
box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), inset 0 2px 10px rgba(0, 0, 0, 0.3); | |||
transform: scale(1.005); | |||
} | } | ||
/* ----- | /* ===== 页脚 - 微光效果 ===== */ | ||
. | #footer { | ||
background: rgba(0, 0, 0, 0.2); | |||
backdrop-filter: blur(12px); | |||
-webkit-backdrop-filter: blur(12px); | |||
border-top: 1px solid var(--glass-border); | |||
border-radius: var(--radius-md); | |||
padding: 1.5rem; | |||
margin-top: 2rem; | |||
color: rgba(255, 255, 255, 0.7); | |||
text-align: center; | |||
transition: var(--transition-smooth); | |||
} | } | ||
#footer:hover { | |||
background: rgba(0, 0, 0, 0.25); | |||
} | } | ||
#footer a { | |||
color: rgba(255, 255, 255, 0.8); | |||
} | } | ||
#footer a:hover { | |||
color: white; | |||
} | } | ||
/* - | /* ===== 滚动条 - 现代风格 ===== */ | ||
::-webkit-scrollbar { | |||
width: 8px; | |||
height: 8px; | |||
} | } | ||
::-webkit-scrollbar-track { | |||
background: rgba(255, 255, 255, 0.05); | |||
border-radius: 10px; | |||
} | } | ||
::-webkit-scrollbar-thumb { | |||
background: var(--primary-gradient); | |||
border-radius: 10px; | |||
transition: var(--transition-smooth); | |||
} | } | ||
::-webkit-scrollbar-thumb:hover { | |||
transform: scale(1.1); | |||
background: linear-gradient(135deg, #764ba2, #667eea); | |||
} | |||
/* ===== 响应式微调 ===== */ | |||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
#mw-content { | |||
padding: 1rem; | |||
} | margin: 1rem; | ||
border-radius: var(--radius-md); | |||
} | |||
#searchInput { | |||
max-width: 100%; | |||
} | |||
h1:after, h2:after { | |||
width: 40px; | |||
} | |||
} | |||
/* ===== 动画:页面元素入场 ===== */ | |||
.mw-body, | |||
.mw-body-content { | |||
animation: fadeSlideUp 0.6s ease-out both; | |||
} | |||
/* 为不同元素添加延迟,形成交错效果 */ | |||
#mw-content > *:nth-child(1) { animation-delay: 0.05s; } | |||
#mw-content > *:nth-child(2) { animation-delay: 0.10s; } | |||
#mw-content > *:nth-child(3) { animation-delay: 0.15s; } | |||
#mw-content > *:nth-child(4) { animation-delay: 0.20s; } | |||
#mw-content > *:nth-child(5) { animation-delay: 0.25s; } | |||
/* ===== 自定义卡片组件(可用于模板) ===== */ | |||
.modern-card { | |||
background: var(--glass-bg); | |||
backdrop-filter: blur(16px) saturate(180%); | |||
-webkit-backdrop-filter: blur(16px) saturate(180%); | |||
border: 1px solid var(--glass-border); | |||
border-radius: var(--radius-md); | |||
padding: 1.5rem; | |||
box-shadow: var(--glass-shadow); | |||
transition: var(--transition-smooth); | |||
} | |||
.modern-card:hover { | |||
transform: translateY(-6px) scale(1.005); | |||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); | |||
} | |||
/* 微光脉冲动画 */ | |||
@keyframes glowPulse { | |||
0%, 100% { opacity: 1; } | |||
50% { opacity: 0.6; } | |||
} | |||
.glow-pulse { | |||
animation: glowPulse 3s ease-in-out infinite; | |||
} | |||
/* ===== 图片和缩略图 ===== */ | |||
.thumbinner { | |||
background: var(--glass-bg) !important; | |||
backdrop-filter: blur(12px); | |||
-webkit-backdrop-filter: blur(12px); | |||
border: 1px solid var(--glass-border) !important; | |||
border-radius: var(--radius-sm) !important; | |||
padding: 0.5rem !important; | |||
box-shadow: var(--glass-shadow); | |||
transition: var(--transition-smooth); | |||
} | } | ||
.thumbinner:hover { | |||
transform: scale(1.01) rotate(0.5deg); | |||
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); | |||
} | } | ||
/* | /* ===== 分类标签 ===== */ | ||
#mw-pages, | |||
#mw-category-media { | |||
background: rgba(255, 255, 255, 0.05); | |||
backdrop-filter: blur(8px); | |||
-webkit-backdrop-filter: blur(8px); | |||
border-radius: var(--radius-sm); | |||
padding: 1rem; | |||
} | } | ||
2026年8月19日 (三) 02:33的版本
/* ===== 全局变量与基础重置 ===== */
:root {
--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--glass-bg: rgba(255, 255, 255, 0.15);
--glass-border: rgba(255, 255, 255, 0.25);
--glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
--text-primary: #2d3748;
--text-light: #f7fafc;
--transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--radius-lg: 24px;
--radius-md: 16px;
--radius-sm: 12px;
}
/* ===== 全局动态背景 ===== */
body {
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradientShift 15s ease infinite;
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
color: var(--text-primary);
min-height: 100vh;
margin: 0;
padding: 0;
backdrop-filter: blur(2px);
}
@keyframes gradientShift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
/* ===== 主容器 - 毛玻璃卡片 ===== */
#mw-content-wrapper,
#mw-page-base,
#mw-head-base {
background: transparent !important;
}
#mw-content {
background: var(--glass-bg);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border: 1px solid var(--glass-border);
border-radius: var(--radius-lg);
box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
margin: 2rem auto;
padding: 2.5rem;
max-width: 1200px;
transition: var(--transition-smooth);
animation: fadeSlideUp 0.8s ease-out;
}
#mw-content:hover {
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
transform: translateY(-2px);
}
@keyframes fadeSlideUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}
/* ===== 标题与文字 ===== */
h1, h2, h3, h4, h5, h6 {
color: white;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
letter-spacing: -0.02em;
position: relative;
display: inline-block;
}
h1:after, h2:after {
content: '';
position: absolute;
bottom: -6px;
left: 0;
width: 60px;
height: 4px;
background: var(--primary-gradient);
border-radius: 4px;
animation: underlineGrow 0.6s ease-out;
}
@keyframes underlineGrow {
from { width: 0; opacity: 0; }
to { width: 60px; opacity: 1; }
}
/* ===== 导航栏 - 玻璃态 ===== */
#mw-panel,
#p-logo,
#p-navigation,
#p-tb,
#p-personal {
background: var(--glass-bg) !important;
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
border: 1px solid var(--glass-border);
border-radius: var(--radius-md);
box-shadow: var(--glass-shadow);
padding: 1rem;
margin-bottom: 1.5rem;
transition: var(--transition-smooth);
}
#mw-panel:hover,
#p-logo:hover,
#p-navigation:hover,
#p-tb:hover,
#p-personal:hover {
transform: scale(1.01) translateY(-2px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
/* ===== 搜索框 - 发光效果 ===== */
#searchInput {
background: rgba(255, 255, 255, 0.15) !important;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.3) !important;
border-radius: 50px !important;
padding: 0.75rem 1.5rem !important;
color: white !important;
font-weight: 500;
transition: var(--transition-smooth);
width: 100%;
max-width: 300px;
}
#searchInput::placeholder {
color: rgba(255, 255, 255, 0.6);
font-weight: 300;
}
#searchInput:focus {
background: rgba(255, 255, 255, 0.25) !important;
border-color: #ffffff !important;
box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 0 30px rgba(102, 126, 234, 0.3);
transform: scale(1.02);
outline: none;
}
/* ===== 按钮 - 动态悬浮 ===== */
.mw-ui-button,
button,
input[type="submit"],
input[type="button"] {
background: var(--primary-gradient) !important;
border: none !important;
border-radius: 50px !important;
padding: 0.6rem 1.8rem !important;
color: white !important;
font-weight: 600 !important;
letter-spacing: 0.3px;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
transition: var(--transition-smooth);
cursor: pointer;
position: relative;
overflow: hidden;
}
.mw-ui-button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
transform: translateY(-3px) scale(1.02);
box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}
.mw-ui-button:active,
button:active {
transform: scale(0.96);
}
/* 按钮涟漪效果 */
.mw-ui-button::after,
button::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}
.mw-ui-button:active::after,
button:active::after {
width: 300px;
height: 300px;
}
/* ===== 链接 - 动态下划线 ===== */
a {
color: #fff;
text-decoration: none;
font-weight: 500;
position: relative;
transition: var(--transition-smooth);
}
a:not(.mw-ui-button):not(.new):after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 2px;
background: var(--primary-gradient);
transition: width 0.4s ease;
}
a:not(.mw-ui-button):not(.new):hover:after {
width: 100%;
}
a:not(.mw-ui-button):not(.new):hover {
color: #fff;
text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
/* ===== 表格 - 玻璃卡片风格 ===== */
.wikitable,
.mw-datatable {
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-radius: var(--radius-md);
border: 1px solid var(--glass-border);
overflow: hidden;
box-shadow: var(--glass-shadow);
width: 100%;
border-collapse: separate;
border-spacing: 0;
}
.wikitable th,
.mw-datatable th {
background: rgba(255, 255, 255, 0.15);
color: white;
font-weight: 600;
padding: 1rem;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.wikitable td,
.mw-datatable td {
padding: 0.75rem 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
color: rgba(255, 255, 255, 0.9);
}
.wikitable tr:hover,
.mw-datatable tr:hover {
background: rgba(255, 255, 255, 0.1);
transition: var(--transition-smooth);
}
/* ===== 信息框/提示框 ===== */
.mw-message-box,
.infobox {
background: rgba(255, 255, 255, 0.1) !important;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--glass-border) !important;
border-radius: var(--radius-sm) !important;
box-shadow: var(--glass-shadow);
padding: 1.25rem !important;
color: white;
transition: var(--transition-smooth);
}
.mw-message-box:hover,
.infobox:hover {
transform: translateY(-3px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
/* ===== 侧边栏/目录 - 玻璃风格 ===== */
#toc,
.toc {
background: rgba(255, 255, 255, 0.08) !important;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--glass-border) !important;
border-radius: var(--radius-md);
padding: 1.5rem;
box-shadow: var(--glass-shadow);
transition: var(--transition-smooth);
}
#toc:hover,
.toc:hover {
transform: translateX(4px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
#toc .toctitle {
color: white;
font-weight: 600;
}
#toc ul {
list-style: none;
padding-left: 1rem;
}
#toc li {
padding: 0.3rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
#toc a {
color: rgba(255, 255, 255, 0.85);
transition: var(--transition-smooth);
}
#toc a:hover {
color: white;
padding-left: 0.5rem;
}
/* ===== 编辑区 - 代码编辑器风格 ===== */
textarea,
.mw-editform textarea {
background: rgba(0, 0, 0, 0.3) !important;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.15) !important;
border-radius: var(--radius-sm) !important;
color: #e2e8f0 !important;
font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
padding: 1.25rem !important;
transition: var(--transition-smooth);
box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}
textarea:focus,
.mw-editform textarea:focus {
border-color: rgba(255, 255, 255, 0.4) !important;
box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), inset 0 2px 10px rgba(0, 0, 0, 0.3);
transform: scale(1.005);
}
/* ===== 页脚 - 微光效果 ===== */
#footer {
background: rgba(0, 0, 0, 0.2);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-top: 1px solid var(--glass-border);
border-radius: var(--radius-md);
padding: 1.5rem;
margin-top: 2rem;
color: rgba(255, 255, 255, 0.7);
text-align: center;
transition: var(--transition-smooth);
}
#footer:hover {
background: rgba(0, 0, 0, 0.25);
}
#footer a {
color: rgba(255, 255, 255, 0.8);
}
#footer a:hover {
color: white;
}
/* ===== 滚动条 - 现代风格 ===== */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
background: var(--primary-gradient);
border-radius: 10px;
transition: var(--transition-smooth);
}
::-webkit-scrollbar-thumb:hover {
transform: scale(1.1);
background: linear-gradient(135deg, #764ba2, #667eea);
}
/* ===== 响应式微调 ===== */
@media (max-width: 768px) {
#mw-content {
padding: 1rem;
margin: 1rem;
border-radius: var(--radius-md);
}
#searchInput {
max-width: 100%;
}
h1:after, h2:after {
width: 40px;
}
}
/* ===== 动画:页面元素入场 ===== */
.mw-body,
.mw-body-content {
animation: fadeSlideUp 0.6s ease-out both;
}
/* 为不同元素添加延迟,形成交错效果 */
#mw-content > *:nth-child(1) { animation-delay: 0.05s; }
#mw-content > *:nth-child(2) { animation-delay: 0.10s; }
#mw-content > *:nth-child(3) { animation-delay: 0.15s; }
#mw-content > *:nth-child(4) { animation-delay: 0.20s; }
#mw-content > *:nth-child(5) { animation-delay: 0.25s; }
/* ===== 自定义卡片组件(可用于模板) ===== */
.modern-card {
background: var(--glass-bg);
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
border: 1px solid var(--glass-border);
border-radius: var(--radius-md);
padding: 1.5rem;
box-shadow: var(--glass-shadow);
transition: var(--transition-smooth);
}
.modern-card:hover {
transform: translateY(-6px) scale(1.005);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
/* 微光脉冲动画 */
@keyframes glowPulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}
.glow-pulse {
animation: glowPulse 3s ease-in-out infinite;
}
/* ===== 图片和缩略图 ===== */
.thumbinner {
background: var(--glass-bg) !important;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--glass-border) !important;
border-radius: var(--radius-sm) !important;
padding: 0.5rem !important;
box-shadow: var(--glass-shadow);
transition: var(--transition-smooth);
}
.thumbinner:hover {
transform: scale(1.01) rotate(0.5deg);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
/* ===== 分类标签 ===== */
#mw-pages,
#mw-category-media {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border-radius: var(--radius-sm);
padding: 1rem;
}