|
|
| 第1行: |
第1行: |
| /* ===== 江中缘 Wiki 全局样式 ===== */ | | /* 江中缘 Wiki 全局样式 */ |
| | |
| /* --- 基础样式 --- */
| |
| body { | | body { |
| font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif; | | font-family: "Microsoft YaHei", sans-serif; |
| background: #f0f2f5; | | background: #f0f2f5; |
| color: #333;
| |
| line-height: 1.6;
| |
| }
| |
|
| |
| /* --- 链接样式 --- */
| |
| a {
| |
| color: #1976d2;
| |
| text-decoration: none;
| |
| transition: color 0.2s;
| |
| }
| |
|
| |
| a:hover {
| |
| color: #0d47a1;
| |
| text-decoration: underline;
| |
| }
| |
|
| |
| /* --- 标题样式 --- */
| |
| #mw-content-wrapper h1,
| |
| #mw-content-wrapper h2,
| |
| #mw-content-wrapper h3,
| |
| #mw-content-wrapper h4 {
| |
| color: #1a237e;
| |
| border-bottom: 2px solid #1976d2;
| |
| padding-bottom: 8px;
| |
| margin-top: 24px;
| |
| }
| |
|
| |
| #mw-content-wrapper h1 {
| |
| font-size: 2em;
| |
| }
| |
|
| |
| #mw-content-wrapper h2 {
| |
| font-size: 1.5em;
| |
| } | | } |
|
| |
|
| #mw-content-wrapper h3 {
| |
| font-size: 1.2em;
| |
| border-bottom: none;
| |
| }
| |
|
| |
| /* --- 内容区域 --- */
| |
| #mw-content { | | #mw-content { |
| background: white; | | background: white; |
| 第51行: |
第10行: |
| padding: 30px; | | padding: 30px; |
| box-shadow: 0 2px 12px rgba(0,0,0,0.08); | | box-shadow: 0 2px 12px rgba(0,0,0,0.08); |
| margin: 20px 0;
| |
| }
| |
|
| |
| /* --- 表格样式 --- */
| |
| .wikitable {
| |
| border-collapse: collapse;
| |
| width: 100%;
| |
| border-radius: 10px;
| |
| overflow: hidden;
| |
| box-shadow: 0 2px 8px rgba(0,0,0,0.06);
| |
| } | | } |
|
| |
|
| .wikitable th { | | .wikitable th { |
| background: linear-gradient(135deg, #1565c0, #1976d2); | | background: #1976d2; |
| color: white; | | color: white; |
| padding: 14px 18px;
| |
| text-align: left;
| |
| font-weight: 600;
| |
| }
| |
|
| |
| .wikitable td {
| |
| padding: 12px 18px;
| |
| border-bottom: 1px solid #eee;
| |
| } | | } |
|
| |
|
| 第80行: |
第21行: |
| } | | } |
|
| |
|
| .wikitable tr:nth-child(even) td {
| | #footer { display: none; } |
| background: #fafafa;
| |
| }
| |
| | |
| /* --- 信息框样式 --- */
| |
| .infobox {
| |
| background: white;
| |
| border: 1px solid #e0e4e8;
| |
| border-radius: 12px;
| |
| padding: 20px;
| |
| box-shadow: 0 4px 16px rgba(0,0,0,0.08);
| |
| }
| |
| | |
| .infobox-title {
| |
| background: linear-gradient(135deg, #1565c0, #1976d2);
| |
| color: white;
| |
| padding: 14px 18px;
| |
| margin: -20px -20px 16px -20px;
| |
| border-radius: 12px 12px 0 0;
| |
| font-size: 1.2em;
| |
| font-weight: 600;
| |
| text-align: center;
| |
| }
| |
| | |
| /* --- 导航框样式 --- */
| |
| .navbox {
| |
| background: white;
| |
| border: 1px solid #e0e4e8;
| |
| border-radius: 12px;
| |
| padding: 16px;
| |
| margin: 24px 0;
| |
| box-shadow: 0 2px 8px rgba(0,0,0,0.06);
| |
| }
| |
| | |
| .navbox-title {
| |
| background: linear-gradient(135deg, #1a237e, #283593);
| |
| color: white;
| |
| padding: 12px 16px;
| |
| margin: -16px -16px 12px -16px;
| |
| border-radius: 12px 12px 0 0;
| |
| font-weight: 600;
| |
| text-align: center;
| |
| }
| |
| | |
| /* --- 提示框样式 --- */
| |
| .ambox {
| |
| background: #e3f2fd;
| |
| border-left: 4px solid #1976d2;
| |
| border-radius: 0 8px 8px 0;
| |
| padding: 14px 18px;
| |
| margin: 16px 0;
| |
| }
| |
| | |
| .ambox-warning {
| |
| background: #fff3e0;
| |
| border-left-color: #ff9800;
| |
| }
| |
| | |
| .ambox-error {
| |
| background: #ffebee;
| |
| border-left-color: #f44336;
| |
| }
| |
| | |
| .ambox-success {
| |
| background: #e8f5e9;
| |
| border-left-color: #4caf50;
| |
| }
| |
| | |
| /* --- 引用框样式 --- */
| |
| blockquote {
| |
| background: #f5f7fa;
| |
| border-left: 4px solid #1976d2;
| |
| border-radius: 0 8px 8px 0;
| |
| padding: 16px 20px;
| |
| margin: 16px 0;
| |
| font-style: italic;
| |
| color: #555;
| |
| }
| |
| | |
| /* --- 代码框样式 --- */
| |
| code {
| |
| background: #f5f5f5;
| |
| padding: 2px 6px;
| |
| border-radius: 4px;
| |
| font-family: Consolas, monospace;
| |
| font-size: 0.9em;
| |
| color: #c62828;
| |
| }
| |
| | |
| pre {
| |
| background: #263238;
| |
| color: #aed581;
| |
| padding: 16px 20px;
| |
| border-radius: 8px;
| |
| overflow-x: auto;
| |
| font-family: Consolas, monospace;
| |
| }
| |
| | |
| /* --- 按钮样式 --- */
| |
| .wiki-button {
| |
| background: linear-gradient(135deg, #1565c0, #1976d2);
| |
| color: white;
| |
| padding: 10px 20px;
| |
| border: none;
| |
| border-radius: 8px;
| |
| cursor: pointer;
| |
| font-weight: 600;
| |
| transition: all 0.2s;
| |
| box-shadow: 0 4px 12px rgba(21,101,192,0.3);
| |
| }
| |
| | |
| .wiki-button:hover {
| |
| background: linear-gradient(135deg, #0d47a1, #1565c0);
| |
| box-shadow: 0 6px 16px rgba(13,71,161,0.4);
| |
| transform: translateY(-2px);
| |
| }
| |
| | |
| /* --- 卡片样式 --- */
| |
| .wiki-card {
| |
| background: white;
| |
| border: 1px solid #e0e4e8;
| |
| border-radius: 12px;
| |
| padding: 24px;
| |
| margin: 16px 0;
| |
| box-shadow: 0 2px 12px rgba(0,0,0,0.06);
| |
| transition: transform 0.2s, box-shadow 0.2s;
| |
| }
| |
| | |
| .wiki-card:hover {
| |
| transform: translateY(-4px);
| |
| box-shadow: 0 8px 24px rgba(0,0,0,0.12);
| |
| }
| |
| | |
| /* --- 标签样式 --- */
| |
| .wiki-tag {
| |
| display: inline-block;
| |
| background: #e3f2fd;
| |
| color: #1565c0;
| |
| padding: 4px 12px;
| |
| border-radius: 16px;
| |
| font-size: 0.85em;
| |
| font-weight: 500;
| |
| margin: 2px 4px;
| |
| }
| |
| | |
| .wiki-tag-rare {
| |
| background: #f3e5f5;
| |
| color: #9c27b0;
| |
| }
| |
| | |
| .wiki-tag-epic {
| |
| background: #fff3e0;
| |
| color: #ff9800;
| |
| }
| |
| | |
| .wiki-tag-legendary {
| |
| background: #ffebee;
| |
| color: #f44336;
| |
| }
| |
| | |
| /* --- 进度条样式 --- */
| |
| .wiki-progress {
| |
| background: #e0e0e0;
| |
| border-radius: 10px;
| |
| height: 12px;
| |
| overflow: hidden;
| |
| margin: 8px 0;
| |
| }
| |
| | |
| .wiki-progress-bar {
| |
| background: linear-gradient(90deg, #4caf50, #8bc34a);
| |
| height: 100%;
| |
| border-radius: 10px;
| |
| transition: width 0.3s;
| |
| }
| |
| | |
| /* --- 隐藏默认元素 --- */
| |
| /* 隐藏页眉 */
| |
| #mw-head {
| |
| display: none;
| |
| }
| |
| | |
| /* 隐藏页脚 */
| |
| #footer { | |
| display: none;
| |
| }
| |
| | |
| /* 隐藏侧边栏(如需要) */
| |
| /* #mw-panel { display: none; } */
| |
| | |
| /* --- 响应式调整 --- */
| |
| @media screen and (max-width: 768px) {
| |
| #mw-content {
| |
| padding: 16px;
| |
| margin: 10px;
| |
| border-radius: 8px;
| |
| }
| |
|
| |
| .wikitable {
| |
| font-size: 0.9em;
| |
| }
| |
|
| |
| .wikitable th,
| |
| .wikitable td {
| |
| padding: 10px 12px;
| |
| }
| |
| }
| |
| | |
| /* --- 动画效果 --- */
| |
| @keyframes fadeIn {
| |
| from { opacity: 0; transform: translateY(10px); }
| |
| to { opacity: 1; transform: translateY(0); }
| |
| }
| |
| | |
| .wiki-animate {
| |
| animation: fadeIn 0.3s ease-out;
| |
| }
| |
| | |
| /* --- 滚动条美化 --- */
| |
| ::-webkit-scrollbar {
| |
| width: 8px;
| |
| height: 8px;
| |
| }
| |
| | |
| ::-webkit-scrollbar-track {
| |
| background: #f1f1f1;
| |
| border-radius: 4px;
| |
| }
| |
| | |
| ::-webkit-scrollbar-thumb {
| |
| background: #bdbdbd;
| |
| border-radius: 4px;
| |
| }
| |
| | |
| ::-webkit-scrollbar-thumb:hover {
| |
| background: #9e9e9e;
| |
| } | |