MediaWiki:Common.css:修订间差异

来自心灵终结资料站
跳转到导航 跳转到搜索
无编辑摘要
Lyx讨论 | 贡献
无编辑摘要
第1行: 第1行:
/* ========================================
/* ===== 全局变量与基础重置 ===== */
  MediaWiki 通用样式表 (Common.css)
:root {
  版本: 2.0
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  设计风格: 现代、清晰、响应式
  --glass-bg: rgba(255, 255, 255, 0.15);
  兼容性: MediaWiki 1.35+
  --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 {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-color: #f8f9fa;
  background-size: 400% 400%;
    color: #212529;
  animation: gradientShift 15s ease infinite;
    line-height: 1.6;
  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 {
#mw-content-container {
  0% { background-position: 0% 50%; }
    max-width: 1440px;
  50% { background-position: 100% 50%; }
    margin: 0 auto;
  100% { background-position: 0% 50%; }
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
}


/* ---------- 页面标题 ---------- */
/* ===== 主容器 - 毛玻璃卡片 ===== */
#firstHeading {
#mw-content-wrapper,
    font-weight: 600;
#mw-page-base,
    font-size: 2rem;
#mw-head-base {
    border-bottom: 3px solid #2a4b7c;
  background: transparent !important;
    padding-bottom: 0.4rem;
    margin-bottom: 1.2rem;
    color: #1a365d;
}
}


/* ---------- 内容区排版 ---------- */
#mw-content {
.mw-body {
  background: var(--glass-bg);
    padding: 1.5rem 2rem;
  backdrop-filter: blur(20px) saturate(180%);
    background: #ffffff;
  -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 {
.mw-body h1,
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
.mw-body h2,  
  transform: translateY(-2px);
.mw-body h3,  
.mw-body h4,  
.mw-body h5,  
.mw-body h6 {
    color: #1a365d;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}
}


.mw-body h2 {
@keyframes fadeSlideUp {
    border-bottom: 2px solid #e9ecef;
  from { opacity: 0; transform: translateY(30px); }
    padding-bottom: 0.3rem;
  to { opacity: 1; transform: translateY(0); }
}
}


/* ---------- 链接样式 ---------- */
/* ===== 标题与文字 ===== */
a {
h1, h2, h3, h4, h5, h6 {
    color: #0645ad;
  color: white;
    transition: color 0.15s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}
}
a:hover {
 
    color: #0b3d91;
h1:after, h2:after {
    text-decoration: underline;
  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 {
.mw-body a.external {
  from { width: 0; opacity: 0; }
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM2NDVhZGQiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTggMTN2NmEyIDIgMCAwIDEtMiAySDVhMiAyIDAgMCAxLTItMlY4YTIgMiAwIDAgMSAyLTJoNiIgLz48cG9seWxpbmUgcG9pbnRzPSIxNSAzIDIxIDMgMjEgOSIgLz48bGluZSB4MT0iMTAiIHkxPSIxNCIgeDI9IjIxIiB5Mj0iMyIgLz48L3N2Zz4=) right center no-repeat;
  to { width: 60px; opacity: 1; }
    background-size: 0.85em;
    padding-right: 1.2em;
}
}


/* ---------- 导航栏 (左侧边栏) ---------- */
/* ===== 导航栏 - 玻璃态 ===== */
#mw-panel {
#mw-panel,
    font-size: 0.9rem;
#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 .portal {
#mw-panel:hover,
    background: transparent;
#p-logo:hover,
    border: none;
#p-navigation:hover,
    margin-bottom: 0.8rem;
#p-tb:hover,
#p-personal:hover {
  transform: scale(1.01) translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
}


#mw-panel .portal h5 {
/* ===== 搜索框 - 发光效果 ===== */
    font-weight: 600;
#searchInput {
    font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.15) !important;
    color: #2d3748;
  backdrop-filter: blur(8px);
    background: #e9ecef;
  -webkit-backdrop-filter: blur(8px);
    padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px;
  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;
}
}


#mw-panel .portal .body ul {
#searchInput::placeholder {
    list-style: none;
  color: rgba(255, 255, 255, 0.6);
    padding-left: 0.5rem;
  font-weight: 300;
}
}


#mw-panel .portal .body li a {
#searchInput:focus {
    color: #1a202c;
  background: rgba(255, 255, 255, 0.25) !important;
    display: block;
  border-color: #ffffff !important;
    padding: 0.25rem 0.5rem;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 0 30px rgba(102, 126, 234, 0.3);
    border-radius: 3px;
  transform: scale(1.02);
    transition: background 0.15s;
  outline: none;
}
}
#mw-panel .portal .body li a:hover {
 
    background: #e2e8f0;
/* ===== 按钮 - 动态悬浮 ===== */
    text-decoration: 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,
