打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
删除的内容 添加的内容
XP-jia留言 | 贡献
ds
标签已被回退
XP-jia留言 | 贡献
ds2
标签已被回退
第1行: 第1行:
/* ===========================
/* ===========================
全局字体设置
全局字体设置 - 简约版
=========================== */
=========================== */
body {
body {
第8行: 第8行:
"Microsoft YaHei", "WenQuanYi Micro Hei", "SimSun", "SimHei",
"Microsoft YaHei", "WenQuanYi Micro Hei", "SimSun", "SimHei",
"Songti SC", "KaiTi", "MingLiU", "PMingLiU", "Microsoft JhengHei", "Malgun Gothic";
"Songti SC", "KaiTi", "MingLiU", "PMingLiU", "Microsoft JhengHei", "Malgun Gothic";
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
background-color: #f8f9fa;
min-height: 100vh;
line-height: 1.6;
color: #333;
}
}


/* ===========================
/* ===========================
横幅标语样式
横幅标语样式 - 简约版
=========================== */
=========================== */
.banner {
.banner {
height: auto;
background: #2c3e50;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
color: white;
color: white;
font-weight: bold;
border-radius: 8px;
border-radius: 20px;
padding: 20px;
padding: 24px 32px;
text-align: center;
text-align: center;
margin: 20px 0;
margin: 20px 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden;
}

.banner::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
background-size: 20px 20px;
animation: float 20s linear infinite;
}

@keyframes float {
0% { transform: translate(0, 0) rotate(0deg); }
100% { transform: translate(-20px, -20px) rotate(360deg); }
}

.banner-text {
margin: 0;
line-height: 1.4;
position: relative;
z-index: 2;
}
}


