* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #1A1008;
    min-height: 100vh;
    color: #fff;
}

/* 导航栏样式 */
header {
    background-color: #352312;
    padding: 15px 250px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 6.7vh;
    display: flex;
    align-items: center;
}

nav {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

/* 导航内容基础样式 */
.nav-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    margin-left: 60px;
}

.nav-links a.active {
    color: #B88E5C;  /* 网站统一的金色 */
    text-decoration: none;
}

/* 激活状态的下划线 */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #B88E5C 20%, #B88E5C 80%, transparent);
    
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.nav-links a, .dropdown-toggle {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    position: relative;
    padding: 5px 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right .search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-right input {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 35px 5px 15px;  /* 为搜索图标留出空间 */
    color: #fff;
    border-radius: 20px;  /* 增加圆角 */
    font-size: 14px;
    width: 200px;
}

.nav-right .search-icon {
    position: absolute;
    right: 12px;
    color: #fff;
    opacity: 0.8;
    font-size: 14px;
}

.nav-right a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-right a:hover {
    opacity: 1;
}

/* 登录框样式 */
.login-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 51vh;
    padding: 20px;
    padding-left: 60%;
    /*background-image: url();*/
}

.layui-layer-dialog .layui-layer-content {
    color: #000 !important;
}

.login-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 20vw;  /* 为视窗宽度的22% */
    height: 43vh;
    display: flex;
    flex-direction: column;
}

.logo-container {
    text-align: center;
    margin-bottom: 4vh;  /* 使用 vh 单位 */
}

.logo-container img {
    height: 45px;
    width: auto;
}

.login-form {
    flex: 1;  /* 占据剩余空间 */
    display: flex;
    flex-direction: column;
}

.input-group {
    margin-bottom: 3vh;
    position: relative;
}

.input-group .input-box {
    width: 100%;
    padding: 12px 15px 12px 35px;  /* 左侧留出图标空间 */
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: 14px;
}

/* 输入框左侧图标 */
.input-group::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
}

/* 账号输入框图标 */
.input-group:first-child::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10z'/%3E%3C/svg%3E");
}

/* 密码输入框图标 */
.input-group:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
}

.forgot-password {
    position: absolute;
    right: 0;
    top: 100%;
    font-size: 12px;
    color: #B88E5C;
    text-decoration: none;
    margin-top: 5px;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #B88E5C;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 2vh;  /* 推到底部 */
    margin-bottom: 3vh;  /* 使用 vh 单位 */
}

.register-link {
    text-align: center;
    font-size: 14px;
}

.register-link span {
    color: #666;
}

.register-link a {
    color: #B88E5C;
    text-decoration: none;
    margin-left: 5px;
}


.footer-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 30px 0.2px;  
    background-color: #352312;
    height: 42vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;  
    align-items: center;
    text-align: center;
}


.footer-logo-social {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 10vh;  /* 设置顶部距离 */
    margin-bottom: auto;
}


.footer-bottom {
    margin-bottom: 1px;
}

.payment-methods {
    margin: 5px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.payment-methods img {
    height: 2vh;
    width: auto;
}

.payment-methods img:first-child {
    height: 2vh;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 8px;
    margin-bottom: 1px;
}

.footer-logo img {
    height: 35px;
    width: auto;
}

.social-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.social-links a {
    color: #fff;
    font-size: 2.5vh;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    width: 4vh;
    height: 4vh;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.8);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer-logo img {
        height: 30px;
    }
    
    .social-links {
        gap: 25px;
    }
    
    .social-links a {
        font-size: 2.2vh;
        width: 3.5vh;
        height: 3.5vh;
    }
}