#p-search #searchInput {
button:hover,
    border: 1px solid #ced4da;
input[type="submit"]:hover,
    border-radius: 20px;
input[type="button"]:hover {
    padding: 0.4rem 1rem;
  transform: translateY(-3px) scale(1.02);
    width: 100%;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
}
#p-search #searchInput:focus {
 
    border-color: #2a4b7c;
.mw-ui-button:active,
    box-shadow: 0 0 0 3px rgba(42, 75, 124, 0.2);
button:active {
    outline: none;
  transform: scale(0.96);
}
}


#p-search #searchButton {
/* 按钮涟漪效果 */
    background: #2a4b7c;
.mw-ui-button::after,
    color: #fff;
button::after {
    border: none;
  content: '';
    border-radius: 20px;
  position: absolute;
    padding: 0.4rem 1.2rem;
  top: 50%;
    margin-left: 0.3rem;
  left: 50%;
    font-weight: 500;
  width: 0;
    transition: background 0.2s;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
}
#p-search #searchButton:hover {
 
    background: #1a365d;
.mw-ui-button:active::after,
    cursor: pointer;
button:active::after {
  width: 300px;
  height: 300px;
}
}


/* ---------- 内容表格 (wikitable) ---------- */
/* ===== 链接 - 动态下划线 ===== */
.wikitable {
a {
    background: #ffffff;
  color: #fff;
    border: 1px solid #dee2e6;
  text-decoration: none;
    border-collapse: collapse;
  font-weight: 500;
    font-size: 0.95rem;
  position: relative;
    width: 100%;
  transition: var(--transition-smooth);
    margin: 1.2rem 0;
}
}
.wikitable th {
 
    background: #f1f3f5;
a:not(.mw-ui-button):not(.new):after {
    font-weight: 600;
  content: '';
    text-align: left;
  position: absolute;
    padding: 0.5rem 0.8rem;
  bottom: -2px;
    border: 1px solid #dee2e6;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width 0.4s ease;
}
}
.wikitable td {
 
    padding: 0.5rem 0.8rem;
a:not(.mw-ui-button):not(.new):hover:after {
    border: 1px solid #dee2e6;
  width: 100%;
}
}
.wikitable tr:nth-child(even) {
 
    background: #f8f9fa;
a:not(.mw-ui-button):not(.new):hover {
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
}


/* ---------- 信息框 (infobox) ---------- */
/* ===== 表格 - 玻璃卡片风格 ===== */
.infobox {
.wikitable,
    float: right;
.mw-datatable {
    clear: right;
  background: rgba(255, 255, 255, 0.08);
    background: #f8f9fa;
  backdrop-filter: blur(12px);
    border: 1px solid #dee2e6;
  -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
    margin: 0 0 1rem 1.5rem;
  border: 1px solid var(--glass-border);
    width: 280px;
  overflow: hidden;
    font-size: 0.9rem;
  box-shadow: var(--glass-shadow);
    border-radius: 6px;
  width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-collapse: separate;
  border-spacing: 0;
}
}
.infobox caption {
 
    font-weight: 700;
.wikitable th,
    font-size: 1.1rem;
.mw-datatable th {
    text-align: center;
  background: rgba(255, 255, 255, 0.15);
    margin-bottom: 0.3rem;
  color: white;
  font-weight: 600;
  padding: 1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
}
.infobox th,
 
.infobox td {
.wikitable td,
    vertical-align: top;
.mw-datatable td {
    padding: 0.2rem 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}
}
.infobox th {
 
    font-weight: 600;
.wikitable tr:hover,
    white-space: nowrap;
.mw-datatable tr:hover {
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}
}


/* 小屏幕时信息框不浮动 */
/* ===== 信息框/提示框 ===== */
@media (max-width: 768px) {
.mw-message-box,
    .infobox {
.infobox {
        float: none;
  background: rgba(255, 255, 255, 0.1) !important;
        width: 100%;
  backdrop-filter: blur(12px);
        margin: 0 0 1rem 0;
  -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,
.mw-cite-backlink {
.infobox:hover {
    font-size: 0.85rem;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
}
ol.references {
 
    font-size: 0.9rem;
/* ===== 侧边栏/目录 - 玻璃风格 ===== */
#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);
}
}
ol.references li {
 
    margin-bottom: 0.3rem;
#toc:hover,
.toc:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
}


/* ---------- 分类链接 ---------- */
#toc .toctitle {
#mw-normal-catlinks {
  color: white;
    background: #f1f3f5;
  font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-top: 2rem;
    border: 1px solid #e9ecef;
}
}
#mw-normal-catlinks a {
 
    color: #0645ad;
#toc ul {
  list-style: none;
  padding-left: 1rem;
}
}


/* ---------- 用户工具栏 (右上角) ---------- */
#toc li {
#p-personal {
  padding: 0.3rem 0;
    font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
}
#p-personal li a {
 
    color: #1a202c;
