You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
639 lines
12 KiB
639 lines
12 KiB
/* 导航菜单页面样式 */
|
|
.navigation-menu-page {
|
|
min-height: 100vh;
|
|
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
|
padding: 80px 0 60px;
|
|
}
|
|
|
|
.navigation-menu-page .container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* 页面标题区域 */
|
|
.page-header {
|
|
text-align: center;
|
|
margin-bottom: 60px;
|
|
animation: fadeInUp 0.8s ease-out;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 3rem;
|
|
font-weight: 700;
|
|
color: #2c3e50;
|
|
margin-bottom: 16px;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.page-subtitle {
|
|
font-size: 1.2rem;
|
|
color: #7f8c8d;
|
|
margin: 0;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* 导航网格布局 */
|
|
.navigation-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 30px;
|
|
margin-bottom: 60px;
|
|
}
|
|
|
|
/* 导航项目卡片 */
|
|
.nav-item {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
border-radius: 20px;
|
|
padding: 40px 30px;
|
|
text-align: center;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.nav-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
|
|
transition: left 0.5s;
|
|
}
|
|
|
|
.nav-item:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
transform: translateY(-10px);
|
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
|
|
background: rgba(255, 255, 255, 1);
|
|
}
|
|
|
|
/* 图标样式 */
|
|
.nav-icon {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin: 0 auto 24px;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.nav-item:hover .nav-icon {
|
|
transform: scale(1.1) rotate(5deg);
|
|
background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
|
|
}
|
|
|
|
.nav-icon svg {
|
|
width: 48px;
|
|
height: 48px;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.nav-item:hover .nav-icon svg {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* 标题样式 */
|
|
.nav-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
margin-bottom: 12px;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* 描述文字 */
|
|
.nav-description {
|
|
font-size: 1rem;
|
|
color: #7f8c8d;
|
|
line-height: 1.6;
|
|
margin-bottom: 24px;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* 链接按钮 */
|
|
.nav-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: #667eea;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
color: #764ba2;
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
/* 底部信息区域 */
|
|
.navigation-footer {
|
|
text-align: center;
|
|
padding: 40px 0;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.3);
|
|
animation: fadeInUp 0.8s ease-out 0.3s both;
|
|
}
|
|
|
|
.navigation-footer p {
|
|
font-size: 1.1rem;
|
|
color: #7f8c8d;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.contact-btn {
|
|
display: inline-block;
|
|
background: #1369a8;
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 30px;
|
|
border-radius: 50px;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* 动画效果 */
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.nav-item {
|
|
animation: fadeInUp 0.6s ease-out;
|
|
}
|
|
|
|
.nav-item:nth-child(1) { animation-delay: 0.1s; }
|
|
.nav-item:nth-child(2) { animation-delay: 0.2s; }
|
|
.nav-item:nth-child(3) { animation-delay: 0.3s; }
|
|
.nav-item:nth-child(4) { animation-delay: 0.4s; }
|
|
.nav-item:nth-child(5) { animation-delay: 0.5s; }
|
|
.nav-item:nth-child(6) { animation-delay: 0.6s; }
|
|
.nav-item:nth-child(7) { animation-delay: 0.7s; }
|
|
.nav-item:nth-child(8) { animation-delay: 0.8s; }
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.navigation-menu-page {
|
|
padding: 60px 0 40px;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.page-subtitle {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.navigation-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 20px;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.nav-item {
|
|
padding: 30px 20px;
|
|
}
|
|
|
|
.nav-icon {
|
|
width: 70px;
|
|
height: 70px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.nav-icon svg {
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.nav-description {
|
|
font-size: 0.95rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.navigation-menu-page .container {
|
|
padding: 0 15px;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.nav-item {
|
|
padding: 25px 15px;
|
|
}
|
|
|
|
.nav-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
}
|
|
|
|
.nav-icon svg {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
}
|
|
|
|
/* 深色模式支持 */
|
|
@media (prefers-color-scheme: dark) {
|
|
.navigation-menu-page {
|
|
background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
|
|
}
|
|
|
|
.page-title {
|
|
color: #ecf0f1;
|
|
}
|
|
|
|
.page-subtitle {
|
|
color: #bdc3c7;
|
|
}
|
|
|
|
.nav-item {
|
|
background: rgba(52, 73, 94, 0.8);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: rgba(52, 73, 94, 0.9);
|
|
}
|
|
|
|
.nav-title {
|
|
color: #ecf0f1;
|
|
}
|
|
|
|
.nav-description {
|
|
color: #bdc3c7;
|
|
}
|
|
|
|
.navigation-footer {
|
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.navigation-footer p {
|
|
color: #bdc3c7;
|
|
}
|
|
}
|
|
|
|
/* 打印样式 */
|
|
@media print {
|
|
.navigation-menu-page {
|
|
background: white;
|
|
padding: 20px 0;
|
|
}
|
|
|
|
.nav-item {
|
|
background: white;
|
|
box-shadow: none;
|
|
border: 1px solid #ddd;
|
|
break-inside: avoid;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.nav-icon {
|
|
background: #667eea;
|
|
}
|
|
|
|
.contact-btn {
|
|
background: #667eea;
|
|
}
|
|
}
|
|
|
|
/* ========================================
|
|
Block Navigation Menu 区块样式
|
|
======================================== */
|
|
|
|
/* 区块容器 */
|
|
.navigation-menu-block {
|
|
margin: 20px 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.navigation-menu-container {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* 导航菜单容器 */
|
|
.navigation-menu-nav {
|
|
position: relative;
|
|
}
|
|
|
|
/* 主菜单列表 */
|
|
.navigation-menu-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 40px;
|
|
background: transparent;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
overflow: visible;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* 菜单项 */
|
|
.navigation-menu-list li {
|
|
position: relative;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: none;
|
|
}
|
|
|
|
.navigation-menu-list li:last-child {
|
|
border-right: none;
|
|
}
|
|
|
|
/* 菜单链接 */
|
|
.navigation-menu-list a {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 0;
|
|
color: #666666;
|
|
text-decoration: none;
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
transition: all 0.3s ease;
|
|
white-space: nowrap;
|
|
position: relative;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
|
|
.navigation-menu-list a:hover {
|
|
background: transparent;
|
|
color: #333333;
|
|
}
|
|
|
|
/* 当前页面菜单项 */
|
|
.navigation-menu-list .active > a,
|
|
.navigation-menu-list .current-menu-item > a,
|
|
.navigation-menu-list .current-menu-parent > a {
|
|
background: transparent;
|
|
color: #333333;
|
|
border-bottom-color: #007cba;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 下拉箭头 */
|
|
.dropdown-arrow {
|
|
margin-left: 8px;
|
|
font-size: 12px;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.dropdown-arrow::before {
|
|
content: '▼';
|
|
}
|
|
|
|
/* 子菜单 */
|
|
.sub-menu {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
min-width: 200px;
|
|
background: white;
|
|
border-radius: 6px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: translateY(-10px);
|
|
transition: all 0.3s ease;
|
|
z-index: 1000;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 8px 0;
|
|
border: 1px solid #e9ecef;
|
|
}
|
|
|
|
/* 显示子菜单 */
|
|
.has-dropdown:hover .sub-menu {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.has-dropdown:hover .dropdown-arrow {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
/* 子菜单项 */
|
|
.sub-menu li {
|
|
border: none;
|
|
border-bottom: 1px solid #f1f3f4;
|
|
}
|
|
|
|
.sub-menu li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.sub-menu a {
|
|
padding: 12px 20px;
|
|
font-size: 13px;
|
|
color: #495057;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.sub-menu a:hover {
|
|
background: #f8f9fa;
|
|
color: #667eea;
|
|
padding-left: 25px;
|
|
}
|
|
|
|
/* 三级菜单 */
|
|
.sub-menu .sub-menu {
|
|
top: 0;
|
|
left: 100%;
|
|
margin-left: 1px;
|
|
}
|
|
|
|
/* 主题样式变体 */
|
|
.navigation-menu-block.theme-dark .navigation-menu-list {
|
|
background: #2c3e50;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.navigation-menu-block.theme-dark .navigation-menu-list li {
|
|
border-right-color: #34495e;
|
|
}
|
|
|
|
.navigation-menu-block.theme-dark .navigation-menu-list a {
|
|
color: #ecf0f1;
|
|
}
|
|
|
|
.navigation-menu-block.theme-dark .navigation-menu-list a:hover {
|
|
background: #34495e;
|
|
color: #3498db;
|
|
}
|
|
|
|
.navigation-menu-block.theme-dark .sub-menu {
|
|
background: #2c3e50;
|
|
border-color: #34495e;
|
|
}
|
|
|
|
.navigation-menu-block.theme-dark .sub-menu a {
|
|
color: #bdc3c7;
|
|
}
|
|
|
|
/* 对齐方式 */
|
|
.navigation-menu-block.align-center .navigation-menu-list {
|
|
justify-content: center;
|
|
}
|
|
|
|
.navigation-menu-block.align-right .navigation-menu-list {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* 边框样式 */
|
|
.navigation-menu-block.has-border {
|
|
border-bottom: 2px solid #e9ecef;
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
/* 无菜单时的提示信息 */
|
|
.navigation-menu-fallback {
|
|
padding: 40px 20px;
|
|
text-align: center;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
border: 2px dashed #dee2e6;
|
|
}
|
|
|
|
.no-menu-message {
|
|
color: #6c757d;
|
|
font-size: 16px;
|
|
margin: 0 0 15px 0;
|
|
}
|
|
|
|
.admin-notice {
|
|
margin: 0;
|
|
}
|
|
|
|
.admin-notice a {
|
|
color: #667eea;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.admin-notice a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.navigation-menu-block {
|
|
padding: 15px;
|
|
}
|
|
|
|
.navigation-menu-list {
|
|
flex-direction: column;
|
|
gap: 0;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.navigation-menu-list li {
|
|
border: none;
|
|
width: 100%;
|
|
border-bottom: 1px solid #e9ecef;
|
|
}
|
|
|
|
.navigation-menu-list li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.navigation-menu-list a {
|
|
padding: 15px 0;
|
|
font-size: 16px;
|
|
width: 100%;
|
|
border-bottom: 2px solid transparent;
|
|
white-space: normal; /* Allow text wrapping on mobile */
|
|
box-sizing: border-box; /* Ensure padding doesn't increase width */
|
|
overflow-wrap: break-word; /* Break long words if necessary */
|
|
}
|
|
|
|
.navigation-menu-list .current-menu-item > a,
|
|
.navigation-menu-list .active > a {
|
|
border-bottom-color: #007cba;
|
|
}
|
|
|
|
/* 移动端子菜单 */
|
|
.sub-menu {
|
|
position: static;
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: none;
|
|
box-shadow: none;
|
|
border: none;
|
|
border-radius: 0;
|
|
background: #f8f9fa;
|
|
margin-left: 20px;
|
|
display: none;
|
|
min-width: unset; /* Reset min-width for mobile */
|
|
width: auto;
|
|
}
|
|
|
|
.has-dropdown:hover .sub-menu {
|
|
display: block;
|
|
}
|
|
|
|
.sub-menu a {
|
|
padding: 10px 15px;
|
|
font-size: 14px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.dropdown-arrow::before {
|
|
content: '▶';
|
|
}
|
|
|
|
.has-dropdown:hover .dropdown-arrow::before {
|
|
content: '▼';
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.navigation-menu-list a {
|
|
padding: 10px 12px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.sub-menu a {
|
|
padding: 8px 12px;
|
|
font-size: 13px;
|
|
}
|
|
} |