/* 头部导航栏 */
.header {
    background-color: var(--primary-white);
    box-shadow: none;
    border-bottom: var(--border);
    position: relative;
    top: 0;
    isolation: isolate;
    z-index: 100;
}

.logo{
    padding-right: 30px;
}
.logo img {
    height: 50px;
    /*width: auto;*/
}

/* 主导航菜单 */

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
}
.nav-list {
    display: flex;
    list-style: none;
}

.nav-link {
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 5px;
    word-spacing: 2px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--primary-blue);
}

/* 导航操作区域 */
.nav-actions {
    display: flex;
    align-items: center;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 语言切换 */
.language-selector {
    position: relative;
}

.language-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    /*gap: 5px;*/
    border-radius: 50%;
    padding: 8px 1px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-light);
}
.language-btn:hover {
    background-color: var(--primary-blue);
    color: var(--primary-white);
    transform: translateY(-2px);
}

.language-btn i{
    display: none;
}
.language-btn span {
    font-size: 15px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: none;
    padding: 10px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background-color 0.3s;
    font-size: 14px;
}

/* 登录按钮 */
.auth-buttons{
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.btn-toLogin {
    width: 32px;
    height: 32px;
    background-color: var(--primary-white);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    padding: 8px 1px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}
.btn-toLogin:active {
    display: none;
}
.btn-toLogin:hover {
    color: var(--primary-white);
    background-color: var(--primary-blue);
    border-radius: 50%;
    transform: translateY(-2px);
}
.fa-user {
    font-size: 18px;
    padding: 6px 6px;
    color: var(--text-light);
    display: none; /* 默认隐藏 */
}
.fa-user:hover {
    color: var(--primary-white);
    background-color: var(--primary-blue);
    border-radius: 50%;
    transform: translateY(-2px);
}

/* 用户弹出框样式 */
.user-popup {
    position: absolute;
    top: 88px;
    right: max(2px, calc(50% - 298px));
    width: 180px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}
.user-popup.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: popupAppear 0.3s ease;
}
@keyframes popupAppear {
    0% { opacity: 0; transform: translateY(-10px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.popup-header {
    padding: 8px;
    background: var(--primary-white);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
    position: relative;
}
.user-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.user-details h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
}
.user-details p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}
.user-status {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 8px;
    font-weight: 500;
}

/*.popup-menu {*/
/*    padding: 10px 0;*/
/*}*/

.popup-item {
    display: flex;
    align-items: center;
    padding: 8px 25px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
    position: relative;
}

.popup-item:hover {
    background-color: #f8faff;
    color: #2575fc;
    padding-left: 30px;
}

.popup-item i {
    width: 24px;
    margin-right: 15px;
    font-size: 18px;
    color: #777;
    text-align: center;
}

.popup-item:hover i {
    color: var(--primary-blue);
}

.popup-item .badge {
    position: absolute;
    right: 25px;
    background: #ff4444;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.popup-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 3px 0;
}

.logout-btn {
    color: #ff5a5f;
}

.logout-btn i {
    color: #ff5a5f;
}

.logout-btn:hover {
    background-color: #fff5f5;
    color: #ff2e2e;
}


/**
支付相关弹窗---
 */
.modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.modal-icon.success {
    color: #27ae60;
}

.modal-icon.error {
    color: #e74c3c;
}

.modal-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.modal-message {
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-btn {
    padding: 12px 30px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-btn:hover {
    background: #219653;
}

/* 弹窗遮罩层 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* 弹窗内容 */
.modal-content {
    background-color: white;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* 弹窗标题 */
.modal-title-wx {
    text-align: center;
    color: #333;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
}

/* 二维码容器 */
.qrcode-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* 支付信息 */
.payment-info {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.label {
    color: #666;
    font-weight: 500;
}

.value {
    color: #333;
    font-weight: 600;
}

.status {
    color: #1890ff;
}

/* 提示信息 */
.tips {
    text-align: center;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

.tips p {
    margin: 5px 0;
}
/**
---支付相关弹窗
 */