/* ========================================
   顶部栏模块 (Top Bar)
   包含：顶部标题栏、用户下拉菜单
   ======================================== */

/* 顶部标题栏 */
.top-bar {
    height: 48px;
    background: linear-gradient(135deg, #0099ff 0%, #0066ff 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    color: white;
    -webkit-app-region: drag;
    min-width: 1000px;
    box-shadow: 0 2px 12px rgba(0, 102, 255, 0.15);
    position: relative;
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-icon:hover {
    transform: scale(1.05) rotate(-5deg);
}

.app-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tab-indicator {
    font-size: 13px;
    cursor: pointer;
    -webkit-app-region: no-drag;
}

.top-bar-right {
    display: flex;
    gap: 10px;
    -webkit-app-region: no-drag;
}

.lang-btn, .icon-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.lang-btn:hover, .icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.2);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 153, 255, 0.1);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info-item {
    padding: 10px 12px;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.user-phone {
    font-size: 11px;
    color: #999;
}

.dropdown-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
    font-size: 13px;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

