* {
margin: 0;
padding: 0;
color: inherit;
text-decoration: none;
box-sizing: border-box;
text-size-adjust: 100%;
-webkit-text-size-adjust: 100%; /* iOS Safari */
-moz-text-size-adjust: 100%; /* 老版本Firefox */
}
ul, ol {
margin-left: 1em;
padding-left: 2.5em;
}   /* 列表 marker */
blockquote {
margin-left: 3em;
} /* 引用左侧竖线 */
figure {
margin: 0;
} /* 图片居中不跑偏 */
body {
font-family:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
//background: linear-gradient(135deg, #ddd 0%, #fff 100%);
background: #eff7fe;
font-size: 1em;
}
/*======== 导航栏默认 ========*/
.导航栏默认 {
background: rgba(255, 255, 255, 1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
border-bottom: 1px solid rgba(255, 255, 255, 1);
white-space: nowrap;
}
.导航栏默认 .导航容器 {
max-width: 1000px;
margin: 0 auto;
padding: 0 20px;
display: flex;
justify-content: space-between;
align-items: center;
height: 70px;
}
.导航栏默认 .标志 {
font-size: 24px;
font-weight: 700;
color: #2c3e50;
text-decoration: none;
letter-spacing: -0.5px;
padding: 16px 6px;
}
.导航栏默认 .导航菜单 {
display: flex;
list-style: none;
gap: 5px;
}
.导航栏默认 .导航菜单 a {
display: inline-block;
text-decoration: none;
color: #34495e;
font-size: 20px;
font-weight: 500;
transition: all 1s ease;
position: relative;
padding: 18px 14px;
}
.导航栏默认 .导航菜单 a:hover {
color: #1abc9c;
}
.导航栏默认 .导航菜单 a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: #1abc9c;
transition: width 0.2s ease;
}
.导航栏默认 .导航菜单 a:hover::after {
width: 100%;
}
.导航栏默认 .汉堡 {
display: none;
flex-direction: column;
cursor: pointer;
padding: 8px;
background: rgba(26, 188, 156, 0.1);
border-radius: 6px;
transition: background 0.3s;
}
.导航栏默认 .汉堡:hover {
background: rgba(26, 188, 156, 0.2);
}
.导航栏默认 .汉堡 span {
width: 25px;
height: 3px;
background: #1abc9c;
margin: 3px 0;
transition: 0.5s;
border-radius: 2px;
}
/*======== 导航栏平均 ========*/
.导航栏平均 {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
background: #194173;
box-shadow: 0 1px 1px rgba(0,0,0,.2);
}
.导航栏平均 .导航容器 {
max-width: 1024px;
margin: 0 auto;
padding: 0;
display: flex;
align-items: stretch;
height: auto;
}
.导航栏平均 .标志 {
display: none;
}
.导航栏平均 .导航菜单 {
flex: 1;
display: flex;
gap: 0;
margin: 0;
padding: 0;
list-style: none;
}
.导航栏平均 li {
flex: 1;
}
.导航栏平均 .导航菜单 a {
line-height: 68px;
font-size: 24px;
color: #fff;
text-align: center;
display: block;
width: 100%;
padding: 0;
transition: background 0s;
}
.导航栏平均 .导航菜单 a:hover {
background: #ff6600;
}
.导航栏平均 .汉堡 {
display: none !important;
}
/*======== 导航栏两种 ========*/
.导航栏两种 {
background: rgba(255, 255, 255, 1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
border-bottom: 1px solid rgba(255, 255, 255, 1);
white-space: nowrap;
}
.导航栏两种 .导航容器 {
max-width: 1000px;
margin: 0 auto;
padding: 0 20px;
display: flex;
justify-content: space-between;
align-items: center;
height: 70px;
}
.导航栏两种 .标志 {
font-size: 24px;
font-weight: 700;
color: #2c3e50;
text-decoration: none;
letter-spacing: -0.5px;
padding: 16px 6px;
}
.导航栏两种 .导航菜单 {
display: flex;
list-style: none;
gap: 5px;
}
.导航栏两种 .导航菜单 a {
display: inline-block;
text-decoration: none;
color: #34495e;
font-size: 20px;
font-weight: 500;
transition: all 1s ease;
position: relative;
padding: 18px 14px;
}
.导航栏两种 .导航菜单 a:hover {
color: #1abc9c;
}
.导航栏两种 .导航菜单 a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: #1abc9c;
transition: width 0.2s ease;
}
.导航栏两种 .导航菜单 a:hover::after {
width: 100%;
}
.导航栏两种 .汉堡 {
display: none;
flex-direction: column;
cursor: pointer;
padding: 8px;
background: rgba(26, 188, 156, 0.1);
border-radius: 6px;
transition: background 0.3s;
}
.导航栏两种 .汉堡:hover {
background: rgba(26, 188, 156, 0.2);
}
.导航栏两种 .汉堡 span {
width: 25px;
height: 3px;
background: #1abc9c;
margin: 3px 0;
transition: 0.5s;
border-radius: 2px;
}
/* 菜单蒙层：默认隐藏 */
.菜单蒙层{
position: fixed;
inset: 0;                     /* 上右下左全 0 */
background: rgba(0,0,0,.45);  /* 45% 灰黑，可调 */
z-index: 999;                 /* 低于导航栏 1000，高于主体 */
display: none;                /* 默认不出现 */
backdrop-filter: blur(2px);   /* 模糊背景，可选 */
cursor: pointer;              /* 明确显示可点击 */
}
/* 当菜单激活时显示菜单蒙层 */
.菜单蒙层.show{
display: block;
}
/*======== 主容器 ========*/
.主容器 {
margin-top: 70px;
padding: 1px;
min-height: 78vh;
}
.内容区 {
width: 100%;
max-width: 1000px;
margin: 0 auto;
min-height: 78vh;
background: rgba(255,255,255,1);
border-radius: 8px;
box-shadow: 0 1px 2px rgba(31,38,135,.1);
padding: 60px;
padding-bottom: 50px;
border: 1px solid rgba(255,255,255,.5);
overflow:hidden;
overflow-wrap:anywhere;
}
.页面标题 {
font-size: 24px;
margin-bottom: 12px;
color: #2c3e50;
padding: 15px 0;
text-align: center;
border-bottom: 2px solid #3498db;
}
.文章标题栏 {
text-align: center;
}
.文章标题栏 h1 {
font-size: 32px;
}
.文章标题栏 .副标题 {
margin-bottom: 5px;
color: #aaa;
font-size: 14px;
line-height: 2;
border-bottom: 2px solid #3498db;
}
.文章标题栏 span {
color: red;
}
.文章内容 {
font-size: 18px;
line-height: 1.8;
padding: 2px;
}
/*======== 分类过滤器 ========*/
.分类过滤器 {
display: inline-flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
max-width: 100%;
overflow: visible; //不需要滚动条
//white-space: nowrap;
overflow-x: auto;
margin: 5px 5px;
}
.分类链接 {
padding: 8px 12px;
font-size: 18px;
border-radius: 10px;
background: #ffffff;
color: #3498db;
border: 1px solid #3498db;
transition: all .3s;
text-decoration: none;
}
.分类链接:hover {
background: #3498db;
color: #ffffff;
//transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(52, 152, 219, .25);
}
.分类链接.全部激活,
.分类链接.激活 {
background: #3498db;
color: #ffffff;
border-color: #3498db;
box-shadow: 0 4px 10px rgba(52, 152, 219, .25);
}
.分类 {
margin: 18px 0;
font-size:18px;
line-height: 2;
}
/*======== 数据表格 ========*/
.表格容器 {
overflow-x: auto;
border-radius: 16px;
//border: 1px solid #3498db;
box-shadow: 0 2px 0px rgba(52,152,219,1);
}
.数据表格 {
width: 100%;
min-height: 50px;
border-collapse: separate;
border-spacing: 0;
background: white;
border-radius: 2px;
overflow: hidden;
}
.数据表格 th {
padding: 12px;
background: #3498db;
color: white;
font-weight: 500;
text-transform: uppercase;
font-size: 24px;
letter-spacing: 1px;
text-indent: 0em;
}
.数据表格 tr:nth-child(odd) {
background-color: #fff;
}
.数据表格 tr:nth-child(even) {
background-color: #f9f9f9;
}
.数据表格 tr:hover {
background: linear-gradient(to right, #f0f0f0, #f2f2f2);
color: #000;
}
.数据表格 td:first-child {
width: 100%;
}
.数据表格 td:first-child a {
padding-left: 0.5em;
display: block;
font-size: 18px;
line-height: 3;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
/* 操作列：自适应最小宽度 */
.数据表格 td.操作 {
white-space: nowrap;
text-align: right;
padding-right: 0.5em;
}
.数据表格 span {
padding: 0 12px;
font-size: 14px;
color: #ddd;
text-align: center;
}
.数据表格 .没有记录 {
color:red;
line-height: 2;
font-size: 24px;
text-indent: 1em;
}
/* ===== 按钮组容器 ===== */
.按钮组 {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 24px 8px;
padding: 10px 16px;
}
/* ===== 按钮基础样式===== */
.按钮 {
padding: 10px 20px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 18px;
transition: all .3s;
display: inline-block;
font-weight: 500;
box-shadow: 0 1px 1px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.1);
}
.按钮--主要 {
background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
color: white;
}
.按钮--主要:hover {
transform: translateY(-1px);
box-shadow: 0 7px 14px rgba(50,50,93,.1), 0 3px 6px rgba(0,0,0,.08);
}
.按钮--成功 {
background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
color: white;
}
.按钮--危险 {
background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
color: white;
}
.按钮--小 {
padding: 6px;
font-size: 16px;
}
@media (max-width: 500px) {
.按钮组 {
justify-content: space-between;
}
.按钮组 .按钮, .按钮组 * {
width: 45%;
text-align: center;
}
}
/*======== 表单 ========*/
.表单容器 {
max-width: 600px;
margin: 0 auto;
}
.表单组 {
margin-bottom: 24px;
}
.表单标签 {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: #2c3e50;
}
.表单控件 {
width: 100%;
padding: 12px 16px;
border: 1px solid #e2e8f0;
border-radius: 8px;
font-size: 18px;
transition: all .3s;
background: #f8fafc;
outline: none;
appearance: none;
}
.表单控件:focus {
border-color: #3498db;
box-shadow: 0 0 0 3px rgba(52,152,219,.2);
background: white;
}
.表单控件--文本域 {
min-height: 200px;
resize: vertical;
}
label {
margin: 10px;
line-height: 2;
font-size: 1.1em;
}
/*======== 登录 ========*/
.登录容器 {
max-width: 600px;
margin: 10px auto;
background: rgba(255,255,255,.9);
backdrop-filter: blur(10px);
padding: 50px;
border-radius: 10px;
box-shadow: 0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07);
border: 1px solid rgba(255,255,255,.5);
}
.登录标题 {
text-align: center;
margin-bottom: 30px;
color: #2c3e50;
font-size: 32px;
font-weight: 600;
}
/*======== 模态提示 ========*/
.模态提示 {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #000;
color: #fff;
padding: 20px 30px;
border-radius: 12px;
box-shadow: 0 12px 30px rgba(0,0,0,.2);
z-index: 2000;
font-size: 18px;
display: none;
white-space: nowrap;
}
/*======== 工具类 ========*/
.操作栏主轴 {
margin-bottom: 0px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 5px;
}
.操作栏 {
margin-bottom: 5px;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 5px;
}
.搜索框 {
font-size: 18px;
padding: 10px 16px;
border: 1px solid #e2e8f0;
border-radius: 10px;
width: 100%;
max-width: 500px;
background: #f8fafc;
transition: all .3s;
}
.搜索框:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 3px rgba(52,152,219,.2);
background: white;
}
/*======== 图片处理 ========*/
img{
max-width: 100%;
height: auto;
box-sizing: border-box;
display:block;
margin: auto;
}
img.zoomable{
cursor:zoom-in;
max-width:200px;
display:block;
margin:10px auto;
}
#imgOverlay{
display:none;
position:fixed;
inset:0;
background:rgba(0,0,0,.85);
cursor:zoom-out;
z-index:99999;
}
#imgOverlay img{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
width: auto;
height: auto;
max-width:100vw;
max-height:100vh;
}
/*======== 表格 ========*/
.表格 {
margin-top: 15px;
border-collapse: collapse;
border: 1px solid #aaa;
width: 100%;
border-spacing: 0;
white-space: nowrap;
}
.表格 table {
width: 100%;
}
.表格 th {
vertical-align: baseline;
padding: 8px;
background-color: #3F3F3F;
border: 1px solid #3F3F3F;
text-align: left;
color: #fff;
white-space: nowrap;
}
.表格 tr {
overflow: auto;
}
.表格 td {
vertical-align: text-top;
padding: 6px;
border: 1px solid #aaa;
white-space: nowrap;
}
.表格 tr:nth-child(odd) {
background-color: #f8f8f8;
}
.表格 tr:nth-child(even) {
background-color: #fff;
}
.表格 tr:nth-child(odd):hover,
.表格 tr:nth-child(even):hover {
background: #888;
color: #fff;
}
/*======== 页脚 ========*/
.footer{
padding: 12px 16px;
font-size: 16px;
color: #999;
text-align: center;
line-height: 1.6;
border-top: 1px solid #dbe0e8;
background: #e4e8eb
}
/*======== 响应式默认 ========*/
@media screen and (max-width: 960px) {
.导航栏默认 .汉堡 {
display: flex;
}
.导航栏默认 .导航菜单 {
position: fixed;
right: -100%;
top: 70px;
flex-direction: column;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
width: 200px;
max-width: 320px;
text-align: left;
transition: 0.3s;
box-shadow: 0 10px 27px rgba(0, 0, 0, 0.25);
gap: 0;
padding: 20px 0;
border-radius: 0 0 12px 12px;
max-height: calc(100vh - 73px);
overflow-y: auto; /* 允许垂直滚动 */
-webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
}
.导航栏默认 .导航菜单.激活 {
right: 0;
}
.导航栏默认 .导航菜单 a {
font-size: 24px;
display: block;
padding: 12px 24px;
}
.导航栏默认 .汉堡.激活 span:nth-child(2) {
opacity: 0;
background: rgba(255, 255, 255, 0.95);
}
.导航栏默认 .汉堡.激活 span:nth-child(1) {
transform: translateY(9px) rotate(45deg);
}
.导航栏默认 .汉堡.激活 span:nth-child(3) {
transform: translateY(-9px) rotate(-45deg);
}
/*======== 响应式两种 ========*/
.导航栏两种 {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
background: #194173;
box-shadow: 0 1px 1px rgba(0,0,0,.2);
}
.导航栏两种 .导航容器 {
max-width: 1024px;
margin: 0 auto;
padding: 0;
display: flex;
align-items: stretch;
height: auto;
}
.导航栏两种 .标志 {
display: none;
}
.导航栏两种 .导航菜单 {
flex: 1;
display: flex;
gap: 0;
margin: 0;
padding: 0;
list-style: none;
}
.导航栏两种 li {
flex: 1;
}
.导航栏两种 .导航菜单 a {
line-height: 70px;
font-size: 24px;
color: #fff;
text-align: center;
display: block;
width: 100%;
padding: 0;
transition: background 0s;
}
.导航栏两种 .导航菜单 a:hover {
background: #ff6600;
}
.导航栏两种 .导航菜单 a::after {
height: 0px;
background: #194173;
transition: width 0s ease;
}
.导航栏两种 .汉堡 {
display: none !important;
}
.文章标题栏 {
margin-top: 20px;
}
.文章标题栏 h1 {
font-size: 24px;
display: block;
}
.内容区 {
padding: 1px;
}
}