451 lines
9.4 KiB
CSS
451 lines
9.4 KiB
CSS
/* =============== 重置与基础 =============== */
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; line-height: 1.6; color: #333; background: #f5f5f5; }
|
|
img { max-width: 100%; height: auto; }
|
|
a { text-decoration: none; color: #333; transition: color 0.3s; }
|
|
a:hover { color: #1E9FFF; }
|
|
ul, ol { list-style: none; }
|
|
|
|
/* =============== 重构导航栏(彻底解决重合) =============== */
|
|
.main-header {
|
|
background: #fff;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.08);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 9999;
|
|
height: 60px;
|
|
transition: box-shadow 0.3s;
|
|
}
|
|
.main-header.scrolled {
|
|
box-shadow: 0 2px 15px rgba(0,0,0,0.12);
|
|
}
|
|
.header-container {
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.header-inner {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Logo区域 */
|
|
.logo-box {
|
|
flex: 0 0 180px;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.logo-link {
|
|
display: block;
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
color: #1E9FFF;
|
|
line-height: 1;
|
|
}
|
|
.logo-text {
|
|
display: inline-block;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* 导航菜单 */
|
|
.nav-menu {
|
|
display: flex;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
}
|
|
.nav-item {
|
|
position: relative;
|
|
margin: 0 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.nav-item a {
|
|
color: #333;
|
|
font-size: 16px;
|
|
padding: 8px 0;
|
|
display: block;
|
|
line-height: 1;
|
|
transition: all 0.3s;
|
|
}
|
|
.nav-item a i {
|
|
margin-right: 5px;
|
|
font-size: 15px;
|
|
}
|
|
.nav-item.active a,
|
|
.nav-item:hover a {
|
|
color: #1E9FFF;
|
|
}
|
|
.nav-item::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 0;
|
|
height: 2px;
|
|
background: #1E9FFF;
|
|
transition: width 0.3s ease;
|
|
}
|
|
.nav-item:hover::after,
|
|
.nav-item.active::after {
|
|
width: 100%;
|
|
}
|
|
|
|
/* 汉堡菜单 */
|
|
.nav-trigger {
|
|
display: none;
|
|
width: 28px;
|
|
height: 22px;
|
|
cursor: pointer;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
z-index: 10000;
|
|
}
|
|
.nav-trigger span {
|
|
display: block;
|
|
height: 3px;
|
|
width: 100%;
|
|
background: #333;
|
|
border-radius: 2px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
.nav-trigger.active span:nth-child(1) {
|
|
transform: rotate(45deg) translate(5px, 5px);
|
|
}
|
|
.nav-trigger.active span:nth-child(2) {
|
|
opacity: 0;
|
|
}
|
|
.nav-trigger.active span:nth-child(3) {
|
|
transform: rotate(-45deg) translate(5px, -5px);
|
|
}
|
|
|
|
/* =============== 主体内容安全距离 =============== */
|
|
.main-wrapper {
|
|
padding-top: 120px; /* 60px导航 + 60px缓冲 */
|
|
transition: padding-top 0.3s;
|
|
}
|
|
.page-header {
|
|
background: linear-gradient(135deg, #1E9FFF 0%, #0062cc 100%);
|
|
color: #fff;
|
|
padding: 80px 0 60px;
|
|
text-align: center;
|
|
margin-bottom: 50px;
|
|
}
|
|
.page-title {
|
|
font-size: 42px;
|
|
font-weight: bold;
|
|
margin: 15px 0;
|
|
text-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
|
}
|
|
.page-desc {
|
|
font-size: 18px;
|
|
opacity: 0.9;
|
|
max-width: 700px;
|
|
margin: 0 auto;
|
|
}
|
|
.breadcrumb {
|
|
text-align: left;
|
|
margin-bottom: 20px;
|
|
}
|
|
.breadcrumb a {
|
|
color: rgba(255,255,255,0.85) !important;
|
|
}
|
|
.breadcrumb a:hover {
|
|
color: #fff !important;
|
|
}
|
|
.breadcrumb .layui-breadcrumb a cite {
|
|
color: rgba(255,255,255,0.85) !important;
|
|
}
|
|
|
|
/* =============== 面板通用样式 =============== */
|
|
.panel {
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 12px rgba(0,0,0,0.05);
|
|
padding: 25px;
|
|
margin-bottom: 25px;
|
|
}
|
|
.panel-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
.panel-header h2 {
|
|
font-size: 20px;
|
|
color: #333;
|
|
}
|
|
.panel-header h2 i {
|
|
margin-right: 8px;
|
|
color: #1E9FFF;
|
|
}
|
|
.more-link {
|
|
color: #1E9FFF;
|
|
font-size: 14px;
|
|
}
|
|
.more-link i {
|
|
font-size: 12px;
|
|
margin-left: 3px;
|
|
display: inline-block;
|
|
transition: transform 0.3s;
|
|
}
|
|
.more-link:hover i {
|
|
transform: translateX(3px);
|
|
}
|
|
|
|
/* =============== 返回顶部 =============== */
|
|
.go-top {
|
|
position: fixed;
|
|
bottom: 30px;
|
|
right: 20px;
|
|
width: 44px;
|
|
height: 44px;
|
|
line-height: 44px;
|
|
text-align: center;
|
|
background: rgba(30, 159, 255, 0.85);
|
|
color: #fff;
|
|
border-radius: 50%;
|
|
font-size: 18px;
|
|
cursor: pointer;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
|
|
display: none;
|
|
z-index: 999;
|
|
transition: all 0.3s;
|
|
}
|
|
.go-top:hover {
|
|
background: #1E9FFF;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* =============== 页脚 =============== */
|
|
.main-footer {
|
|
background: #2c3e50;
|
|
color: rgba(255,255,255,0.85);
|
|
padding-top: 60px;
|
|
margin-top: 50px;
|
|
}
|
|
.footer-top {
|
|
padding-bottom: 40px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.1);
|
|
}
|
|
.footer-top h3 {
|
|
color: #fff;
|
|
font-size: 18px;
|
|
margin-bottom: 20px;
|
|
position: relative;
|
|
padding-left: 15px;
|
|
}
|
|
.footer-top h3::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 4px;
|
|
height: 16px;
|
|
background: #1E9FFF;
|
|
border-radius: 2px;
|
|
}
|
|
.footer-desc {
|
|
line-height: 1.7;
|
|
margin: 15px 0;
|
|
font-size: 14px;
|
|
}
|
|
.social-links {
|
|
margin-top: 15px;
|
|
}
|
|
.social-links a {
|
|
display: inline-block;
|
|
width: 36px;
|
|
height: 36px;
|
|
line-height: 36px;
|
|
text-align: center;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,0.1);
|
|
color: #fff;
|
|
margin-right: 10px;
|
|
transition: all 0.3s;
|
|
}
|
|
.social-links a:hover {
|
|
background: #1E9FFF;
|
|
transform: translateY(-3px);
|
|
}
|
|
.footer-links li {
|
|
line-height: 2.5;
|
|
}
|
|
.footer-links a {
|
|
color: rgba(255,255,255,0.7);
|
|
transition: all 0.3s;
|
|
}
|
|
.footer-links a:hover {
|
|
color: #1E9FFF;
|
|
padding-left: 5px;
|
|
}
|
|
.contact-list li {
|
|
line-height: 2.2;
|
|
margin-bottom: 8px;
|
|
}
|
|
.contact-list i {
|
|
color: #1E9FFF;
|
|
margin-right: 8px;
|
|
width: 20px;
|
|
display: inline-block;
|
|
}
|
|
.contact-list a {
|
|
color: rgba(255,255,255,0.85);
|
|
}
|
|
.work-time p {
|
|
line-height: 2.2;
|
|
}
|
|
.time-range {
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
color: #1E9FFF;
|
|
margin: 5px 0;
|
|
}
|
|
.holiday {
|
|
font-size: 13px;
|
|
opacity: 0.7;
|
|
}
|
|
.footer-bottom {
|
|
padding: 20px 0;
|
|
text-align: center;
|
|
color: rgba(255,255,255,0.6);
|
|
font-size: 14px;
|
|
line-height: 1.8;
|
|
}
|
|
.icp-link {
|
|
color: #1E9FFF !important;
|
|
margin: 0 5px;
|
|
}
|
|
.copyright {
|
|
font-size: 13px;
|
|
opacity: 0.7;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
/* =============== 响应式断点 =============== */
|
|
@media (max-width: 992px) {
|
|
.logo-box { flex: 0 0 160px; }
|
|
.logo-link { font-size: 19px; }
|
|
.nav-item { margin: 0 12px; }
|
|
.nav-item a { font-size: 15px; }
|
|
.page-title { font-size: 36px; }
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
/* 汉堡菜单显示 */
|
|
.nav-trigger { display: flex; }
|
|
|
|
/* 导航菜单移动端样式 */
|
|
.nav-menu {
|
|
position: fixed;
|
|
top: 60px;
|
|
right: -100%;
|
|
width: 280px;
|
|
height: calc(100vh - 60px);
|
|
background: #fff;
|
|
flex-direction: column;
|
|
padding: 30px 0;
|
|
box-shadow: -2px 0 15px rgba(0,0,0,0.15);
|
|
transition: right 0.3s ease;
|
|
z-index: 9998;
|
|
overflow-y: auto;
|
|
}
|
|
.nav-menu.active {
|
|
right: 0;
|
|
}
|
|
.nav-item {
|
|
margin: 0;
|
|
width: 100%;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
padding: 0 30px;
|
|
}
|
|
.nav-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
.nav-item a {
|
|
padding: 15px 0;
|
|
font-size: 18px;
|
|
text-align: left;
|
|
display: block;
|
|
}
|
|
.nav-item::after { display: none; }
|
|
|
|
/* 移动端:二级菜单改为内嵌展开,不绝对定位 */
|
|
.nav-item.has-child > a::after { display: none; }
|
|
.sub-menu {
|
|
position: static;
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: none;
|
|
box-shadow: none;
|
|
background: #fafafa;
|
|
padding: 0;
|
|
border-radius: 0;
|
|
min-width: 0;
|
|
}
|
|
.sub-item a {
|
|
padding: 12px 30px 12px 50px;
|
|
font-size: 16px;
|
|
}
|
|
.sub-item a:hover,
|
|
.sub-item.active a { background: #f0f6ff; }
|
|
|
|
/* Logo缩小 */
|
|
.logo-box { flex: 0 0 140px; }
|
|
.logo-link { font-size: 18px; }
|
|
|
|
/* 防止背景滚动 */
|
|
body.nav-open {
|
|
overflow: hidden;
|
|
position: fixed;
|
|
width: 100%;
|
|
}
|
|
|
|
/* 内容区域调整 */
|
|
.main-wrapper { padding-top: 100px; }
|
|
.page-header { padding: 60px 0 45px; }
|
|
.page-title { font-size: 28px; }
|
|
.page-desc { font-size: 16px; }
|
|
.breadcrumb { text-align: center; }
|
|
|
|
/* 面板调整 */
|
|
.panel { padding: 20px 15px; }
|
|
.panel-header h2 { font-size: 18px; }
|
|
|
|
/* 返回顶部 */
|
|
.go-top {
|
|
bottom: 20px;
|
|
right: 15px;
|
|
width: 40px;
|
|
height: 40px;
|
|
line-height: 40px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* 页脚调整 */
|
|
.footer-top h3 { font-size: 17px; }
|
|
.footer-links li, .contact-list li { line-height: 2.2; }
|
|
.social-links a { width: 32px; height: 32px; line-height: 32px; }
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.logo-box { flex: 0 0 120px; }
|
|
.logo-link { font-size: 17px; }
|
|
.nav-item a { font-size: 17px; padding: 12px 0; }
|
|
.page-title { font-size: 26px; }
|
|
.main-wrapper { padding-top: 90px; }
|
|
.panel { padding: 18px 12px; }
|
|
} |