Files
labweb/public/css/help.css
2025-12-16 11:39:15 +08:00

625 lines
12 KiB
CSS

.wrapper {
width: 90%;
margin: 0 auto;
box-sizing: border-box;
}
/* header */
.header {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 5% 0 2%;
gap: 20px;
background-color: #2D6B7D;
}
.header .logo {
display: flex;
flex: 1 1 auto;
max-width: 55%;
min-width: 0;
align-items: center;
margin: 0;
border-radius: 20px;
font-size: 120%;
font-weight: 700;
}
.header .logo img {
height: 80px;
width: auto;
object-fit: contain;
display: block;
}
.header .logo .title {
margin-left: 2%;
width: auto;
display: flex;
flex-direction: row;
align-items: baseline;
gap: 8px;
flex-wrap: wrap;
overflow: hidden;
}
.header .logo .title h3 {
font-size: 110%;
color: white;
font-weight: 600;
margin: 0;
white-space: normal;
line-height: 1.2;
}
.header .logo .title p {
font-size: 80%;
color: white;
margin: 0;
white-space: normal;
line-height: 1.2;
}
.header .nev {
flex: 0 1 auto;
height: 100%;
min-width: 0;
}
.header .nev .nev-child-1 {
display: flex;
width: 100%;
height: 100%;
justify-content: flex-end;
align-items: center;
}
.header .nev-child-1 li {
padding: 1% 2%;
border-radius: 10px;
position: relative;
list-style: none;
}
/* 鼠标悬停导航栏 */
.header li:hover a {
color: black;
}
.header .icon-jiantou_shang {
display: none;
}
.header li:hover .icon-jiantou_xia {
display: none;
}
.header li:hover .icon-jiantou_shang {
display: inline-block;
}
/* 箭头图标对齐样式 */
.header .icon-jiantou_xia,
.header .icon-jiantou_shang {
font-size: 12px;
vertical-align: middle;
line-height: 1;
margin-left: 4px;
}
.header a {
font-size: 150%;
font-weight: 700;
color: white;
display: inline-flex;
align-items: center;
gap: 5px;
}
.header .nev-child-2 {
display: none;
position: absolute;
top: 70%;
left: 50%;
transform: translateX(-50%) translateY(-10px);
background: linear-gradient(135deg, #ffffff 0%, #f8fbfc 100%);
border-radius: 12px;
box-shadow: 0 12px 35px rgba(46, 90, 97, 0.2);
border: 1px solid rgba(46, 90, 97, 0.08);
overflow: hidden;
z-index: 9999;
opacity: 0;
visibility: hidden;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
margin-top: 8px;
min-width: 200px;
}
/* 下拉菜单顶部小箭头 */
.header .nev-child-2::before {
content: '';
position: absolute;
top: -8px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 8px solid #ffffff;
filter: drop-shadow(0 -2px 4px rgba(46, 90, 97, 0.1));
}
.header .nev-child-2 li {
width: 100%;
background-color: transparent;
text-align: left;
border-bottom: 1px solid rgba(46, 90, 97, 0.08);
font-weight: 400;
transition: all 0.2s ease;
}
.header .nev-child-2 li:nth-last-child(1) {
border-bottom: none;
}
.header .nev-child-2 li a {
display: flex;
align-items: center;
padding: 14px 10px;
color: #2E5A61;
text-decoration: none;
font-size: 100%;
font-weight: 500;
position: relative;
transition: all 0.2s ease;
white-space: nowrap;
}
.header .nev-child-2 li a:before {
content: '';
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 0;
z-index: -1;
}
.header .nev-child-2 li:hover {
background-color: rgba(71, 183, 190, 0.05);
transform: translateX(3px);
}
.header .nev-child-2 li:hover a {
color: #2E5A61;
}
.header .nev-child-2 li:hover a:before {
width: 4px;
}
/* 每个菜单项的特色样式 */
.header .nev-child-2 li:nth-child(1):hover {
background: linear-gradient(90deg, rgba(255, 193, 7, 0.1), transparent);
}
.header .nev-child-2 li:nth-child(2):hover {
background: linear-gradient(90deg, rgba(220, 53, 69, 0.1), transparent);
}
.header .nev-child-2 li:nth-child(3):hover {
background: linear-gradient(90deg, rgba(255, 87, 34, 0.1), transparent);
}
.header .nev-child-2 li:nth-child(4):hover {
background: linear-gradient(90deg, rgba(76, 175, 80, 0.1), transparent);
}
.header .nev-child-2 li:nth-child(5):hover {
background: linear-gradient(90deg, rgba(156, 39, 176, 0.1), transparent);
}
/* 菜单项动画序列 */
.header li:hover .nev-child-2 li {
animation: slideInFromLeft 0.3s ease forwards;
opacity: 0;
transform: translateX(-20px);
}
.header li:hover .nev-child-2 li:nth-child(1) { animation-delay: 0.1s; }
.header li:hover .nev-child-2 li:nth-child(2) { animation-delay: 0.15s; }
.header li:hover .nev-child-2 li:nth-child(3) { animation-delay: 0.2s; }
.header li:hover .nev-child-2 li:nth-child(4) { animation-delay: 0.25s; }
.header li:hover .nev-child-2 li:nth-child(5) { animation-delay: 0.3s; }
@keyframes slideInFromLeft {
to {
opacity: 1;
transform: translateX(0);
}
}
/* 下拉菜单显示动画 */
.header li:hover .nev-child-2 {
display: block;
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
}
.help-container {
background: #eff5ff;
padding: 20px 0;
box-sizing: border-box;
}
.help-container .wrapper {
margin: 0 auto;
display: flex;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* 主内容区域 */
.main-content {
flex: 1;
background: white;
box-sizing: border-box;
overflow-y: auto;
height: calc(100vh - 100px);
}
.content-header {
background: white;
padding: 40px 60px;
color: #333;
text-align: center;
position: relative;
overflow: hidden;
border-bottom: 1px solid #e9ecef;
}
.content-header::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 400px;
height: 400px;
background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
border-radius: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
}
.content-header h1 {
font-size: 36px;
font-weight: 700;
margin: 0 0 16px 0;
color: #2E5A61;
position: relative;
z-index: 2;
}
.content-header p {
font-size: 16px;
margin: 0;
color: #6c757d;
position: relative;
z-index: 2;
max-width: 600px;
margin: 0 auto;
line-height: 1.6;
}
.content-body {
padding: 40px 60px;
max-width: none;
margin: 0;
}
.section {
margin-bottom: 50px;
}
.section h2 {
font-size: 120%;
font-weight: 700;
color: #2E5A61;
margin: 0 0 10px 0;
padding-bottom: 5px;
border-bottom: 2px solid #e9ecef;
}
.section h3 {
font-size: 20px;
font-weight: 600;
color: #2E5A61;
margin: 30px 0 15px 0;
}
.section p {
line-height: 1.8;
color: #495057;
}
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin: 30px 0;
}
.feature-card {
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 12px;
padding: 25px;
transition: all 0.3s ease;
}
.feature-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(74, 144, 164, 0.15);
border-color: #6BC8D1;
}
.feature-card h4 {
font-size: 18px;
font-weight: 600;
color: #4A90A4;
margin: 0 0 12px 0;
}
.feature-card p {
line-height: 1.6;
color: #6c757d;
margin: 0;
}
.step-list {
counter-reset: step-counter;
list-style: none;
padding: 0;
margin: 20px 0;
}
.step-list li {
counter-increment: step-counter;
margin-bottom: 20px;
padding-left: 50px;
position: relative;
}
.step-list li::before {
content: counter(step-counter);
position: absolute;
left: 0;
top: 0;
width: 30px;
height: 30px;
background: linear-gradient(135deg, #4A90A4, #6BC8D1);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 14px;
}
.highlight-box {
background: linear-gradient(135deg, rgba(74, 144, 164, 0.1), rgba(107, 200, 209, 0.1));
border-left: 4px solid #4A90A4;
padding: 20px;
margin: 20px 0;
border-radius: 0 8px 8px 0;
}
.highlight-box h4 {
color: #4A90A4;
margin: 0 0 10px 0;
font-size: 16px;
font-weight: 600;
}
.highlight-box p {
margin: 0;
color: #495057;
}
/* 左侧边栏导航 */
.sidebar-nav {
width: 20%;
min-width: 250px;
background: #f8f9fa;
height: calc(100vh - 100px);
flex-shrink: 0;
overflow-y: auto;
border-right: 1px solid #e9ecef;
}
/* 侧边栏头部 */
.sidebar-header {
padding: 20px 20px 15px 20px;
border-bottom: 1px solid #e9ecef;
background: #f8f9fa;
}
.sidebar-header h3 {
margin: 0;
font-size: 120%;
font-weight: 700;
color: #2E5A61;
text-align: left;
}
/* 导航分类 */
.nav-section {
margin-bottom: 0;
}
.nav-section-title {
font-size: 120%;
font-weight: 700;
color: #6c757d;
text-transform: uppercase;
letter-spacing: 0.5px;
margin: 0;
padding: 15px 20px 8px 20px;
background: #f8f9fa;
border-bottom: 1px solid #e9ecef;
}
.nav-section-list {
list-style: none;
padding: 0;
margin: 0;
background: white;
}
.nav-section-list li {
margin: 0;
border-bottom: 1px solid #f1f3f4;
}
.nav-section-list li:last-child {
border-bottom: none;
}
.nav-section-list a {
display: block;
color: #495057;
text-decoration: none;
font-size: 100%;
font-weight: 400;
padding: 12px 20px 12px 30px;
transition: all 0.2s ease;
position: relative;
border-left: 3px solid transparent;
}
.nav-section-list a:hover {
background: rgba(74, 144, 164, 0.08);
color: #4A90A4;
border-left-color: #4A90A4;
}
.nav-section-list a.active {
background: rgba(74, 144, 164, 0.12);
color: #4A90A4;
border-left-color: #4A90A4;
font-weight: 500;
}
.nav-section-list a.active::before {
content: '';
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
width: 0;
height: 0;
border-left: 4px solid #4A90A4;
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
}
/* 界面演示样式 */
.demo {
border-radius: 8px;
padding: 10px 0px;
}
.demo_title {
color: #2E5A61;
font-weight: 600;
padding: 5px 20px;
margin-left: 20px;
border-left: 4px solid #4A90A4;
border-radius: 6px 0 0 6px;
font-size: 110%;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
margin-bottom: 10px;
}
.demo_title:hover {
background: rgba(74, 144, 164, 0.08);
}
.demo-image {
text-align: center;
margin-top: 20px;
width: 100%;
}
.demo-img {
border: 1px solid #e9ecef;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
width: 80%;
max-width: 800px;
}
.demo p {
padding: 0 30px;
}
.demo a {
color: #3366CC;
text-decoration: 1px underline;
}
.demo a:hover {
color: #254E9C;
font-weight: 700;
}
/* 滚动条样式 */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #8b8b8b;
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: #636363;
}
/* copyright */
.copyright {
width: 100%;
margin: 0 auto;
margin-bottom: 20px;
}
.copyright .bottom {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
margin: 0 auto;
padding-top: 40px;
padding-bottom: 40px;
background-color: #1E3A4A;
}
.copyright .bottom p {
margin: 0 20px;
color: white;
}