.navbar {
    background-color: #f8f8f8;
    /* 设置导航栏背景颜色 */
    border-bottom: 1px solid #ddd;
    /* 设置导航栏底部边框 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* 添加阴影 */
}

.navbar-container {
    display: flex;
    /* 使用Flexbox布局 */
    justify-content: space-between;
    /* 两端对齐 */
    align-items: center;
    /* 垂直居中对齐 */
    max-width: 1600px;
    /* 设置最大宽度 */
    width: 100%;
    /* 设置宽度为100% */
    margin: 0 auto;
    /* 水平居中 */
    padding: 0 20px;
    /* 添加左右内边距 */
    box-sizing: border-box;
    /* 将内边距计入总宽度 */
    height: 60px;
    /* 设置导航栏高度 */
}

.navbar-left {
    display: flex;
    /* 使用Flexbox布局 */
    align-items: center;
    /* 垂直居中对齐 */
}

.logo a img {
    height: 40px;
    /* 设置LOGO高度 */
}

.navbar-links {
    display: flex;
    /* 使用Flexbox布局 */
    margin-left: 50px;
    /* 设置左侧外边距 */
}

.navbar-links a,
.navbar-right a {
    text-decoration: none;
    /* 去除链接下划线 */
    color: #333;
    /* 设置链接颜色 */
    font-weight: bold;
    /* 设置链接加粗 */
    padding: 20px 25px;
    /* 设置内边距 */
    display: inline-block;
    /* 设置为内联块元素 */
}

.navbar-right {
    display: flex;
    /* 使用Flexbox布局 */
    align-items: center;
    /* 垂直居中对齐 */
}

.dropdown {
    position: relative;
    /* 设置相对定位 */
}

.dropdown>a::after {
    content: '▼';
    /* 添加下拉箭头 */
    margin-left: 5px;
    /* 设置箭头左边距 */
    font-size: 0.8em;
    /* 设置箭头大小 */
}

.dropdown-content {
    display: none;
    /* 初始隐藏 */
    position: absolute;
    /* 绝对定位 */
    top: 100%;
    /* 从导航栏底部开始 */
    left: 0;
    /* 左对齐 */
    background-color: #fff;
    /* 设置背景颜色 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    /* 设置阴影 */
    z-index: 1;
    /* 设置层级 */
    min-width: 200px;
    /* 设置最小宽度 */
    border-radius: 4px;
    /* 设置圆角 */
    overflow: hidden;
    /* 隐藏溢出内容 */
}

.dropdown-content a {
    color: #333;
    /* 设置链接颜色 */
    padding: 12px 16px;
    /* 设置链接内边距 */
    text-decoration: none;
    /* 去除链接下划线 */
    display: block;
    /* 设置块元素 */
    transition: background-color 0.3s;
    /* 添加过渡效果 */
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    /* 设置鼠标滑过背景颜色 */
}

.dropdown:hover .dropdown-content {
    display: block;
    /* 鼠标滑过时显示下拉菜单 */
}

/* 保持下拉菜单显示 */
.dropdown:hover>a,
.dropdown-content:hover,
.dropdown:hover .dropdown-content {
    display: block;
    /* 确保下拉菜单在鼠标移动过程中保持显示 */
}

.footer {
    background-color: #f1f1f1;
    /* 设置页脚背景颜色 */
    padding: 20px;
    /* 设置页脚内边距 */
    text-align: center;
    /* 设置页脚文本居中 */
    border-top: 1px solid #ddd;
    /* 设置页脚顶部边框 */
    font-size: 12px;
}

.address-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    max-width: 1600px;
    margin: 0 auto;
}

.address-left,
.address-right {
    width: 48%;
}

.copyright {
    text-align: center;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        /* 改变 Flexbox 方向为垂直 */
        height: auto;
        /* 自适应高度 */
        padding: 10px;
        /* 调整内边距 */
    }

    .navbar-left {
        flex-direction: column;
        /* 改变 Flexbox 方向为垂直 */
        align-items: flex-start;
        /* 左对齐 */
        width: 100%;
        /* 占满宽度 */
    }

    .logo {
        margin-bottom: 10px;
        /* 添加底部间距 */
        width: 100%;
        /* 占满宽度 */
        text-align: center;
        /* 文本居中，这会使 logo 居中 */
    }

    .logo a {
        display: inline-block;
        /* 使 a 标签成为内联块级元素 */
    }

    .navbar-links {
        flex-direction: column;
        /* 改变 Flexbox 方向为垂直 */
        margin-left: 0;
        /* 移除左侧外边距 */
        width: 100%;
        /* 占满宽度 */
    }

    .navbar-links a,
    .navbar-right a {
        padding: 10px 0;
        /* 调整内边距 */
        width: 100%;
        /* 占满宽度 */
        text-align: left;
        /* 保持文本左对齐 */
    }

    .navbar-right {
        flex-direction: column;
        /* 改变 Flexbox 方向为垂直 */
        width: 100%;
        /* 占满宽度 */
        align-items: flex-start;
        /* 左对齐 */
    }

    .dropdown {
        width: 100%;
        /* 下拉菜单占满宽度 */
    }

    .dropdown-content {
        position: static;
        /* 改为静态定位 */
        box-shadow: none;
        /* 移除阴影 */
        width: 100%;
        /* 占满宽度 */
    }

    /* 移动端下拉菜单交互 */
    .dropdown:hover .dropdown-content {
        display: none;
        /* 鼠标滑过不显示下拉菜单 */
    }

    .dropdown.active .dropdown-content {
        display: block;
        /* 点击时显示下拉菜单 */
    }
}

/* 额外的小屏幕优化 */
@media (max-width: 480px) {
    .navbar-container {
        padding: 5px;
        /* 进一步减小内边距 */
    }

    .logo a img {
        height: 30px;
        /* 减小 LOGO 大小 */
    }
}