/* ===== 顶部导航栏样式 ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* 防止Logo区域被压缩 */
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}


.main-nav {
    display: flex;
    justify-content: flex-end;
    margin: 0 20px 0 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: nowrap; /* 防止导航项换行 */
}

.nav-item {
    position: relative;
}

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

.nav-link:hover,
.nav-link.active {
    color: #ff4757;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff4757;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    flex: 1;
    justify-content: flex-end;
}

/* ======== 每日登录奖励 ======== */
.daily-bonus {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 16px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 1.75rem;
}

.daily-bonus:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.bonus-text {
    font-weight: 500;
    white-space: nowrap;
}

.bonus-icon {
    font-size: 11px;
    color: #6c757d;
    cursor: help;
    transition: color 0.3s ease;
}

.daily-bonus:hover .bonus-icon {
    color: #495057;
}

/* ======== 用户操作区 ======== */
.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 登录按钮样式 */
.login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 18px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    height: 1.75rem;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

/* 注册按钮样式 */
.register-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
    height: 1.75rem;
}

.register-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

/* 会员按钮样式 - 黑金渐变 */
.membership-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2c3e50, #f39c12, #e67e22);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 18px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.4);
    position: relative;
    overflow: hidden;
    height: 1.75rem;
}

.membership-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.membership-btn:hover::before {
    left: 100%;
}

.membership-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
    color: white;
    text-decoration: none;
}

/* 黑金渐变动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.user-link:hover {
    background: #e9ecef;
    color: #ff4757;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .nav-list {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .header-left {
        gap: 20px;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-right {
        gap: 15px;
    }
    
    /* 移动端每日登录奖励样式 */
    .daily-bonus {
        padding: 3px 8px;
        font-size: 11px;
        height: 1.5rem;
    }
    
    .login-btn {
        padding: 4px 12px;
        font-size: 12px;
        height: 1.5rem;
    }
    
    .membership-btn {
        padding: 4px 10px;
        font-size: 12px;
        height: 1.5rem;
    }
}
