update file path

This commit is contained in:
2025-08-28 23:59:13 +08:00
parent f8976ee045
commit 682355231a
17 changed files with 3799 additions and 232 deletions

View File

@@ -12,6 +12,15 @@ body {
background-color: #ffffff;
}
li::marker {
unicode-bidi: isolate;
font-variant-numeric: tabular-nums;
text-transform: none;
text-indent: 0px !important;
text-align: start !important;
text-align-last: auto !important;
}
.container {
width: 90%;
max-width: 1400px;
@@ -548,7 +557,7 @@ footer .container {
.footer-brand h3 {
font-size: 1.8rem;
margin-bottom: 15px;
background: linear-gradient(135deg, #0077ff, #00aaff);
background: linear-gradient(135deg, #ccc, #ccc);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
@@ -990,6 +999,7 @@ footer .container {
}
}
/* 联系页面样式 */
.contact {
padding: 40px 0;
@@ -1381,4 +1391,42 @@ footer .container {
font-size: 0.9rem;
margin: 10px 0;
}
}
/* 帮助页面样式 */
.nav-item {
position: relative;
list-style: none;
}
.subnav {
display: none;
/* 默认隐藏 */
position: absolute;
top: 100%;
left: 0;
background: #fff;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
padding: 0;
margin: 0;
}
.subnav li {
padding: 0;
}
.subnav a {
display: block;
padding: 10px;
color: #333;
text-decoration: none;
}
.subnav a:hover {
background: #f0f0f0;
}
/* 当有active类时显示下拉菜单 */
.subnav.active {
display: block;
}

View File

@@ -0,0 +1,64 @@
// Help page navigation functionality
document.addEventListener('DOMContentLoaded', function() {
// Get all navigation links
const navLinks = document.querySelectorAll('.help-nav a');
const contentSections = document.querySelectorAll('.content-section');
// Hide all sections except the first one
contentSections.forEach((section, index) => {
if (index > 0) {
section.style.display = 'none';
}
});
// Add click event listeners to navigation links
navLinks.forEach(link => {
link.addEventListener('click', function(e) {
e.preventDefault();
const targetId = this.getAttribute('data-target');
const targetSection = document.getElementById(targetId);
if (targetSection) {
// Hide all sections
contentSections.forEach(section => {
section.style.display = 'none';
});
// Show the target section
targetSection.style.display = 'block';
// Scroll to the section
targetSection.scrollIntoView({ behavior: 'smooth' });
// Update active state in navigation
updateActiveNav(this);
}
});
});
// Function to update active navigation state
function updateActiveNav(activeLink) {
// Remove active class from all links
navLinks.forEach(link => {
link.classList.remove('active');
});
// Add active class to clicked link
activeLink.classList.add('active');
// If it's a sub-link, also activate the parent
if (activeLink.parentElement.parentElement.classList.contains('nav-sub')) {
const parentLink = activeLink.closest('li').previousElementSibling.querySelector('.nav-main');
if (parentLink) {
parentLink.classList.add('active');
}
}
}
// Initialize active state for the first link
const firstNavLink = document.querySelector('.help-nav a');
if (firstNavLink) {
firstNavLink.classList.add('active');
}
});