/* 导航栏相关样式 */
header {
    height: 70px;
    box-sizing: border-box;
    border-bottom: 1px solid #222;
}

.header-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    box-sizing: border-box;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #f0b90b;
}

.nav {
    display: flex;
    align-items: center;
}

.nav a, .nav button {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
}

.nav .signup-btn {
    background-color: #00CFFD;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* Language Selector Styles */
.header-right {
    position: relative;
    margin-left: 20px;
}

.language {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.language-icon {
    margin-left: 8px;
}
.language-icon img {
    width: 24px;
    vertical-align: middle;
}

/* 移除 hover 样式，改用 JavaScript 控制 */
.header-right ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1c1c1c;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 4px;
    width: 160px;
    border: 1px solid #333;
    z-index: 10;
    margin-top: 2px;
}

.header-right ul.show {
    display: block;
}

.header-right ul li {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.header-right ul li:hover {
    background-color: #333;
}

.header-right ul li img {
    width: 24px;
    height: auto;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .nav a[href*="login"], .nav a[href*="reg_mobile"] {
        display: none;
    }
    
    /* 同时隐藏已登录用户的信息区域 */
    .user-info {
        display: none;
    }
    display: flex;
    align-items: center;
    gap: 10px;
}

.username {
    font-weight: bold;
    color: #333;
}

.user-id {
    font-size: 12px;
    color: #666;
}

.logout-btn {
    color: #ff4444;
    text-decoration: none;
    font-size: 14px;
}

.logout-btn:hover {
    text-decoration: underline;
}
/* 自定义皮肤样式 */
.dark-msg {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

.dark-msg .layui-layer-content {
    background-color: #000000 !important;
    color: #ffffff !important;
}
.customer-service {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    z-index: 1000;
}

.customer-service img {
    width: 100%;
    height: auto;
}
}