/* ===== 顶栏布局 ===== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
}

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

/* ===== 品牌 ===== */
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    flex-shrink: 0;
}

.brand .logo {
    font-size: 18px;
}

.brand .status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #dcfce7;
    color: #16a34a;
}

/* ===== 频道导航 ===== */
.top-nav {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: wrap;
}

.top-nav .nav-btn {
    padding: 6px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.top-nav .nav-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.top-nav .nav-btn.active {
    background: #eff6ff;
    color: #3b82f6;
    font-weight: 600;
}

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

.user-actions .history-btn-top {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #374151;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.user-actions .history-btn-top:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.user-actions span {
    font-size: 13px;
    color: #374151;
}

.user-actions .setting-btn {
    padding: 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.user-actions .setting-btn:hover {
    background: #e2e8f0;
}

.user-actions .logout-btn {
    padding: 4px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.user-actions .logout-btn:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #dc2626;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .top-bar {
        padding: 6px 12px;
    }
    .top-bar-left {
        gap: 8px;
    }
    .brand .title {
        font-size: 13px;
    }
    .top-nav .nav-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .top-bar-left {
        flex-wrap: wrap;
        justify-content: center;
    }
    .brand .title {
        font-size: 12px;
    }
    .top-nav .nav-btn {
        padding: 3px 8px;
        font-size: 11px;
    }
    .user-actions {
        justify-content: center;
    }
}