@media (max-width: 480px) {
    .footer-logo img {
        height: 25px;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .social-links a {
        font-size: 2vh;
        width: 3vh;
        height: 3vh;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    header {
        padding: 10px 20px;  /* 调整header的内边距 */
    }

    .nav-right input {
        display: none; /* 移动端隐藏搜索框 */
    }

    .login-box {
        margin: 20px;
        padding: 20px;
    }

    .logo-container img {
        height: 28px;  /* 稍微调整logo大小 */
    }

    /* 调整输入框和按钮的内边距 */
    .input-group input,
    button {
        padding: 10px;
    }
}

/* 更小幕的适配 */
@media (max-width: 480px) {
    .logo img {
        height: 25px;
    }

    .nav-right {
        gap: 10px;
    }

    .login-box {
        padding: 15px;
    }

    .logo-container img {
        height: 30px;
    }
}

/* 确保在任何屏幕尺寸下登录框不会太宽 */
.login-box {
    max-width: min(400px, 90vw);
}

/* 导航栏 logo */
.logo {
    margin-right: 20px;
    padding-left: 20px;
}

.logo img {
    height: 30px;
    width: auto;
    display: block;
}

/* 登录框 logo */
.logo-container img {
    height: 45px;
    width: auto;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .logo-container img {
        height: 28px;  /* 稍微调整logo大小 */
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 25px;
    }
    
    .logo-container img {
        height: 30px;
    }
}

.payment-methods {
    margin: 40px 0;
}

.payment-methods img {
    max-width: 100%;
    height: auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .payment-methods img {
        padding: 0 15px;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer-logo-social {
        gap: 30px;
    }
    
    .payment-methods {
        margin: 30px 0;
    }
    
    .copyright {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .footer-logo-social {
        gap: 20px;
    }
    
    .payment-methods {
        margin: 20px 0;
    }
    
    .copyright {
        margin-top: 20px;
    }
}

.copyright {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer-content {
        padding-bottom: 3px;
    }
    
    .footer-bottom {
        margin-bottom: 1px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding-bottom: 2px;
    }
    
    .footer-bottom {
        margin-bottom: 1px;
    }
}

/* 移动端适配 */
@media (max-width: 1024px) {
    .login-container {
        padding-left: 50%;
    }
    
    .login-box {
        width: 35vw;  /* 在较小屏幕上适当增加宽度比例 */
    }
}

@media (max-width: 768px) {
    .login-container {
        justify-content: center;
        padding-left: 20px;
    }
    
    .login-box {
        width: 90vw;  /* 在移动端占据大部分宽度 */
        max-width: 400px;  /* 保留最大宽度限制 */
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer-logo-social {
        margin-top: 8vh;  /* 较小屏幕稍微减小距离 */
    }
}

@media (max-width: 480px) {
    .footer-logo-social {
        margin-top: 6vh;  /* 更小屏幕进一步减小距离 */
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .payment-methods {
        gap: 15px;
    }
    
    .payment-methods img {
        height: 7vh;
    }
    
    .payment-methods img:first-child {
        height: 2.5vh;
    }
}

@media (max-width: 480px) {
    .payment-methods {
        gap: 10px;
    }
    
    .payment-methods img {
        height: 6vh;
    }
    
    .payment-methods img:first-child {
        height: 2vh;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .payment-methods img {
        height: 15vh;
    }
    
    .payment-methods img:first-child {
        height: 2.5vh;
    }
}

@media (max-width: 480px) {
    .payment-methods img {
        height: 12vh;
    }
    
    .payment-methods img:first-child {
        height: 2vh;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .payment-methods img {
        height: 2.5vh;
    }
}

@media (max-width: 480px) {
    .payment-methods img {
        height: 2vh;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .payment-methods {
        margin: 12px 0;
    }
    
    .copyright {
        margin-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .payment-methods {
        margin: 10px 0;
    }
    
    .copyright {
        margin-bottom: 3px;
    }
}

/* 添加睛图标样式 */
.password-toggle {
    position: absolute;
    right: 10px;  /* 调整右侧距离 */
    top: 0;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #999;
}

.password-toggle i {
    position: absolute;  /* 确保图标重叠 */
    font-size: 16px;
    transition: all 0.3s;
}

.password-toggle:hover {
    color: #666;
}

/* 确保密码输入框有足够的右侧内边距 */
.input-group input[type="password"] {
    padding-right: 35px;  /* 为眼睛图标留出空间 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .password-toggle {
        right: 8px;
    }

    .password-toggle i {
        font-size: 14px;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-right a {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .nav-right a {
        font-size: 16px;
    }
}

.language-select {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 20px 5px 5px;  /* 为下拉图标留出空间 */
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-chevron-down' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 12px;
}

.language-select option {
    background-color: #352312;
    color: #fff;
    padding: 5px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .language-select {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .language-select {
        font-size: 12px;
    }
}

/* 导航栏下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #352312;
    min-width: 160px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        display: none;
        min-width: auto;
        border: none;
        padding: 0;
        margin-left: 20px;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* 下划线效果 */
.nav-links a::after, .dropdown-toggle::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* 悬停时的下划线效果 */
.nav-links a:hover::after, .dropdown-toggle:hover::after {
    width: 100%;
}

/* 确保下拉菜单项不显示下划线 */
.dropdown-menu a::after {
    display: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-links {
        margin-left: 30px;
    }
}

/* 移动端适配 */
@media (max-width: 1440px) {
    header {
        padding: 15px 5%;
    }

    nav {
        max-width: 1200px;
        margin: 0 auto;
    }

    .nav-links {
        margin-left: 40px;
    }

    .nav-right input {
        width: 180px;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 15px 3%;
    }

    .nav-links {
        margin-left: 20px;
    }

    .nav-links a, .dropdown-toggle {
        margin: 0 10px;
        font-size: 13px;
    }

    .nav-right {
        gap: 15px;
    }

    .nav-right input {
        width: 150px;
    }
}

@media (max-width: 768px) {
    nav {
        justify-content: flex-start;
        padding: 0;
    }

    .logo {
        margin-right: 0;
        padding-left: 0;
    }

    .logo img {
        height: 28px;  /* 稍微调整logo大小 */
    }

    /* 移动端功能区样式优化 */
    .nav-right.mobile {
        display: flex;
        align-items: center;
        gap: 20px;  /* 增加图标之间的间距 */
        margin: 0 25px;  /* 增加两侧间距 */
    }

    .nav-right.mobile a {
        font-size: 20px;  /* 调整图标大小 */
    }

    .nav-right.mobile .language-select {
        min-width: 80px;  /* 确保语言选择器有足够宽度 */
        text-align: center;
    }

    /* 汉堡菜单样式优化 */
    .menu-toggle {
        margin: 0;
        padding: 5px;  /* 增加点击区域 */
        width: 28px;  /* 稍微增大汉堡菜单尺寸 */
        height: 22px;
    }

    .menu-toggle span {
        height: 2px;
        border-radius: 2px;  /* 圆角 */
    }

    /* 导航内容样式 */
    .nav-content {
        top: calc(6.7vh + 1px);  /* 加上边框宽度 */
    }

    .nav-links {
        padding: 15px 0;  /* 增加内边距 */
    }

    .nav-links a, 
    .dropdown-toggle {
        padding: 15px 25px;  /* 增加左右内边距 */
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px 15px;
    }

    .logo img {
        height: 25px;
    }

    .nav-right.mobile {
        gap: 15px;  /* 减小图标间距 */
        margin: 0 20px;  /* 减小两侧间距 */
    }

    .nav-right.mobile a {
        font-size: 18px;  /* 减小图标大小 */
    }

    .menu-toggle {
        width: 25px;
        height: 20px;
    }
}

/* 添加到现有样式中 */
.nav-right.mobile {
    display: none;
}

@media (max-width: 768px) {
    nav {
        justify-content: flex-start;
    }

    .logo {
        margin-right: auto;
    }

    /* 隐藏桌面版功能区，显示移动版功能区 */
    .nav-right.desktop {
        display: none;
    }

    .nav-right.mobile {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-right: 15px;
    }

    /* 导航内容移动端样式 */
    .nav-content {
        display: none;  /* 默认隐藏 */
        position: fixed;
        top: 6.7vh;
        left: 0;
        width: 100%;
        height: calc(100vh - 6.7vh);
        background-color: #352312;
        flex-direction: column;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-content.active {
        display: flex;  /* 激活时显示 */
    }

    /* 导航链接移动端样式 */
    .nav-links {
        display: flex !important;  /* 强制显示 */
        width: 100%;
        flex-direction: column;
        margin: 0;
        padding: 10px 0;
    }

    .nav-links a, 
    .dropdown-toggle {
        padding: 15px 20px;
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* 下拉菜单移动端样式 */
    .dropdown-menu {
        display: none;  /* 默认隐藏 */
        position: static;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.2);
        border: none;
        padding: 0;
        opacity: 1;  /* 移除透明度动画 */
        visibility: visible;  /* 移除可见性动画 */
        transform: none;  /* 移除变换动画 */
        transition: none;  /* 移除过渡效果 */
    }

    .dropdown-menu a {
        padding: 12px 35px;  /* 增加缩进 */
        font-size: 13px;
        color: rgba(255, 255, 255, 0.9);
    }

    /* 移除hover效果，改用click触发 */
    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    /* 汉堡菜单样式 */
    .menu-toggle {
        display: flex;
        margin: 0;
        padding: 5px;
        width: 28px;
        height: 22px;
    }

    .menu-toggle span {
        height: 2px;
        border-radius: 2px;
    }

    /* 汉堡菜单动画 */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
} 

/* 下拉箭头图标样式 */
.arrow-down {
    display: inline-block;
    width: 8px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-left: 5px;
    transition: transform 0.3s;
}

/* Web端下拉菜单悬停效果 */
.dropdown:hover .arrow-down {
    transform: rotate(225deg);
}

/* 移动端下拉菜单样式 */
@media (max-width: 768px) {
    .dropdown.active .arrow-down {
        transform: rotate(225deg);
    }

    /* 移除Web端的hover效果 */
    .dropdown:hover .arrow-down {
        transform: none;
    }
} 