.top-global-nav {
    height: 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1;
    display: flex;
    align-items: center;
    height: 100%;
    background: linear-gradient(135deg, #fff 0%, #e0e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text:hover {
    transform: scale(1.05);
}

.logo-text span {
    color: #ff6b35;
    position: relative;
    -webkit-text-fill-color: #ff6b35;
    font-weight: 900;
}

.logo-text span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff6b35;
    border-radius: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scaleX(1);
        opacity: 1;
    }
    50% {
        transform: scaleX(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 100%;
}

.nav-menu-item {
    padding: 0 26px;
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    letter-spacing: 0.5px;
    background: transparent;
}

/* 只针对无子导航的菜单项链接 */
.nav-menu-item:not(.has-sub-nav) > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

/* 确保子导航不受影响 */
.nav-menu-item.has-sub-nav > span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* 子导航链接恢复默认样式 */
.sub-nav-item {
    display: block !important;
    height: auto !important;
    width: auto !important;
}

.nav-menu-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    transform: none;
    box-shadow: none;
    text-shadow: none;
}

/* 导航项激活状态 */
.nav-menu-item.active {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

/* 导航项下方装饰线 */
.nav-menu-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35 0%, #ff8c5a 50%, #ff6b35 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255,107,53,0.6);
    opacity: 0;
}

.nav-menu-item:hover::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

/* 有子导航的导航项 */
.nav-menu-item.has-sub-nav {
    padding-bottom: 20px;
    margin-bottom: -15px;
}

.nav-menu-item.has-sub-nav::after {
    bottom: 15px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vip-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.vip-enterprise {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.vip-personal {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    cursor: pointer;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.user-name {
    color: #fff;
    font-size: 13px;
}

.login-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-area:hover {
    background: rgba(255,255,255,0.2);
}

.login-area i {
    color: #fff;
    font-size: 16px;
}

.login-text {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

/* 子导航样式 */
.nav-menu-item.has-sub-nav {
    position: relative;
}

.sub-nav-dropdown {
    position: absolute;
    top: 45px;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 300px;
    padding: 15px 0;
    margin-top: 5px;
}

/* 增加子导航的显示区域，避免鼠标移动时意外离开 */
.nav-menu-item.has-sub-nav {
    padding-bottom: 15px;
    margin-bottom: -15px;
}

/* 为子导航添加显示延迟，避免快速移动时消失 */
.sub-nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.nav-menu-item.has-sub-nav:hover .sub-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-nav-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-nav-content {
    display: flex;
    padding: 0 20px;
}

.sub-nav-column {
    flex: 1;
    min-width: 140px;
}

.sub-nav-column:not(:last-child) {
    margin-right: 30px;
}

.sub-nav-item {
    display: block;
    padding: 10px 0;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.sub-nav-item:hover {
    color: #ff6b35;
    padding-left: 5px;
}

/* 子导航分隔线 */
.sub-nav-column:not(:last-child) {
    margin-right: 30px;
}

/* ========== 用户下拉菜单样式 ========== */
.user-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.user-name-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.user-name-display:hover {
    background: rgba(255,255,255,0.2);
}

.user-name-display .login-text {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* 悬停显示下拉菜单 */
.user-dropdown-wrapper:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 用户信息区域 */
.dropdown-user-info {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    color: rgba(255,255,255,0.8);
    min-width: 60px;
}

.info-value {
    color: #fff;
    font-weight: 500;
}

/* VIP推广区域 */
.dropdown-vip-promo {
    padding: 15px 20px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.promo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff6b35;
    font-weight: 600;
    font-size: 14px;
}

.promo-btn {
    padding: 6px 18px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,107,53,0.4);
    color: #fff;
}

/* 功能菜单列表 */
.dropdown-menu-list {
    padding: 15px 20px;
}

.menu-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* 功能网格 */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.menu-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
    font-size: 12px;
}

.menu-grid-item i {
    font-size: 24px;
    color: #667eea;
    transition: all 0.3s;
}

.menu-grid-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102,126,234,0.3);
}

.menu-grid-item:hover i {
    color: #fff;
    transform: scale(1.1);
}

.menu-grid-item span {
    font-weight: 500;
}

/* 底部操作栏 */
.dropdown-menu-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    padding: 6px 12px;
    border-radius: 6px;
}

.footer-item i {
    font-size: 14px;
}

.footer-item:hover {
    color: #667eea;
    background: rgba(102,126,234,0.1);
}

.footer-item.logout {
    color: #f5576c;
}

.footer-item.logout:hover {
    color: #f5576c;
    background: rgba(245,87,108,0.1);
}

/* ========== 卡密兑换模态框样式（公共组件） ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: #f5f5f5;
}

.modal-body {
    padding: 24px;
}

.modal-vip-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.modal-vip-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.modal-vip-item:last-child {
    margin-bottom: 0;
}

.modal-vip-label {
    color: #666;
    font-size: 14px;
    min-width: 100px;
}

.modal-vip-value {
    color: #333;
    font-weight: 600;
    font-size: 15px;
}

.modal-tips {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 19px;
    color: #856404;
}

.modal-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.modal-alert-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.modal-alert-danger {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.modal-alert i {
    margin-right: 10px;
    font-size: 18px;
}

.modal-form-group {
    margin-bottom: 20px;
}

.modal-form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.modal-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.modal-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-btn-redeem {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal-btn-redeem:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.modal-btn-redeem:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}