* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #1e9fff;
}

.logo a {
    color: #1e9fff;
}

.logo img {
    width: 26px;
    height: 26px;
    transform: translateY(-10%)
}

.logo span {
    color: #4D4D4D;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover {
    color: #1e9fff;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1e9fff;
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 移动端导航按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: relative;
    outline: none;
}

.mobile-menu-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.mobile-menu-btn span:nth-child(1) {
    top: 6px;
}

.mobile-menu-btn span:nth-child(2), 
.mobile-menu-btn span:nth-child(3) {
    top: 14px;
}

.mobile-menu-btn span:nth-child(4) {
    top: 22px;
}

/* 当汉堡菜单打开时 */
.mobile-menu-btn.open span:nth-child(1) {
    top: 14px;
    width: 0%;
    left: 50%;
}

.mobile-menu-btn.open span:nth-child(2) {
    transform: rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-menu-btn.open span:nth-child(4) {
    top: 14px;
    width: 0%;
    left: 50%;
}

/* 移动导航菜单 */
.mobile-nav-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: none;
}

.mobile-nav-menu {
    position: fixed;
    top: 70px;
    right: -260px;
    width: 260px;
    height: calc(100vh - 70px);
    background-color: #fff;
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.4s ease;
}

.mobile-nav-menu.open {
    right: 0;
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #f1f1f1;
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 25px;
    font-size: 16px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.mobile-nav-menu a:hover {
    background: #f5f7fa;
    color: #1e9fff;
}

/* 页脚样式 */
.footer {
    background-color: #2C3E55;
    color: white;
    text-align: center;
    padding: 1rem 1rem;
    font-size: 1.0em;
    margin-top: auto;
}

.footer p {
    line-height: 1.6;
}

.footer a {
    text-decoration: none;
    color: #FFFFFF;
}

.footer a:hover {
    color: #1e9fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}