
/* 头部样式 - 增强透明度的毛玻璃效果 */

/* 网站头部样式 */
.site-header {
    /* 背景：白色，10%不透明度（极透明） */
    background: rgba(255, 255, 255, 0.06);

    /* 背景模糊效果：10px模糊半径 */
    backdrop-filter: blur(6px);

    /* 边框：1px实线，白色 %不透明度 */
    border: 1px solid rgba(255, 255, 255, 0.4);

    /* 针对Webkit内核浏览器的背景模糊（如Safari） */
    -webkit-backdrop-filter: blur(15px);

    /* 阴影：使用CSS变量定义的阴影效果 */
    box-shadow: var(--shadow);

    /* 定位方式：粘性定位（滚动时固定顶部） */
    position: sticky;

    /* 距离顶部：0（固定在顶部） */
    top: 0;

    /* 层级：100（确保在其他元素上方） */
    z-index: 100;

    /* 内边距：上下15px，左右0 */
    padding: 15px 0;

    /* 底部边框：2px实线，白色10%不透明度 */
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}


.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* PC端导航 */
.desktop-nav {
    display: flex;
    list-style: none;
    gap: 15px;
}
.desktop-nav a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
}
.desktop-nav a:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* 移动端资料下载按钮 */
.mobile-download-btn {
    display: none;
    padding: 10px 20px;
    background: rgba(0, 102, 204, 0.7);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}
.mobile-download-btn:hover {
    background: rgba(0, 85, 170, 0.8);
    transform: translateY(-1px);
}

.nav-logo {
    height: 60px;
    transition: transform 0.3s ease;
}

/* 响应式处理 */
@media (max-width: 795px) {
    .desktop-nav {
        display: none;
    }
    .mobile-download-btn {
        display: block;
    }
    .nav-logo {
        transform: scale(0.8);
    }
    .site-header {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(12px);
    }
}

/* 新增375px断点 */
@media (max-width: 375px) {
    .mobile-download-btn {
        display: none;
    }
    .site-header {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(8px);
    }
}


/* 导航排版样式 */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
    position: relative;
}

.main-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 0;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}


