/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f0f4f8;
}


/* 广告声明的样式 */
.advertising-disclosure {
    background-color: white; /* ✅ 背景色为白色 */
    color: black; /* ✅ 字体颜色为黑色 */
    padding: 10px 20px;
    text-align: center;
    font-size: 0.8rem;
    border-bottom: 1px solid #ddd; /* 添加下边框用于分隔 */
}

/* 广告声明中的链接样式 */
.advertising-disclosure .disclosure-link {
    color: #3498db; /* 链接为蓝色 */
    text-decoration: underline;
    margin-left: 5px;
    font-weight: bold;
}

.advertising-disclosure .disclosure-link:hover {
    text-decoration: none;
    color: #2980b9; /* 鼠标悬停时变为深蓝色 */
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 20px;
    background-color: white;
    border-bottom: 3px solid #e0e0e0; /* 更粗的底线 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加阴影 */
}

/* 汉堡菜单按钮样式 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s;
}

/* 确保在 PC 端时导航菜单显示 */
.nav-links ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: auto;
}

.nav-links > ul > li {
    white-space: nowrap;
}

/* 响应式布局：当宽度小于 768px 时 */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* 在移动端显示汉堡菜单按钮 */
    }
    .nav-links ul {
        display: none; /* 移动端默认隐藏菜单 */
        flex-direction: column;
    }
    .nav-links.active ul {
        display: flex;
    }
}

/* PC 端菜单显示：确保在 PC 端显示菜单 */
@media (min-width: 769px) {
    .nav-links ul {
        display: flex;
        flex-direction: row;
    }
    .hamburger {
        display: none;
    }
}