.banner .chinese-text {
.banner .chinese-text {
font-size: 28px;
font-size: 24px;
font-weight: 700;
font-weight: 600;
margin-bottom: 8px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
}


.banner .english-text {
.banner .english-text {
font-size: 18px;
font-size: 16px;
font-weight: 500;
opacity: 0.9;
opacity: 0.95;
margin-top: 8px;
}
}


/* ===========================
/* ===========================
内容块样式 - 改进
内容块样式 - 简约
=========================== */
=========================== */
.content-box {
.content-box {
margin: 15px;
margin: 12px 0;
padding: 25px;
padding: 20px;
border-radius: 16px;
border-radius: 8px;
border: none;
background: white;
border: 1px solid #e1e5e9;
background: rgba(255, 255, 255, 0.9);
transition: all 0.2s ease;
backdrop-filter: blur(10px);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
position: relative;
overflow: hidden;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.content-box::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #667eea, #764ba2);
transform: scaleX(0);
transition: transform 0.3s ease;
}

.content-box:hover::before {
transform: scaleX(1);
}
}


.content-box h2 {
.content-box h2 {
position: relative;
font-size: 1.25rem;
padding-bottom: 12px;
font-weight: 600;
margin-bottom: 16px;
border-bottom: 2px solid #e0e0e0;
font-size: 1.3rem;
color: #2c3e50;
color: #2c3e50;
display: flex;
margin-bottom: 12px;
align-items: center;
padding-bottom: 8px;
border-bottom: 2px solid #ecf0f1;
gap: 10px;
}

.content-box h2::before {
font-size: 1.5em;
}
}


.content-box p {
.content-box p {
line-height: 1.7;
color: #555;
font-size: 0.95rem;
font-size: 0.95rem;
color: #555;
margin: 0;
margin-bottom: 0;
}
}


.content-box:hover {
.content-box:hover {
border-color: #bdc3c7;
transform: translateY(-8px) scale(1.02);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
background: rgba(255, 255, 255, 0.95);
}
}


/* ===========================
/* ===========================
网格布局 - 改进
网格布局 - 简约
=========================== */
=========================== */
.flex-container {
.flex-container {
display: grid;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 25px;
gap: 20px;
margin: 25px 0;
margin: 20px 0;
}
}


.homepage-section {
.homepage-section {
margin: 40px 0;
margin: 30px 0;
}
}


/* ===========================
/* ===========================
特殊分类样式
特殊区域样式 - 简约版
=========================== */
=========================== */
/* 知识掌握模型区域 */
/* 知识掌握模型区域 */
.content-box:first-of-type {
.content-box:first-of-type {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
background: #fff;
border-left: 4px solid #3498db;
color: white;
}

.content-box:first-of-type h2 {
color: white;
border-bottom-color: rgba(255,255,255,0.3);
}

.content-box:first-of-type p {
color: rgba(255,255,255,0.9);
}

.content-box:first-of-type .navbox {
background: rgba(255,255,255,0.1);
border-radius: 10px;
padding: 15px;
}
}


/* 最近更改区域 */
/* 最近更改区域 */
.content-box:nth-of-type(2) {
.content-box:nth-of-type(2) {
border-left: 5px solid #e74c3c;
border-left: 4px solid #e74c3c;
}
}


/* 哲学与思想区域 */
/* 哲学与思想 */
.homepage-section:nth-child(1) .content-box:nth-child(1) {
.homepage-section:nth-child(1) .content-box:nth-child(1) {
border-left: 5px solid #3498db;
border-left: 4px solid #3498db;
}
}


/* 文学与艺术区域 */
/* 文学与艺术 */
.homepage-section:nth-child(1) .content-box:nth-child(2) {
.homepage-section:nth-child(1) .content-box:nth-child(2) {
border-left: 5px solid #9b59b6;
border-left: 4px solid #9b59b6;
}
}


/* 技术与数据区域 */
/* 技术与数据 */
.homepage-section:nth-child(1) .content-box:nth-child(3) {
.homepage-section:nth-child(1) .content-box:nth-child(3) {
border-left: 5px solid #2ecc71;
border-left: 4px solid #2ecc71;
}
}


/* 工程与实践区域 */
/* 工程与实践 */
.homepage-section:nth-child(2) .content-box:nth-child(1) {
.homepage-section:nth-child(2) .content-box:nth-child(1) {
border-left: 5px solid #e67e22;
border-left: 4px solid #e67e22;
}
}


/* 数据与智能区域 */
/* 数据与智能 */
.homepage-section:nth-child(2) .content-box:nth-child(2) {
.homepage-section:nth-child(2) .content-box:nth-child(2) {
border-left: 5px solid #1abc9c;
border-left: 4px solid #1abc9c;
}
}


/* 软件与系统区域 */
/* 软件与系统 */
.homepage-section:nth-child(2) .content-box:nth-child(3) {
.homepage-section:nth-child(2) .content-box:nth-child(3) {
border-left: 5px solid #34495e;
border-left: 4px solid #34495e;
}
}


/* 学习与成长区域 */
/* 学习与成长 */
.homepage-section:nth-child(3) .content-box:nth-child(1) {
.homepage-section:nth-child(3) .content-box:nth-child(1) {
border-left: 5px solid #f39c12;
border-left: 4px solid #f39c12;
}
}


/* 管理与人文区域 */
/* 管理与人文 */
.homepage-section:nth-child(3) .content-box:nth-child(2) {
.homepage-section:nth-child(3) .content-box:nth-child(2) {
border-left: 5px solid #d35400;
border-left: 4px solid #d35400;
}
}


/* 竞赛与创造区域 */
/* 竞赛与创造 */
.homepage-section:nth-child(3) .content-box:nth-child(3) {
.homepage-section:nth-child(3) .content-box:nth-child(3) {
border-left: 5px solid #c0392b;
border-left: 4px solid #c0392b;
}
}


/* 站点与结构区域 */
/* 站点与结构 */
.content-box:last-of-type {
.content-box:last-of-type {
border-left: 5px solid #7f8c8d;
border-left: 4px solid #7f8c8d;
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
color: white;
}

.content-box:last-of-type h2 {
color: white;
border-bottom-color: rgba(255,255,255,0.3);
}

.content-box:last-of-type p {
color: rgba(255,255,255,0.9);
}
}


/* ===========================
/* ===========================
导航框样式
导航框样式 - 简约版
=========================== */
=========================== */
.navbox {
.navbox {
background: transparent;
background: #f8f9fa;
border: none;
border-radius: 6px;
margin: 10px 0;
padding: 12px;
margin: 12px 0;
border: 1px solid #e9ecef;
}
}


.navbox a {
.navbox a {
color: inherit;
color: #2980b9;
text-decoration: none;
text-decoration: none;
transition: color 0.2s ease;
padding: 4px 8px;
border-radius: 6px;
transition: all 0.3s ease;
display: inline-block;
}
}


.navbox a:hover {
.navbox a:hover {
color: #1a5276;
background: rgba(255,255,255,0.2);
text-decoration: underline;
transform: translateY(-2px);
}
}


第262行: 第173行:
=========================== */
=========================== */
.mw-redirect {
.mw-redirect {
color: #00b894;
color: #27ae60;
font-weight: 500;
}
}


/* ===========================
/* ===========================
响应式设计 - 改进
响应式设计 - 简约
=========================== */
=========================== */

/* 平板和大屏幕设备 */
@media screen and (min-width: 1024px) {
.flex-container {
grid-template-columns: repeat(3, 1fr);
}
.banner .chinese-text {
font-size: 32px;
}

.banner .english-text {
font-size: 20px;
}
}


/* 平板设备 */
/* 平板设备 */
@media screen and (max-width: 1024px) and (min-width: 768px) {
@media screen and (max-width: 1024px) {
.flex-container {
.flex-container {
grid-template-columns: repeat(2, 1fr);
grid-template-columns: repeat(2, 1fr);
第296行: 第191行:
.flex-container {
.flex-container {
grid-template-columns: 1fr;
grid-template-columns: 1fr;
gap: 20px;
gap: 16px;
}
}


.content-box {
.content-box {
margin: 10px 0;
padding: 16px;
padding: 20px;
margin: 8px 0;
}
}


.banner {
.banner {
padding: 20px;
padding: 16px;
margin: 15px 0;
margin: 16px 0;
}

.banner .chinese-text {
font-size: 20px;
}
}


.banner .chinese-text,
.banner .english-text {
.banner .english-text {
text-align: center;
font-size: 14px;
}
}
}
}
第317行: 第215行:
/* 小屏手机设备 */
/* 小屏手机设备 */
@media screen and (max-width: 480px) {
@media screen and (max-width: 480px) {
.banner .chinese-text {
font-size: 22px;
}

.banner .english-text {
font-size: 16px;
}

.content-box {
.content-box {
padding: 18px;
padding: 14px;
margin: 8px 0;
}
}


.content-box h2 {
.content-box h2 {
font-size: 1.2rem;
font-size: 1.1rem;
}
}
}


.banner .chinese-text {
/* 动画增强 */
font-size: 18px;
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
}
}

.content-box {
animation: fadeInUp 0.6s ease-out;
}

/* 为不同区块设置延迟动画 */
.homepage-section:nth-child(1) .content-box:nth-child(1) { animation-delay: 0.1s; }
.homepage-section:nth-child(1) .content-box:nth-child(2) { animation-delay: 0.2s; }
.homepage-section:nth-child(1) .content-box:nth-child(3) { animation-delay: 0.3s; }
.homepage-section:nth-child(2) .content-box { animation-delay: 0.4s; }
.homepage-section:nth-child(3) .content-box { animation-delay: 0.5s; }