#toc a {
    padding: 0.2rem 0.6rem;
  color: rgba(255, 255, 255, 0.85);
    border-radius: 3px;
  transition: var(--transition-smooth);
}
}
#p-personal li a:hover {
 
    background: #e2e8f0;
#toc a:hover {
    text-decoration: none;
  color: white;
}
  padding-left: 0.5rem;
#p-personal #pt-userpage a {
    font-weight: 600;
}
}


/* ---------- 编辑区 (可视化/源代码) ---------- */
/* ===== 编辑区 - 代码编辑器风格 ===== */
textarea,
.mw-editform textarea {
.mw-editform textarea {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: rgba(0, 0, 0, 0.3) !important;
    font-size: 0.9rem;
  backdrop-filter: blur(8px);
    border: 1px solid #ced4da;
  -webkit-backdrop-filter: blur(8px);
    border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 0.6rem;
  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: #2a4b7c;
  border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(42, 75, 124, 0.15);
  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);
}
}


/* ---------- 消息框 (模板消息) ---------- */
/* ===== 页脚 - 微光效果 ===== */
.messagebox,
#footer {
.ambox {
  background: rgba(0, 0, 0, 0.2);
    border-left: 5px solid #2a4b7c;
  backdrop-filter: blur(12px);
    background: #f8f9fa;
  -webkit-backdrop-filter: blur(12px);
    padding: 0.6rem 1rem;
  border-top: 1px solid var(--glass-border);
    margin: 0.8rem 0;
  border-radius: var(--radius-md);
    border-radius: 3px;
  padding: 1.5rem;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  transition: var(--transition-smooth);
}
}
.ambox-warning {
 
    border-left-color: #dc3545;
#footer:hover {
    background: #fef2f2;
  background: rgba(0, 0, 0, 0.25);
}
}
.ambox-notice {
 
    border-left-color: #0d6efd;
#footer a {
    background: #f0f7ff;
  color: rgba(255, 255, 255, 0.8);
}
}
.ambox-move {
 
    border-left-color: #6c757d;
#footer a:hover {
  color: white;
}
}


/* ---------- 特殊页面表格 ---------- */
/* ===== 滚动条 - 现代风格 ===== */
.mw-specialpage-table {
::-webkit-scrollbar {
    background: #ffffff;
  width: 8px;
    border: 1px solid #dee2e6;
  height: 8px;
    border-collapse: collapse;
}
}
.mw-specialpage-table th {
 
    background: #e9ecef;
::-webkit-scrollbar-track {
    font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
  border-radius: 10px;
}
}
.mw-specialpage-table td {
 
    padding: 0.4rem 0.8rem;
::-webkit-scrollbar-thumb {
    border-top: 1px solid #dee2e6;
  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-body {
  #mw-content {
        padding: 1rem;
    padding: 1rem;
     }
     margin: 1rem;
     #firstHeading {
    border-radius: var(--radius-md);
        font-size: 1.5rem;
  }
    }
 
    #mw-panel {
  #searchInput {
        display: none; /* 在小屏幕隐藏侧边栏,使用汉堡菜单或顶部导航 (取决于皮肤) */
     max-width: 100%;
    }
  }
    .wikitable {
 
        font-size: 0.85rem;
  h1:after, h2:after {
    }
    width: 40px;
    .wikitable th,
  }
    .wikitable td {
}
        padding: 0.3rem 0.5rem;
 
    }
/* ===== 动画:页面元素入场 ===== */
.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);
}
}


@media (max-width: 480px) {
.thumbinner:hover {
    .mw-body {
  transform: scale(1.01) rotate(0.5deg);
        padding: 0.8rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    }
    #firstHeading {
        font-size: 1.25rem;
    }
    #p-search #searchInput {
        width: 70%;
    }
}
}


/* ---------- 打印样式 ---------- */
/* ===== 分类标签 ===== */
@media print {
#mw-pages,
    body {
#mw-category-media {
        background: #ffffff;
  background: rgba(255, 255, 255, 0.05);
        color: #000000;
  backdrop-filter: blur(8px);
    }
  -webkit-backdrop-filter: blur(8px);
    #mw-panel,
  border-radius: var(--radius-sm);
    #p-personal,
  padding: 1rem;
    #mw-navigation,
    .infobox {
        display: none;
    }
    .mw-body {
        padding: 0.5in;
    }
    a {
        color: #000000;
        text-decoration: underline;
    }
    .wikitable {
        border: 1px solid #aaa;
    }
    .wikitable th {
        background: #eee;
    }
}
}

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;
}