/* 头部导航样式 */
.app-header {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.app-title {
    font-size: 20px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.title-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.6));
}

/* 头部按钮组 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.header-actions::-webkit-scrollbar {
    display: none;
}

/* 头部按钮通用样式 */
.header-btn-base,
.seko-trigger,
.jimeng-trigger,
.save-trigger,
.queue-trigger,
.api-test-trigger,
.refresh-trigger,
.vps-management-trigger,
.youtube-batch-upload-trigger,
.youtube-upload-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-secondary) !important;
    height: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-btn-base:hover,
.seko-trigger:hover,
.jimeng-trigger:hover,
.save-trigger:hover,
.queue-trigger:hover,
.api-test-trigger:hover,
.refresh-trigger:hover,
.vps-management-trigger:hover,
.youtube-batch-upload-trigger:hover,
.youtube-upload-trigger:hover {
    transform: translateY(-1px);
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.header-btn-base:active,
.seko-trigger:active,
.jimeng-trigger:active,
.save-trigger:active,
.queue-trigger:active,
.api-test-trigger:active,
.refresh-trigger:active,
.vps-management-trigger:active,
.youtube-batch-upload-trigger:active,
.youtube-upload-trigger:active {
    transform: translateY(0);
}

/* Seko按钮 - 紫色主题 */
.seko-trigger:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.2)) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2) !important;
    color: #a78bfa !important;
}

/* 即梦按钮 - 粉色主题 */
.jimeng-trigger:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(219, 39, 119, 0.2)) !important;
    border-color: rgba(236, 72, 153, 0.5) !important;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2) !important;
    color: #f472b6 !important;
}

/* 保存按钮 - 绿色主题 */
.save-trigger:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2)) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
}

/* 队列触发按钮 - 蓝色主题 */
.queue-trigger:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2)) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
}

/* API测试按钮 - 青色主题 */
.api-test-trigger:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(8, 145, 178, 0.2)) !important;
    border-color: rgba(6, 182, 212, 0.5) !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2) !important;
    color: #22d3ee !important;
}

/* 重新加载按钮 - 紫罗兰主题 */
.refresh-trigger:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(109, 40, 217, 0.2)) !important;
    border-color: rgba(124, 58, 237, 0.5) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2) !important;
    color: #c4b5fd !important;
}

/* VPS管理按钮 - 深蓝主题 */
.vps-management-trigger:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(29, 78, 216, 0.2)) !important;
    border-color: rgba(37, 99, 235, 0.5) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
    color: #93c5fd !important;
}

/* 批量上传按钮 - 红色主题 */
.youtube-batch-upload-trigger:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(185, 28, 28, 0.2)) !important;
    border-color: rgba(220, 38, 38, 0.5) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2) !important;
    color: #fca5a5 !important;
}

/* 数据分析按钮 - 橙红色主题 */
.youtube-upload-trigger:hover {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.2), rgba(194, 65, 12, 0.2)) !important;
    border-color: rgba(234, 88, 12, 0.5) !important;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2) !important;
    color: #fdba74 !important;
}

/* 头部角色缩略图 */
.header-characters {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
}

.header-character-thumb {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(24, 144, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-character-thumb:hover {
    border-color: #1890ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

.header-character-thumb:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-primary);
}

.header-location-thumb {
    width: 48px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(82, 196, 26, 0.3);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-location-thumb:hover {
    border-color: #52c41a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.2);
}

.header-location-thumb:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-primary);
}

/* 钱包余额 */
.wallet-balance {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0 16px;
    height: 36px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.wallet-balance:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.balance-icon {
    margin-right: 0;
    color: #ffd700; /* 金币颜色 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }
    
    .app-title {
        font-size: 18px;
    }
    
    .header-actions {
        gap: 8px;
    }

    .header-btn-base,
    .seko-trigger,
    .jimeng-trigger,
    .save-trigger,
    .queue-trigger,
    .api-test-trigger,
    .wallet-balance {
        padding: 6px 12px;
        height: 32px;
        font-size: 12px;
    }
    
    .header-characters {
        margin-left: 10px;
        gap: 4px;
    }
    
    .header-character-thumb {
        width: 28px;
        height: 28px;
    }
    
    .header-location-thumb {
        width: 40px;
        height: 32px;
    }
}
