MediaWiki:Common.css
From OceanSmile Wiki
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ==========================================
OceanSmile Wiki - 全站通用样式
========================================== */
/* ----- 隐藏首页标题 ----- */
body.page-Main_Page #firstHeading,
body.page-Main_Page .firstHeading,
body.page-Main_Page .page-header,
body.page-Main_Page h1.firstHeading {
display: none !important;
height: 0 !important;
margin: 0 !important;
padding: 0 !important;
border: none !important;
overflow: hidden !important;
}
/* ----- 首页横幅 ----- */
.os-banner {
background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
color: #fff;
padding: 2.5rem 2rem;
border-radius: 10px;
margin-bottom: 2rem;
}
.os-banner h2 {
font-size: 1.6rem;
font-weight: 700;
margin: 0 0 0.5rem 0;
border: none;
padding: 0;
color: #fff;
}
.os-banner h2 span {
color: #fff;
}
.os-banner p {
font-size: 1rem;
opacity: 0.9;
margin: 0;
color: #fff;
}
/* ----- 节区标题 ----- */
.os-section-title {
font-size: 1.2rem;
font-weight: 700;
color: #1a237e;
margin: 2rem 0 1rem;
padding-bottom: 0.4rem;
border-bottom: 2px solid #1a237e;
display: inline-block;
}
/* ----- 产品卡片网格 ----- */
.os-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 1.2rem;
margin: 0 0 2rem 0;
list-style: none;
padding: 0;
}
.os-card {
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 1.5rem;
text-align: center;
transition: all 0.2s ease;
cursor: pointer;
display: block;
}
.os-card:hover {
border-color: #1a237e;
box-shadow: 0 4px 16px rgba(26, 35, 126, 0.1);
transform: translateY(-2px);
}
.os-card-icon {
font-size: 2.2rem;
margin-bottom: 0.8rem;
line-height: 1;
}
.os-card-title {
font-size: 1.05rem;
font-weight: 600;
color: #1f2937;
margin-bottom: 0.3rem;
}
.os-card-desc {
font-size: 0.82rem;
color: #6b7280;
line-height: 1.5;
}
/* ----- 快速链接 ----- */
.os-links {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1rem;
margin: 1rem 0 2rem 0;
}
.os-link-item {
display: flex;
align-items: center;
gap: 0.8rem;
padding: 0.8rem 1rem;
background: #f8f9fa;
border: 1px solid #e5e7eb;
border-radius: 6px;
text-decoration: none;
color: #1f2937;
transition: all 0.15s;
}
.os-link-item:hover {
background: #eef2ff;
border-color: #1a237e;
text-decoration: none;
color: #1a237e;
}
.os-link-icon {
font-size: 1.3rem;
width: 2rem;
text-align: center;
display: inline-block;
}
.os-link-text {
font-size: 0.95rem;
font-weight: 500;
color: #1f2937;
}
/* ----- 内容页正文 ----- */
.mw-body {
line-height: 1.8;
color: #1f2937;
}
.mw-body h2 {
font-size: 1.35rem;
font-weight: 600;
color: #1a237e;
margin-top: 2rem;
padding-bottom: 0.3rem;
border-bottom: 1px solid #e5e7eb;
}
.mw-body h3 {
font-size: 1.1rem;
font-weight: 600;
color: #374151;
}
/* ----- 表格 ----- */
.mw-body table.wikitable {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
font-size: 0.9rem;
}
.mw-body table.wikitable th {
background: #1a237e;
color: #fff;
padding: 0.65rem 1rem;
text-align: left;
font-weight: 600;
}
.mw-body table.wikitable td {
padding: 0.55rem 1rem;
border: 1px solid #e0e4e8;
}
.mw-body table.wikitable tr:nth-child(even) {
background: #f9fafb;
}
.mw-body table.wikitable tr:hover {
background: #eef2ff;
}